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