Skip to content

Commit

Permalink
bluetooth stuff and powertoggle
Browse files Browse the repository at this point in the history
  • Loading branch information
schattenbrot committed Oct 22, 2023
1 parent 2322524 commit 60b44dd
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions config/splitkb_aurora_sweep.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>

#include "../zmk-nodefree-config/helper.h"

#define PWR_TOGGLE &ext_power EP_TOG

#define DEFAULT 0
#define NUM 1
#define SYM 2
Expand Down Expand Up @@ -66,6 +69,45 @@ ZMK_BEHAVIOR(hrm, hold_tap,
key-positions = <7 8>;
bindings = <&kp RPAR>;
};

combo_lessthan {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <26 28>;
bindings = <&kp LESS_THAN>;
};
combo_greaterthan {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <27 228>;
bindings = <&kp GREATER_THAN>;
};

combo_leftbracket {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <1 2>;
bindings = <&kp LEFT_BRACKET>;
};
combo_rightbracket {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <2 3>;
bindings = <&kp RIGHT_BRACKET>;
};

combo_leftbrace {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <21 22>;
bindings = <&kp LEFT_BRACE>;
};
combo_rightbrace {
layers = <DEFAULT>;
timeout-ms = <50>;
key-positions = <22 23>;
bindings = <&kp RIGHT_BRACE>;
};
};

keymap {
Expand Down Expand Up @@ -109,9 +151,9 @@ ZMK_BEHAVIOR(hrm, hold_tap,

nagivation_layer {
bindings = <
&none &none &none &none &none &none &none &none &none &none
&PWR_TOGGLE &none &none &none &none &kp PG_UP &kp HOME &kp PG_DOWN &kp END &none
&kp LALT &kp LCTL &kp LSFT &kp LGUI &kp RALT &kp LEFT &kp DOWN &kp UP &kp RIGHT &none
&none &none &none &none &none &none &none &none &none &none
&bt BT_CLR &bt BT_SEL1 &bt BT_SEL2 &bt BT_SEL3 &none &none &none &none &none &none
&trans &none &kp K_CMENU &kp DEL
>;
};
Expand Down

0 comments on commit 60b44dd

Please sign in to comment.