2022-05-21 23:04:13 -04:00
|
|
|
/*
|
|
|
|
* ____ Valerie's _ __ __
|
|
|
|
* / __ \________ ____ ____ (_)____ / //_/__ __ ______ ___ ____ _____
|
|
|
|
* / /_/ / ___/ _ \/ __ \/ __ \/ / ___/ / ,< / _ \/ / / / __ `__ \/ __ `/ __ \
|
|
|
|
* / ____/ / / __/ /_/ / / / / / /__ / /| / __/ /_/ / / / / / / /_/ / /_/ /
|
|
|
|
* /_/ /_/ \___/\____/_/ /_/_/\___/ /_/ |_\___/\__, /_/ /_/ /_/\__,_/ .___/
|
|
|
|
* /____/ /_/
|
|
|
|
*/
|
2022-05-20 20:55:41 -04:00
|
|
|
#include QMK_KEYBOARD_H
|
2022-05-21 22:07:38 -04:00
|
|
|
#define LCG(kc) ( QK_LCTL | QK_LGUI | (kc) )
|
2022-05-20 20:55:41 -04:00
|
|
|
|
2022-05-21 15:47:35 -04:00
|
|
|
typedef enum {
|
|
|
|
BASE,
|
|
|
|
ALT,
|
|
|
|
FN
|
|
|
|
} layers;
|
|
|
|
|
2022-05-21 22:07:38 -04:00
|
|
|
#define TAPPING_TERM 200
|
|
|
|
typedef enum {
|
|
|
|
TD_QUIT
|
|
|
|
} tap_dance;
|
|
|
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
2022-05-25 10:22:35 -04:00
|
|
|
[TD_QUIT] = ACTION_TAP_DANCE_DOUBLE(LSG(KC_ESC), LSG(KC_Q))
|
2022-05-21 22:07:38 -04:00
|
|
|
};
|
|
|
|
|
2022-05-20 20:55:41 -04:00
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2022-05-21 15:47:35 -04:00
|
|
|
[BASE] = LAYOUT_ortho_5x12(
|
2022-05-21 22:42:19 -04:00
|
|
|
KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
|
|
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
2022-05-21 23:04:13 -04:00
|
|
|
MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
2022-05-21 22:42:19 -04:00
|
|
|
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
|
|
|
|
KC_NO, TG(1), KC_LALT, KC_LGUI, KC_SPC, KC_LSFT, KC_BSPC, KC_ENT, KC_RALT, KC_RCTL, KC_APP, OSL(2)
|
2022-05-20 20:55:41 -04:00
|
|
|
),
|
2022-05-21 15:47:35 -04:00
|
|
|
[ALT] = LAYOUT_ortho_5x12(
|
2022-05-21 22:42:19 -04:00
|
|
|
KC_ESC, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
|
|
|
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LPRN, KC_RPRN, KC_LBRC, KC_RBRC, KC_PIPE,
|
|
|
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_COLN, KC_DQUO,
|
2022-06-14 22:44:09 -04:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LT, KC_GT, KC_TRNS, KC_DEL,
|
2022-05-21 22:42:19 -04:00
|
|
|
TG(0), KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO
|
2022-05-20 20:55:41 -04:00
|
|
|
),
|
2022-05-21 15:47:35 -04:00
|
|
|
[FN] = LAYOUT_ortho_5x12(
|
2022-05-21 22:42:19 -04:00
|
|
|
TD(TD_QUIT),LGUI(KC_ESC), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
2022-05-21 23:04:13 -04:00
|
|
|
RGB_TOG, LCG(KC_LEFT), LGUI(KC_UP), LCG(KC_RGHT), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F11,
|
2022-05-23 01:42:09 -04:00
|
|
|
RGB_MOD, LGUI(KC_LEFT), LGUI(KC_DOWN), LGUI(KC_RGHT), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_F12,
|
2022-05-21 22:42:19 -04:00
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_END, KC_NO, KC_NO,
|
2022-06-17 10:10:02 -04:00
|
|
|
KC_PGDN, KC_PGUP, KC_TRNS, KC_TRNS, KC_MPLY, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS,LSG(KC_S), KC_NO
|
2022-05-21 12:17:52 -04:00
|
|
|
)
|
2022-05-20 20:55:41 -04:00
|
|
|
};
|
|
|
|
|
2022-05-21 14:08:42 -04:00
|
|
|
#ifdef AUDIO_ENABLE
|
2022-05-23 13:18:59 -04:00
|
|
|
float tone_alt[][2] = SONG(TONE_ALT);
|
2022-05-21 23:04:13 -04:00
|
|
|
float tone_fn[][2] = SONG(TONE_FN);
|
2022-05-21 14:08:42 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void keyboard_post_init_user(void) {
|
|
|
|
rgblight_disable_noeeprom();
|
2022-05-21 12:17:52 -04:00
|
|
|
}
|
2022-05-21 22:42:19 -04:00
|
|
|
|
2022-05-21 23:04:13 -04:00
|
|
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
|
|
|
uint8_t layer = get_highest_layer(state);
|
|
|
|
switch(layer) {
|
2022-05-23 13:18:59 -04:00
|
|
|
case ALT:
|
|
|
|
#ifdef TONE_ALT
|
|
|
|
PLAY_SONG(tone_alt);
|
|
|
|
#endif
|
|
|
|
break;
|
2022-05-21 23:04:13 -04:00
|
|
|
case FN:
|
|
|
|
#ifdef TONE_FN
|
|
|
|
PLAY_SONG(tone_fn);
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return state;
|
|
|
|
}
|