Skip to content

Commit

Permalink
Long press UNDO CUT COPY PASTE for Dvorak at Qwerty positions
Browse files Browse the repository at this point in the history
  • Loading branch information
timhansinger committed Dec 3, 2023
1 parent 42658da commit a43b0c3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ ZMK_BEHAVIOR(lgui_key_macro, macro_one_param,
<&macro_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>;
Expand All @@ -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
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit a43b0c3

Please sign in to comment.