Sofle Shield: Added adjust layer to default keymap
This commit is contained in:
parent
5d5a39b39d
commit
297ff8bc2f
1 changed files with 36 additions and 1 deletions
|
@ -7,8 +7,25 @@
|
|||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
#include <dt-bindings/zmk/rgb.h>
|
||||
#include <dt-bindings/zmk/ext_power.h>
|
||||
|
||||
#define BASE 0
|
||||
#define LOWER 1
|
||||
#define RAISE 2
|
||||
#define ADJUST 3
|
||||
|
||||
/ {
|
||||
|
||||
// Activate ADJUST layer by pressing raise and lower
|
||||
conditional_layers {
|
||||
compatible = "zmk,conditional-layers";
|
||||
adjust_layer {
|
||||
if-layers = <LOWER RAISE>;
|
||||
then-layer = <ADJUST>;
|
||||
};
|
||||
};
|
||||
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
|
@ -24,7 +41,7 @@
|
|||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
||||
&kp TAB &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 C_MUTE &none &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||
&kp LGUI &kp LALT &kp LCTRL &mo 1 &kp RET &kp SPACE &mo 2 &kp RCTRL &kp RALT &kp RGUI
|
||||
&kp LGUI &kp LALT &kp LCTRL &mo LOWER &kp RET &kp SPACE &mo RAISE &kp RCTRL &kp RALT &kp RGUI
|
||||
>;
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
|
@ -66,5 +83,23 @@
|
|||
|
||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------------
|
||||
// |BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||
// |EXTPWR|RGB_HUD|RGB_HUI|RGB_SAD|RGB_SAI|RGB_EFF| | | | | | | |
|
||||
// | |RGB_BRD|RGB_BRI| | | | | | | | | | |
|
||||
// | | | | | | |RGB_TOG| | | | | | | | |
|
||||
// | | | | | | | | | | | |
|
||||
|
||||
Adjust_layer {
|
||||
bindings = <
|
||||
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
|
||||
&ext_power EXT_POWER_TOGGLE_CMD &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
|
||||
&none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none &none &none &none &none &none
|
||||
&none &none &none &none &none &none &rgb_ug RGB_TOG &none &none &none &none &none &none &none
|
||||
&none &none &none &none &none &none &none &none &none &none
|
||||
>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue