diff --git a/README.md b/README.md index 140141c..ee04678 100644 --- a/README.md +++ b/README.md @@ -69,15 +69,24 @@ include: artifact-name: chuck-unibody ``` -Modify your `config/one-up-chuck.conf` file with these changes: +Modify your `config/one-up-chuck.conf` file with these suggested changes: ```conf +# Enable encoder CONFIG_EC11=y CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y + +# Enable mouse scrolling on the encoder +CONFIG_ZMK_POINTING=y +CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y + +# Enable ZMK Studio CONFIG_ZMK_STUDIO=y ``` +See the pre-compiled firmware [config file][config] for additional settings. + To customize the keymap for your One Up Chuck board, you can copy the [default keymap][keymap] from this repo to the `config` directory of your zmk config repo and edit it from there. @@ -88,4 +97,5 @@ Default Keymap: [keymap]: https://github.com/ctranstrum/chuck/tree/zmk/boards/shields/chuck/one_up_chuck.keymap [chuck]: https://github.com/ctranstrum/chuck +[config]: config/one-up-chuck.conf [zmk]: https://zmk.dev/docs/user-setup#github-repo diff --git a/boards/shields/chuck/one_up_chuck.keymap b/boards/shields/chuck/one_up_chuck.keymap index c154f21..234feba 100644 --- a/boards/shields/chuck/one_up_chuck.keymap +++ b/boards/shields/chuck/one_up_chuck.keymap @@ -64,13 +64,13 @@ combo_backspace { key-positions = <4 5 6>; bindings = <&kp BSPC>; - layers = <0>; + layers = <0 1>; }; combo_return { key-positions = <14 15 16>; bindings = <&kp RET>; - layers = <0>; + layers = <0 1>; }; combo_left_paren { @@ -193,9 +193,9 @@ }; scroll_rotation: sensor_rotation_scroll { - compatible = "zmk,behavior-sensor-rotate"; - #sensor-binding-cells = <0>; - bindings = <&msc SCRL_UP>, <&msc SCRL_DOWN>; + compatible = "zmk,behavior-sensor-rotate-var"; + #sensor-binding-cells = <2>; + bindings = <&msc>, <&msc>; }; sscw: sticky_shift_caps_word { @@ -265,7 +265,7 @@ // ┗━━━━━━━┛ ┗━━━━━━━┛ >; - sensor-bindings = <&scroll_rotation>; + sensor-bindings = <&scroll_rotation MOVE_UP MOVE_DOWN>; }; num { diff --git a/config/one_up_chuck.conf b/config/one_up_chuck.conf index 837ad89..c016258 100644 --- a/config/one_up_chuck.conf +++ b/config/one_up_chuck.conf @@ -11,7 +11,11 @@ CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_HIGH=33 CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_LOW=15 CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_CRITICAL=10 CONFIG_RGBLED_WIDGET_CONN_BLINK_MS=2000 + +# RGBled color bits: r=4 g=2 b=1 +# white LED for unpaired CONFIG_RGBLED_WIDGET_CONN_COLOR_ADVERTISING=7 +# magenta LED for disconnected CONFIG_RGBLED_WIDGET_CONN_COLOR_DISCONNECTED=5 # Set defaults for macros @@ -24,6 +28,7 @@ CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000 # Mouse CONFIG_ZMK_POINTING=y +CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y # Increase Bluetooth signal #CONFIG_BT_CTLR_TX_PWR_PLUS_8=y