Updated
This commit is contained in:
@@ -35,7 +35,7 @@ combo_t key_combos[] = {
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_wrapper(
|
||||
[_QWERTY] = LAYOUT_wrapper(
|
||||
// ┌────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┐
|
||||
__________________BASE_L1____________________, __________________BASE_R1____________________,
|
||||
// ├────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┤
|
||||
@@ -253,8 +253,8 @@ static void render_status(void) {
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _BASE:
|
||||
oled_write_P(PSTR("BASE "), false);
|
||||
case _QWERTY:
|
||||
oled_write_P(PSTR("QWERTY "), false);
|
||||
break;
|
||||
case _NAV:
|
||||
oled_write_P(PSTR("NAV "), false);
|
||||
@@ -291,8 +291,70 @@ bool oled_task_user(void) {
|
||||
|
||||
#endif //OLED_ENABLE
|
||||
|
||||
uint8_t mod_state;
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
static bool isWindows = false;
|
||||
mod_state = get_mods();
|
||||
switch (keycode) {
|
||||
case WINDOWS:
|
||||
if (record->event.pressed) {
|
||||
isWindows = !isWindows;
|
||||
}
|
||||
return false;
|
||||
case COPY:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_C));
|
||||
} else {
|
||||
tap_code16(LGUI(KC_C));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case PASTE:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_V));
|
||||
} else {
|
||||
tap_code16(LGUI(KC_V));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case CUT:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_X));
|
||||
} else {
|
||||
tap_code16(LGUI(KC_X));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case UNDO:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_Z));
|
||||
} else {
|
||||
tap_code16(LGUI(KC_Z));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case REDO:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_Y));
|
||||
} else {
|
||||
tap_code16(LSG(KC_Z));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case SALL:
|
||||
if (record->event.pressed) {
|
||||
if (isWindows) {
|
||||
tap_code16(LCTL(KC_A));
|
||||
} else {
|
||||
tap_code16(LGUI(KC_A));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
case M_PASS1:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("P0plarLake!2023");
|
||||
@@ -300,12 +362,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return false;
|
||||
case M_PASS2:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("Thel0ve0fchrist!");
|
||||
SEND_STRING("ThisisThel0ve0fchrist!");
|
||||
}
|
||||
return false;
|
||||
case M_PASS3:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("6754");
|
||||
SEND_STRING("1029");
|
||||
}
|
||||
return false;
|
||||
case M_PASS4:
|
||||
@@ -318,6 +380,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
|
||||
Reference in New Issue
Block a user