summaryrefslogtreecommitdiff
path: root/keyboards/work_louder
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/work_louder')
-rw-r--r--keyboards/work_louder/micro/keymaps/via/keymap.c6
-rw-r--r--keyboards/work_louder/rgb_functions.h18
-rw-r--r--keyboards/work_louder/work_board/keymaps/via/keymap.c10
3 files changed, 17 insertions, 17 deletions
diff --git a/keyboards/work_louder/micro/keymaps/via/keymap.c b/keyboards/work_louder/micro/keymaps/via/keymap.c
index 8cc41e1e50..514aae2aa0 100644
--- a/keyboards/work_louder/micro/keymaps/via/keymap.c
+++ b/keyboards/work_louder/micro/keymaps/via/keymap.c
@@ -24,8 +24,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
[3] = LAYOUT(
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
- USER00, USER01, USER03, USER05,
- XXXXXXX, USER02, USER04, USER06,
+ QK_KB_0, QK_KB_1, QK_KB_3, QK_KB_5,
+ XXXXXXX, QK_KB_2, QK_KB_4, QK_KB_6,
XXXXXXX, XXXXXXX, XXXXXXX, TO(0)
)
};
@@ -53,7 +53,7 @@ work_louder_config_t work_louder_config;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
- case USER09:
+ case QK_KB_9:
if (record->event.pressed) {
work_louder_config.led_level++;
if (work_louder_config.led_level > 4) {
diff --git a/keyboards/work_louder/rgb_functions.h b/keyboards/work_louder/rgb_functions.h
index 9a5cda0fc6..8940cddefc 100644
--- a/keyboards/work_louder/rgb_functions.h
+++ b/keyboards/work_louder/rgb_functions.h
@@ -46,31 +46,31 @@
# endif
#else
# ifndef RGB_MATRIX_TOGGLE
-# define RGB_MATRIX_TOGGLE USER00
+# define RGB_MATRIX_TOGGLE QK_KB_0
# endif
# ifndef RGB_MATRIX_MODE_INC
-# define RGB_MATRIX_MODE_INC USER01
+# define RGB_MATRIX_MODE_INC QK_KB_1
# endif
# ifndef RGB_MATRIX_MODE_DEC
-# define RGB_MATRIX_MODE_DEC USER02
+# define RGB_MATRIX_MODE_DEC QK_KB_2
# endif
# ifndef RGB_MATRIX_HUE_INC
-# define RGB_MATRIX_HUE_INC USER03
+# define RGB_MATRIX_HUE_INC QK_KB_3
# endif
# ifndef RGB_MATRIX_HUE_DEC
-# define RGB_MATRIX_HUE_DEC USER04
+# define RGB_MATRIX_HUE_DEC QK_KB_4
# endif
# ifndef RGB_MATRIX_SAT_INC
-# define RGB_MATRIX_SAT_INC USER05
+# define RGB_MATRIX_SAT_INC QK_KB_5
# endif
# ifndef RGB_MATRIX_SAT_DEC
-# define RGB_MATRIX_SAT_DEC USER06
+# define RGB_MATRIX_SAT_DEC QK_KB_6
# endif
# ifndef RGB_MATRIX_VAL_INC
-# define RGB_MATRIX_VAL_INC USER07
+# define RGB_MATRIX_VAL_INC QK_KB_7
# endif
# ifndef RGB_MATRIX_VAL_DEC
-# define RGB_MATRIX_VAL_DEC USER08
+# define RGB_MATRIX_VAL_DEC QK_KB_8
# endif
#endif
diff --git a/keyboards/work_louder/work_board/keymaps/via/keymap.c b/keyboards/work_louder/work_board/keymaps/via/keymap.c
index 17321a773b..08df414e88 100644
--- a/keyboards/work_louder/work_board/keymaps/via/keymap.c
+++ b/keyboards/work_louder/work_board/keymaps/via/keymap.c
@@ -22,13 +22,13 @@ enum tap_dances {
ENC_TAP,
};
-#define LOWER FN_MO13
-#define RAISE FN_MO23
+#define LOWER TL_LOWR
+#define RAISE TL_UPPR
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
- KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, USER09,
+ KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, QK_KB_9,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
MO(3), KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
@@ -99,10 +99,10 @@ typedef union {
work_louder_config_t work_louder_config;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- if (keycode == USER09) {
+ if (keycode == QK_KB_9) {
preprocess_tap_dance(TD(ENC_TAP), record);
return process_tap_dance(TD(ENC_TAP), record);
- } else if (keycode == USER10 && record->event.pressed) {
+ } else if (keycode == QK_KB_10 && record->event.pressed) {
work_louder_config.led_level ^= true;
eeconfig_update_user(work_louder_config.raw);
layer_state_set_kb(layer_state);