Skip to content

Commit

Permalink
Reposition shift and other modifier keys
Browse files Browse the repository at this point in the history
- put shift on thumb key b/c used most often
- need to move NUM/SWAP keys as well
- CTRL and S-CTRL is now also aligned in same column
  • Loading branch information
PandaScience committed Sep 14, 2022
1 parent 17064b4 commit 4c5d004
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define S_ALT S(KC_LALT)
#define S_GUI S(KC_LGUI)

#define S_H LSFT_T(KC_H)
#define S_S RSFT_T(KC_S)
#define C_X LCTL_T(KC_X)
#define C_J RCTL_T(KC_J)
#define C_H LCTL_T(KC_H)
#define C_S RCTL_T(KC_S)
#define A_A LALT_T(KC_A)
#define A_N ALGR_T(KC_N)
#define G_E LGUI_T(KC_E)
#define G_R RGUI_T(KC_R)

#define sC_EQL RCS_T(KC_EQL)
#define sC_SLSH RCS_T(KC_SLSH)
#define sC_X RCS_T(KC_X)
#define sC_J RCS_T(KC_J)
#define sA_Q LSA_T(KC_Q)
#define sA_M LSA_T(KC_M)
#define sG_LBRC LSG_T(KC_LBRC)
Expand All @@ -56,12 +54,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define NAV_I LT(NAV, KC_I)
#define MSE_T LT(MSE, KC_T)

// swap hands; this unfortunatley breaks tap-repeat on space -> use SYM/NAV layer
#define SW_SPC SH_T(KC_SPC)
#define SW_ENT SH_T(KC_ENT)
// swap hands; this unfortunatley breaks tap-repeat -> use NUM/NAV layer
#define SW_ESC SH_T(KC_ESC)
#define SW_DEL SH_T(KC_DEL)

// thumb-shift; this unfortunatley breaks tap-repeat -> use NUM/NAV layer
#define S_TAB LSFT_T(KC_TAB)
#define S_BSPC LSFT_T(KC_BSPC)

#define NUM_ENT LT(NUM, KC_ENT)

#define SYS_ESC LT(SYS, KC_ESC)
#define NUM_TAB LT(NUM, KC_TAB)




Expand All @@ -81,11 +85,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//,-----------------------------------------------------. ,-----------------------------------------------------.
SYS_ESC, KC_K, KC_DOT, KC_O, KC_COMM, KC_Y, KC_V, KC_G, KC_C, KC_L, KC_Z, SYS_ESC,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
SYM_MINS, S_H, A_A, G_E, NAV_I, KC_U, KC_D, MSE_T, G_R, A_N, S_S, SYM_F,
SYM_MINS, C_H, A_A, G_E, NAV_I, KC_U, KC_D, MSE_T, G_R, A_N, C_S, SYM_F,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
sC_EQL, C_X, sA_Q, sG_LBRC, KC_RBRC, KC_QUOT, KC_B, KC_P, sG_W, sA_M, C_J, sC_SLSH,
KC_EQL, sC_X, sA_Q, sG_LBRC, KC_RBRC, KC_QUOT, KC_B, KC_P, sG_W, sA_M, sC_J, KC_SLSH,
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
KC_ESC, NUM_TAB, SW_ENT, SW_SPC, KC_BSPC, KC_DEL
SW_ESC, S_TAB, NUM_ENT, KC_SPC, S_BSPC, SW_DEL
//`--------------------------' `--------------------------'
),

Expand All @@ -105,35 +109,35 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//,------------------------------------------------------. ,-----------------------------------------------------.
_______, ___x___, ___x___, ___x___, ___x___, ___x___, KC_ASTR, KC_7, KC_8, KC_9, KC_SLSH, _______,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
MO(FUN), SFT, ALT, GUI, KC_DOT, ___x___, KC_PLUS, KC_4, KC_5, KC_6, KC_MINS, KC_0,
MO(FUN), CTRL, ALT, GUI, KC_DOT, ___x___, KC_PLUS, KC_4, KC_5, KC_6, KC_MINS, KC_0,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
S_CTRL, CTRL, S_ALT, S_GUI, KC_COMM, ___x___, ___x___, KC_1, KC_2, KC_3, KC_COMM, KC_DOT,
___x___, S_CTRL, S_ALT, S_GUI, KC_COMM, ___x___, ___x___, KC_1, KC_2, KC_3, KC_COMM, KC_DOT,
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
_______, ___O___, _______, _______, _______, _______
_______, _______, ___O___, _______, _______, _______
//`--------------------------' `--------------------------'
),

[FUN] = LAYOUT_split_3x6_3(
//,------------------------------------------------------. ,-----------------------------------------------------.
_______, ___x___, ___x___, ___x___, ___x___, ___x___, KC_F12, KC_F7, KC_F8, KC_F9, ___x___, _______,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
___O___, SFT, ALT, GUI, ___x___, ___x___, KC_F11, KC_F4, KC_F5, KC_F6, ___x___, ___x___,
___O___, CTRL, ALT, GUI, ___x___, ___x___, KC_F11, KC_F4, KC_F5, KC_F6, ___x___, ___x___,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
S_CTRL, CTRL, S_ALT, S_GUI, ___x___, ___x___, KC_F10, KC_F1, KC_F2, KC_F3, ___x___, ___x___,
___x___, S_CTRL, S_ALT, S_GUI, ___x___, ___x___, KC_F10, KC_F1, KC_F2, KC_F3, ___x___, ___x___,
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
___x___, ___O___, ___x___, ___x___, ___x___, ___x___
___x___, ___x___, ___O___, ___x___, ___x___, ___x___
//`--------------------------' `--------------------------'
),

[NAV] = LAYOUT_split_3x6_3(
//,------------------------------------------------------. ,-----------------------------------------------------.
___x___, ___x___, ___x___,___x___, ___x___, ___x___, ___x___, KC_HOME, KC_PGDN, KC_PGUP, KC_END, ___x___,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
___x___, SFT, ALT, GUI, ___x___, ___x___, ___x___, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, ___x___,
___x___, CTRL, ALT, GUI, ___O___, ___x___, ___x___, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, ___x___,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
S_CTRL, CTRL, S_ALT, S_GUI, ___x___, ___x___, ___x___, KC_PSTE, KC_COPY, KC_CUT, KC_INS, ___x___,
___x___, S_CTRL, S_ALT, S_GUI, ___x___, ___x___, ___x___, KC_PSTE, KC_COPY, KC_CUT, KC_INS, ___x___,
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
___x___, KC_TAB, KC_ENT, KC_SPC, KC_BSPC, KC_DEL
___x___, S_TAB, KC_ENT, KC_SPC, KC_BSPC, KC_DEL
//`--------------------------' `--------------------------'
),

Expand Down

0 comments on commit 4c5d004

Please sign in to comment.