Skip to content

Commit

Permalink
Use swapper from zmkfirmware/zmk#1366
Browse files Browse the repository at this point in the history
  • Loading branch information
pipex committed Aug 31, 2023
1 parent 3caff34 commit ef8e0a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ on: [push, pull_request, workflow_dispatch]

jobs:
build:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
uses: pipex/zmk/.github/workflows/build-user-config.yml@main
8 changes: 7 additions & 1 deletion config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ ZMK_BEHAVIOR(n5_wfull, tap_dance,
bindings = <&kp N4>, <&kp LC(LA(RET))>;
)

// Cmd+Tab swapper, requires PR #1366
ZMK_BEHAVIOR(swapper, tri_state,
bindings = <&kt LGUI>, <&kp TAB>, <&kt LGUI>;
ignored-key-positions = <LT2>;
)

&lt {
flavor = "balanced";
tapping-term-ms = <240>;
Expand All @@ -100,7 +106,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 &n4_wleft &n5_wfull &n6_wright T &kp PLUS xxx
xxx &kp PTAB &kp NTAB xxx &swapper &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 ef8e0a1

Please sign in to comment.