Skip to content

Commit

Permalink
enable deep sleep and keymap adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
numToStr committed Mar 22, 2024
1 parent 2aba321 commit acd9390
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
3 changes: 3 additions & 0 deletions config/boards/shields/hammer40/hammer40.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
# Increasing the transmit power of the keyboard's BLE radio
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# Enable deep sleep
CONFIG_ZMK_SLEEP=y

# Config for https://github.com/caksoylar/zmk-rgbled-widget
CONFIG_RGBLED_WIDGET_INTERVAL_MS=250
CONFIG_RGBLED_WIDGET_BATTERY_LEVEL_CRITICAL=10
37 changes: 13 additions & 24 deletions config/boards/shields/hammer40/hammer40.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@

/* Layers */
#define BASE 0
#define NUM 1
#define LOWER 1
#define NAV 2
#define BLE 3

/ {
combos {
Expand Down Expand Up @@ -60,20 +59,21 @@
display-name = "base";
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
bindings = <
&kp GRAVE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp APOS
&kp RBKT &kp Z &kp X &kp C &kp V &kp B &rot_td &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp MINUS
&kp BSLH &kp PSCRN &kp LCTRL &kp LGUI &kp LALT &lt NAV ENTER &lt BLE ESC &lt NUM SPACE &kp LSHFT &kp RCTRL &kp BSPC &kp DEL &kp EQUAL
&kp GRAVE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp APOS
&kp RBKT &kp Z &kp X &kp C &kp V &kp B &rot_td &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp MINUS
&kp BSLH &kp PSCRN &kp LCTRL &kp LGUI &kp LALT &lt NAV ENTER &lt BLE ESC &lt LOWER SPACE &kp LSHFT &kp RCTRL &kp BSPC &kp DEL &kp EQUAL
>;
};

num_layer {
display-name = "num";

lower_layer {
display-name = "lowr";
sensor-bindings = <&ble_encoder>;
bindings = <
&trans &trans &kp N7 &kp N8 &kp N9 &trans &trans &kp N7 &kp N8 &kp N9 &trans &trans
&trans &trans &kp N4 &kp N5 &kp N6 &kp N0 &kp N0 &kp N4 &kp N5 &kp N6 &trans &trans
&trans &trans &kp N1 &kp N2 &kp N3 &trans &trans &trans &kp N1 &kp N2 &kp N3 &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &bt BT_CLR_ALL &bt BT_DISC 4 &bt BT_DISC 4 &bt BT_DISC 2 &bt BT_DISC 1 &bt BT_DISC 0
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};

Expand All @@ -86,16 +86,5 @@
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};

bt_layer {
display-name = "ble";
sensor-bindings = <&ble_encoder>;
bindings = <
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &bt BT_DISC 4 &bt BT_DISC 4 &bt BT_DISC 2 &bt BT_DISC 1 &bt BT_DISC 0
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &bt BT_CLR_ALL
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &out OUT_USB &out OUT_BLE
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
};
};

0 comments on commit acd9390

Please sign in to comment.