2 Copyright 2012 Jun Wako <wakojun@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "keymap_common.h"
21 const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
22 /* 0: plain Qwerty without layer switching
23 * ,---------------. ,---------------. ,---------------.
24 * |F13|F14|F15|F16| |F17|F18|F19|F20| |F21|F22|F23|F24|
25 * ,---. |---------------| |---------------| |---------------| ,-----------. ,---------------. ,-------.
26 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |VDn|VUp|Mut|Pwr| | Help |
27 * `---' `---------------' `---------------' `---------------' `-----------' `---------------' `-------'
28 * ,-----------------------------------------------------------. ,-----------. ,---------------. ,-------.
29 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bsp| |Ins|Hom|PgU| |NmL| /| *| -| |Stp|Agn|
30 * |-----------------------------------------------------------| |-----------| |---------------| |-------|
31 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| +| |Mnu|Und|
32 * |-----------------------------------------------------------| `-----------' |---------------| |-------|
33 * |CapsL | A| S| D| F| G| H| J| K| L| ;| :| #|Retn| | 4| 5| 6|KP,| |Sel|Cpy|
34 * |-----------------------------------------------------------| ,---. |---------------| |-------|
35 * |Shft| <| Z| X| C| V| B| N| M| ,| ,| /| RO|Shift | |Up | | 1| 2| 3|KP=| |Exe|Pst|
36 * |-----------------------------------------------------------| ,-----------. |---------------| |-------|
37 * |Ctl|Gui|Alt|MHEN|HNJ| Space |H/E|HENK|KANA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0 | .|Ent| |Fnd|Cut|
38 * `-----------------------------------------------------------' `-----------' `---------------' `-------'
41 F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
42 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
43 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
44 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
45 CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
46 LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
47 LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
51 const action_t fn_actions[] PROGMEM = {};
60 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
61 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
62 * `---' `---------------' `---------------' `---------------' `-----------'
63 * ,-----------------------------------------------------------. ,-----------. ,---------------.
64 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
65 * |-----------------------------------------------------------| |-----------| |---------------|
66 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| +|
67 * |-----------------------------------------------------------| `-----------' |-----------| |
68 * |CapsL | A| S| D| F| G| H| J| K| L| ;| '| Return| | 4| 5| 6| |
69 * |-----------------------------------------------------------| ,---. |---------------|
70 * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
71 * |-----------------------------------------------------------| ,-----------. |-----------| |
72 * |Ctl|Gui|Alt| Space |Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0| .|Ent|
73 * `-----------------------------------------------------------' `-----------' `---------------'
76 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK,
77 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
78 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, DEL, END, PGDN, P7, P8, P9,
79 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, PPLS,
80 LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3,
81 LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT
85 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
86 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
87 * `---' `---------------' `---------------' `---------------' `-----------'
88 * ,-----------------------------------------------------------. ,-----------. ,---------------.
89 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| ^| Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
90 * |-----------------------------------------------------------| |-----------| |---------------|
91 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Retn| |Del|End|PgD| | 7| 8| 9| +|
92 * |------------------------------------------------------` | `-----------' |-----------| |
93 * |CapsL | A| S| D| F| G| H| J| K| L| ;| '| #| | | 4| 5| 6| |
94 * |-----------------------------------------------------------| ,---. |---------------|
95 * |Shft|\ | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3|Ent|
96 * |-----------------------------------------------------------| ,-----------. |-----------| |
97 * |Ctl|Gui|Alt| Space |HNK|KNA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0| .| |
98 * `-----------------------------------------------------------' `-----------' `---------------'
101 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK,
102 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
103 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,ENT, DEL, END, PGDN, P7, P8, P9, PPLS,
104 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NUHS, P4, P5, P6,
105 LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3, PENT,
106 LCTL,LGUI,LALT, SPC, RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT
110 * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
111 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
112 * `---' `---------------' `---------------' `---------------' `-----------'
113 * ,-----------------------------------------------------------. ,-----------. ,---------------.
114 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| ^|JPY|Bsp| |Ins|Hom|PgU| |NmL| /| *| -|
115 * |-----------------------------------------------------------| |-----------| |---------------|
116 * |Tab | Q| W| E| R| T| Y| U| I| O| P| @| [| Retn| |Del|End|PgD| | 7| 8| 9| +|
117 * |------------------------------------------------------` | `-----------' |-----------| |
118 * |CapsL | A| S| D| F| G| H| J| K| L| ;| :| ]| | | 4| 5| 6| |
119 * |-----------------------------------------------------------| ,---. |---------------|
120 * |Shft | Z| X| C| V| B| N| M| ,| ,| /| RO|Shift | |Up | | 1| 2| 3|Ent|
121 * |-----------------------------------------------------------| ,-----------. |-----------| |
122 * |Ctl|Gui|Alt|MHEN| Space |HENK|KNA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0| .| |
123 * `-----------------------------------------------------------' `-----------' `---------------'
126 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,BRK,
127 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JPY, BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS,
128 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, ENT, DEL, END, PGDN, P7, P8, P9, PPLS,
129 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,NUHS, P4, P5, P6,
130 LSFT,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PENT,
131 LCTL,LGUI,LALT,MHEN, SPC, HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT
134 /* Colemak http://colemak.com
135 * ,-----------------------------------------------------------.
136 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa|
137 * |-----------------------------------------------------------|
138 * |Tab | Q| W| F| P| G| J| L| U| Y| ;| [| ]| \|
139 * |-----------------------------------------------------------|
140 * |BackSp| A| R| S| T| D| H| N| E| I| O| '|Return |
141 * |-----------------------------------------------------------|
142 * |Shift | Z| X| C| V| B| K| M| ,| ,| /|Shift |
143 * |-----------------------------------------------------------|
144 * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
145 * `----------------------------------------------------------'
148 F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
149 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
150 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
151 TAB, Q, W, F, P, G, J, L, U, Y, SCLN,LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
152 BSPC,A, R, S, T, D, H, N, E, I, O, QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
153 LSFT,NUBS,Z, X, C, V, B, K, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
154 LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
157 /* Dvorak http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard
158 * ,-----------------------------------------------------------.
159 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| [| ]|Backspa|
160 * |-----------------------------------------------------------|
161 * |Tab | '| ,| .| P| Y| F| G| C| R| L| /| =| \|
162 * |-----------------------------------------------------------|
163 * |BackSp| A| O| E| U| I| D| H| T| N| S| -|Return |
164 * |-----------------------------------------------------------|
165 * |Shift | ;| Q| J| K| X| B| M| Wl V| Z|Shift |
166 * |-----------------------------------------------------------|
167 * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
168 * `-----------------------------------------------------------'
171 F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
172 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
173 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, LBRC,RBRC,JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
174 TAB, QUOT,COMM,DOT, P, Y, F, G, C, R, L, SLSH,EQL, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
175 CAPS,A, O, E, U, I, D, H, T, N, S, MINS, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
176 LSFT,NUBS,SCLN,Q, J, K, X, B, M, W, V, Z, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
177 LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
180 /* Workman http://viralintrospection.wordpress.com/2010/09/06/a-different-philosophy-in-designing-keyboard-layouts/
181 * ,-----------------------------------------------------------.
182 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa|
183 * |-----------------------------------------------------------|
184 * |Tab | Q| D| R| W| B| J| F| U| P| ;| [| ]| \|
185 * |-----------------------------------------------------------|
186 * |CapsLo| A| S| H| T| G| Y| N| E| O| I| '|Return |
187 * |-----------------------------------------------------------|
188 * |Shift | Z| X| M| C| V| K| L| ,| ,| /|Shift |
189 * |-----------------------------------------------------------|
190 * |Ctrl |Gui |Alt | Space |Alt |Gui |Menu|Ctrl|
191 * `-----------------------------------------------------------'
194 F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
195 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
196 GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
197 TAB, Q, D, R, W, B, J, F, U, P, SCLN,LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
198 CAPS,A, S, H, T, G, Y, N, E, O, I, QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
199 LSFT,NUBS,Z, X, M, C, V, K, L, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
200 LCTL,LGUI,LALT,MHEN,HANJ, SPC, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
206 * http://geekhack.org/index.php?topic=51069.0
208 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
210 * ,---------------. ,---------------. ,---------------.
211 * |F13|F14|F15|F16| |F17|F18|F19|F20| |F21|F22|F23|F24|
212 * ,---. |---------------| |---------------| |---------------| ,-----------. ,---------------. ,-------.
213 * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |VDn|VUp|Mut|Pwr| | Help |
214 * `---' `---------------' `---------------' `---------------' `-----------' `---------------' `-------'
215 * ,-----------------------------------------------------------. ,-----------. ,---------------. ,-------.
216 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bsp| |Ins|Hom|PgU| |NmL| /| *| -| |Stp|Agn|
217 * |-----------------------------------------------------------| |-----------| |---------------| |-------|
218 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ | |Del|End|PgD| | 7| 8| 9| +| |Mnu|Und|
219 * |-----------------------------------------------------------| `-----------' |---------------| |-------|
220 * |LCtrl | A| S| D| F| G| H| J| K| L| ;| :| #|Retn| | 4| 5| 6|KP,| |Sel|Cpy|
221 * |-----------------------------------------------------------| ,---. |---------------| |-------|
222 * |Shft| <| Z| X| C| V| B| N| M| ,| ,| /| RO|Shift | |Up | | 1| 2| 3|KP=| |Exe|Pst|
223 * |-----------------------------------------------------------| ,-----------. |---------------| |-------|
224 * |Ctl|Gui|Alt|MHEN|HNJ| Space |H/E|HENK|KANA|Alt|Gui|App|Ctl| |Lef|Dow|Rig| | 0 | .|Ent| |Fnd|Cut|
225 * `-----------------------------------------------------------' `-----------' `---------------' `-------'
228 F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24,
229 ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, VOLD,VOLU,MUTE,PWR, HELP,
230 ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, STOP,AGIN,
231 TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, MENU,UNDO,
232 LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, P4, P5, P6, PCMM, SLCT,COPY,
233 LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, UP, P1, P2, P3, PEQL, EXEC,PSTE,
234 LCTL,LGUI,LALT,MHEN,HANJ, FN0, HAEN,HENK,KANA,RALT,RGUI,APP, RCTL, LEFT,DOWN,RGHT, P0, PDOT,PENT, FIND,CUT
238 * ,-----------------------------------------------------------.
239 * |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
240 * |-----------------------------------------------------------|
241 * |Caps | | |Esc| | | |Hom|Up |End|Psc|Slk|Pau|Ins |
242 * |-----------------------------------------------------------|
243 * | | | | | | |PgU|Lef|Dow|Rig| | | |
244 * |-----------------------------------------------------------|
245 * | | | | | |Spc|PgD|` |~ | |Men| |
246 * |-----------------------------------------------------------|
248 * `-----------------------------------------------------------'
251 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,
252 TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,
253 GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,DEL, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,
254 CAPS,TRNS,TRNS,ESC, TRNS,TRNS,TRNS,HOME,UP, END, PSCR,SLCK,PAUS, INS, TRNS,TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,
255 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS, TRNS,TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,
256 TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,SPC, PGDN,GRV, FN1, TRNS,APP, TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,
257 TRNS,TRNS,TRNS,TRNS,TRNS, TRNS, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, TRNS,TRNS,TRNS, TRNS, TRNS,TRNS, TRNS,TRNS
261 const action_t PROGMEM fn_actions[] = {
262 [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
263 [1] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV), // tilde