]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - keyboard/gh60/keymap_spacefn.c
8724b56d55570084a8e1c355eb5721671855c407
[max/tmk_keyboard.git] / keyboard / gh60 / keymap_spacefn.c
1 #include "keymap_common.h"
2
3 /*
4  * SpaceFN
5  * http://geekhack.org/index.php?topic=51069.0
6  */
7 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8     /* Keymap 0: Default Layer
9      * ,-----------------------------------------------------------.
10      * |Esc|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|Backsp |
11      * |-----------------------------------------------------------|
12      * |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|    \|
13      * |-----------------------------------------------------------|
14      * |Caps  |  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '|Return  |
15      * |-----------------------------------------------------------|
16      * |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  .|  /|Shift     |
17      * |-----------------------------------------------------------|
18      * |Ctrl|Gui |Alt |      Space             |Alt |Gui |App |Ctrl|
19      * `-----------------------------------------------------------'
20      */
21     KEYMAP_ANSI(
22         ESC, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC, \
23         TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS, \
24         CAPS,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,  \
25         LSFT,Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,          RSFT, \
26         LCTL,LGUI,LALT,          FN0,                     RALT,RGUI,APP, RCTL),
27
28     /* Overlay 1: SpaceFN
29      * ,-----------------------------------------------------------.
30      * |`  | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
31      * |-----------------------------------------------------------|
32      * |     |   |   |   |   |   |   |Hom|Up |End|Psc|Slk|Pau|Ins  |
33      * |-----------------------------------------------------------|
34      * |      |   |   |   |   |   |PgU|Lef|Dow|Rig|   |   |        |
35      * |-----------------------------------------------------------|
36      * |        |   |   |   |   |Spc|PgD|`  |~  |   |   |          |
37      * |-----------------------------------------------------------|
38      * |    |    |    |                        |    |    |    |    |
39      * `-----------------------------------------------------------'
40      */
41     KEYMAP_ANSI(
42         GRV, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, DEL,  \
43         TRNS,TRNS,TRNS,ESC, TRNS,TRNS,TRNS,HOME,UP,  END, PSCR,SLCK,PAUS,INS,  \
44         TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS,     TRNS, \
45         TRNS,TRNS,TRNS,TRNS,TRNS,SPC, PGDN,GRV, FN1, TRNS,TRNS,          TRNS, \
46         TRNS,TRNS,TRNS,          TRNS,                    TRNS,TRNS,TRNS,TRNS),
47 };
48
49 /*
50  * Fn action definition
51  */
52 const action_t PROGMEM fn_actions[] = {
53     [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
54     [1] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),    // tilde
55 };