[Keymap] small changes, game layer for mattly keymap (#21375)

Co-authored-by: Ryan <fauxpark@gmail.com>
master
Matthew Lyon 2023-07-05 23:03:45 -07:00 committed by GitHub
parent 63872f990b
commit b618aecc95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 77 additions and 57 deletions

View File

@ -22,15 +22,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#undef RGBLED_NUM #undef RGBLED_NUM
#define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD #undef RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL #undef RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE #undef RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_KNIGHT #undef RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_CHRISTMAS #undef RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_STATIC_GRADIENT #undef RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_RGB_TEST #undef RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_ALTERNATING #undef RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_EFFECT_TWINKLE #undef RGBLIGHT_DEFAULT_MODE
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_BREATHING + 2)
#define RGBLED_NUM 12 #define RGBLED_NUM 12
#define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_SAT_STEP 8

View File

@ -11,7 +11,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_CAPS, A_CTL, S_ALT, D_GUI, F_SFT, KC_G, KC_H, J_SFT, K_GUI, L_ALT, MINSCTL, KC_QUOT, KC_CAPS, A_CTL, S_ALT, D_GUI, F_SFT, KC_G, KC_H, J_SFT, K_GUI, L_ALT, MINSCTL, KC_QUOT,
NAVLOCK, KC_Z, KC_X, KC_C, KC_V, KC_B, ENT_SYM, TAB_NUM, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, NAVLOCK, KC_Z, KC_X, KC_C, KC_V, KC_B, ENT_SYM, TAB_NUM, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
ESC_HYP, TAB_NUM, SPC_SFT, SPC_SFT, BSP_SYM, DEL_WRP ESC_HYP, TAB_NUM, SPC_SFT, SPC_SFT, BSP_SYM, DEL_WRP
), ),
[_OVER_WIN] = LAYOUT( [_OVER_WIN] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
@ -30,31 +30,39 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
[_NAVNUM] = LAYOUT( [_NAVNUM] = LAYOUT(
XXXXXXX, XXXXXXX, XXXXXXX, M_NXWIN, XXXXXXX, XXXXXXX, XXXXXXX, KC_SLSH, KC_ASTR, KC_MINS, KC_PLUS, XXXXXXX, M_PVWIN, M_NXWIN, XXXXXXX, M_BPARA, XXXXXXX, KC_HOME, XXXXXXX, KC_SLSH, KC_ASTR, KC_MINS, KC_PLUS, XXXXXXX,
XXXXXXX, M_NAVFW, M_BWORD, KC_UP, M_FWORD, KC_PGUP, KC_DLR, KC_P7, KC_P8, KC_P9, KC_DOT, XXXXXXX, M_PVTAB, M_NAVFW, M_BWORD, KC_UP, M_FWORD, KC_PGUP, KC_DLR, KC_P7, KC_P8, KC_P9, KC_DOT, XXXXXXX,
XXXXXXX, M_NAVBK, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_PERC, KC_P4, KC_P5, KC_P6, KC_EQL, XXXXXXX, XXXXXXX, M_NAVBK, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_PERC, KC_P4, KC_P5, KC_P6, KC_EQL, XXXXXXX,
_______, M_PVTAB, KC_HOME, M_PVWIN, KC_END, M_NXTAB, _______, _______, KC_P0, KC_P1, KC_P2, KC_P3, KC_COMM, _______, _______, M_NAVFW, M_BLINE, M_NPARA, M_ELINE, KC_END, _______, _______, KC_P0, KC_P1, KC_P2, KC_P3, KC_COMM, _______,
_______, _______, _______, _______, _______, KC_P0 _______, _______, _______, _______, _______, KC_P0
), ),
[_NAVNUM_WIN] = LAYOUT( [_NAVNUM_WIN] = LAYOUT(
_______, _______, _______, W_NXWIN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, W_NAVFW, W_BWORD, _______, W_FWORD, _______, _______, _______, _______, _______, _______, _______, _______, W_NAVFW, W_BWORD, _______, W_FWORD, _______, _______, _______, _______, _______, _______, _______,
_______, W_NAVBK, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, W_NAVBK, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, W_PVTAB, _______, W_PVWIN, _______, W_NXTAB, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, _______
), ),
[_GAME] = LAYOUT(
KC_BSPC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SCLN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_MINS, KC_QUOT,
KC_ESC, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(_NAVNUM), MO(_SYMBOL), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
KC_LCTL, KC_LALT, KC_SPC, KC_SPC, KC_LGUI, KC_LSFT
),
[_FUNCT] = LAYOUT( [_FUNCT] = LAYOUT(
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
QK_BOOT, XXXXXXX, XXXXXXX, M_NXWIN, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_K, QK_BOOT, QK_BOOT, M_NAVFW, XXXXXXX, M_NXWIN, XXXXXXX, XXXXXXX, XXXXXXX, RGB_TOG, RGB_M_P, RGB_M_B, XXXXXXX, QK_BOOT,
DB_TOGG, XXXXXXX, M_PVTAB, M_PVWIN, M_NXTAB, XXXXXXX, XXXXXXX, TOG_WIN, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, DB_TOGG, M_NAVBK, M_PVTAB, M_PVWIN, M_NXTAB, XXXXXXX, XXXXXXX, TOG_WIN, TOG_GAM, XXXXXXX, XXXXXXX, XXXXXXX,
KC_MUTE, KC_VOLD, KC_VOLU, KC_MRWD, KC_MFFD, KC_MPLY, _______, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_VOLU, KC_MRWD, KC_MFFD, KC_MPLY, _______, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD,
_______, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, _______
), ),
[_FUNCT_WIN] = LAYOUT( [_FUNCT_WIN] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, W_NXWIN, _______, _______, _______, _______, _______, _______, _______, _______, _______, W_NAVFW, _______, W_NXWIN, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, W_PVTAB, W_PVWIN, W_NXTAB, _______, _______, _______, _______, _______, _______, _______, _______, W_NAVBK, W_PVTAB, W_PVWIN, W_NXTAB, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, _______
), ),

View File

@ -31,6 +31,9 @@ void layer_state_set_rgb(layer_state_t state) {
case _NAVNUM_WIN: case _NAVNUM_WIN:
rgblight_sethsv_noeeprom(HSV_NAVNUM); rgblight_sethsv_noeeprom(HSV_NAVNUM);
break; break;
case _GAME:
rgblight_sethsv_noeeprom(HSV_GAME);
break;
case _FUNCT: case _FUNCT:
case _FUNCT_WIN: case _FUNCT_WIN:
rgblight_sethsv_noeeprom(HSV_FUNCT); rgblight_sethsv_noeeprom(HSV_FUNCT);

View File

@ -25,12 +25,14 @@ enum {
_NAVNUM, _NAVNUM,
_NAVNUM_WIN, _NAVNUM_WIN,
_SYMBOL, _SYMBOL,
_GAME,
_FUNCT, _FUNCT,
_FUNCT_WIN, _FUNCT_WIN,
}; };
// == System // == System
#define TOG_WIN TG(_OVER_WIN) #define TOG_WIN TG(_OVER_WIN)
#define TOG_GAM TG(_GAME)
// == Thumbs // == Thumbs
// left hand // left hand
@ -47,7 +49,6 @@ enum {
#define NAVLOCK TG(_NAVNUM) #define NAVLOCK TG(_NAVNUM)
#define SYMLOCK TG(_SYMBOL) #define SYMLOCK TG(_SYMBOL)
// == QWERTY // == QWERTY
// left hand home row // left hand home row
#define A_CTL MT(MOD_LCTL, KC_A) #define A_CTL MT(MOD_LCTL, KC_A)
@ -78,12 +79,18 @@ enum {
#define O_GUI MT(MOD_RGUI, KC_O) #define O_GUI MT(MOD_RGUI, KC_O)
// == OS X default keys // == OS X default keys
// movement by word // movement by text
#define M_BWORD LALT(KC_LEFT) #define M_BWORD LALT(KC_LEFT)
#define W_BWORD LCTL(KC_LEFT) #define W_BWORD LCTL(KC_LEFT)
#define M_FWORD LALT(KC_RIGHT) #define M_FWORD LALT(KC_RIGHT)
#define W_FWORD LCTL(KC_RIGHT) #define W_FWORD LCTL(KC_RIGHT)
#define M_BLINE LGUI(KC_LEFT)
#define M_ELINE LGUI(KC_RIGHT)
#define M_BPARA LOPT(KC_UP)
#define M_NPARA LOPT(KC_DOWN)
// gui navigation // gui navigation
#define M_NXWIN LGUI(KC_GRV) // Next Window #define M_NXWIN LGUI(KC_GRV) // Next Window
#define W_NXWIN LALT(KC_TAB) #define W_NXWIN LALT(KC_TAB)
@ -101,14 +108,14 @@ enum {
// == UNDERGLOW // == UNDERGLOW
#ifdef RGBLIGHT_ENABLE #ifdef RGBLIGHT_ENABLE
#define HSV_CAPS 55, 255, 255 #define HSV_CAPS 55, 255, 255
#define HSV_ERR 30, 196, 196 #define HSV_ERR 0, 255, 96
#define HSV_MAC 20, 255, 128 #define HSV_MAC 250, 255, 192
#define HSV_WIN 10, 255, 128 #define HSV_WIN 250, 192, 128
#define HSV_SYMBOL 235, 255, 255 #define HSV_SYMBOL 235, 255, 255
#define HSV_NAVNUM 250, 255, 255 #define HSV_NAVNUM 20, 255, 255
#define HSV_FUNCT 210, 255, 255 #define HSV_GAME 40, 255, 255
#define HSV_FUNCT 200, 255, 255
#define HSV_RESET 180, 255, 255 #define HSV_RESET 180, 255, 255
#endif #endif
#endif #endif

View File

@ -1,3 +1,4 @@
SRC += mattly.c SRC += mattly.c
LTO_ENABLE = yes LTO_ENABLE = yes
CONSOLE_ENABLE = yes CONSOLE_ENABLE = yes
RGB_MATRIX_ENABLE = no