Skip to content

Commit

Permalink
Change window control using tap-dance
Browse files Browse the repository at this point in the history
  • Loading branch information
pipex committed Aug 31, 2023
1 parent c170b8f commit 3caff34
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

#define PRINT LS(LG(N4))
#define LOCK LC(LG(Q))
#define WLEFT LC(LA(LEFT))
#define WRGHT LC(LA(RIGHT))
#define WFULL LC(LA(RET))
#define NTAB LC(TAB)
#define PTAB LS(LC(TAB))
#define QUIT LG(Q)
Expand Down Expand Up @@ -65,6 +62,21 @@ ZMK_BEHAVIOR(ss_cw, tap_dance,
bindings = <&sk LSHFT>, <&caps_word>;
)

ZMK_BEHAVIOR(n4_wleft, tap_dance,
tapping-term-ms = <200>;
bindings = <&kp N4>, <&kp LC(LA(LEFT))>;
)

ZMK_BEHAVIOR(n6_wright, tap_dance,
tapping-term-ms = <200>;
bindings = <&kp N4>, <&kp LC(LA(RIGHT))>;
)

ZMK_BEHAVIOR(n5_wfull, tap_dance,
tapping-term-ms = <200>;
bindings = <&kp N4>, <&kp LC(LA(RET))>;
)

&lt {
flavor = "balanced";
tapping-term-ms = <240>;
Expand All @@ -88,7 +100,7 @@ ZMK_LAYER(num,
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
xxx &kp LOCK &kp C_PP &kp C_PREV &kp C_NEXT xxx &kp SLASH &kp N7 &kp N8 &kp N9 &kp MINUS xxx
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
xxx &kp PTAB &kp NTAB xxx xxx &kp CMD_Q &kp ASTRK &mt N4 WLEFT &mt N5 WFULL &mt N6 WRGHT &kp PLUS xxx
xxx &kp PTAB &kp NTAB xxx xxx &kp CMD_Q &kp ASTRK &n4_wleft &n5_wfull &n6_wright T &kp PLUS xxx
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
xxx xxx &kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP xxx &kp N0 &kp N1 &kp N2 &kp N3 &kp DOT xxx
// ╰─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
Expand Down

0 comments on commit 3caff34

Please # to comment.