Skip to content

Commit

Permalink
nav layer
Browse files Browse the repository at this point in the history
  • Loading branch information
glebsexy committed Jul 15, 2024
1 parent 669c67d commit 413a948
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
31 changes: 23 additions & 8 deletions config/boards/shields/sexy_artsey_3d/sexy_artsey_3d.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,28 @@ ZMK_BEHAVIOR(many_tap_bootloader, tap_dance,
#define STICKY_TIMEOUT 500

// LEFT SIDE
#define TLI 0 // TOP INDEX
#define TLM 1 // TOP MIDDLE
#define TLR 2 // TOP RING
#define TLP 3 // TOP PINKY
#define BLI 4 // BOTTOM INDEX
#define BLM 5 // BOTTOM MIDDLE
#define BLR 6 // BOTTOM RING
#define BLP 7 // BOTTOM PINKY
#define TLI 3 // TOP INDEX
#define TLM 2 // TOP MIDDLE
#define TLR 1 // TOP RING
#define TLP 0 // TOP PINKY
#define BLI 7 // BOTTOM INDEX
#define BLM 6 // BOTTOM MIDDLE
#define BLR 5 // BOTTOM RING
#define BLP 4 // BOTTOM PINKY
#define LOT 9 // O-THUMB
#define LIT 8 // I-THUMB

#define DEF 0
#define NAV 1
#define SYM 2

&sk {
release-after-ms = <STICKY_TIMEOUT>;
quick-release;
};

ZMK_COMBO(lay_nav, &to NAV, LIT, DEF)

/ {
combos {
compatible = "zmk,combos";
Expand All @@ -63,5 +69,14 @@ ZMK_BEHAVIOR(many_tap_bootloader, tap_dance,
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

nav {
bindings = <
&kp LSHIFT &kp LALT &kp UP &kp DOWN
&kp LCMD &kp LCTRL &kp RIGHT &kp LEFT
&to DEF &none &many_tap_bootloader
>;
sensor-bindings = <&inc_dec_kp UP DOWN>;
};
};
};
17 changes: 11 additions & 6 deletions config/boards/shields/sexy_artsey_3d/taipo.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ combo_l_space { \
layers = <COMBO_LAYERS>; \
};

combo_l_bspc { \
timeout-ms = <COMBO_TIMEOUT>; \
bindings = <&kp BSPC>; \
key-positions = <LIT>; \
layers = <COMBO_LAYERS>; \
};
// combo_l_bspc { \
// timeout-ms = <COMBO_TIMEOUT>; \
// bindings = <&kp BSPC>; \
// key-positions = <LIT>; \
// layers = <COMBO_LAYERS>; \
// };

// single • outer • inner • both
TCOMBO(R, &kp R, &kp LS(R), &kp GT, &kp PSCRN, TLP)
Expand Down Expand Up @@ -79,7 +79,12 @@ TCOMBO(SEMI2, &kp SEMI, &kp COLON, &none, &none, BLR TLM BLI)
TCOMBO(SQT2, &kp SQT, &kp DQT, &kp GRAVE, &none, BLR TLM TLI)
TCOMBO(TAB, &kp TAB, &kp DEL, &kp INS, &bt BT_CLR, TLR TLM TLI)
TCOMBO(ENTER, &kp ENTER, &kp ESC, &kp LALT, &bootloader, BLR BLM BLI)

// mods & arrows
TCOMBO(LGUI, &sk LGUI, &kp RIGHT, &kp PGUP, &bt BT_SEL 3, TLP BLP)
TCOMBO(LALT, &sk LALT, &kp UP, &kp HOME, &bt BT_SEL 2, TLR BLR)
TCOMBO(LCTRL, &sk LCTRL, &kp DOWN, &kp END, &bt BT_SEL 1, TLM BLM)
TCOMBO(LSHIFT, &sk LSHIFT, &kp LEFT, &kp PGDN, &bt BT_SEL 0, TLI BLI)

// my combos
TCOMBO(BSP, &kp BSPC, &kp LA(BSPC), &kp LG(BSPC), &none, BLP BLR BLM)

0 comments on commit 413a948

Please sign in to comment.