From 60b44ddc527a2fbacb98691e49021e0734a895a2 Mon Sep 17 00:00:00 2001 From: Schattenbrot Date: Sun, 22 Oct 2023 20:29:50 +0200 Subject: [PATCH] bluetooth stuff and powertoggle --- config/splitkb_aurora_sweep.keymap | 46 ++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/config/splitkb_aurora_sweep.keymap b/config/splitkb_aurora_sweep.keymap index 9e604d8..64957ae 100644 --- a/config/splitkb_aurora_sweep.keymap +++ b/config/splitkb_aurora_sweep.keymap @@ -7,9 +7,12 @@ #include #include #include +#include #include "../zmk-nodefree-config/helper.h" +#define PWR_TOGGLE &ext_power EP_TOG + #define DEFAULT 0 #define NUM 1 #define SYM 2 @@ -66,6 +69,45 @@ ZMK_BEHAVIOR(hrm, hold_tap, key-positions = <7 8>; bindings = <&kp RPAR>; }; + + combo_lessthan { + layers = ; + timeout-ms = <50>; + key-positions = <26 28>; + bindings = <&kp LESS_THAN>; + }; + combo_greaterthan { + layers = ; + timeout-ms = <50>; + key-positions = <27 228>; + bindings = <&kp GREATER_THAN>; + }; + + combo_leftbracket { + layers = ; + timeout-ms = <50>; + key-positions = <1 2>; + bindings = <&kp LEFT_BRACKET>; + }; + combo_rightbracket { + layers = ; + timeout-ms = <50>; + key-positions = <2 3>; + bindings = <&kp RIGHT_BRACKET>; + }; + + combo_leftbrace { + layers = ; + timeout-ms = <50>; + key-positions = <21 22>; + bindings = <&kp LEFT_BRACE>; + }; + combo_rightbrace { + layers = ; + timeout-ms = <50>; + key-positions = <22 23>; + bindings = <&kp RIGHT_BRACE>; + }; }; keymap { @@ -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 >; };