2013-02-12 08:08:51 +00:00
|
|
|
static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/*
|
|
|
|
* Poker Layer
|
|
|
|
*/
|
|
|
|
/* Layer x000: Poker Default Layer
|
|
|
|
* ,-----------------------------------------------------------.
|
|
|
|
* | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \|
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift |
|
|
|
|
* |-----------------------------------------------------------|
|
|
|
|
* |Ctrl|Gui |Alt | Space |Fn |Gui |App |Ctrl|
|
|
|
|
* `-----------------------------------------------------------'
|
|
|
|
*/
|
|
|
|
KEYMAP_ANSI(
|
|
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
|
|
|
|
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
|
2013-02-15 06:24:50 +00:00
|
|
|
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
|
2013-02-12 08:08:51 +00:00
|
|
|
LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \
|
2013-02-15 17:58:19 +00:00
|
|
|
LCTL,LGUI,LALT, SPC, FN2, RGUI,APP, RCTL),
|
|
|
|
/* Layer x001: Poker with Arrow */
|
2013-02-12 08:08:51 +00:00
|
|
|
KEYMAP_ANSI(
|
|
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
|
|
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TR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
|
|
TRNS,TRNS,TRNS, TRNS, FN2, LEFT,DOWN,RGHT),
|
|
|
|
/*
|
|
|
|
* Poker Momentary Fn Layer
|
|
|
|
*/
|
|
|
|
/* Layer x100: Poker Default + Fn'd */
|
2013-02-12 08:08:51 +00:00
|
|
|
KEYMAP_ANSI(
|
|
|
|
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
2013-02-15 06:24:50 +00:00
|
|
|
CAPS,FN1, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
2013-02-15 17:58:19 +00:00
|
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN3, END, TRNS, \
|
|
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
|
|
|
|
TRNS,TRNS,TRNS, FN0, FN2, TRNS,TRNS,TRNS),
|
|
|
|
/* Layer x101: Poker with Arrow + Fn'd */
|
2013-02-12 08:08:51 +00:00
|
|
|
KEYMAP_ANSI(
|
2013-02-15 17:58:19 +00:00
|
|
|
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
2013-02-15 06:24:50 +00:00
|
|
|
CAPS,FN1, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
2013-02-15 17:58:19 +00:00
|
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN3, END, TRNS, \
|
|
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
|
|
|
|
TRNS,TRNS,TRNS, FN0, FN2, HOME,PGDN,END),
|
|
|
|
/* Layer x110: Poker with Esc + Fn'd */
|
2013-02-12 08:08:51 +00:00
|
|
|
KEYMAP_ANSI(
|
|
|
|
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
2013-02-15 06:24:50 +00:00
|
|
|
CAPS,FN1, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
2013-02-15 17:58:19 +00:00
|
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN3, END, TRNS, \
|
2013-02-12 08:08:51 +00:00
|
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
|
2013-02-15 17:58:19 +00:00
|
|
|
TRNS,TRNS,TRNS, FN0, FN2, TRNS,TRNS,TRNS),
|
|
|
|
/* Layer x111: Poker with Arrow and Esc + Fn'd */
|
|
|
|
KEYMAP_ANSI(
|
|
|
|
GRV, F9, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
|
|
|
|
CAPS,FN1, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, TRNS, \
|
|
|
|
TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN3, END, TRNS, \
|
|
|
|
TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, PGUP, \
|
|
|
|
TRNS,TRNS,TRNS, FN0, FN2, HOME,PGDN,END),
|
2013-02-14 06:34:33 +00:00
|
|
|
/* colemak */
|
|
|
|
[8] = KEYMAP_ANSI(
|
|
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, 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, ENT, \
|
|
|
|
LSFT,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RSFT, \
|
|
|
|
LCTL,LGUI,LALT, SPC, FN2, RGUI,APP, RCTL),
|
|
|
|
/* dvorak */
|
|
|
|
KEYMAP_ANSI(
|
|
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,BSPC, \
|
|
|
|
TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, \
|
2013-02-15 06:24:50 +00:00
|
|
|
LCTL,A, O, E, U, I, D, H, T, N, S, MINS, ENT, \
|
2013-02-14 06:34:33 +00:00
|
|
|
LSFT,SCLN,Q, J, K, X, B, M, W, V, Z, RSFT, \
|
|
|
|
LCTL,LGUI,LALT, SPC, FN2, RGUI,APP, RCTL),
|
|
|
|
/* workman */
|
|
|
|
KEYMAP_ANSI(
|
|
|
|
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, 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, ENT, \
|
|
|
|
LSFT,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RSFT, \
|
|
|
|
LCTL,LGUI,LALT, SPC, FN2, RGUI,APP, RCTL),
|
2013-02-12 08:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Fn action definition
|
|
|
|
*/
|
|
|
|
static const uint16_t PROGMEM fn_actions[] = {
|
|
|
|
/* Poker Layout */
|
2013-02-15 17:58:19 +00:00
|
|
|
[0] = ACTION_LAYER_BIT_TOGGLE(1), // FN0 Poker Arrow toggle(Space)
|
|
|
|
[1] = ACTION_LAYER_BIT_TOGGLE(2), // FN1 Poker Esc toggle(Q)
|
|
|
|
[2] = ACTION_LAYER_BIT(4), // FN2 Poker Fn
|
|
|
|
[3] = ACTION_RMODS_KEY(MOD_BIT(KC_RCTL)|MOD_BIT(KC_RSFT), KC_ESC), // FN3 Task(RControl,RShift+Esc)
|
2013-02-12 08:08:51 +00:00
|
|
|
};
|
|
|
|
|