Minor clean-up
This commit is contained in:
parent
06a9b8bbe9
commit
2f7b93eb8e
1 changed files with 16 additions and 21 deletions
|
@ -44,7 +44,7 @@ ZMK_CONDITIONAL_LAYER(FN NUM, SYS) // FN + NUM --> SYS
|
||||||
#define XXX &none
|
#define XXX &none
|
||||||
#define ___ &trans
|
#define ___ &trans
|
||||||
|
|
||||||
#define CANCEL &kp K_CANCEL // cancel caps-word and num-word
|
#define CANCEL &kp K_CANCEL // cancel caps-word, num-word and smart-mouse
|
||||||
#define DSK_PREV &hmr RSHFT LG(LC(LEFT)) // previous desktop
|
#define DSK_PREV &hmr RSHFT LG(LC(LEFT)) // previous desktop
|
||||||
#define DSK_NEXT &hmr LALT LG(LC(RIGHT)) // next desktop
|
#define DSK_NEXT &hmr LALT LG(LC(RIGHT)) // next desktop
|
||||||
#define VOL_DOWN &hmr LCTRL C_VOL_DN
|
#define VOL_DOWN &hmr LCTRL C_VOL_DN
|
||||||
|
@ -104,16 +104,16 @@ ZMK_BEHAVIOR(hmr, hold_tap, // right-hand HRMs
|
||||||
|
|
||||||
/* Custom behaviors */
|
/* Custom behaviors */
|
||||||
|
|
||||||
// tap: num-word | double-tap: sticky fun-layer | hold: num-layer
|
// tap: num-word | double-tap: sticky num-layer | hold: num-layer
|
||||||
ZMK_BEHAVIOR(num_fun_dance, tap_dance,
|
ZMK_BEHAVIOR(num_dance, tap_dance,
|
||||||
tapping-term-ms = <200>;
|
tapping-term-ms = <200>;
|
||||||
bindings = <&num_word>, <&sl FN>;
|
bindings = <&num_word>, <&sl NUM>; // might want to reverse if rarely using more than 1 digit
|
||||||
)
|
)
|
||||||
ZMK_BEHAVIOR(num_layer_word, hold_tap,
|
ZMK_BEHAVIOR(num_layer_word, hold_tap,
|
||||||
flavor = "balanced";
|
flavor = "balanced";
|
||||||
tapping-term-ms = <200>;
|
tapping-term-ms = <200>;
|
||||||
quick-tap-ms = <QUICK_TAP_MS>;
|
quick-tap-ms = <QUICK_TAP_MS>;
|
||||||
bindings = <&mo>, <&num_fun_dance>;
|
bindings = <&mo>, <&num_dance>;
|
||||||
)
|
)
|
||||||
#define NUM_WORD &num_layer_word NUM 0
|
#define NUM_WORD &num_layer_word NUM 0
|
||||||
|
|
||||||
|
@ -124,12 +124,7 @@ ZMK_BEHAVIOR(smart_mouse, tri_state,
|
||||||
ignored-layers = <MOUSE>;
|
ignored-layers = <MOUSE>;
|
||||||
)
|
)
|
||||||
|
|
||||||
// tap: sticky shift | double tap: capsword | triple tap: cancel capsword
|
// tap: sticky-shift | shift + tap/ double-tap: caps-word | hold: shift
|
||||||
// ZMK_BEHAVIOR(ss_cw, tap_dance,
|
|
||||||
// tapping-term-ms = <200>;
|
|
||||||
// bindings = <&sk LSHFT>, <&caps_word>, <CANCEL>;
|
|
||||||
// )
|
|
||||||
// tap: sticky-shift | lshft + tap: caps-word | hold: shift
|
|
||||||
ZMK_BEHAVIOR(ss_cw, mod_morph,
|
ZMK_BEHAVIOR(ss_cw, mod_morph,
|
||||||
bindings = <&sk LSHFT>, <&caps_word>;
|
bindings = <&sk LSHFT>, <&caps_word>;
|
||||||
mods = <(MOD_LSFT)>;
|
mods = <(MOD_LSFT)>;
|
||||||
|
@ -218,7 +213,7 @@ ZMK_BEHAVIOR(qexcl, mod_morph,
|
||||||
mods = <(MOD_LSFT|MOD_RSFT)>;
|
mods = <(MOD_LSFT|MOD_RSFT)>;
|
||||||
)
|
)
|
||||||
|
|
||||||
// Swapper, requires PR #1366
|
// Alt+Tab swapper, requires PR #1366
|
||||||
ZMK_BEHAVIOR(swap, tri_state,
|
ZMK_BEHAVIOR(swap, tri_state,
|
||||||
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
|
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
|
||||||
ignored-key-positions = <LT2>;
|
ignored-key-positions = <LT2>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue