setup gaming layers
This commit is contained in:
parent
d174cc29a5
commit
285a94a7bd
|
@ -2,9 +2,11 @@
|
|||
COMB(DF_TAB, KC_TAB, KC_D, KC_F)
|
||||
COMB(JK_ESC, KC_ESC, KC_J, KC_K)
|
||||
COMB(DK_CAPS, CW_TOGG, KC_D, KC_K)
|
||||
COMB(OP_GAME, GM_TOGG, KC_O, KC_P)
|
||||
SUBS(RT_HOME, "~/", KC_R, KC_T)
|
||||
SUBS(YU_UPDIR, "../", KC_Y, KC_U)
|
||||
|
||||
|
||||
// name result chord keys
|
||||
SUBS(VI_WRITE, ":w", KC_SCLN, KC_W )
|
||||
SUBS(VI_QUIT, ":q", KC_SCLN, KC_Q )
|
||||
|
|
|
@ -95,6 +95,30 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
XXXXXXX, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[L_GAMING] = LAYOUT_split_3x6_3(
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, GAME_FN, KC_SPC, KC_ENT, XXXXXXX, XXXXXXX
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[L_GAMEFN] = LAYOUT_split_3x6_3(
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
XXXXXXX, XXXXXXX, KC_7, KC_8, KC_9, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, XXXXXXX, KC_4, KC_5, KC_6, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, KC_0, KC_1, KC_2, KC_3, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -6,5 +6,7 @@ enum layers {
|
|||
L_LOWER,
|
||||
L_RAISE,
|
||||
L_ADJUST,
|
||||
L_GAMING,
|
||||
L_GAMEFN,
|
||||
};
|
||||
|
||||
|
|
|
@ -37,6 +37,10 @@ enum custom_keycodes {
|
|||
#define WZ_CMOD LCTL(LSFT(KC_X))
|
||||
#define WZ_PSTE LCTL(LSFT(KC_V))
|
||||
|
||||
// Gaming
|
||||
#define GM_TOGG TG(L_GAMING)
|
||||
#define GAME_FN MO(L_GAMEFN)
|
||||
|
||||
// Misc
|
||||
#define TABCTRL MT(MOD_LCTL, KC_TAB)
|
||||
#define BSPC_DW MT(MOD_LCTL, KC_BSPC)
|
||||
|
|
Loading…
Reference in a new issue