Skip to content

Commit

Permalink
rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
EricNeiman committed Apr 30, 2024
1 parent 2188bff commit fe16f15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
8 changes: 7 additions & 1 deletion config/sofle.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

# Uncomment the following line to enable the Sofle OLED Display
CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
CONFIG_ZMK_WIDGET_WPM_STATUS=y
CONFIG_ZMK_WIDGET_LAYER_STATUS=y
CONFIG_ZMK_WIDGET_OUTPUT_STATUS=y
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y

# Uncomment these two lines to add support for encoders
CONFIG_EC11=y
Expand All @@ -14,4 +20,4 @@ CONFIG_ZMK_RGB_UNDERGLOW=y
# Uncomment the line below to disable external power toggling by the underglow.
# By default toggling the underglow on and off also toggles external power
# on and off. This also causes the display to turn off.
# CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
20 changes: 3 additions & 17 deletions config/sofle.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,17 @@

keymap {
compatible = "zmk,keymap";

default_layer {
display-name = "default";
// ------------------------------------------------------------------------------------------------------------
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | BKSPC |
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | MUTE | | | N | M | , | . | / | SHIFT |
// | GUI | ALT | CTRL | LOWER| ENTER | | SPACE | RAISE| CTRL | ALT | GUI |
bindings = <
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp F5 &kp C_PP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&kp LGUI &kp LALT &kp ESC &mo 1 &kp SPACE &kp RET &mo 2 &kp F5 &kp LBKT &kp RBKT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp C_PP &kp F5 &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&kp LGUI &kp LALT &kp ESC &mo 1 &kp SPACE &kp RET &mo 2 &kp F5 &kp LBKT &kp RBKT
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};

lower_layer {
display-name = "lower";
bindings = <
Expand All @@ -111,10 +102,8 @@
&kp CAPS &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &ctrl_shift_esc &trans &trans &trans &trans &ctrl_shift_r &kp MINUS &kp EQUAL
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};

raise_layer {
display-name = "raise";
bindings = <
Expand All @@ -124,10 +113,8 @@
&trans &kp N0 &trans &kp RET &trans &trans &trans &trans &ctrl_alt_home &ctrl_win_left &ctrl_win_right &kp LEFT &kp DOWN &kp RIGHT
&trans &trans &trans &trans &trans &trans &trans &ctrl_shift_r &kp MINUS &kp EQUAL
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};

adjust_layer {
display-name = "adjust";
bindings = <
Expand All @@ -138,6 +125,5 @@
&none &none &none &bootloader &bootloader &none &none &none
>;
};

};
};
};

0 comments on commit fe16f15

Please sign in to comment.