From a43b0c3c65dd1bb2a037abb493669743c5c9f48f Mon Sep 17 00:00:00 2001 From: Tim Hansinger Date: Sun, 3 Dec 2023 15:51:22 +0100 Subject: [PATCH] Long press UNDO CUT COPY PASTE for Dvorak at Qwerty positions --- config/base.keymap | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/config/base.keymap b/config/base.keymap index 6b3ff3243..63ce0da37 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -116,6 +116,13 @@ ZMK_BEHAVIOR(lgui_key_macro, macro_one_param, <¯o_release>, <&kp LGUI>; ) + +// tap: qmark | shift + tap: excl +ZMK_BEHAVIOR(qexcl, mod_morph, + bindings = <&kp QMARK>, <&kp EXCL>; + mods = <(MOD_LSFT|MOD_RSFT)>; +) + ZMK_BEHAVIOR(as_lgui_qexcl, hold_tap, bindings = <&lgui_key_macro>, <&qexcl>; MT_CORE) ZMK_BEHAVIOR(lgui_key_macro, macro_one_param, wait-ms = <0>; @@ -136,7 +143,7 @@ ZMK_BEHAVIOR(lgui_key_macro, macro_one_param, #define PASTE_V &as_lgui V V // tap: V | long-tap: macOS paste // dvorak -#define UNDO_QEXCL &as_lgui_qexcl Z qexcl // tap: qexcl | long-tap: macOS undo +#define UNDO_QEXCL &as_lgui_qexcl Z &qexcl // tap: qexcl | long-tap: macOS undo #define CUT_Q &as_lgui X Q // tap: Q | long-tap: macOS undo #define COPY_J &as_lgui C J // tap: J | long-tap: macOS undo #define PASTE_K &as_lgui V K // tap: K | long-tap: macOS undo @@ -229,12 +236,6 @@ ZMK_BEHAVIOR(dot_inner_morph, mod_morph, mods = <(MOD_LCTL|MOD_RCTL)>; ) -// tap: qmark | shift + tap: excl -ZMK_BEHAVIOR(qexcl, mod_morph, - bindings = <&kp QMARK>, <&kp EXCL>; - mods = <(MOD_LSFT|MOD_RSFT)>; -) - ZMK_BEHAVIOR(kp_kp, hold_tap, flavor = "balanced"; tapping-term-ms = <200>;