Skip to content

Commit

Permalink
support zmk studio
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-bro committed Dec 8, 2024
1 parent 658a539 commit bb12b2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
include:
- board: nice_nano_v2
shield: cradio_left
snippet: studio-rpc-usb-uart
#snippet: zmk-usb-logging
- board: nice_nano_v2
shield: cradio_right
- board: nice_nano_v2
Expand Down
14 changes: 6 additions & 8 deletions config/cradio.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Turn on logging, and set ZMK logging to debug output
CONFIG_ZMK_USB_LOGGING=n

# Bluetooth
CONFIG_BT_MAX_CONN=5
CONFIG_BT_MAX_PAIRED=5
Expand All @@ -17,13 +14,14 @@ CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
# MOUSE
CONFIG_ZMK_MOUSE=y

# WPM: inacurate, disabled by default
CONFIG_ZMK_WPM=n

# REPORT
CONFIG_ZMK_BEHAVIORS_QUEUE_SIZE=512
CONFIG_ZMK_SEND_STRING_DEFAULT_WAIT_MS=10
CONFIG_ZMK_SEND_STRING_DEFAULT_TAP_MS=10
# CONFIG_ZMK_SEND_STRING_DEFAULT_WAIT_MS=10
# CONFIG_ZMK_SEND_STRING_DEFAULT_TAP_MS=10

# zmk studio
CONFIG_ZMK_STUDIO=y
CONFIG_ZMK_STUDIO_LOCK_IDLE_TIMEOUT_SEC=300

# System
# length <= 16
Expand Down
12 changes: 1 addition & 11 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
#define TRI 4
#define MOUSE 5

#define U_MS_U &mmv MOVE_UP
#define U_MS_D &mmv MOVE_DOWN
#define U_MS_L &mmv MOVE_LEFT
#define U_MS_R &mmv MOVE_RIGHT
#define U_WH_U &msc SCRL_UP
#define U_WH_D &msc SCRL_DOWN
#define U_WH_L &msc SCRL_LEFT
#define U_WH_R &msc SCRL_RIGHT

/ {
chosen {
zmk,charmap = &charmap_us;
Expand Down Expand Up @@ -104,12 +95,11 @@
tri_layer {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &bt BT_SEL 0 &bt BT_SEL 2 &out OUT_TOG &tog WIN &kp C_MUTE &kp C_PREV
&kp F5 &kp F6 &kp F7 &kp F8 &bt BT_SEL 1 &bt BT_SEL 3 &kp C_BRI_UP &trans &kp C_VOL_UP &kp C_PP
&kp F5 &kp F6 &kp F7 &kp F8 &bt BT_SEL 1 &bt BT_SEL 3 &kp C_BRI_UP &studio_unlock &kp C_VOL_UP &kp C_PP
&kp F9 &kp F10 &kp F11 &kp F12 &bt BT_CLR &bt BT_SEL 4 &kp C_BRI_DEC &trans &kp C_VOL_DN &kp C_NEXT
&trans &trans &trans &trans
>;
};

mouse {
bindings = <
&tog MOUSE &mkp MB4 &mkp MCLK &mkp MB5 &trans &msc SCRL_LEFT &msc SCRL_DOWN &msc SCRL_UP &msc SCRL_RIGHT &tog MOUSE
Expand Down

0 comments on commit bb12b2d

Please sign in to comment.