diff --git a/config/hummingbird.conf b/config/hummingbird.conf index c17101d0..a5d34ac7 100644 --- a/config/hummingbird.conf +++ b/config/hummingbird.conf @@ -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 diff --git a/config/hummingbird.keymap b/config/hummingbird.keymap index 66b042e7..84cd2baa 100644 --- a/config/hummingbird.keymap +++ b/config/hummingbird.keymap @@ -1,3 +1,55 @@ #define MOUSE_KEYS #include "keypos_def/keypos_30keys.h" #include "includes/3x5.dtsi" + +#include + +/ { + 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> + ; + }; +}; diff --git a/config/includes/combos.dtsi b/config/includes/combos.dtsi index 6c5d1332..6d60fa65 100644 --- a/config/includes/combos.dtsi +++ b/config/includes/combos.dtsi @@ -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) diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 59a0ef24..a6e984aa 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -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': ¿