summaryrefslogtreecommitdiff
path: root/users/kageurufu/custom_rgb.c
diff options
context:
space:
mode:
authorFrank Tackitt <franklyn@tackitt.net>2019-01-02 10:16:55 -0700
committerDrashna Jaelre <drashna@live.com>2019-01-02 09:16:55 -0800
commit7b5fa4b13e332bab476b65565d63708b306d000a (patch)
tree75eac529c8b52c5954704c8ca5073eeb1f749b2a /users/kageurufu/custom_rgb.c
parentc71c078dff74ea3047410c855f6e42bad7281f8c (diff)
Keymap: Add userspace for @kageurufu (#4752)
* Add userspace for @kageurufu * Remove custom keycodes for layer keys Add some common defaults for my rules.mk
Diffstat (limited to 'users/kageurufu/custom_rgb.c')
-rw-r--r--users/kageurufu/custom_rgb.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/users/kageurufu/custom_rgb.c b/users/kageurufu/custom_rgb.c
new file mode 100644
index 0000000000..8e99129b0b
--- /dev/null
+++ b/users/kageurufu/custom_rgb.c
@@ -0,0 +1,18 @@
+#include "custom_rgb.h"
+
+#if defined(RGBLIGHT_ENABLE)
+ extern rgblight_config_t rgblight_config;
+ rgblight_config_t _pushed_rgblight_config;
+ #define push_rgb_config() { if (_pushed_rgblight_config.raw == 0) { _pushed_rgblight_config.raw = rgblight_config.raw; } }
+ #define pop_rgb_config() { if (_pushed_rgblight_config.raw == 0) { rgblight_config.raw = _pushed_rgblight_config.raw; _pushed_rgblight_config.raw = 0; } }
+#elif defined(RGB_MATRIX_ENABLE)
+ extern rgb_config_t rgb_matrix_config;
+ rgb_config_t _pushed_rgb_matrix_config;
+ #define push_rgb_config() _pushed_rgb_matrix_config.raw = rgb_matrix_config.raw
+ #define pop_rgb_config() rgb_matrix_config.raw = _pushed_rgb_matrix_config.raw
+#endif
+
+
+bool process_record_rgb(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}