Skip to content

Commit

Permalink
Getting a leaner keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Dec 10, 2024
1 parent 37e79aa commit ad7cd3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
include:
- board: nice_nano_v2
shield: cradio_left
snippet: studio-rpc-usb-uart
# snippet: studio-rpc-usb-uart
- board: nice_nano_v2
shield: cradio_right
- board: nice_nano_v2
Expand Down
2 changes: 1 addition & 1 deletion config/cradio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y

# ZMK Studio
CONFIG_ZMK_STUDIO=y
# CONFIG_ZMK_STUDIO=y
36 changes: 6 additions & 30 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define SYM 3
#define FUN 4

#define HYPER LG(LS(LC(LALT)))
#define HYPER LG(LS(LC(LALT))) // HYPER key for another shortcut layer

&sk {
quick-release; // Avoids "THis" problem (double capitalization)
Expand All @@ -21,13 +21,7 @@
&mt { flavor = "balanced"; };

&num_word {
continue-list = <
COLON KP_DOT COMMA
PLUS MINUS ASTRK SLASH EQUAL
AT DOLLAR
BSPC DEL
TAB KP_ENTER
>;
continue-list = <COLON KP_DOT COMMA PLUS MINUS ASTRK SLASH EQUAL AT DOLLAR BSPC DEL TAB KP_ENTER ESC LPAR RPAR LBKT RBKT LBRC RBRC LT GT>;
ignore-modifiers;
};

Expand Down Expand Up @@ -111,12 +105,6 @@
layers = <FUN>;
};

sys_zmk_studio_unlock {
key-positions = <26 27 28>;
bindings = <&studio_unlock>;
layers = <FUN>;
};

};

behaviors {
Expand Down Expand Up @@ -158,18 +146,6 @@
hold-while-undecided;
};

hpl: hold_preferred_layer_tap { // Same as before, but with a &lc option
compatible = "zmk,behavior-hold-tap";
label = "THUMB_LC";
bindings = <&lc>, <&kp>;

#binding-cells = <2>;
flavor = "hold-preferred";
tapping-term-ms = <100>;
quick-tap-ms = <175>;
hold-while-undecided;
};

swapper: swapper_for_apple_cmd_tab {
compatible = "zmk,behavior-tri-state"; // requires tri-state module (https://github.com/urob/zmk-tri-state)
#binding-cells = <0>;
Expand Down Expand Up @@ -252,10 +228,10 @@
NUM {
display-name = "NUM";
bindings = <
&kp COLON &kp N7 &kp N8 &kp N9 &kp BSPC &trans &trans &trans &trans &trans
&kp N0 &kp N4 &kp N5 &kp N6 &kp KP_ENTER &trans &trans &trans &trans &trans
&kp COMMA &kp N1 &kp N2 &kp N3 &kp KP_DOT &trans &trans &trans &trans &trans
&hp NAV N0 &sl SYM &trans &trans
&kp COLON &kp N7 &kp N8 &kp N9 &kp BSPC &none &none &none &none &none
&kp N0 &kp N4 &kp N5 &kp N6 &kp KP_ENTER &sk HYPER &sk RCMD &sk LSHFT &sk RALT &kp RCTRL
&kp COMMA &kp N1 &kp N2 &kp N3 &kp KP_DOT &none &none &none &none &none
&hp NAV N0 &sl SYM &trans &trans
>;
};

Expand Down

0 comments on commit ad7cd3b

Please sign in to comment.