aboutsummaryrefslogtreecommitdiffstats
path: root/users/klackygears/klackygears.c
diff options
context:
space:
mode:
authorJames Smith <37446827+Klackygears@users.noreply.github.com>2020-06-28 07:07:57 -0400
committerGitHub <noreply@github.com>2020-06-28 12:07:57 +0100
commitd36d5ecfad3ea32c11fbf4a251cea7e25caafc28 (patch)
tree9d2c22db777861430aff53ac8c3b9fc9a85a1c4b /users/klackygears/klackygears.c
parent7baeaae9bb92b9501d4bb73149bbed28ad25446b (diff)
downloadfirmware-d36d5ecfad3ea32c11fbf4a251cea7e25caafc28.tar.gz
firmware-d36d5ecfad3ea32c11fbf4a251cea7e25caafc28.tar.bz2
firmware-d36d5ecfad3ea32c11fbf4a251cea7e25caafc28.zip
Klackygears add user and handwired brain (#9154)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'users/klackygears/klackygears.c')
-rw-r--r--users/klackygears/klackygears.c75
1 files changed, 75 insertions, 0 deletions
diff --git a/users/klackygears/klackygears.c b/users/klackygears/klackygears.c
new file mode 100644
index 000000000..2e7533eb1
--- /dev/null
+++ b/users/klackygears/klackygears.c
@@ -0,0 +1,75 @@
+#include "klackygears.h"
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ /*
+ if (!process_record_dynamic_macro(keycode, record)) {
+ return false;
+ }
+ */
+ switch (keycode) {
+ case KC_MACBASE:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_MACBASE);
+ }
+ break;
+
+ case KC_QWERTY:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_QWERTY);
+ }
+ break;
+
+ case KC_WINBASE:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_WINBASE);
+ }
+ break;
+
+ case KC_GAMER:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_GAMER);
+ }
+ break;
+
+ case KC_GAMR1:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_GAMR1);
+ }
+ break;
+
+ case KC_GAMR2:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_GAMR2);
+ }
+ break;
+ case RGBRST:
+#ifdef RGBLIGHT_ENABLE
+ if (record->event.pressed) {
+ eeconfig_update_rgblight_default();
+ rgblight_enable();
+ }
+#endif
+ break;
+
+ case MAKEK:
+ if (record->event.pressed) {
+ SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
+ }
+ break;
+
+ case MAKEKF:
+ if (!record->event.pressed) {
+ SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP ":flash");
+ }
+
+ break;
+
+ case SHRUG:
+ if (record->event.pressed) {
+ SEND_STRING(":Shrug:");
+ }
+ break;
+ }
+
+ return true;
+}