Skip to content

Commit

Permalink
feat(keyamap): adding swapper
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvinsh committed Feb 13, 2024
1 parent e90b8da commit 0ed6b52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/include/base.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
display-name = "NAV";
bindings = <
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
___ ___ ___ ___ ___ &kp PG_UP NAV_BSPC NAV_DEL ___ ___
___ ___ ___ &swapper ___ &kp PG_UP NAV_BSPC NAV_DEL ___ ___
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
&sk LGUI &sk LALT &sk LCTRL &sk LSHFT ___ &kp LEFT NAV_DOWN NAV_UP &kp RIGHT &kp GRAVE
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
Expand Down
11 changes: 11 additions & 0 deletions config/include/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,14 @@ MAKE_HRM(hmr, KEYS_L THUMBS)
tapping-term-ms = <TAPPING_TERM_MS>;
quick-tap-ms = <QUICK_TAP_MS>;
};

// Alt+Tab swapper
/ {
behaviors {
swapper: swapper {
compatible = "zmk,behavior-tri-state";
#binding-cells = <0>;
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
};
};
};

0 comments on commit 0ed6b52

Please sign in to comment.