aboutsummaryrefslogtreecommitdiffstats
path: root/users/dshields/dshields.h
diff options
context:
space:
mode:
authorGravatar Daniel Shields <daniel.shields@bcs.org>2019-09-21 19:04:27 +0100
committerGravatar Drashna Jaelre <drashna@live.com>2019-09-21 11:04:27 -0700
commit63a0b1241d204873cd5156a959e913c602b0c386 (patch)
tree69ec7c084ed0ef26c50e23017ec32a3e483de679 /users/dshields/dshields.h
parent75c97477874b9354a90b8b4eca2d3b1ecfc15435 (diff)
downloadqmk_firmware-63a0b1241d204873cd5156a959e913c602b0c386.tar.gz
[Keymap] Move common code and configuration to userspace for dshields keymaps. (#6537)
Diffstat (limited to 'users/dshields/dshields.h')
-rw-r--r--users/dshields/dshields.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/users/dshields/dshields.h b/users/dshields/dshields.h
new file mode 100644
index 000000000..c746e74fb
--- /dev/null
+++ b/users/dshields/dshields.h
@@ -0,0 +1,31 @@
+#pragma once
+
+// dynamic macro keys
+#define DM_PLAY DYN_MACRO_PLAY1
+#define DM_STRT DYN_REC_START1
+#define DM_STOP DYN_REC_STOP
+
+// one-shot layer keys
+#define OSL_RSE OSL(RSE)
+#define OSL_LWR OSL(LWR)
+#define OSL_FUN OSL(FUN)
+
+// one-shot modifier keys
+#define OSMLCTL OSM(MOD_LCTL)
+#define OSMRCTL OSM(MOD_RCTL)
+#define OSMLALT OSM(MOD_LALT)
+#define OSMRALT OSM(MOD_RALT)
+#define OSMLSFT OSM(MOD_LSFT)
+#define OSMRSFT OSM(MOD_RSFT)
+
+// mod-tap keys
+#define MT_SPC SFT_T(KC_SPC)
+
+#ifdef KEYBOARD_planck_light
+ #define LGT_TOG RGB_TOG
+ #define LGT_MOD RGB_MOD
+#else
+ #define LGT_TOG BL_TOGG
+ #define LGT_MOD BL_STEP
+#endif
+