summaryrefslogtreecommitdiff
path: root/users/klackygears/klackygears.c
diff options
context:
space:
mode:
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 0000000000..2e7533eb16
--- /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;
+}