summaryrefslogtreecommitdiff
path: root/users/rs/rs.h
diff options
context:
space:
mode:
authorOlivier Poitrey <rs@rhapsodyk.net>2019-05-07 10:43:08 -0700
committerDrashna Jaelre <drashna@live.com>2019-05-07 10:43:08 -0700
commit2d5c16dfd4ef193c4f692722157aa2b526a4c877 (patch)
tree527c5e5f51cf75c4476616a3c6ed91e385f1e1b2 /users/rs/rs.h
parent3b132599427a648b1f14aaf30312f05f855625ea (diff)
downloadqmk_firmware-2d5c16dfd4ef193c4f692722157aa2b526a4c877.tar.gz
qmk_firmware-2d5c16dfd4ef193c4f692722157aa2b526a4c877.zip
[Keymap] crkbd/keymaps/rs: add rs keymap to corne keyboard and adapt others (#5181)
Update all my keymaps to work with 40 keys. Refactor code using Userspace.
Diffstat (limited to 'users/rs/rs.h')
-rw-r--r--users/rs/rs.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/users/rs/rs.h b/users/rs/rs.h
new file mode 100644
index 0000000000..722d6ed19e
--- /dev/null
+++ b/users/rs/rs.h
@@ -0,0 +1,50 @@
+#pragma once
+#include "quantum.h"
+
+enum layers {
+ _QWERTY,
+ _CODE,
+ _FN,
+};
+
+enum custom_keycodes {
+ CODE = SAFE_RANGE,
+ FN,
+ LPLT,
+ RPGT,
+ NEQL,
+#ifdef RGBLIGHT_ENABLE
+ RGBRST,
+#endif
+};
+
+#define KC_ KC_TRNS
+
+#define KC_ESCC MT(MOD_LCTL, KC_ESC)
+#define KC_ENTS MT(MOD_LSFT, KC_ENT)
+#define KC_LTGT LTGT // > or < with shift
+#define KC_LPLT LPLT // ( or < with shift
+#define KC_RPGT RPGT // ) or > with shift
+#define KC_NEQL NEQL // !=
+#define KC_CODE MO(_CODE)
+#define KC_BCOD LT(_CODE, KC_BSPC)
+#define KC_FN MO(_FN)
+#define KC_RST RESET
+#define KC_CTRA LCTL(KC_A)
+#define KC_CTRE LCTL(KC_E)
+#define KC_BLTG BL_TOGG
+#define KC_BLUP BL_INC
+#define KC_BLDN BL_DEC
+#define KC_BLBR BL_BRTG
+
+#ifdef RGBLIGHT_ENABLE
+#define KC_LRST RGBRST
+#define KC_LTOG RGB_TOG
+#define KC_LHUI RGB_HUI
+#define KC_LHUD RGB_HUD
+#define KC_LSAI RGB_SAI
+#define KC_LSAD RGB_SAD
+#define KC_LVAI RGB_VAI
+#define KC_LVAD RGB_VAD
+#define KC_LMOD RGB_MOD
+#endif \ No newline at end of file