forked from tmk/tmk_keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymap_default.c
72 lines (64 loc) · 3.19 KB
/
keymap_default.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include "keymap_common.h"
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Layer 0: Default
KEYMAP(
TAB, Q, W, E, R, T, Y, U, I, O, P, MINS,\
FN5, A, S, D, FN9, G, HOME,PGUP,H, J, K, L, SCLN,QUOT,\
FN7, Z, X, C, V, B, END, PGDN,N, M, COMM,DOT, SLSH,FN8, \
WH_D,WH_U,LGUI,LALT,FN5, FN1, FN3, FN4, FN2, FN6, LEFT,DOWN,UP, RGHT),
// Layer 1: Symbols and numpad
KEYMAP(
NO, FN11,FN12,FN21,FN22,FN23, FN15,7, 8, 9, FN24,BSPC,\
TRNS,FN13,FN14,FN19,FN20,BSLS,FN10,NO, SLSH,4, 5, 6, MINS,FN25,\
TRNS,FN16,FN17,LBRC,RBRC,FN26,GRV, NO, FN18,1, 2, 3, EQL, TRNS,\
NO, NO, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,0, COMM,DOT, ENT, NO),
// Layer 2: Navigation and F keys
KEYMAP(
NO, PGUP,HOME,UP, END, NO, NO, WBAK,MS_U,WFWD,WH_U,NO, \
TRNS,PGDN,LEFT,DOWN,RGHT,NO, NO, NO, NO, MS_L,MS_D,MS_R,WH_D,NO, \
TRNS,F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,\
NO, NO, TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,BTN1,BTN3,BTN2,PAUS,NO, NO),
// Layer 3: Apps
KEYMAP(
NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
NO, NO, NO, NO, TRNS,NO, NO, NO, NO, FN27,FN28,FN29,FN30,FN31,\
NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, \
NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO),
};
// Maximum of 32 function actions
const uint16_t PROGMEM fn_actions[] = {
// Layer switching and mods
[1] = ACTION_LAYER_TAP_KEY(1, KC_BSPACE),
[2] = ACTION_LAYER_TAP_KEY(1, KC_SPACE),
[3] = ACTION_LAYER_TAP_KEY(2, KC_DELETE),
[4] = ACTION_LAYER_TAP_KEY(2, KC_ENTER),
[5] = ACTION_MODS_TAP_KEY(MOD_LCTL, KC_ESCAPE),
[6] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_TAB),
[7] = ACTION_MODS_ONESHOT(MOD_LSFT),
[8] = ACTION_MODS_ONESHOT(MOD_RSFT),
[9] = ACTION_LAYER_TAP_KEY(3, KC_F),
// Symbols
[10] = ACTION_MODS_KEY(MOD_LSFT, KC_GRAVE), // ~
[11] = ACTION_MODS_KEY(MOD_LSFT, KC_1), // !
[12] = ACTION_MODS_KEY(MOD_LSFT, KC_2), // @
[13] = ACTION_MODS_KEY(MOD_LSFT, KC_3), // #
[14] = ACTION_MODS_KEY(MOD_LSFT, KC_4), // $
[15] = ACTION_MODS_KEY(MOD_LSFT, KC_5), // %
[16] = ACTION_MODS_KEY(MOD_LSFT, KC_6), // ^
[17] = ACTION_MODS_KEY(MOD_LSFT, KC_7), // &
[18] = ACTION_MODS_KEY(MOD_LSFT, KC_8), // *
[19] = ACTION_MODS_KEY(MOD_LSFT, KC_9), // (
[20] = ACTION_MODS_KEY(MOD_LSFT, KC_0), // )
[21] = ACTION_MODS_KEY(MOD_LSFT, KC_LBRACKET), // {
[22] = ACTION_MODS_KEY(MOD_LSFT, KC_RBRACKET), // }
[23] = ACTION_MODS_KEY(MOD_LSFT, KC_BSLASH), // |
[24] = ACTION_MODS_KEY(MOD_LSFT, KC_EQUAL), // +
[25] = ACTION_MODS_KEY(MOD_LSFT, KC_QUOTE), // "
[26] = ACTION_MODS_KEY(MOD_LSFT, KC_MINUS), // _
// Apps
[27] = ACTION_MODS_KEY(MOD_LGUI, KC_1),
[28] = ACTION_MODS_KEY(MOD_LGUI, KC_2),
[29] = ACTION_MODS_KEY(MOD_LGUI, KC_3),
[30] = ACTION_MODS_KEY(MOD_LGUI, KC_4),
[31] = ACTION_MODS_KEY(MOD_LGUI, KC_5),
};