Update kemonine tidbit config / keymaps

This commit is contained in:
kemonine 2020-11-23 15:20:48 -05:00
parent 744db5753a
commit 2f409616e7
9 changed files with 1066 additions and 56 deletions

View file

@ -40,20 +40,20 @@ void change_accel(void) {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Base layer (numpad) // Base layer (numpad)
[0] = LAYOUT( [0] = LAYOUT(
TO(1), PROG, KC_AUDIO_VOL_UP, \ TO(1), PROG, KC_NO, \
KC_MS_WH_LEFT, KC_NO, KC_MS_WH_RIGHT, KC_AUDIO_VOL_DOWN, \ KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, LCTL(LALT(KC_TAB)), \
KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, LCTL(LALT(KC_TAB)), \ KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, LGUI(KC_DOWN), \
KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, LGUI(KC_DOWN), \ KC_ESC, KC_MS_WH_LEFT, KC_MS_WH_RIGHT, ACCEL, \
KC_NO, KC_ESC, ACCEL_ADJ, ACCEL \ KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, ACCEL_ADJ \
), ),
// Function layer (numpad) // Function layer (numpad)
[1] = LAYOUT( [1] = LAYOUT(
TO(0), PROG, KC_KP_SLASH, TO(0), PROG, KC_KP_SLASH,
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_ASTERISK, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_ASTERISK,
KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS,
KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS,
KC_NO, KC_KP_0, KC_KP_DOT, KC_KP_ENTER KC_AUDIO_MUTE, KC_KP_0, KC_KP_DOT, KC_KP_ENTER
), ),
}; };
@ -127,8 +127,8 @@ void encoder_update_user(uint8_t index, bool clockwise) {
} }
// Customized HSV values for layer highlights // Customized HSV values for layer highlights
#define HSV_KMN_PURPLE 191, 255, 120 #define HSV_KMN_PURPLE 191, 255, 180
#define HSV_KMN_ORANGE 10,255, 120 #define HSV_KMN_ORANGE 10,255, 180
const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS( const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_PURPLE} {0, RGBLED_NUM, HSV_KMN_PURPLE}
@ -154,15 +154,15 @@ void keyboard_post_init_user(void) {
} }
layer_state_t layer_state_set_user(layer_state_t state) { layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) { rgblight_set_layer_state(1, layer_state_cmp(state, 1));
case 1: rgblight_set_layer_state(0, layer_state_cmp(state, 0));
register_code(KC_NLCK); switch (get_highest_layer(state)) {
rgblight_set_layer_state(1, layer_state_cmp(state, 1)); case 1:
break; register_code(KC_NLCK);
default: // for any other layers, or the default layer break;
unregister_code(KC_NLCK); case 0:
rgblight_set_layer_state(0, layer_state_cmp(state, 0)); unregister_code(KC_NLCK);
break; break;
} }
return state; return state;
} }

View file

@ -11,13 +11,7 @@
}, },
"TG(1)", "TG(1)",
"Boot", "Boot",
"Vol Up" ""
],
[
"Wheel Left",
"",
"Wheel Right",
"Vol Down"
], ],
[ [
"Left Click", "Left Click",
@ -31,16 +25,22 @@
"Right", "Right",
"GUI + Down" "GUI + Down"
], ],
[
"Esc",
"Wheel Left",
"Wheel Right",
"Accel"
],
[ [
{ {
"a": 5 "a": 5
}, },
"W Up\nW Dn", "W Up\nW Dn\n\n\n\n\nMute",
{ {
"a": 7 "a": 7
}, },
"Esc", "Vol Down",
"Accel Mode", "Vol Up",
"Accel" "Accel Mode"
] ]
] ]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -35,7 +35,7 @@
{ {
"a": 5 "a": 5
}, },
"V Up\nV Dn\n\n\n\n\nEnc", "V Up\nV Dn\n\n\n\n\nMute",
{ {
"a": 7 "a": 7
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
MOUSEKEY_ENABLE = yes

View file

@ -40,20 +40,20 @@ void change_accel(void) {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Base layer (numpad) // Base layer (numpad)
[0] = LAYOUT( [0] = LAYOUT(
TO(1), PROG, KC_AUDIO_VOL_UP, \ TO(1), PROG, KC_NO, \
KC_MS_WH_LEFT, KC_NO, KC_MS_WH_RIGHT, KC_AUDIO_VOL_DOWN, \ KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, LCTL(LALT(KC_TAB)), \
KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, LCTL(LALT(KC_TAB)), \ KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, LGUI(KC_DOWN), \
KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, LGUI(KC_DOWN), \ KC_ESC, KC_MS_WH_LEFT, KC_MS_WH_RIGHT, ACCEL, \
KC_NO, KC_ESC, ACCEL_ADJ, ACCEL \ KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, ACCEL_ADJ \
), ),
// Function layer (numpad) // Function layer (numpad)
[1] = LAYOUT( [1] = LAYOUT(
TO(0), PROG, KC_KP_SLASH, TO(0), PROG, KC_KP_SLASH,
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_ASTERISK, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_ASTERISK,
KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS,
KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS,
KC_NO, KC_KP_0, KC_KP_DOT, KC_KP_ENTER KC_AUDIO_MUTE, KC_KP_0, KC_KP_DOT, KC_KP_ENTER
), ),
}; };
@ -127,8 +127,8 @@ void encoder_update_user(uint8_t index, bool clockwise) {
} }
// Customized HSV values for layer highlights // Customized HSV values for layer highlights
#define HSV_KMN_PURPLE 191, 255, 120 #define HSV_KMN_PURPLE 191, 255, 180
#define HSV_KMN_ORANGE 10,255, 120 #define HSV_KMN_ORANGE 10,255, 180
const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS( const rgblight_segment_t PROGMEM led_underglow_purple[] = RGBLIGHT_LAYER_SEGMENTS(
{0, RGBLED_NUM, HSV_KMN_PURPLE} {0, RGBLED_NUM, HSV_KMN_PURPLE}
@ -154,15 +154,15 @@ void keyboard_post_init_user(void) {
} }
layer_state_t layer_state_set_user(layer_state_t state) { layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) { rgblight_set_layer_state(1, layer_state_cmp(state, 1));
case 1: rgblight_set_layer_state(0, layer_state_cmp(state, 0));
register_code(KC_NLCK); switch (get_highest_layer(state)) {
rgblight_set_layer_state(1, layer_state_cmp(state, 1)); case 1:
break; register_code(KC_NLCK);
default: // for any other layers, or the default layer break;
unregister_code(KC_NLCK); case 0:
rgblight_set_layer_state(0, layer_state_cmp(state, 0)); unregister_code(KC_NLCK);
break; break;
} }
return state; return state;
} }

View file

@ -0,0 +1 @@
MOUSEKEY_ENABLE = yes