summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/community/60_ansi_arrow_split_bs_7u_spc/mrsendyyk/keymap.c5
-rwxr-xr-xlayouts/community/60_iso/bifbofii/keymap.c6
-rw-r--r--layouts/community/65_ansi_blocker/spidey3/keymap.c4
-rw-r--r--layouts/community/75_ansi/spidey3/keymap.c4
-rw-r--r--layouts/community/ergodox/colemak_code_friendly/keymap.c8
-rw-r--r--layouts/community/ergodox/drashna/keymap.c8
-rw-r--r--layouts/community/ergodox/dvorak_emacs/keymap.c7
-rw-r--r--layouts/community/ergodox/dvorak_emacs_software/keymap.c7
-rw-r--r--layouts/community/ergodox/jjerrell/keymap.c4
-rw-r--r--layouts/community/ergodox/ordinary/keymap.c2
-rw-r--r--layouts/community/ergodox/ordinary_osx/keymap.c2
-rw-r--r--layouts/community/ergodox/osx_neo2/keymap.c7
-rw-r--r--layouts/community/ergodox/software_neo2/keymap.c2
-rw-r--r--layouts/community/ergodox/swedish-lindhe/keymap.c7
-rw-r--r--layouts/community/numpad_5x6/bjohnson/keymap.c5
-rw-r--r--layouts/community/ortho_4x12/bifbofii/keymap.c6
-rw-r--r--layouts/community/ortho_4x12/brandonschlack/keymap.c5
-rw-r--r--layouts/community/ortho_4x12/drashna/keymap.c4
-rw-r--r--layouts/community/tkl_ansi/brandonschlack/keymap.c4
19 files changed, 35 insertions, 62 deletions
diff --git a/layouts/community/60_ansi_arrow_split_bs_7u_spc/mrsendyyk/keymap.c b/layouts/community/60_ansi_arrow_split_bs_7u_spc/mrsendyyk/keymap.c
index 3af6af5091..37e459893c 100644
--- a/layouts/community/60_ansi_arrow_split_bs_7u_spc/mrsendyyk/keymap.c
+++ b/layouts/community/60_ansi_arrow_split_bs_7u_spc/mrsendyyk/keymap.c
@@ -109,9 +109,9 @@ void update_led(void) {
109 } 109 }
110} 110}
111 111
112void led_set_user(uint8_t usb_led) { 112bool led_update_user(led_t led_state) {
113 // Caps Lock Indicator 113 // Caps Lock Indicator
114 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { 114 if (led_state.caps_lock) {
115 writePinLow(B2); 115 writePinLow(B2);
116 rgblight_setrgb(255, 110, 0); 116 rgblight_setrgb(255, 110, 0);
117 } 117 }
@@ -133,6 +133,7 @@ void led_set_user(uint8_t usb_led) {
133 } 133 }
134 update_led(); 134 update_led();
135 } 135 }
136 return false;
136} 137}
137 138
138layer_state_t layer_state_set_user(layer_state_t state) { 139layer_state_t layer_state_set_user(layer_state_t state) {
diff --git a/layouts/community/60_iso/bifbofii/keymap.c b/layouts/community/60_iso/bifbofii/keymap.c
index d9d7383c3d..890bdb4c56 100755
--- a/layouts/community/60_iso/bifbofii/keymap.c
+++ b/layouts/community/60_iso/bifbofii/keymap.c
@@ -123,9 +123,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
123 */ 123 */
124 [UNICODE] = LAYOUT_60_iso( 124 [UNICODE] = LAYOUT_60_iso(
125 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSPC, 125 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSPC,
126 _______, _______, _______, X(EUR), _______, _______, _______, XP(SUE, BUE), _______, XP(SOE, BOE), _______, _______, _______, 126 _______, _______, _______, UM(EUR), _______, _______, _______, UP(SUE, BUE), _______, UP(SOE, BOE), _______, _______, _______,
127 KC_TRNS, XP(SAE, BAE), X(SS), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_ENT, 127 KC_TRNS, UP(SAE, BAE), UM(SS), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_ENT,
128 KC_LSFT, _______, _______, _______, X(CPR), _______, _______, _______, _______, _______, _______, _______, KC_RSFT, 128 KC_LSFT, _______, _______, _______, UM(CPR), _______, _______, _______, _______, _______, _______, _______, KC_RSFT,
129 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, _______ 129 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, _______
130 ), 130 ),
131 131
diff --git a/layouts/community/65_ansi_blocker/spidey3/keymap.c b/layouts/community/65_ansi_blocker/spidey3/keymap.c
index 5f8080d471..81ee2bf3a7 100644
--- a/layouts/community/65_ansi_blocker/spidey3/keymap.c
+++ b/layouts/community/65_ansi_blocker/spidey3/keymap.c
@@ -32,10 +32,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 ), 32 ),
33 // Glyph Transformation 33 // Glyph Transformation
34 [_GLYPH] = LAYOUT_65_ansi_blocker( 34 [_GLYPH] = LAYOUT_65_ansi_blocker(
35 QK_BOOT, X(SAD), X(MEH), X(HAPPY), X(ANGRY), X(THUMBDN), X(THUMBUP), X(SPIDER), X_BUL, X(LOL), X(SURPRISE),X_DASH, SPI_GFLOCK, XXXXXXX, XXXXXXX, 35 QK_BOOT, UM(SAD), UM(MEH), UM(HAPPY), UM(ANGRY), UM(THUMBDN),UM(THUMBUP),UM(SPIDER), X_BUL, UM(LOL), UM(SURPRISE),X_DASH, SPI_GFLOCK, XXXXXXX, XXXXXXX,
36 EE_CLR, SPI_NORMAL, SPI_WIDE, SPI_SCRIPT, SPI_BLOCKS, SPI_CIRCLE, SPI_SQUARE, SPI_PARENS, SPI_FRAKTR, SPI_BOLD, SPI_MATH, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, 36 EE_CLR, SPI_NORMAL, SPI_WIDE, SPI_SCRIPT, SPI_BLOCKS, SPI_CIRCLE, SPI_SQUARE, SPI_PARENS, SPI_FRAKTR, SPI_BOLD, SPI_MATH, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
37 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, 37 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
38 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, X(LARR), X(RARR), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, 38 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, UM(LARR), UM(RARR), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
39 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX 39 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX
40 ) 40 )
41}; 41};
diff --git a/layouts/community/75_ansi/spidey3/keymap.c b/layouts/community/75_ansi/spidey3/keymap.c
index 5c2f6a150b..4e251b41db 100644
--- a/layouts/community/75_ansi/spidey3/keymap.c
+++ b/layouts/community/75_ansi/spidey3/keymap.c
@@ -24,10 +24,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 // FN 24 // FN
25 [_FN] = LAYOUT_75_ansi( 25 [_FN] = LAYOUT_75_ansi(
26 QK_BOOT, SPI_NORMAL, SPI_WIDE, SPI_SCRIPT, SPI_BLOCKS, SPI_CIRCLE, SPI_SQUARE, SPI_PARENS, SPI_FRAKTR, SPI_BOLD, SPI_MATH, XXXXXXX, SPI_GFLOCK, KC_SLEP, CH_SUSP, KC_PWR, 26 QK_BOOT, SPI_NORMAL, SPI_WIDE, SPI_SCRIPT, SPI_BLOCKS, SPI_CIRCLE, SPI_SQUARE, SPI_PARENS, SPI_FRAKTR, SPI_BOLD, SPI_MATH, XXXXXXX, SPI_GFLOCK, KC_SLEP, CH_SUSP, KC_PWR,
27 EE_CLR, X(SAD), X(MEH), X(HAPPY), X(ANGRY), X(THUMBDN), X(THUMBUP), X(SPIDER), X_BUL, X(LOL), X(SURPRISE),X_DASH, XXXXXXX, KC_PAUS, KC_SCRL, 27 EE_CLR, UM(SAD), UM(MEH), UM(HAPPY), UM(ANGRY), UM(THUMBDN),UM(THUMBUP),UM(SPIDER), X_BUL, UM(LOL), UM(SURPRISE),X_DASH, XXXXXXX, KC_PAUS, KC_SCRL,
28 XXXXXXX, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, SPI_GLO, VK_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, KC_BRIU, 28 XXXXXXX, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, SPI_GLO, VK_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, KC_BRIU,
29 XXXXXXX, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_G, RGB_M_TW, UC_LINX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BRID, 29 XXXXXXX, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_G, RGB_M_TW, UC_LINX, XXXXXXX, XXXXXXX, XXXXXXX, KC_BRID,
30 _______, XXXXXXX, UC_EMAC, UC_WINC, UC_NEXT, NK_TOGG, TG(_NUMPAD),UC_MAC, X(LARR), X(RARR), DB_TOGG, _______, KC_VOLU, KC_MUTE, 30 _______, XXXXXXX, UC_EMAC, UC_WINC, UC_NEXT, NK_TOGG, TG(_NUMPAD),UC_MAC, UM(LARR), UM(RARR), DB_TOGG, _______, KC_VOLU, KC_MUTE,
31 _______, _______, _______, KC_MPLY, KC_ASST, _______, KC_CPNL, KC_MPRV, KC_VOLD, KC_MNXT 31 _______, _______, _______, KC_MPLY, KC_ASST, _______, KC_CPNL, KC_MPRV, KC_VOLD, KC_MNXT
32 ) 32 )
33}; 33};
diff --git a/layouts/community/ergodox/colemak_code_friendly/keymap.c b/layouts/community/ergodox/colemak_code_friendly/keymap.c
index ae5bdcc5b8..d9e3c9fa61 100644
--- a/layouts/community/ergodox/colemak_code_friendly/keymap.c
+++ b/layouts/community/ergodox/colemak_code_friendly/keymap.c
@@ -310,9 +310,6 @@ void matrix_init_user(void) {
310void matrix_scan_user(void) { 310void matrix_scan_user(void) {
311 uint8_t layer = get_highest_layer(layer_state); 311 uint8_t layer = get_highest_layer(layer_state);
312 312
313 //led 1, RED, Caps-Lock ON
314 //if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) ergodox_right_led_1_on();
315
316 //led 2, GREEN 313 //led 2, GREEN
317 if (layer == LAYER_NUM) 314 if (layer == LAYER_NUM)
318 ergodox_right_led_2_on(); 315 ergodox_right_led_2_on();
@@ -327,9 +324,10 @@ void matrix_scan_user(void) {
327}; 324};
328 325
329// Runs constantly in the background, in a loop. 326// Runs constantly in the background, in a loop.
330void led_set_user(uint8_t usb_led) { 327bool led_update_user(led_t led_state) {
331 if (usb_led & (1<<USB_LED_CAPS_LOCK)) 328 if (led_state.caps_lock)
332 ergodox_right_led_1_on(); 329 ergodox_right_led_1_on();
333 else 330 else
334 ergodox_right_led_1_off(); 331 ergodox_right_led_1_off();
332 return false;
335} 333}
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c
index 1853b70071..8d1449486a 100644
--- a/layouts/community/ergodox/drashna/keymap.c
+++ b/layouts/community/ergodox/drashna/keymap.c
@@ -212,9 +212,9 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
212 212
213void housekeeping_task_keymap(void) { // runs frequently to update info 213void housekeeping_task_keymap(void) { // runs frequently to update info
214#ifdef KEYBOARD_ergodox_ez 214#ifdef KEYBOARD_ergodox_ez
215 uint8_t modifiers = get_mods(); 215 uint8_t modifiers = get_mods();
216 uint8_t led_usb_state = host_keyboard_leds(); 216 led_t led_state = host_keyboard_led_state();
217 uint8_t one_shot = get_oneshot_mods(); 217 uint8_t one_shot = get_oneshot_mods();
218 218
219 if (!skip_leds) { 219 if (!skip_leds) {
220 ergodox_board_led_off(); 220 ergodox_board_led_off();
@@ -225,7 +225,7 @@ void housekeeping_task_keymap(void) { // runs frequently to update info
225 // Since we're not using the LEDs here for layer indication anymore, 225 // Since we're not using the LEDs here for layer indication anymore,
226 // then lets use them for modifier indicators. Shame we don't have 4... 226 // then lets use them for modifier indicators. Shame we don't have 4...
227 // Also, no "else", since we want to know each, independently. 227 // Also, no "else", since we want to know each, independently.
228 if ((modifiers | one_shot) & MOD_MASK_SHIFT || led_usb_state & (1 << USB_LED_CAPS_LOCK)) { 228 if ((modifiers | one_shot) & MOD_MASK_SHIFT || led_state.caps_lock) {
229 ergodox_right_led_2_on(); 229 ergodox_right_led_2_on();
230 ergodox_right_led_2_set(50); 230 ergodox_right_led_2_set(50);
231 } 231 }
diff --git a/layouts/community/ergodox/dvorak_emacs/keymap.c b/layouts/community/ergodox/dvorak_emacs/keymap.c
index 5c310593be..8bd22bc17e 100644
--- a/layouts/community/ergodox/dvorak_emacs/keymap.c
+++ b/layouts/community/ergodox/dvorak_emacs/keymap.c
@@ -19,13 +19,6 @@
19/* #define CBRACK 3 // key ] or left alt */ 19/* #define CBRACK 3 // key ] or left alt */
20/* #define CAPS 4 // caps lock */ 20/* #define CAPS 4 // caps lock */
21 21
22// LEDS
23#define USB_LED_NUM_LOCK 0
24#define USB_LED_CAPS_LOCK 1
25#define USB_LED_SCROLL_LOCK 2
26#define USB_LED_COMPOSE 3
27#define USB_LED_KANA 4
28
29// TIMERS 22// TIMERS
30#define KEY_TAP_FAST 85 23#define KEY_TAP_FAST 85
31#define KEY_TAP_SLOW 95 24#define KEY_TAP_SLOW 95
diff --git a/layouts/community/ergodox/dvorak_emacs_software/keymap.c b/layouts/community/ergodox/dvorak_emacs_software/keymap.c
index c2bc1ef8f2..188347607f 100644
--- a/layouts/community/ergodox/dvorak_emacs_software/keymap.c
+++ b/layouts/community/ergodox/dvorak_emacs_software/keymap.c
@@ -20,13 +20,6 @@
20/* #define CBRACK 3 // key ] or left alt */ 20/* #define CBRACK 3 // key ] or left alt */
21/* #define CAPS 4 // caps lock */ 21/* #define CAPS 4 // caps lock */
22 22
23// LEDS
24#define USB_LED_NUM_LOCK 0
25#define USB_LED_CAPS_LOCK 1
26#define USB_LED_SCROLL_LOCK 2
27#define USB_LED_COMPOSE 3
28#define USB_LED_KANA 4
29
30// TIMERS 23// TIMERS
31#define KEY_TAP_FAST 85 24#define KEY_TAP_FAST 85
32#define KEY_TAP_SLOW 95 25#define KEY_TAP_SLOW 95
diff --git a/layouts/community/ergodox/jjerrell/keymap.c b/layouts/community/ergodox/jjerrell/keymap.c
index 110a8aba63..48572d2de3 100644
--- a/layouts/community/ergodox/jjerrell/keymap.c
+++ b/layouts/community/ergodox/jjerrell/keymap.c
@@ -94,12 +94,12 @@ layer_state_t layer_state_set_keymap(layer_state_t state) {
94 94
95void matrix_scan_keymap(void) { 95void matrix_scan_keymap(void) {
96 uint8_t modifiers = get_mods(); 96 uint8_t modifiers = get_mods();
97 uint8_t led_usb_state = host_keyboard_leds(); 97 led_t led_state = host_keyboard_led_state();
98 uint8_t one_shot = get_oneshot_mods(); 98 uint8_t one_shot = get_oneshot_mods();
99 uint8_t layer_is_workman = layer_state_is(_WORKMAN); 99 uint8_t layer_is_workman = layer_state_is(_WORKMAN);
100 100
101 if ((modifiers) && (layer_is_workman)) { 101 if ((modifiers) && (layer_is_workman)) {
102 if (modifiers & MOD_MASK_SHIFT || led_usb_state & (1<<USB_LED_CAPS_LOCK) || one_shot & MOD_MASK_SHIFT) { 102 if (modifiers & MOD_MASK_SHIFT || led_state.caps_lock || one_shot & MOD_MASK_SHIFT) {
103 ergodox_right_led_1_on(); 103 ergodox_right_led_1_on();
104 ergodox_right_led_1_set( 25 ); 104 ergodox_right_led_1_set( 25 );
105 } else { 105 } else {
diff --git a/layouts/community/ergodox/ordinary/keymap.c b/layouts/community/ergodox/ordinary/keymap.c
index 6c7586034c..c828c6fb97 100644
--- a/layouts/community/ergodox/ordinary/keymap.c
+++ b/layouts/community/ergodox/ordinary/keymap.c
@@ -238,7 +238,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
238// Runs constantly in the background, in a loop. 238// Runs constantly in the background, in a loop.
239void matrix_scan_user(void) { 239void matrix_scan_user(void) {
240 // shift or caps lock turns on red light 240 // shift or caps lock turns on red light
241 if ((keyboard_report->mods & MOD_BIT(KC_LSFT)) || (keyboard_report->mods & MOD_BIT(KC_RSFT)) || (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK))) { 241 if ((keyboard_report->mods & MOD_BIT(KC_LSFT)) || (keyboard_report->mods & MOD_BIT(KC_RSFT)) || host_keyboard_led_state().caps_lock) {
242 ergodox_right_led_1_on(); 242 ergodox_right_led_1_on();
243 } else { 243 } else {
244 ergodox_right_led_1_off(); 244 ergodox_right_led_1_off();
diff --git a/layouts/community/ergodox/ordinary_osx/keymap.c b/layouts/community/ergodox/ordinary_osx/keymap.c
index f67a6d6da0..3de64f4994 100644
--- a/layouts/community/ergodox/ordinary_osx/keymap.c
+++ b/layouts/community/ergodox/ordinary_osx/keymap.c
@@ -238,7 +238,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
238// Runs constantly in the background, in a loop. 238// Runs constantly in the background, in a loop.
239void matrix_scan_user(void) { 239void matrix_scan_user(void) {
240 // shift or caps lock turns on red light 240 // shift or caps lock turns on red light
241 if ((keyboard_report->mods & MOD_BIT(KC_LSFT)) || (keyboard_report->mods & MOD_BIT(KC_RSFT)) || (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK))) { 241 if ((keyboard_report->mods & MOD_BIT(KC_LSFT)) || (keyboard_report->mods & MOD_BIT(KC_RSFT)) || host_keyboard_led_state().caps_lock) {
242 ergodox_right_led_1_on(); 242 ergodox_right_led_1_on();
243 } else { 243 } else {
244 ergodox_right_led_1_off(); 244 ergodox_right_led_1_off();
diff --git a/layouts/community/ergodox/osx_neo2/keymap.c b/layouts/community/ergodox/osx_neo2/keymap.c
index 5b279073cc..079a92a97e 100644
--- a/layouts/community/ergodox/osx_neo2/keymap.c
+++ b/layouts/community/ergodox/osx_neo2/keymap.c
@@ -686,7 +686,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
686 686
687 if ((capslock_state & MOD_MASK_SHIFT) == MOD_MASK_SHIFT) { 687 if ((capslock_state & MOD_MASK_SHIFT) == MOD_MASK_SHIFT) {
688 // CAPSLOCK is currently active, disable it 688 // CAPSLOCK is currently active, disable it
689 if (host_keyboard_leds() & (1 << USB_LED_CAPS_LOCK)) { 689 if (host_keyboard_led_state().caps_lock) {
690 unregister_code(KC_LOCKING_CAPS_LOCK); 690 unregister_code(KC_LOCKING_CAPS_LOCK);
691 } else { 691 } else {
692 register_code(KC_LOCKING_CAPS_LOCK); 692 register_code(KC_LOCKING_CAPS_LOCK);
@@ -697,11 +697,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
697 return process_record_user_shifted(keycode, record); 697 return process_record_user_shifted(keycode, record);
698}; 698};
699 699
700// Runs just one time when the keyboard initializes.
701void matrix_init_user(void){
702
703};
704
705// Runs constantly in the background, in a loop. 700// Runs constantly in the background, in a loop.
706void matrix_scan_user(void) { 701void matrix_scan_user(void) {
707 uint8_t layer = get_highest_layer(layer_state); 702 uint8_t layer = get_highest_layer(layer_state);
diff --git a/layouts/community/ergodox/software_neo2/keymap.c b/layouts/community/ergodox/software_neo2/keymap.c
index c191a034f2..1c68a68b0f 100644
--- a/layouts/community/ergodox/software_neo2/keymap.c
+++ b/layouts/community/ergodox/software_neo2/keymap.c
@@ -106,7 +106,7 @@ void matrix_scan_user(void) {
106 ergodox_right_led_3_off(); 106 ergodox_right_led_3_off();
107 ergodox_board_led_off(); 107 ergodox_board_led_off();
108 108
109 if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) { 109 if (host_keyboard_led_state().caps_lock) {
110 ergodox_right_led_3_on(); 110 ergodox_right_led_3_on();
111 } 111 }
112 112
diff --git a/layouts/community/ergodox/swedish-lindhe/keymap.c b/layouts/community/ergodox/swedish-lindhe/keymap.c
index 1644512de7..376574f690 100644
--- a/layouts/community/ergodox/swedish-lindhe/keymap.c
+++ b/layouts/community/ergodox/swedish-lindhe/keymap.c
@@ -154,11 +154,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
154), 154),
155}; 155};
156 156
157// Runs just one time when the keyboard initializes.
158void matrix_init_user(void) {
159
160};
161
162// Runs constantly in the background, in a loop. 157// Runs constantly in the background, in a loop.
163void matrix_scan_user(void) { 158void matrix_scan_user(void) {
164 159
@@ -185,7 +180,7 @@ void matrix_scan_user(void) {
185 break; 180 break;
186 } 181 }
187 182
188 if (host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK)) { 183 if (host_keyboard_led_state().caps_lock) {
189 // if capslk is on, set led 1 on 184 // if capslk is on, set led 1 on
190 ergodox_right_led_1_on(); 185 ergodox_right_led_1_on();
191 } else { 186 } else {
diff --git a/layouts/community/numpad_5x6/bjohnson/keymap.c b/layouts/community/numpad_5x6/bjohnson/keymap.c
index 71c8829d02..63b358f226 100644
--- a/layouts/community/numpad_5x6/bjohnson/keymap.c
+++ b/layouts/community/numpad_5x6/bjohnson/keymap.c
@@ -35,12 +35,13 @@ void keyboard_post_init_user(void) {
35#endif 35#endif
36} 36}
37 37
38void led_set_user(uint8_t usb_led) { 38bool led_update_user(led_t led_state) {
39 if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { 39 if (led_state.num_lock) {
40 rgblight_sethsv_noeeprom(HSV_CYAN); 40 rgblight_sethsv_noeeprom(HSV_CYAN);
41 } else { 41 } else {
42 rgblight_sethsv_noeeprom(HSV_MAGENTA); 42 rgblight_sethsv_noeeprom(HSV_MAGENTA);
43 } 43 }
44 return false;
44} 45}
45 46
46void shutdown_user (void) { 47void shutdown_user (void) {
diff --git a/layouts/community/ortho_4x12/bifbofii/keymap.c b/layouts/community/ortho_4x12/bifbofii/keymap.c
index 7c25fed016..e7f427127e 100644
--- a/layouts/community/ortho_4x12/bifbofii/keymap.c
+++ b/layouts/community/ortho_4x12/bifbofii/keymap.c
@@ -146,9 +146,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
146 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+ 146 * +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
147 */ 147 */
148[UNICODE] = LAYOUT_ortho_4x12( 148[UNICODE] = LAYOUT_ortho_4x12(
149 _______, _______, _______, X(EUR), _______, _______, _______, XP(SUE, BUE), _______, XP(SOE, BOE), _______, _______, 149 _______, _______, _______, UM(EUR), _______, _______, _______, UP(SUE, BUE), _______, UP(SOE, BOE), _______, _______,
150 _______, XP(SAE, BAE), X(SS), _______, _______, _______, _______, _______, _______, _______, _______, _______, 150 _______, UP(SAE, BAE), UM(SS), _______, _______, _______, _______, _______, _______, _______, _______, _______,
151 _______, _______, _______, X(CPR), _______, _______, _______, _______, _______, _______, _______, _______, 151 _______, _______, _______, UM(CPR), _______, _______, _______, _______, _______, _______, _______, _______,
152 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 152 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
153), 153),
154 154
diff --git a/layouts/community/ortho_4x12/brandonschlack/keymap.c b/layouts/community/ortho_4x12/brandonschlack/keymap.c
index 7361de1a03..04c83de9e9 100644
--- a/layouts/community/ortho_4x12/brandonschlack/keymap.c
+++ b/layouts/community/ortho_4x12/brandonschlack/keymap.c
@@ -100,12 +100,13 @@ void keyboard_post_init_keymap(void) {
100} 100}
101 101
102// Use Green LED for Caps Lock 102// Use Green LED for Caps Lock
103void led_set_user(uint8_t usb_led) { 103bool led_update_user(led_t led_state) {
104 if (IS_LED_OFF(usb_led, USB_LED_CAPS_LOCK)) { 104 if (led_state.caps_lock) {
105 writePinLow(LED_GREEN); 105 writePinLow(LED_GREEN);
106 } else { 106 } else {
107 writePinHigh(LED_GREEN); 107 writePinHigh(LED_GREEN);
108 } 108 }
109 return false;
109} 110}
110#endif 111#endif
111 112
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c
index 475ccc5c3a..cdf41fc5dc 100644
--- a/layouts/community/ortho_4x12/drashna/keymap.c
+++ b/layouts/community/ortho_4x12/drashna/keymap.c
@@ -184,7 +184,7 @@ led_config_t g_led_config = {
184 184
185bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) { 185bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) {
186 uint8_t this_mod = get_mods(); 186 uint8_t this_mod = get_mods();
187 uint8_t this_led = host_keyboard_leds(); 187 led_t this_led = host_keyboard_led_state();
188 uint8_t this_osm = get_oneshot_mods(); 188 uint8_t this_osm = get_oneshot_mods();
189# ifdef KEYBOARD_planck_ez 189# ifdef KEYBOARD_planck_ez
190# define THUMB_LED 41 190# define THUMB_LED 41
@@ -208,7 +208,7 @@ bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) {
208 break; 208 break;
209 } 209 }
210 210
211 if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led & (1 << USB_LED_CAPS_LOCK)) { 211 if ((this_mod | this_osm) & MOD_MASK_SHIFT || this_led.caps_lock) {
212 if (!layer_state_cmp(layer_state, _ADJUST)) { 212 if (!layer_state_cmp(layer_state, _ADJUST)) {
213 RGB_MATRIX_INDICATOR_SET_COLOR(24, 0x00, 0xFF, 0x00); 213 RGB_MATRIX_INDICATOR_SET_COLOR(24, 0x00, 0xFF, 0x00);
214 } 214 }
diff --git a/layouts/community/tkl_ansi/brandonschlack/keymap.c b/layouts/community/tkl_ansi/brandonschlack/keymap.c
index 8e5743136c..9b425c477a 100644
--- a/layouts/community/tkl_ansi/brandonschlack/keymap.c
+++ b/layouts/community/tkl_ansi/brandonschlack/keymap.c
@@ -96,7 +96,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
96bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { 96bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
97 return true; 97 return true;
98} 98}
99
100void led_set_user(uint8_t usb_led) {
101
102}