Skip to content

Commit

Permalink
try different scroll settings for keypress vs rotary encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ctranstrum committed Feb 26, 2025
1 parent bc2b5e7 commit b547a9c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ but you can get most of its functionality,
accessed by holding the inner column home row key
(G on the left hand, M on the right).

Left thumb key is a sticky shift. Press and release it once to
capitalize the next letter typed. Press and release twice to enter
a smart word capitalization mode that automatically exits when you
finish typing a word.
Left thumb key is a sticky shift.
Tap it once to capitalize the next letter typed.
Tap twice to enter a smart word capitalization mode
that automatically exits when you finish typing a word.

Hold the left thumb key to get a numpad under your right hand,
as well as to access common editing commands under your left hand.
Expand Down
14 changes: 12 additions & 2 deletions boards/shields/chuck/one_up_chuck.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,20 @@
bindings = <&kp>, <&kp>;
};

rotary_scroll: rotary_mouse_wheel {
compatible = "zmk,behavior-input-two-axis";
#binding-cells = <1>;
x-input-code = <INPUT_REL_HWHEEL>;
y-input-code = <INPUT_REL_WHEEL>;
delay-ms = <0>;
time-to-max-speed-ms = <0>;
acceleration-exponent = <0>;
};

scroll_rotation: sensor_rotation_scroll {
compatible = "zmk,behavior-sensor-rotate-var";
#sensor-binding-cells = <2>;
bindings = <&msc>, <&msc>;
bindings = <&rotary_scroll>, <&rotary_scroll>;
tap-ms = <50>;
};

Expand Down Expand Up @@ -326,7 +336,7 @@
// ┗━━━━━━━┛ ┗━━━━━━━┛
>;

sensor-bindings = <&scroll_rotation MOVE_DOWN MOVE_UP>;
sensor-bindings = <&scroll_rotation SCROLL_DOWN SCROLL_UP>;
};

numpad {
Expand Down
16 changes: 12 additions & 4 deletions keymap_drawer.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ parse_config:
UP:

zmk_combos:
combo_b:
dendron: true
combo_j:
dendron: true
combo_less_than:
dendron: true
combo_greater_than:
dendron: true
combo_esc:
draw_separate: true
combo_tab:
Expand All @@ -103,13 +111,13 @@ parse_config:
combo_return:
draw_separate: true
combo_up:
layers: [flash mode]
layers: [flash mode, sym / nav]
combo_down:
layers: [flash mode]
layers: [flash mode, sym / nav]
combo_left:
layers: [flash mode]
layers: [flash mode, sym / nav]
combo_right:
layers: [flash mode]
layers: [flash mode, sym / nav]
combo_scroll_up:
layers: [flash mode]
combo_scroll_down:
Expand Down

0 comments on commit b547a9c

Please sign in to comment.