Scroll mode
This commit is contained in:
parent
181d09d51c
commit
937ca41629
5 changed files with 30 additions and 10 deletions
|
@ -20,6 +20,7 @@
|
|||
#define NUM 3
|
||||
#define FN 4
|
||||
#define UC 5
|
||||
#define MWH 6
|
||||
|
||||
#include "combos.dtsi" // must be sourced after layer-shortcuts
|
||||
#include "mouse.dtsi"
|
||||
|
@ -118,6 +119,13 @@ ZMK_BEHAVIOR(num_layer_word, hold_tap,
|
|||
)
|
||||
#define NUM_WORD &num_layer_word NUM 0
|
||||
|
||||
// scroll-mode, requires PR #1366
|
||||
ZMK_BEHAVIOR(scroll_mode, tri_state,
|
||||
bindings = <&tog MWH>, <&none>, <&tog MWH>;
|
||||
ignored-key-positions = <RT2 RM2>;
|
||||
ignored-layers = <MWH>;
|
||||
)
|
||||
|
||||
// tap: sticky shift | double tap: capsword | triple tap: cancel capsword
|
||||
// ZMK_BEHAVIOR(ss_cw, tap_dance,
|
||||
// tapping-term-ms = <200>;
|
||||
|
@ -280,4 +288,16 @@ ZMK_LAYER(uc_layer,
|
|||
// ╰─────────────╯ ╰─────────────┴─────────────╯ ╰─────────────╯ ╰───────────────────────────╯ ╰─────────────╯
|
||||
)
|
||||
|
||||
ZMK_LAYER(mwh_layer,
|
||||
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
|
||||
___ ___ ___ ___ ___ XTR_MT ___ ___ &mwh SCROLL_UP ___ ___
|
||||
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
|
||||
___ ___ ___ ___ ___ XTR_MM ___ ___ &mwh SCROLL_DOWN ___ ___
|
||||
// ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
|
||||
___ ___ ___ ___ ___ XTR_MB ___ ___ ___ ___ ___
|
||||
// ├─────────────┼─────────────┴─────────────┼─────────────┼─────────────┤ ├─────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┼─────────────┤
|
||||
XTR_LH ___ ___ XTR_MH ___ ___ XTR_RH
|
||||
// ╰─────────────╯ ╰─────────────┴─────────────╯ ╰─────────────╯ ╰─────────────┴─────────────╯ ╰─────────────╯
|
||||
)
|
||||
|
||||
/* vim: set tw=180: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue