1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/s65_x/keymaps/kelorean/keymap.c

151 lines
20 KiB
C
Raw Normal View History

#include "s65_x.h"
#define _BL 0
#define _CM 1
#define _DV 2
#define _AL 3
#define _FL 4
#define _UL 5
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: Main layer, swapped alt and GUI for Mac
*
* ESC 1 2 3 4 5 6 7 8 9 0 - = BKSPCDEL
*
* TAB Q W E R T Y U I O P [ ] \ END
*
* BKSPC A S D F G H J K L ; ' ENTERPG_UP
*
* LSHFT Z X C V B N M , . / RSHFT UP PG_DN
*
* LCTRLL_ALTL_GUI SPC R_ALT FN0 APP LEFT DOWN RIGHT
*
*/
/* 0: ANSI qwerty */
[_BL] = ANSI_KEYMAP(
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, 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_LBRC, KC_RBRC, KC_BSLS, KC_END, \
F(4), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, \
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
/* 1: Colemak layer
*
* ESC 1 2 3 4 5 6 7 8 9 0 - = BKSPCDEL
*
* TAB Q W F P G J L U Y ; [ ] \ END
*
* BKSPC A R S T D H N E I O ' ENTERPG_UP
*
* LSHFT Z X C V B K M , . / RSHFT UP PG_DN
*
* LCTRLL_ALTL_GUI SPC R_ALT FN0 APP LEFT DOWN RIGHT
*
*/
/* 1: Colemak layer */
[_CM] = ANSI_KEYMAP(
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, KC_DEL, \
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, \
F(4), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_ENT, KC_PGUP, \
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, \
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
/* 2: Dvorak layer
*
* ESC 1 2 3 4 5 6 7 8 9 0 [ ] BKSPCDEL
*
* TAB ' , . P Y F G C R L / = \ END
*
* BKSPC A O E U I D H T N S - ENTERPG_UP
*
* LSHFT ; Q J K X B M W V Z RSHFT UP PG_DN
*
* LCTRLL_ALTL_GUI SPC R_ALT FN0 APP LEFT DOWN RIGHT
*
*/
/* 2: Dvorak layer */
[_DV] = ANSI_KEYMAP(
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_LBRC, KC_RBRC, KC_BSPC, KC_DEL, \
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, KC_EQL, KC_BSLS, KC_END, \
F(4), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, KC_ENT, KC_PGUP, \
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT, KC_UP, KC_PGDN, \
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
/* 3: Locking arrow keys to WASD for when you need dedicated arrow keys
*
*
*
* Up
*
* Left Down Right
*
*
*
*
*
*/
/* 3: Locking arrow keys to WASD*/
[_AL] = ANSI_KEYMAP(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
/* 4: Fn layer
*
* GRAVE F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12
*
* _AL Up PGUP PGDWNPRTSCSCLCKPAUSE
*
* Left Down Right Left Down Up Right
*
* _UL _CM _DV Home End Vol+
*
* Mute Vol- Play
*
*/
[_FL] = ANSI_KEYMAP(
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, _______, _______, \
_______, F(3), KC_UP, _______, _______, _______, _______, _______, KC_PGUP, KC_PGDN, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, \
_______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______, _______, \
_______, F(5), _______, F(1), F(2), _______, _______, _______, KC_HOME, KC_END, _______, _______, KC_VOLU, _______, \
_______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_MPLY),
/* 5: Locking layer for controlling the underglow
*
*
*
* BL OnBL St
*
* On Mode
*
* Hue+ Hue- Sat+ Sat- Val+ Val-
*
*
*
*/
[_UL] = ANSI_KEYMAP(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, BL_TOGG, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
_______, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, \
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
};
const uint16_t PROGMEM fn_actions[] = {
[0] = ACTION_LAYER_MOMENTARY(_FL), // Momentary Fn overlay
[1] = ACTION_LAYER_TOGGLE(_CM), //Toggle Colemak Layer overlay
[2] = ACTION_LAYER_TOGGLE(_DV), // Toggle Dvorak Layer overlay
[3] = ACTION_LAYER_TOGGLE(_AL), // Toggle Arrow Layer overlay
[4] = ACTION_LAYER_TAP_KEY(_FL, KC_BSPC), // Tap to Backspace and hold to activate function layer
[5] = ACTION_LAYER_TOGGLE(_UL), // Toggle Underglow Layer overlay
};