qmk-keychron-q3-colemak-dh/keyboards/sentraq/s60_x/keymaps/poker/keymap.c

182 lines
23 KiB
C
Raw Normal View History

#include QMK_KEYBOARD_H
#define KC_MO6 MO(6)
#define KC_MO7 MO(7)
2020-05-30 22:14:59 +02:00
#define KC_DF0 DF(0)
#define KC_DF1 DF(1)
#define KC_DF2 DF(2)
#define KC_DF3 DF(3)
#define KC_TG4 TG(4)
#define KC_TG5 TG(5)
#define KC_CSES C(S(KC_ESC))
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: qwerty
GRAVE 1 2 3 4 5 6 7 8 9 0 - = BKSPC
TAB Q W E R T Y U I O P [ ] \
CAPSL A S D F G H J K L ; ' ENTER
LSHFT Z X C V B N M , . / RSHFT
LCTRLL_WINL_ALT SPC Fn0 R_WIN APP RCTRL
*/
LAYOUT_kc(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, NO, BSPC, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, BSLS, \
CAPS, A, S, D, F, G, H, J, K, L, SCLN, QUOT, NO, ENT, \
LSFT, NO, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, RSFT, NO, \
LCTL, LGUI, LALT, SPC, MO6, RGUI, APP, RCTL),
/* 1: colemak
GRAVE 1 2 3 4 5 6 7 8 9 0 - = BKSPC
TAB Q W F P G J L U Y ; [ ] \
BKSPC A R S T D H N E I O ' ENTER
LSHFT Z X C V B K M , . / RSHFT
LCTRLL_WINL_ALT SPC Fn0 R_WIN APP RCTRL
*/
LAYOUT_kc(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, NO, BSPC, \
TAB, Q, W, F, P, G, J, L, U, Y, SCLN, LBRC, RBRC, BSLS, \
BSPC, A, R, S, T, D, H, N, E, I, O, QUOT, NO, ENT, \
LSFT, NO, Z, X, C, V, B, K, M, COMM, DOT, SLSH, NO, RSFT, NO, \
LCTL, LGUI, LALT, SPC, MO6, RGUI, APP, RCTL),
/* 2: dvorak
GRAVE 1 2 3 4 5 6 7 8 9 0 [ ] BKSPC
TAB ' , . P Y F G C R L / = \
CAPSL A O E U I D H T N S - ENTER
LSHFT ; Q J K X B M W V Z RSHFT
LCTRLL_WINL_ALT SPC Fn0 R_WIN APP RCTRL
*/
LAYOUT_kc(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC, RBRC, NO, BSPC, \
TAB, QUOT, COMM, DOT, P, Y, F, G, C, R, L, SLSH, EQL, BSLS, \
CAPS, A, O, E, U, I, D, H, T, N, S, MINS, NO, ENT, \
LSFT, NO, SCLN, Q, J, K, X, B, M, W, V, Z, NO, RSFT, NO, \
LCTL, LGUI, LALT, SPC, MO6, RGUI, APP, RCTL),
/* 3: workman
GRAVE 1 2 3 4 5 6 7 8 9 0 - = BKSPC
TAB Q D E W B J F U P ; [ ] \
BKSPC A S H T G Y N E O I ' ENTER
LSHFT Z X M C V K L , . / RSHFT
LCTRLL_WINL_ALT SPC Fn0 R_WIN APP RCTRL
*/
LAYOUT_kc(
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, NO, BSPC, \
TAB, Q, D, R, W, B, J, F, U, P, SCLN, LBRC, RBRC, BSLS, \
BSPC, A, S, H, T, G, Y, N, E, O, I, QUOT, NO, ENT, \
LSFT, NO, Z, X, M, C, V, K, L, COMM, DOT, SLSH, NO, RSFT, NO, \
LCTL, LGUI, LALT, SPC, MO6, RGUI, APP, RCTL),
/* 4: Poker with Arrow
Up
Left Down Right
*/
LAYOUT_kc(
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, UP, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, LEFT, DOWN, RGHT),
/* 5: Poker with Esc
ESC
*/
LAYOUT_kc(
ESC, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
/* 6: Poker Fn
Esc F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12
FnQ Up Cal Home Ins FnL
Left Down Right Psc Slk Pause Tsk End
Del Web Mute VoU VoD PgUp PgDwn Del
FnS
Fn: to Fn overlay
FnL: to Layout selector overaly
FnQ: toggle Esc overlay
FnS: toggle Arrow overlay
*/
LAYOUT_kc(
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, TRNS, \
2020-05-30 22:14:59 +02:00
TRNS, TG5, UP, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CALC, TRNS, HOME, INS, MO7, \
TRNS, LEFT, DOWN, RGHT, TRNS, TRNS, PSCR, SLCK, PAUS, TRNS, CSES, END, TRNS, TRNS, \
TRNS, TRNS, DEL, TRNS, WHOM, MUTE, VOLU, VOLD, TRNS, PGUP, PGDN, DEL, TRNS, TRNS, TRNS, \
2020-05-30 22:14:59 +02:00
TRNS, TRNS, TRNS, TG4, TRNS, TRNS, TRNS, TRNS),
/* 7: Layout selector
Lq Lc Ld Lw
Lq Lw
Ld
Lc
Lq: set Qwerty layout
Lc: set Colemak layout
Ld: set Dvorak layout
Lw: set Workman layout
*/
LAYOUT_kc(
2020-05-30 22:14:59 +02:00
DF0, DF1, DF2, DF3, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, DF0, DF3, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, DF2, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, DF1, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, \
TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS),
};