[Keymap] csc027/keymap-updates (#9420)
This commit is contained in:
parent
e8a02afc8c
commit
7576f6162e
|
@ -52,12 +52,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
_______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
|
||||||
[_GW] = LAYOUT(
|
[_GG] = LAYOUT(
|
||||||
KC_Y, KC_GRV, KC_1, KC_2, KC_3, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
KC_5, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||||
KC_B, KC_TAB, KC_T, KC_W, KC_4, KC_R, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
KC_T, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
||||||
KC_M, MC_LSEC, KC_A, KC_S, KC_D, KC_F, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
KC_G, MC_LSEC, KC_A, KC_S, KC_D, KC_F, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||||
KC_I, KC_LCTL, KC_Z, KC_LALT, KC_V, KC_SPC, KC_SPC, _______, KC_N, KC_M, KC_COMM, KC_DOT, TO(_CS), TO(_QW),
|
KC_B, KC_LCTL, KC_Z, KC_X, KC_C, KC_SPC, KC_SPC, _______, KC_N, KC_M, KC_COMM, KC_DOT, TO(_CS), TO(_QW),
|
||||||
KC_X, KC_C, KC_SPC, _______, KC_M, KC_B
|
KC_LALT, KC_V, KC_SPC, _______, KC_M, KC_B
|
||||||
),
|
),
|
||||||
|
|
||||||
[_CS] = LAYOUT(
|
[_CS] = LAYOUT(
|
||||||
|
|
|
@ -46,43 +46,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
___________________CONVENIENCE_L4__________________, ___________________CONVENIENCE_R4__________________
|
___________________CONVENIENCE_L4__________________, ___________________CONVENIENCE_R4__________________
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Guild Wars 2 Layer
|
[_GG] = LAYOUT_wrapper(
|
||||||
*
|
________________General_Game_4x12_L1_______________, ________________General_Game_4x12_R1_______________,
|
||||||
* ,-----------------------------------------------------------------------.
|
________________General_Game_4x12_L2_______________, ________________General_Game_4x12_R2_______________,
|
||||||
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |BkSpc|
|
________________General_Game_4x12_L3_______________, ________________General_Game_4x12_R3_______________,
|
||||||
* |-----------------------------------------------------------------------|
|
________________General_Game_4x12_L4_______________, ________________General_Game_4x12_R4_______________
|
||||||
* | Tab | Q | W | E | R | T | Y | U | I | O | P | \ |
|
|
||||||
* |-----------------------------------------------------------------------|
|
|
||||||
* |Sf/Ec| A | S | D | F | G | H | J | K | L | ; |Enter|
|
|
||||||
* |-----------------------------------------------------------------------|
|
|
||||||
* | Ctl | Z | Alt | X | C |Space|Space| M | B | . |Nxt L|Rst L|
|
|
||||||
* `-----------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
|
|
||||||
[_GW] = LAYOUT_ortho_4x12(
|
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
|
||||||
MC_LSEC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT ,
|
|
||||||
KC_LCTL, KC_Z, KC_LALT, KC_X, KC_C, KC_SPC, KC_SPC, KC_M, KC_B, KC_DOT, TO(_CS), TO(_QW)
|
|
||||||
),
|
),
|
||||||
|
|
||||||
/* CS:GO Layer
|
[_CS] = LAYOUT_wrapper(
|
||||||
*
|
___________________CSGO_4x12_L1____________________, ___________________CSGO_4x12_R1____________________,
|
||||||
* ,-----------------------------------------------------------------------.
|
___________________CSGO_4x12_L2____________________, ___________________CSGO_4x12_R2____________________,
|
||||||
* | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |BkSpc|
|
___________________CSGO_4x12_L3____________________, ___________________CSGO_4x12_R3____________________,
|
||||||
* |-----------------------------------------------------------------------|
|
___________________CSGO_4x12_L4____________________, ___________________CSGO_4x12_R4____________________
|
||||||
* | Tab | Q | W | E | R | T | Y | 4 | 5 | 6 | |NmLck|
|
|
||||||
* |-----------------------------------------------------------------------|
|
|
||||||
* |Shift| A | S | D | F | G | H | 1 | 2 | 3 |Enter| Esc |
|
|
||||||
* |-----------------------------------------------------------------------|
|
|
||||||
* | Ctl | Z | Alt | X | B |Space|Space| 0 | 0 | . |Nxt L|Rst L|
|
|
||||||
* `-----------------------------------------------------------------------'
|
|
||||||
*/
|
|
||||||
|
|
||||||
[_CS] = LAYOUT_ortho_4x12(
|
|
||||||
XXXXXXX, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_P7, KC_P8, KC_P9, KC_0, KC_BSPC,
|
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_P4, KC_P5, KC_P6, XXXXXXX, KC_NLCK,
|
|
||||||
KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_P1, KC_P2, KC_P3, KC_PENT, KC_ESC ,
|
|
||||||
KC_LCTL, KC_Z, KC_LALT, KC_X, KC_B, KC_SPC, KC_SPC, KC_P0, KC_P0, KC_PDOT, TO(_QW), TO(_QW)
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,5 +2,5 @@ BOOTMAGIC_ENABLE = no
|
||||||
COMMAND_ENABLE = no
|
COMMAND_ENABLE = no
|
||||||
CONSOLE_ENABLE = no
|
CONSOLE_ENABLE = no
|
||||||
EXTRAKEY_ENABLE = no
|
EXTRAKEY_ENABLE = no
|
||||||
LTO_ENABLE = yes
|
LTO_ENABLE = no
|
||||||
RGBLIGHT_ENABLE = no
|
RGBLIGHT_ENABLE = no
|
||||||
|
|
|
@ -24,6 +24,6 @@ enum custom_layers {
|
||||||
_MS, // Mouse
|
_MS, // Mouse
|
||||||
_GT, // Git
|
_GT, // Git
|
||||||
_CN, // Convenience
|
_CN, // Convenience
|
||||||
_GW, // Guild Wars 2
|
_GG, // General Gaming
|
||||||
_CS // Counter-Strike: Global Offensive
|
_CS // Counter-Strike: Global Offensive
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,10 +20,6 @@
|
||||||
* QWERTY layer.
|
* QWERTY layer.
|
||||||
* - The "Git" one shot function goes to the macro layer which has Git
|
* - The "Git" one shot function goes to the macro layer which has Git
|
||||||
* commands implemented.
|
* commands implemented.
|
||||||
* - The "Convc" momentary function goes to the Convenience layer which has a
|
|
||||||
* tenkey. Note: The tenkey will operate using the secondary functions if
|
|
||||||
* the Number Lock is not enabled (e.g., Left and Right instead of 4 and
|
|
||||||
* 6).
|
|
||||||
* - The Right Shift key also doubles as an Enter key if it is tapped rather
|
* - The Right Shift key also doubles as an Enter key if it is tapped rather
|
||||||
* than held.
|
* than held.
|
||||||
*
|
*
|
||||||
|
@ -46,7 +42,7 @@
|
||||||
#define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC
|
#define _____________________QWERTY_R1_____________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC
|
||||||
#define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT
|
#define _____________________QWERTY_R2_____________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT
|
||||||
#define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE
|
#define _____________________QWERTY_R3_____________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MC_RSFE
|
||||||
#define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, OSL(_GT), TO(_GW), XXXXXXX
|
#define _____________________QWERTY_R4_____________________ KC_SPC, RAISE, KC_BSLS, OSL(_GT), TO(_GG), XXXXXXX
|
||||||
|
|
||||||
/* Raise Layer
|
/* Raise Layer
|
||||||
*
|
*
|
||||||
|
@ -213,6 +209,52 @@
|
||||||
#define ___________________CONVENIENCE_R3__________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
|
#define ___________________CONVENIENCE_R3__________________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______
|
||||||
#define ___________________CONVENIENCE_R4__________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
#define ___________________CONVENIENCE_R4__________________ _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||||
|
|
||||||
|
/* General Game Layer
|
||||||
|
*
|
||||||
|
* ,-----------------------------------. ,-----------------------------------.
|
||||||
|
* | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |BkSpc|
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ |
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* |Sf/Ec| A | S | D | F | G | | H | J | K | L | ; |Enter|
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* | Ctl | Z | Alt | X | C |Space| |Space| M | B | . |Nxt L|Rst L|
|
||||||
|
* `-----------------------------------' `-----------------------------------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define ________________General_Game_4x12_L1_______________ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5
|
||||||
|
#define ________________General_Game_4x12_L2_______________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||||
|
#define ________________General_Game_4x12_L3_______________ MC_LSEC, KC_A, KC_S, KC_D, KC_F, KC_G
|
||||||
|
#define ________________General_Game_4x12_L4_______________ KC_LCTL, KC_Z, KC_LALT, KC_X, KC_C, KC_SPC
|
||||||
|
|
||||||
|
#define ________________General_Game_4x12_R1_______________ KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC
|
||||||
|
#define ________________General_Game_4x12_R2_______________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS
|
||||||
|
#define ________________General_Game_4x12_R3_______________ KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT
|
||||||
|
#define ________________General_Game_4x12_R4_______________ KC_SPC, KC_M, KC_B, KC_DOT, TO(_CS), TO(_QW)
|
||||||
|
|
||||||
|
/* CS:GO Layer
|
||||||
|
*
|
||||||
|
* ,-----------------------------------. ,-----------------------------------.
|
||||||
|
* | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |BkSpc|
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* | Tab | Q | W | E | R | T | | Y | 4 | 5 | 6 | |NmLck|
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* |Shift| A | S | D | F | G | | H | 1 | 2 | 3 |Enter| Esc |
|
||||||
|
* |-----------------------------------| |-----------------------------------|
|
||||||
|
* | Ctl | Z | Alt | X | B |Space| |Space| 0 | 0 | . |Nxt L|Rst L|
|
||||||
|
* `-----------------------------------' `-----------------------------------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define ___________________CSGO_4x12_L1____________________ XXXXXXX, KC_1, KC_2, KC_3, KC_4, KC_5
|
||||||
|
#define ___________________CSGO_4x12_L2____________________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||||
|
#define ___________________CSGO_4x12_L3____________________ KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G
|
||||||
|
#define ___________________CSGO_4x12_L4____________________ KC_LCTL, KC_Z, KC_LALT, KC_X, KC_B, KC_SPC
|
||||||
|
|
||||||
|
#define ___________________CSGO_4x12_R1____________________ KC_6, KC_P7, KC_P8, KC_P9, KC_0, KC_BSPC
|
||||||
|
#define ___________________CSGO_4x12_R2____________________ KC_Y, KC_P4, KC_P5, KC_P6, XXXXXXX, KC_NLCK
|
||||||
|
#define ___________________CSGO_4x12_R3____________________ KC_H, KC_P1, KC_P2, KC_P3, KC_PENT, KC_ESC
|
||||||
|
#define ___________________CSGO_4x12_R4____________________ KC_SPC, KC_P0, KC_P0, KC_PDOT, TO(_QW), TO(_QW)
|
||||||
|
|
||||||
/* Convenience macros
|
/* Convenience macros
|
||||||
*
|
*
|
||||||
* These are accelerator macros for simplifying declaration of PROGMEM strings
|
* These are accelerator macros for simplifying declaration of PROGMEM strings
|
||||||
|
|
|
@ -10,21 +10,21 @@
|
||||||
|
|
||||||
#if defined(AUDIO_ENABLE) || defined(RGBLIGHT_ENABLE)
|
#if defined(AUDIO_ENABLE) || defined(RGBLIGHT_ENABLE)
|
||||||
|
|
||||||
bool led_update_user(led_t usb_led) {
|
bool led_update_user(led_t new_led) {
|
||||||
static led_t old_usb_led = {
|
static led_t old_led = {
|
||||||
.num_lock = false,
|
.num_lock = false,
|
||||||
.caps_lock = false,
|
.caps_lock = false,
|
||||||
.scroll_lock = false
|
.scroll_lock = false
|
||||||
};
|
};
|
||||||
|
|
||||||
if(old_usb_led.caps_lock != usb_led.caps_lock) {
|
if(old_led.caps_lock != new_led.caps_lock) {
|
||||||
usb_led.caps_lock ? on_usb_led_on() : on_usb_led_off();
|
new_led.caps_lock ? on_usb_led_on() : on_usb_led_off();
|
||||||
} else if(old_usb_led.num_lock != usb_led.num_lock) {
|
} else if(old_led.num_lock != new_led.num_lock) {
|
||||||
usb_led.num_lock ? on_usb_led_on() : on_usb_led_off();
|
new_led.num_lock ? on_usb_led_on() : on_usb_led_off();
|
||||||
} else if(old_usb_led.scroll_lock != usb_led.scroll_lock) {
|
} else if(old_led.scroll_lock != new_led.scroll_lock) {
|
||||||
usb_led.scroll_lock ? on_usb_led_on() : on_usb_led_off();
|
new_led.scroll_lock ? on_usb_led_on() : on_usb_led_off();
|
||||||
}
|
}
|
||||||
old_usb_led = usb_led;
|
old_led = new_led;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue