Skip to content

Commit

Permalink
add mouse scroll combos
Browse files Browse the repository at this point in the history
  • Loading branch information
ctranstrum committed Feb 20, 2025
1 parent f29a02b commit f3536a4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ symbols under the left hand and navigation under the right.

Arrow keys can also be pressed without activating the navigation layer
by instead using vertical combos atop the location of each arrow key.
Similarly, mouse scroll can be found in the same locations on the left hand.

Hold both the left and right thumb keys to access special keyboard
functions like changing the bluetooth connection (press a BT key to
Expand Down
24 changes: 24 additions & 0 deletions boards/shields/chuck/one_up_chuck.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,30 @@
layers = <0 1>;
};

combo_scroll_up {
key-positions = <2 10>;
bindings = <&msc SCRL_UP>;
layers = <0>;
};

combo_scroll_down {
key-positions = <10 20>;
bindings = <&msc SCRL_DOWN>;
layers = <0>;
};

combo_scroll_left {
key-positions = <1 9>;
bindings = <&msc SCRL_LEFT>;
layers = <0>;
};

combo_scroll_right {
key-positions = <3 11>;
bindings = <&msc SCRL_RIGHT>;
layers = <0>;
};

// Combos are always executed on the central, so if we have a dongle
// without an easily accessible reset button, we can use a combo to
// put the central into bootloder mode
Expand Down
28 changes: 12 additions & 16 deletions keymap_drawer.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,25 +91,13 @@ parse_config:

zmk_combos:
combo_esc:
align: top
slide: -0.75
offset: 0.25
layers: [flash mode]
draw_separate: true
combo_tab:
align: top
slide: -0.25
offset: 0.5
layers: [flash mode]
draw_separate: true
combo_backspace:
align: top
slide: -0.75
offset: 0.25
layers: [flash mode]
draw_separate: true
combo_return:
align: top
slide: -0.25
offset: 0.5
layers: [flash mode]
draw_separate: true
combo_up:
layers: [flash mode]
combo_down:
Expand All @@ -118,3 +106,11 @@ parse_config:
layers: [flash mode]
combo_right:
layers: [flash mode]
combo_scroll_up:
layers: [flash mode]
combo_scroll_down:
layers: [flash mode]
combo_scroll_left:
layers: [flash mode]
combo_scroll_right:
layers: [flash mode]

0 comments on commit f3536a4

Please sign in to comment.