Skip to content

Commit

Permalink
Adding keyboard control layer to Ferris keymap.
Browse files Browse the repository at this point in the history
  • Loading branch information
amacleod committed Nov 2, 2024
1 parent e47156b commit 50abebf
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#define FACTORY 0
#define OVERLAY 1
#define QWERTY 2
#define KEEBCTL 3

#include "glam-bt-kbdctl.dtsi"

/ {
keymap {
Expand Down Expand Up @@ -64,6 +67,21 @@ keymap {
>;
display-name = "QWERTY";
};

keyboard_control_layer {
bindings = <
// ,-----------------------------. ,-----------------------------.
// | | | | | | | | | | | |
// | | | | | | | | | | | |
// | BT1 | BT2 | BT3 | BT4 | BT5 | |ClCur| Clr--[ + ]--All | |
// `-----------------| | | | |Base |-----------------'
&none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
&btp 0 &btp 1 &btp 2 &btp 3 &btp 4 &btcc &none &none &none &none
&none &none &none &tog KEEBCTL
>;
display-name = "KBDCTL";
};
}; // end keymap

combos {
Expand All @@ -73,6 +91,20 @@ combos {

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

// All four thumb keys for keyboard control layer.
combo_thumbs_keyboard_control {
timeout-ms = <50>;
key-positions = <LH1 LH0 RH0 RH1>;
bindings = <&tog KEEBCTL>;
};
// Right hand index and ring fingers for BT_CLR_ALL but only on KEEBCTL layer.
combo_bt_clear_all {
timeout-ms = <50>;
key-positions = <RB1 RB3>;
bindings = <&btclall>;
layers = <KEEBCTL>;
};

}; // end combos

behaviors {
Expand Down

0 comments on commit 50abebf

Please sign in to comment.