2018-06-12 21:44:24 +00:00
|
|
|
#include QMK_KEYBOARD_H
|
2016-07-09 08:20:58 +00:00
|
|
|
|
|
|
|
#define _BL 0
|
|
|
|
#define _AL 1
|
|
|
|
#define _FL 2
|
|
|
|
#define _UL 3
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/*
|
2016-11-19 16:37:12 +00:00
|
|
|
* Base layer, pretty standard ANSI layout.
|
2016-07-09 08:20:58 +00:00
|
|
|
* ,-----------------------------------------------------------.
|
2016-11-19 17:19:21 +00:00
|
|
|
* |F(12)| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
|
2016-07-09 08:20:58 +00:00
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Caps/Fn| A| S| D| F| G| H| J| K| L| ;| '|Return |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Ctrl|Gui |Alt | Space |Alt |Fn |Menu|Ctrl|
|
|
|
|
* `-----------------------------------------------------------'
|
|
|
|
*/
|
2018-06-12 21:44:24 +00:00
|
|
|
[_BL] = LAYOUT(
|
2021-07-05 23:08:08 +00:00
|
|
|
KC_GESC,KC_1,KC_2,KC_3,KC_4,KC_5,KC_6,KC_7,KC_8,KC_9,KC_0,KC_MINS,KC_EQL,KC_BSPC, \
|
2018-06-12 21:44:24 +00:00
|
|
|
KC_TAB,KC_Q,KC_W,KC_E,KC_R,KC_T,KC_Y,KC_U,KC_I,KC_O,KC_P,KC_LBRC,KC_RBRC,KC_BSLS, \
|
2020-02-29 20:00:00 +00:00
|
|
|
LT(2, KC_CAPS),KC_A,KC_S,KC_D,KC_F,KC_G,KC_H,KC_J,KC_K,KC_L,KC_SCLN,KC_QUOT,KC_NO,KC_ENT, \
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_LSFT,KC_NO,KC_Z,KC_X,KC_C,KC_V,KC_B,KC_N,KC_M,KC_COMM,KC_DOT,KC_SLSH,KC_NO,KC_RSFT, \
|
2019-07-09 22:47:35 +00:00
|
|
|
KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_NO,KC_RALT,MO(2),KC_APP,KC_RCTL),
|
2016-11-19 16:37:12 +00:00
|
|
|
|
|
|
|
/*
|
2016-07-09 08:20:58 +00:00
|
|
|
* Locking arrow keys to WASD for when you need dedicated arrow keys
|
|
|
|
* ,-----------------------------------------------------------.
|
|
|
|
* | | | | | | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | |Up | | | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | |Left|Down|Rght| | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | | | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | | | | | | | |
|
|
|
|
* `-----------------------------------------------------------'
|
|
|
|
*/
|
2018-06-12 21:44:24 +00:00
|
|
|
[_AL] = LAYOUT(
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_TRNS,KC_UP,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_LEFT,KC_DOWN,KC_RGHT,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS),
|
2016-07-09 08:20:58 +00:00
|
|
|
|
|
|
|
|
2016-11-19 16:37:12 +00:00
|
|
|
/*
|
2016-07-09 08:20:58 +00:00
|
|
|
* Primary function layer, mostly the same as the traditional Pok3r layout.
|
|
|
|
* ,-------------------------------------------------------------.
|
|
|
|
* |`~ | F1| F2| F3| F4| F5| F6| F7| F8| F9| F10| F11| F12|DEL |
|
|
|
|
* |-------------------------------------------------------------|
|
|
|
|
* | |_AL| | | | |Calc|PgUp|Up|PgDn|Ptscn|Srlck|Pause| |
|
|
|
|
* |-------------------------------------------------------------|
|
|
|
|
* | | | | | | |Home|Left|Down|Rght|Ins| | |
|
|
|
|
* |-------------------------------------------------------------|
|
|
|
|
* | |_UL| | | | | | | | | | |
|
|
|
|
* |-------------------------------------------------------------|
|
|
|
|
* | | | | | | | | |
|
|
|
|
* `-------------------------------------------------------------'
|
|
|
|
*/
|
2018-06-12 21:44:24 +00:00
|
|
|
[_FL] = LAYOUT(
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_GRAVE,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_DELETE, \
|
2020-05-30 20:14:59 +00:00
|
|
|
KC_TRNS,TG(1),KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_CALC,KC_PGUP,KC_UP,KC_PGDN,KC_PSCR,KC_SLCK,KC_PAUS,KC_TRNS, \
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_TRNS,KC_MUTE,KC__VOLDOWN,KC__VOLUP,KC_TRNS,KC_TRNS,KC_HOME,KC_LEFT,KC_DOWN,KC_RGHT,KC_INS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
2020-05-30 20:14:59 +00:00
|
|
|
KC_TRNS,KC_TRNS,TG(3),KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_END,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS),
|
2016-11-19 16:37:12 +00:00
|
|
|
|
|
|
|
/*
|
2016-07-09 08:20:58 +00:00
|
|
|
* Locking layer for controlling the underglow.
|
2016-11-19 16:37:12 +00:00
|
|
|
*
|
2016-07-09 08:20:58 +00:00
|
|
|
* ,-----------------------------------------------------------.
|
|
|
|
* | | | | | | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | | | | | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | |On|Mode| | | | | | | | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | |Hue+|Hue-|Sat+|Sat-|Val+|Val-| | | | |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* | | | | | | | | |
|
|
|
|
* `-----------------------------------------------------------'
|
|
|
|
*/
|
2018-06-12 21:44:24 +00:00
|
|
|
[_UL] = LAYOUT(
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
2021-07-05 23:08:08 +00:00
|
|
|
KC_TRNS,RGB_TOG,RGB_MOD,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,RGB_HUI,RGB_HUD,RGB_SAI,RGB_SAD,RGB_VAI,RGB_VAD,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, \
|
2016-11-19 17:19:21 +00:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS),
|
2016-07-09 08:20:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void matrix_scan_user(void) {
|
|
|
|
|
|
|
|
// Layer LED indicators
|
|
|
|
// ESC led on when in function layer, WASD cluster leds enabled when on arrow cluster
|
|
|
|
uint32_t layer = layer_state;
|
|
|
|
if (layer & (1<<1)) {
|
|
|
|
gh60_wasd_leds_on();
|
|
|
|
} else {
|
|
|
|
gh60_wasd_leds_off();
|
|
|
|
}
|
|
|
|
|
|
|
|
if (layer & (1<<2)) {
|
|
|
|
gh60_esc_led_on();
|
|
|
|
} else {
|
|
|
|
gh60_esc_led_off();
|
|
|
|
}
|
|
|
|
};
|