Skip to content

Commit

Permalink
Add Studio support to Rufous
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Jul 14, 2024
1 parent dca2c9c commit c6e9535
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/hummingbird.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
CONFIG_RGBLED_WIDGET_INTERVAL_MS=250
CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_HIGH=50
CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_CRITICAL=10

# Studio
CONFIG_ZMK_STUDIO=y
52 changes: 52 additions & 0 deletions config/hummingbird.keymap
Original file line number Diff line number Diff line change
@@ -1,3 +1,55 @@
#define MOUSE_KEYS
#include "keypos_def/keypos_30keys.h"
#include "includes/3x5.dtsi"

#include <physical_layouts.dtsi>

/ {
chosen {
zmk,physical-layout = &default_layout;
/delete-property/ zmk,kscan;
/delete-property/ zmk,matrix-transform;
};

default_layout: default_layout {
compatible = "zmk,physical-layout";
display-name = "Default Layout";
transform = <&default_transform>;
kscan = <&kscan0>;

/* generated using https://gist.github.com/caksoylar/1f6809446ab2415d4116882ed1c60db2
* with `python dt_layout_viz/physical_layout_to_dt.py -k hummingbird` */
keys // w h x y rot rx ry
= <&key_physical_attrs 105 100 0 77 0 0 0>
, <&key_physical_attrs 105 100 108 25 0 0 0>
, <&key_physical_attrs 105 100 217 0 0 0 0>
, <&key_physical_attrs 105 100 326 25 0 0 0>
, <&key_physical_attrs 105 100 435 77 0 0 0>
, <&key_physical_attrs 105 100 731 77 0 0 0>
, <&key_physical_attrs 105 100 840 25 0 0 0>
, <&key_physical_attrs 105 100 949 0 0 0 0>
, <&key_physical_attrs 105 100 1058 25 0 0 0>
, <&key_physical_attrs 105 100 1166 77 0 0 0>
, <&key_physical_attrs 105 100 0 180 0 0 0>
, <&key_physical_attrs 105 100 108 128 0 0 0>
, <&key_physical_attrs 105 100 217 102 0 0 0>
, <&key_physical_attrs 105 100 326 128 0 0 0>
, <&key_physical_attrs 105 100 435 180 0 0 0>
, <&key_physical_attrs 105 100 731 180 0 0 0>
, <&key_physical_attrs 105 100 840 128 0 0 0>
, <&key_physical_attrs 105 100 949 102 0 0 0>
, <&key_physical_attrs 105 100 1058 128 0 0 0>
, <&key_physical_attrs 105 100 1166 180 0 0 0>
, <&key_physical_attrs 105 100 108 231 0 0 0>
, <&key_physical_attrs 105 100 217 205 0 0 0>
, <&key_physical_attrs 105 100 326 231 0 0 0>
, <&key_physical_attrs 105 100 840 231 0 0 0>
, <&key_physical_attrs 105 100 949 205 0 0 0>
, <&key_physical_attrs 105 100 1058 231 0 0 0>
, <&key_physical_attrs 105 100 353 361 0 0 0>
, <&key_physical_attrs 105 100 462 386 0 0 0>
, <&key_physical_attrs 105 100 704 386 0 0 0>
, <&key_physical_attrs 105 100 813 361 0 0 0>
;
};
};
1 change: 1 addition & 0 deletions config/includes/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ COMBO(lock, &kp LG(L), LT1 LT0, DEF BRD, 80, 500)
COMBO(play, &kp C_PP, LT0 LM0, NAV, 200, 200)

COMBO(boot, &bootloader, LT0 RT0, FUN, 100, 500)
COMBO(unlock, &studio_unlock, LM0 RM0, FUN, 100, 500)

COMBO(z, &kp Z, LB3 LB2, DEF BRD, 80, 50)
COMBO(v, &kp V, LB2 LB1, DEF, 40, 50)
Expand Down
1 change: 1 addition & 0 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parse_config:
raw_binding_map:
'&sys_reset': Reset
'&bootloader': Boot
'&studio_unlock': Studio Unlock
'&swapper': Win Next
'&caps_word': Caps Word
'&inv_qm': ¿
Expand Down

0 comments on commit c6e9535

Please sign in to comment.