add super key
[tmk_keyboard.git] / keyboard / tv44 / keymap_tv44.c
CommitLineData
c646efd8 1#include "actionmap.h"
2#include "action_code.h"
3#include "actionmap_common.h"
4a638676 4
f5d88f82 5// action key names are for german layout!
6#define AC_____ AC_NO
c646efd8 7#define AC_FN1 ACTION_LAYER_MOMENTARY(1)
f5d88f82 8#define AC_FN2 ACTION_LAYER_TAP_KEY(1, KC_ENT) //make Fn2 send Return when nothing else pressed\\ ACTION_LAYER_MOMENTARY(2)
c646efd8 9#define AC_FN3 ACTION_LAYER_MOMENTARY(3)
10#define AC_DEG ACTION_MODS_KEY(MOD_LSFT, KC_GRV)
11#define AC_EXCL ACTION_MODS_KEY(MOD_LSFT, KC_1)
12#define AC_DQOT ACTION_MODS_KEY(MOD_LSFT, KC_2)
13#define AC_SECT ACTION_MODS_KEY(MOD_LSFT, KC_3)
14#define AC_DLLR ACTION_MODS_KEY(MOD_LSFT, KC_4)
15#define AC_PERC ACTION_MODS_KEY(MOD_LSFT, KC_5)
16#define AC_AMP ACTION_MODS_KEY(MOD_LSFT, KC_6)
17#define AC_SLAS ACTION_MODS_KEY(MOD_LSFT, KC_7)
18#define AC_LPAR ACTION_MODS_KEY(MOD_LSFT, KC_8)
19#define AC_RPAR ACTION_MODS_KEY(MOD_LSFT, KC_9)
20#define AC_EQUL ACTION_MODS_KEY(MOD_LSFT, KC_0)
21#define AC_QEST ACTION_MODS_KEY(MOD_LSFT, KC_MINS)
22#define AC_GRAV ACTION_MODS_KEY(MOD_LSFT, KC_EQL)
23#define AC_SUP2 ACTION_MODS_KEY(MOD_RALT, KC_2)
24#define AC_SUP3 ACTION_MODS_KEY(MOD_RALT, KC_3)
25#define AC_LBRA ACTION_MODS_KEY(MOD_RALT, KC_7)
26#define AC_LBRK ACTION_MODS_KEY(MOD_RALT, KC_8)
27#define AC_RBRK ACTION_MODS_KEY(MOD_RALT, KC_9)
28#define AC_RBRA ACTION_MODS_KEY(MOD_RALT, KC_0)
29#define AC_BKSL ACTION_MODS_KEY(MOD_RALT, KC_MINS)
30#define AC_ASTK ACTION_MODS_KEY(MOD_LSFT, KC_RBRC)
31#define AC_SQOT ACTION_MODS_KEY(MOD_LSFT, KC_NUHS)
32#define AC_AT ACTION_MODS_KEY(MOD_RALT, KC_Q)
33#define AC_EUR ACTION_MODS_KEY(MOD_RALT, KC_E)
34#define AC_TILD ACTION_MODS_KEY(MOD_RALT, KC_RBRC)
35#define AC_RANG ACTION_MODS_KEY(MOD_LSFT, KC_NUBS)
36#define AC_BAR ACTION_MODS_KEY(MOD_RALT, KC_NUBS)
37#define AC_MU ACTION_MODS_KEY(MOD_RALT, KC_M)
38#define AC_CIRC AC_GRV
39#define AC_SS AC_MINS
40#define AC_PLUS AC_RBRC
41#define AC_HASH AC_NUHS
42#define AC_LANG AC_NUBS
43#define AC_DASH AC_SLSH
44#define AC_WORD ACTION_MODS_KEY(MOD_LCTL, KC_RIGHT)
45#define AC_BACK ACTION_MODS_KEY(MOD_LCTL, KC_LEFT)
1c87bc9a 46#define AC_AUML ACTION_MODS_KEY(MOD_LSFT, KC_QUOT)
47#define AC_OUML ACTION_MODS_KEY(MOD_LSFT, KC_SCLN)
48#define AC_UUML ACTION_MODS_KEY(MOD_LSFT, KC_LBRC)
c646efd8 49#define AC_aUML AC_QUOT
50#define AC_oUML AC_SCLN
51#define AC_uUML AC_LBRC
52
53
54const action_t PROGMEM actionmaps[][MATRIX_ROWS][MATRIX_COLS] = {
5dd11e82
J
55 /* Layer: Base Layer
56 * ,-------------------------------------------------.
885c13e4 57 * |Esc| Q| W| E| R| T| Z| U| I| O| P| BSp |
5dd11e82 58 * |-------------------------------------------------|
1c87bc9a 59 * |Ctrl| A| S| D| F| G| H| J| K| L| /|Fn2 |
5dd11e82 60 * |-------------------------------------------------|
885c13e4 61 * |Shift| Y| X| C| V| B| N| M| ,| .| -|Sft|
5dd11e82 62 * |-------------------------------------------------|
f5d88f82 63 * |Alt | Tab |Fn1 |Enter| Space |Fn1 |Super| Fn3 |
5dd11e82
J
64 * `-------------------------------------------------'
65 */
c646efd8 66 ACTIONMAP(
885c13e4 67 ESC , Q, W, E, R, T, Y, U, I, O, P, BSPC, \
c646efd8 68 LCTRL, A, S, D, F, G, H, J, K, L,SLAS, FN2, \
69 LSHIFT, Z, X, C, V, B, N, M,COMM, DOT,DASH, RSHIFT, \
f5d88f82 70 LALT, TAB, FN1 , ENT, SPC, FN1, LGUI, FN3 ),
5dd11e82 71
1c87bc9a 72 /* Layer: Movement Layer (wrd=ctrl-right, bck=crtl-left) ~~TOGGLE~~MOMENTARY
5dd11e82 73 * ,-------------------------------------------------.
1c87bc9a 74 * |Esc| |wrd| |END| | |PUp| |Hom| | Del |
c646efd8 75 * |-------------------------------------------------|
885c13e4 76 * | | | |PDn| | |Lft| Up| Dn| Rt| | |
5dd11e82 77 * |-------------------------------------------------|
1c87bc9a 78 * | |PSc| | | |bck| |PAU|NUM|CAP|SCR| |
79 * |-------------------------------------------------|
f5d88f82 80 * | | | | | | | | |
5dd11e82 81 * `-------------------------------------------------'
c646efd8 82 */
83 ACTIONMAP(
84 ESC ,____,WORD,____, END,____,____,PGUP,____,HOME,____, DEL, \
1aa40b41 85 TRNS ,____,____,PGDN,____,____,LEFT,DOWN, UP,RGHT,____, TRNS, \
1c87bc9a 86 TRNS ,PSCR,____,____,____,BACK,____,PAUS,NLCK,CAPS,SLCK,TRNS, \
4a638676 87 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
5dd11e82 88
1c87bc9a 89 /* Layer: Numbers and ASCII-Symbols Layer MOMENTARY+~~TOGGLE~~
5dd11e82 90 * ,-------------------------------------------------.
c646efd8 91 * | ^| !| "| '| $| %| &| /| (| )| =| ? |
5dd11e82 92 * |-------------------------------------------------|
1c87bc9a 93 * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0|Fn2 |
5dd11e82 94 * |-------------------------------------------------|
4a638676 95 * | #| <| || >| +| *| {| [| ]| }| \| ~|
5dd11e82
J
96 * |-------------------------------------------------|
97 * | | | | | | | | |
98 * `-------------------------------------------------'
99 */
c646efd8 100 ACTIONMAP(
101 CIRC,EXCL,DQOT,SQOT,DLLR,PERC, AMP,SLAS,LPAR,RPAR,EQUL, QEST, \
102 GRAV , 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, TRNS, \
103 HASH ,LANG, BAR,RANG,PLUS,ASTK,LBRA,LBRK,RBRK,RBRA,BKSL,TILD, \
5dd11e82
J
104 TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS ),
105
885c13e4 106 /* Layer: Layer for Function keys and Unicode Symbols MOMENTARY
5dd11e82 107 * ,-------------------------------------------------.
885c13e4 108 * | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11| F12|
5dd11e82 109 * |-------------------------------------------------|
c646efd8 110 * | | | | | | | | | Ä| Ö| Ü|Entr|
111 * |-------------------------------------------------|
f5d88f82 112 * | @| €| §| °| ²| ³| µ| ä| ö| ü| ß| |
5dd11e82 113 * |-------------------------------------------------|
885c13e4 114 * | | | |Space| Enter | | | |
5dd11e82
J
115 * `-------------------------------------------------'
116 */
c646efd8 117 ACTIONMAP(
4a638676 118 F1 , F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, \
c646efd8 119 TRNS ,____,____,____,____,____,____,____,AUML,OUML,UUML, ENT, \
f5d88f82 120 AT , EUR,SECT, DEG,SUP2,SUP3, MU,aUML,oUML,uUML, SS,TRNS, \
4a638676 121 TRNS, TRNS, TRNS, SPC, ENT, TRNS, TRNS, TRNS ),
5dd11e82 122};
Imprint / Impressum