From 9af2e87997e6aafcd97a36cfb186ac4ed2f6b53f Mon Sep 17 00:00:00 2001 From: Maximilian Engl <43675074+englmaxi@users.noreply.github.com> Date: Sat, 14 Sep 2024 20:29:38 +0200 Subject: [PATCH] Add panic macro --- config/keymap/keymap.dtsi | 2 +- config/keymap/macros.dtsi | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/keymap/keymap.dtsi b/config/keymap/keymap.dtsi index 3b64cf8..5f43c2a 100644 --- a/config/keymap/keymap.dtsi +++ b/config/keymap/keymap.dtsi @@ -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, \ // ╰─────────────┴───────────────┴───────────────┼─────────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯ diff --git a/config/keymap/macros.dtsi b/config/keymap/macros.dtsi index fd291fd..1fc0b4b 100644 --- a/config/keymap/macros.dtsi +++ b/config/keymap/macros.dtsi @@ -25,6 +25,15 @@ , <&u_masked>; ) + ZMK_MACRO(r_mods, + bindings + = <¯o_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>;