Skip to content

Commit

Permalink
Merge remote-tracking branch 'qmk/develop' into develop
Browse files Browse the repository at this point in the history
* qmk/develop:
  [Keymap] Display default layer name (qmk#14819)
  Add KC_BSLS key to Horizon keyboard default layout (qmk#14815)
  contra, fractal: Remove wrongly copypasted pin E6 manipulation code (qmk#14818)
  • Loading branch information
Carlos Cardoso committed Oct 14, 2021
2 parents 27649cd + 55695ff commit 8f03018
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 0 additions & 2 deletions keyboards/contra/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef BACKLIGHT_ENABLE
backlight_step();
#endif
PORTE &= ~(1<<6);
} else {
unregister_code(KC_RSFT);
PORTE |= (1<<6);
}
return false;
break;
Expand Down
2 changes: 0 additions & 2 deletions keyboards/fractal/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,8 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef BACKLIGHT_ENABLE
backlight_step();
#endif
PORTE &= ~(1<<6);
} else {
unregister_code(KC_RSFT);
PORTE |= (1<<6);
}
return false;
break;
Expand Down
6 changes: 3 additions & 3 deletions keyboards/horizon/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
[_SYMBOL] = LAYOUT(
KC_TILD, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_UNDS,
KC_PLUS, KC_EXLM, KC_LPRN, KC_RPRN, KC_DLR , KC_AMPR, KC_PIPE, KC_EQL , KC_LCBR, KC_RCBR, KC_COLN, KC_DQUO,
_______, KC_AT , KC_LBRC, KC_RBRC, KC_HASH, KC_PERC, _______, _______, KC_CIRC, KC_ASTR, KC_LABK, KC_RABK, KC_QUES, _______,
KC_PLUS, KC_EXLM, KC_LPRN, KC_RPRN, KC_DLR , KC_AMPR, KC_PIPE, KC_HASH, KC_LCBR, KC_RCBR, KC_COLN, KC_DQUO,
_______, KC_AT , KC_LBRC, KC_RBRC, KC_BSLS, KC_PERC, _______, _______, KC_CIRC, KC_ASTR, KC_LABK, KC_RABK, KC_QUES, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[_FUNCTION] = LAYOUT(
_______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_PSCR, KC_SLCK, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______,
_______, KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_INS , KC_CLCK, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______,
_______, KC_F9 , KC_F10 , KC_F11 , KC_F12 , _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, EEP_RST, _______,
_______, KC_F9 , KC_F10 , KC_F11 , KC_F12 , _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_PAUS, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
14 changes: 13 additions & 1 deletion users/riblee/riblee.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,19 @@ void oled_task_user(void) {

switch (get_highest_layer(layer_state)) {
case _QWERTY:
oled_write_P(PSTR("Default\n"), false);
if (layer_state_cmp(default_layer_state, _QWERTY)) {
oled_write_P(PSTR("Qwerty\n"), false);
} else if (layer_state_cmp(default_layer_state, _COLEMAK)) {
oled_write_P(PSTR("Colmak\n"), false);
} else if (layer_state_cmp(default_layer_state, _DVORAK)) {
oled_write_P(PSTR("Dvorak\n"), false);
} else if (layer_state_cmp(default_layer_state, _WORKMAN)) {
oled_write_P(PSTR("Workman\n"), false);
} else if (layer_state_cmp(default_layer_state, _HUNGARIAN)) {
oled_write_P(PSTR("HUN Qwerty\n"), false);
} else {
oled_write_P(PSTR("Undefined\n"), false);
}
break;
case _LOWER:
oled_write_P(PSTR("Lower\n"), false);
Expand Down

0 comments on commit 8f03018

Please sign in to comment.