Skip to content

Commit 50abebf

Browse files
committed
Adding keyboard control layer to Ferris keymap.
1 parent e47156b commit 50abebf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

config/cradio.keymap

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#define FACTORY 0
1616
#define OVERLAY 1
1717
#define QWERTY 2
18+
#define KEEBCTL 3
19+
20+
#include "glam-bt-kbdctl.dtsi"
1821

1922
/ {
2023
keymap {
@@ -64,6 +67,21 @@ keymap {
6467
>;
6568
display-name = "QWERTY";
6669
};
70+
71+
keyboard_control_layer {
72+
bindings = <
73+
// ,-----------------------------. ,-----------------------------.
74+
// | | | | | | | | | | | |
75+
// | | | | | | | | | | | |
76+
// | BT1 | BT2 | BT3 | BT4 | BT5 | |ClCur| Clr--[ + ]--All | |
77+
// `-----------------| | | | |Base |-----------------'
78+
&none &none &none &none &none &none &none &none &none &none
79+
&none &none &none &none &none &none &none &none &none &none
80+
&btp 0 &btp 1 &btp 2 &btp 3 &btp 4 &btcc &none &none &none &none
81+
&none &none &none &tog KEEBCTL
82+
>;
83+
display-name = "KBDCTL";
84+
};
6785
}; // end keymap
6886

6987
combos {
@@ -73,6 +91,20 @@ combos {
7391

7492
#include "glam-sym-nav-num-combos.dtsi"
7593

94+
// All four thumb keys for keyboard control layer.
95+
combo_thumbs_keyboard_control {
96+
timeout-ms = <50>;
97+
key-positions = <LH1 LH0 RH0 RH1>;
98+
bindings = <&tog KEEBCTL>;
99+
};
100+
// Right hand index and ring fingers for BT_CLR_ALL but only on KEEBCTL layer.
101+
combo_bt_clear_all {
102+
timeout-ms = <50>;
103+
key-positions = <RB1 RB3>;
104+
bindings = <&btclall>;
105+
layers = <KEEBCTL>;
106+
};
107+
76108
}; // end combos
77109

78110
behaviors {

0 commit comments

Comments
 (0)