Skip to content

Commit

Permalink
Add panic macro
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi authored Sep 14, 2024
1 parent 1f9b731 commit 9af2e87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/keymap/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// ╭─────────────┬───────────────┬───────────────┬─────────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&none, &ht_sl LC(A) 0, &kp LC(F), &sel_word, CLOSE, &kp PG_UP, CT(HOME), &kp UP, CT(END), &none, \
// ├─────────────┼───────────────┼───────────────┼─────────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp LGUI, &ht_ptd LALT 0, &ht_at LCTRL 0, &ht_ntd LSHIFT 0, &none, &kp PG_DN, &kp LEFT, &kp DOWN, &kp RIGHT, &kp INS, \
&kp LGUI, &ht_ptd LALT 0, &ht_at LCTRL 0, &ht_ntd LSHIFT 0, &r_mods, &kp PG_DN, &kp LEFT, &kp DOWN, &kp RIGHT, &kp INS, \
// ├─────────────┼───────────────┼───────────────┼─────────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp U_UND, &kp U_CUT, &kp U_CPY, &kp U_PST, &kp U_RDO, &none, &kp BSPC, &kp TAB, &kp DEL, &none, \
// ╰─────────────┴───────────────┴───────────────┼─────────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
Expand Down
9 changes: 9 additions & 0 deletions config/keymap/macros.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@
, <&u_masked>;
)

ZMK_MACRO(r_mods,
bindings
= <&macro_release>
, <&kp LGUI &kp RGUI>
, <&kp LALT &kp RALT>
, <&kp LCTRL &kp RCTRL>
, <&kp LSHIFT &kp RSHIFT>;
)

ZMK_MACRO(sel_word_base,
wait-ms = <0>;
tap-ms = <0>;
Expand Down

0 comments on commit 9af2e87

Please sign in to comment.