added caravan config
[tmk_keyboard.git] / keyboard / caravan / keymap_poker.c
1 #include "keymap_common.h"
2
3 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 /* 0: qwerty */
5 KEYMAP_ANSI(
6 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
7 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
8 CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, \
9 LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, \
10 LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
11 /* 1: colemak */
12 KEYMAP_ANSI(
13 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
14 TAB, Q, W, F, P, G, J, L, U, Y, SCLN,LBRC,RBRC,BSLS, \
15 BSPC,A, R, S, T, D, H, N, E, I, O, QUOT, ENT, \
16 LSFT,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RSFT, \
17 LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
18 /* 2: dvorak */
19 KEYMAP_ANSI(
20 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,BSPC, \
21 TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, \
22 CAPS,A, O, E, U, I, D, H, T, N, S, MINS, ENT, \
23 LSFT,SCLN,Q, J, K, X, B, M, W, V, Z, RSFT, \
24 LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
25 /* 3: workman */
26 KEYMAP_ANSI(
27 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, \
28 TAB, Q, D, R, W, B, J, F, U, P, SCLN,LBRC,RBRC,BSLS, \
29 BSPC,A, S, H, T, G, Y, N, E, O, I, QUOT, ENT, \
30 LSFT,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RSFT, \
31 LCTL,LGUI,LALT, SPC, FN0, RGUI,APP, RCTL),
32 /* 4: Poker with Arrow */
33 KEYMAP_ANSI(
34 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
35 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
36 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
37 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, UP, \
38 TRNS,TRNS,TRNS, TRNS, TRNS,LEFT,DOWN,RGHT),
39 /* 5: Poker with Esc */
40 KEYMAP_ANSI(
41 ESC, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
42 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
43 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
44 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
45 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
46 /* 6: Poker Fn
47 * ,-----------------------------------------------------------.
48 * |Esc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| |
49 * |-----------------------------------------------------------|
50 * | |FnQ| Up| | | | | | |Cal| |Hom|Ins|FnL |
51 * |-----------------------------------------------------------|
52 * | |Lef|Dow|Rig| | |Psc|Slk|Pau| |Tsk|End| |
53 * |-----------------------------------------------------------|
54 * | |Del| |Web|Mut|VoU|VoD| |PgU|PgD|Del| |
55 * |-----------------------------------------------------------|
56 * | | | | FnS | | | | |
57 * `-----------------------------------------------------------'
58 * Fn: to Fn overlay
59 * FnL: to Layout selector overaly
60 * FnQ: toggle Esc overlay
61 * FnS: toggle Arrow overlay
62 */
63 KEYMAP_ANSI(
64 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, \
65 TRNS,FN2, UP, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,CALC,TRNS,HOME,INS, FN4, \
66 TRNS,LEFT,DOWN,RGHT,TRNS,TRNS,PSCR,SLCK,PAUS,TRNS,FN3, END, TRNS, \
67 TRNS,DEL, TRNS,WHOM,MUTE,VOLU,VOLD,TRNS,PGUP,PGDN,DEL, TRNS, \
68 TRNS,TRNS,TRNS, FN1, TRNS,TRNS,TRNS,TRNS),
69 /* 7: Layout selector
70 * ,-----------------------------------------------------------.
71 * | Lq| Lc| Ld| Lw| | | | | | | | | | |
72 * |-----------------------------------------------------------|
73 * | |Lq |Lw | | | | | | | | | | | |
74 * |-----------------------------------------------------------|
75 * | | | |Ld | | | | | | | | | |
76 * |-----------------------------------------------------------|
77 * | | | |Lc | | | | | | | | |
78 * |-----------------------------------------------------------|
79 * | | | | | | | | |
80 * `-----------------------------------------------------------'
81 * Lq: set Qwerty layout
82 * Lc: set Colemak layout
83 * Ld: set Dvorak layout
84 * Lw: set Workman layout
85 */
86 KEYMAP_ANSI(
87 FN5, FN6, FN7, FN8, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
88 TRNS,FN5, FN8, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
89 TRNS,TRNS,TRNS,FN7, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
90 TRNS,TRNS,TRNS,FN6, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, \
91 TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS),
92 };
93 const uint16_t PROGMEM fn_actions[] = {
94 /* Poker Layout */
95 [0] = ACTION_LAYER_MOMENTARY(6), // to Fn overlay
96 [1] = ACTION_LAYER_TOGGLE(4), // toggle arrow overlay
97 [2] = ACTION_LAYER_TOGGLE(5), // toggle Esc overlay
98 [3] = ACTION_MODS_KEY(MOD_RCTL|MOD_RSFT, KC_ESC), // Task(RControl,RShift+Esc)
99 [4] = ACTION_LAYER_MOMENTARY(7), // to Layout selector
100 [5] = ACTION_DEFAULT_LAYER_SET(0), // set qwerty layout
101 [6] = ACTION_DEFAULT_LAYER_SET(1), // set colemak layout
102 [7] = ACTION_DEFAULT_LAYER_SET(2), // set dvorak layout
103 [8] = ACTION_DEFAULT_LAYER_SET(3), // set workman layout
104 };
Imprint / Impressum