]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - converter/ps2_usb/keymap_spacefn.c
core: Fix bootloader for 128KB flash
[max/tmk_keyboard.git] / converter / ps2_usb / keymap_spacefn.c
1 /*
2  * SpaceFN layout
3  * http://geekhack.org/index.php?topic=51069.0
4  */
5 #include "keymap_common.h"
6
7
8 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
9     /* 0: default
10      * ,---.   ,---------------. ,---------------. ,---------------. ,-----------.     ,-----------.
11      * |Esc|   |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|     |Pwr|Slp|Wak|
12      * `---'   `---------------' `---------------' `---------------' `-----------'     `-----------'
13      * ,-----------------------------------------------------------. ,-----------. ,---------------.
14      * |  `|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|Backspa| |Ins|Hom|PgU| |NmL|  /|  *|  -|
15      * |-----------------------------------------------------------| |-----------| |---------------|
16      * |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|    \| |Del|End|PgD| |  7|  8|  9|   |
17      * |-----------------------------------------------------------| `-----------' |-----------|  +|
18      * |CapsLo|  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '|Return  |               |  4|  5|  6|   |
19      * |-----------------------------------------------------------|     ,---.     |---------------|
20      * |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  ,|  /|Shift     |     |Up |     |  1|  2|  3|   |
21      * |-----------------------------------------------------------| ,-----------. |-----------|Ent|
22      * |Ctrl |Gui |Alt |         Space         |Alt |Gui |Menu|Ctrl| |Lef|Dow|Rig| |      0|  .|   |
23      * `-----------------------------------------------------------' `-----------' `---------------'
24      */
25     KEYMAP(
26     ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,
27     ESC, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC,     INS, HOME,PGUP,    NLCK,PSLS,PAST,PMNS,
28     TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS,     DEL, END, PGDN,    P7,  P8,  P9,
29     CAPS,A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,                         P4,  P5,  P6,  PPLS,
30     LSFT,Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,          RSFT,          UP,           P1,  P2,  P3,
31     LCTL,LGUI,LALT,          FN0,                     RALT,RGUI,APP, RCTL,     LEFT,DOWN,RGHT,    P0,       PDOT,PENT
32     ),
33
34     /* 1: SpaceFN
35      * ,-----------------------------------------------------------.
36      * |`  | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|Delete |
37      * |-----------------------------------------------------------|
38      * |     |   |   |Esc|   |   |   |Hom|Up |End|Psc|Slk|Pau|Ins  |
39      * |-----------------------------------------------------------|
40      * |      |   |   |   |   |   |PgU|Lef|Dow|Rig|   |   |        |
41      * |-----------------------------------------------------------|
42      * |        |   |   |   |   |Spc|PgD|`  |~  |   |Men|          |
43      * |-----------------------------------------------------------|
44      * |    |    |    |                        |    |    |    |    |
45      * `-----------------------------------------------------------'
46      */
47     KEYMAP(
48     ESC, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12,           PSCR,SLCK,BRK,
49     GRV, F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, DEL,      INS, HOME,PGUP,    NLCK,PSLS,PAST,PMNS,
50     TRNS,TRNS,TRNS,ESC, TRNS,TRNS,TRNS,HOME,UP,  END, PSCR,SLCK,PAUS,INS,      DEL, END, PGDN,    P7,  P8,  P9,
51     TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,PGUP,LEFT,DOWN,RGHT,TRNS,TRNS,     TRNS,                        P4,  P5,  P6,  PPLS,
52     TRNS,TRNS,TRNS,TRNS,TRNS,SPC, PGDN,GRV, FN1, TRNS,APP,           TRNS,          UP,           P1,  P2,  P3,
53     TRNS,TRNS,TRNS,          TRNS,                    TRNS,TRNS,TRNS,TRNS,     LEFT,DOWN,RGHT,    P0,       PDOT,PENT
54     ),
55 };
56
57 const action_t PROGMEM fn_actions[] = {
58     [0] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
59     [1] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),    // tilde
60 };
61