summaryrefslogtreecommitdiff
path: root/app/boards/shields/qaz/qaz.keymap
diff options
context:
space:
mode:
authortominabox1 <tjcampie@zmk.local>2020-08-27 19:09:40 -0500
committertominabox1 <tjcampie@zmk.local>2020-08-27 19:09:40 -0500
commitac3e4af1ce7fb40495c50eb2184b43ecbe1f11a9 (patch)
treefc63d450595e1d8261a72869a396ca1286573225 /app/boards/shields/qaz/qaz.keymap
parent83ddc8a6381673eeb91793981786b2dcf92d24dc (diff)
Add QAZ shield
Diffstat (limited to 'app/boards/shields/qaz/qaz.keymap')
-rw-r--r--app/boards/shields/qaz/qaz.keymap75
1 files changed, 75 insertions, 0 deletions
diff --git a/app/boards/shields/qaz/qaz.keymap b/app/boards/shields/qaz/qaz.keymap
new file mode 100644
index 0000000..fa4ede1
--- /dev/null
+++ b/app/boards/shields/qaz/qaz.keymap
@@ -0,0 +1,75 @@
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/keys.h>
+#include <dt-bindings/zmk/rgb.h>
+
+#define DEFAULT 0
+#define NUM_SYM 1
+#define NAV 2
+
+/ {
+ behaviors {
+ rst: behavior_tap_hold1 {
+ compatible = "zmk,behavior-tap-hold";
+ label = "Bootloader Tap - Reset Hold";
+ #binding-cells = <0>;
+ hold_ms = <200>;
+ bindings = <&bootloader>, <&reset>, <&kp BKSP>;
+ };
+
+ num_spc: behavior_tap_hold2 {
+ compatible = "zmk,behavior-tap-hold";
+ label = "Space Tap - Num/Sym Hold";
+ #binding-cells = <0>;
+ hold_ms = <300>;
+ bindings = <&kp SPC>, <&mo NUM_SYM>;
+ };
+
+ ent_nav: behavior_tap_hold{
+ compatible = "zmk,behavior-tap-hold";
+ label = "Return Tap - Nav Hold";
+ #binding-cells = <0>;
+ hold_ms = <100>;
+ bindings = <&kp RET>, <&mo NAV>;
+ };
+
+ com_col: behavior_tap_hold10 {
+ compatible = "zmk,behavior-tap-hold";
+ label = ", tap, hold";
+ #binding-cells = <0>;
+ hold_ms = <200>;
+ bindings = <&kp CMMA>, <&kp SCLN>, <&kp BKSP>;
+ };
+ };
+ };
+
+/ {
+ keymap {
+ compatible = "zmk,keymap";
+
+ default_layer {
+ bindings = <
+ &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp QUOT
+ &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O
+ &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &com_col &kp DOT
+ &kp LSFT &kp LGUI &kp TAB &ent_nav &num_spc &kp LCTL &kp LALT &kp FSLH
+ >;
+ };
+ num_sym {
+ bindings = <
+ &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0
+ &trans &trans &trans &trans &trans &trans &trans &trans &kp EQL &kp MINUS
+ &kp DEL &none &none &none &none &none &none &none &kp DOT
+ &rst &none &none &trans &trans &kp RET &trans &kp FSLH
+ >;
+ };
+
+ nav {
+ bindings = <
+ &none &none &none &none &none &none &none &kp UARW &none &kp BKSP
+ &trans &trans &trans &trans &none &none &kp LARW &kp DARW &kp RARW &none
+ &none &none &none &none &none &none &none &none &none
+ &rgb_ug RGB_TOG &rgb_ug RGB_EFF &none &trans &trans &kp RET &trans &kp FSLH
+ >;
+ };
+ };
+}; \ No newline at end of file