aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qmk_firmware/keyboards/keebio/nyquist/keymaps/ageha/keymap.c
blob: 48ef15087f9b7bc45adbd38ed197c721fbb0eb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#include QMK_KEYBOARD_H

#define _BASE 0
#define _QWERTY 1
#define _FN 2
#define _MOUSE 3

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* BASE
 * ,------------------------------------------ ------------------------------------------.
 * | Esc  |   1  |   2  |   3  |   4  |   5  | |   6  |   7  |   8  |   9  |   0  |   -  |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * | Tab  |   Q  |   W  |   D  |   V  |   G  | |   X  |   T  |   I  |   O  |   U  | Bksp |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * | Ctrl |   M  |   S  |   E  |   F  |   R  | |   H  |   J  |   K  |   L  |   '  | Enter|
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * | Shift|   Z  |   B  |   C  |   A  |   Y  | |   P  |   N  |   ,  |   .  |   /  | Shift|
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * | FN   | Alt  | Super| Ctrl |    Space    | |    Space    | Ctrl | Super| Alt  | FN   |
 * `------------------------------------------ ------------------------------------------'
 */
[_BASE] = LAYOUT(
	KC_ESC,  KC_1,    KC_2,    KC_3,    KC_4,   KC_5,      KC_6,   KC_7,   KC_8,    KC_9,    KC_0,    KC_MINS,
	KC_TAB,  KC_Q,    KC_W,    KC_D,    KC_V,   KC_G,      KC_X,   KC_T,   KC_I,    KC_O,    KC_U,    KC_BSPC,
	KC_LCTL, KC_M,    KC_S,    KC_E,    KC_F,   KC_R,      KC_H,   KC_J,   KC_K,    KC_L,    KC_QUOT, KC_ENT,
	KC_LSFT, KC_Z,    KC_B,    KC_C,    KC_A,   KC_Y,      KC_P,   KC_N,   KC_COMM, KC_DOT,  KC_SLSH, KC_RSFT,
	MO(_FN), KC_LALT, KC_LGUI, KC_LCTL, KC_SPC, KC_SPC,    KC_SPC, KC_SPC, KC_RCTL, KC_RGUI, KC_RALT, MO(_FN)
),

/* QWERTY
 * ,------------------------------------------ ------------------------------------------.
 * |      |      |      |      |      |      | |      |      |      |      |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |   Q  |   W  |   E  |   R  |   T  | |   Y  |   U  |   I  |   O  |   P  |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |   A  |   S  |   D  |   F  |   G  | |   H  |   J  |   K  |   L  |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |   Z  |   X  |   C  |   V  |   B  | |   N  |   M  |      |      |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      |      |             | |             |      |      |      |      |
 * `------------------------------------------ ------------------------------------------'
 */
[_QWERTY] = LAYOUT(
	_______, _______, _______, _______, _______, _______,    _______, _______, _______, _______, _______, _______,
	_______, KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,       KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,    _______,
	_______, KC_A,    KC_S,    KC_D,    KC_F,    KC_G,       KC_H,    KC_J,    KC_K,    KC_L,    _______, _______,
	_______, KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,       KC_N,    KC_M,    _______, _______, _______, _______,
	_______, _______, _______, _______, _______, _______,    _______, _______, _______, _______, _______, _______
),

/* FN
 * ,------------------------------------------ ------------------------------------------.
 * |      |  F1  |  F2  |  F3  |  F4  |  F5  | |  F6  |  F7  |  F8  |  F9  | F10  |   `  |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * | Caps | F11  | F12  |      |      | ScLk | | PScr |   =  |   \  |   [  |   ]  | Del  |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      | VlDn | VlUp | Mute |Eject |      | | Left | Down | Up   |Right |   ;  |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      |      |      |      | | Home | PgDn | PgUp | End  |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      |      |             | |             |      |      |      |      |
 * `------------------------------------------ ------------------------------------------'
 */
[_FN] = LAYOUT(
	RGB_TOG, KC_F1,             KC_F2,           KC_F3,      KC_F4,          KC_F5,      KC_F6,   KC_F7,        KC_F8,      KC_F9,    KC_F10,  KC_GRV,
	KC_CAPS, KC_F11,            KC_F12,          _______,    _______,        KC_SCRL,    KC_PSCR, KC_EQL,       KC_BSLS,    KC_LBRC,  KC_RBRC, KC_DEL,
	_______, KC_KB_VOLUME_DOWN, KC_KB_VOLUME_UP, KC_KB_MUTE, KC_MEDIA_EJECT, _______,    KC_LEFT, KC_DOWN,      KC_UP,      KC_RIGHT, KC_SCLN, _______,
	_______, _______,           _______,         _______,    _______,        _______,    KC_HOME, KC_PAGE_DOWN, KC_PAGE_UP, KC_END,   _______, _______,
	_______, _______,           _______,         _______,    _______,        _______,    _______, _______,      _______,    _______,  _______, _______
),

/* MOUSE
 * ,------------------------------------------ ------------------------------------------.
 * |      |      |      |      |      |      | |      |      |      |      |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      | B3   |      |      | |      |      | B1   |      |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      | ScUp | ScDn |      | | MsL  | MsD  | MsU  | MsR  |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      |      | B3   |      | |      | B2   |      |      |      |      |
 * |------+------+------+------+------+------+ +------+------+------+------+------+------|
 * |      |      |      |      |             | |             |      |      |      |      |
 * `------------------------------------------ ------------------------------------------'
 */
[_MOUSE] = LAYOUT(
	_______, _______, _______, _______, _______, _______,    _______, _______, _______, _______, _______, _______,
	_______, _______, _______, KC_BTN3, _______, _______,    _______, _______, KC_BTN1, _______, _______, _______,
	_______, _______, _______, KC_WH_U, KC_WH_D, _______,    KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______,
	_______, _______, _______, _______, KC_BTN3, _______,    _______, KC_BTN2, _______, _______, _______, _______,
	_______, _______, _______, _______, _______, _______,    _______, _______, _______, _______, _______, _______
),

};


const uint16_t PROGMEM combo_qwerty[] = { KC_LCTL, KC_RCTL, COMBO_END };
const uint16_t PROGMEM combo_fn[] = { KC_LALT, KC_RALT, COMBO_END };
const uint16_t PROGMEM combo_mouse[] = { KC_LSFT, KC_RSFT, COMBO_END };

combo_t key_combos[] = {
	COMBO(combo_qwerty, TG(_QWERTY)),
	COMBO(combo_fn, TG(_FN)),
	COMBO(combo_mouse, TG(_MOUSE)),
};
uint16_t COMBO_LEN = sizeof(key_combos) / sizeof(combo_t);


void keyboard_post_init_user(void) {
	rgblight_sethsv(148, 56, 71);
	rgblight_mode(RGBLIGHT_MODE_BREATHING);
	rgblight_disable();
}