summaryrefslogtreecommitdiff
path: root/users/ninjonas/process_records.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/ninjonas/process_records.c')
-rw-r--r--users/ninjonas/process_records.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/users/ninjonas/process_records.c b/users/ninjonas/process_records.c
index 1b7958abcd..e1960aaa3e 100644
--- a/users/ninjonas/process_records.c
+++ b/users/ninjonas/process_records.c
@@ -6,10 +6,15 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { return true;
__attribute__((weak))
bool process_record_secrets(uint16_t keycode, keyrecord_t *record) { return true; }
+#ifdef OLED_DRIVER_ENABLE
+__attribute__((weak))
+bool process_record_oled(uint16_t keycode, keyrecord_t *record) { return true; }
+#endif
+
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
- #ifdef SSD1306OLED
- set_keylog(keycode, record);
+ #ifdef OLED_DRIVER_ENABLE
+ process_record_oled(keycode, record);
#endif
}
@@ -42,6 +47,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
break;
+ // Sends QMK make command to compile all keyboards
+ case M_MALL:
+ if (record->event.pressed) {
+ SEND_STRING("rm -f *.hex && rm -rf .build/ && make crkbd:ninjonas lily58:ninjonas hotdox:ninjonas pinky/3:ninjonas\n");
+ }
+ break;
+
// Sends QMK make command with the correct bootloader
case M_FLSH:
if (!record->event.pressed) {