forked from tmk/tmk_keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keymap_pabile.c
121 lines (112 loc) · 7.52 KB
/
keymap_pabile.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include "keymap_common.h"
// increase readability
#define _______ TRNS
#define XXXXXXX NO
// function keys
#define LT_1SPC KC_FN0, // momentary layer tap 1, Space
#define LT_2CAP KC_FN1, // momentary layer tap 2, CAPS
#define KC_FN3 KC_FN2, // momentary layer 3
#define KC_FN4 KC_FN3, // momentary layer 4
const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] PROGMEM = {
/* 0: qwerty
* ,-----------------------------------------------------------.
* | ` | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| #|Bsp|
* |-----------------------------------------------------------|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \ |
* |-----------------------------------------------------------|
* |Caps | A| S| D| F| G| H| J| K| L| ;| '|Enter |
* |-----------------------------------------------------------|
* |Shft| \| Z| X| C| V| B| N| M| ,| .| /|Shift |NO |
* |-----------------------------------------------------------'
* |Ctrl|Gui |Alt | Space_Fn |App |Alt |FN3 |Ctrl|
* `-----------------------------------------------------------'
*/
[0] = KEYMAP( \
KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,KC_NUHS,KC_BSPC, \
KC_TAB , KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \
LT_2CAP , KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, \
KC_LSFT,KC_NUBS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT,XXXXXXX, \
KC_LCTL ,KC_LGUI ,KC_LALT , LT_1SPC ,KC_RALT ,KC_APP ,KC_FN3 ,KC_RCTL ),
/* LT_1SPC: Arrow and F-Row
* ,-----------------------------------------------------------.
* |ESC| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| #|Bsp|
* |-----------------------------------------------------------|
* | | | | | | | |PUp| Up|PDw| | | | |
* |-----------------------------------------------------------|
* | | | | | | |Hom| Le| Dw| Ri|End| |Enter |
* |-----------------------------------------------------------|
* | | |PSC|SLC|PAU| | | | | V-| V+|MUTE| | |
* |-----------------------------------------------------------'
* |Ctrl|Gui |Alt | Space |App |Alt |FN3 |Ctrl|
* `-----------------------------------------------------------'
*/
[1] = KEYMAP( \
KC_ESC , KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, \
_______ ,_______,_______,_______,_______,_______,_______,KC_PGUP,KC_UP,KC_PGDN,_______,_______, _______, _______, \
_______ ,_______,_______,_______,_______,_______,KC_HOME,KC_LEFT,KC_DOWN,KC_RIGHT,KC_END,_______,KC_PENT, \
_______,_______,KC_PSCR,KC_SLCK,KC_PAUS,_______,_______,_______,_______,KC_VOLD,KC_VOLU,KC_MUTE, _______,_______, \
_______,_______,_______, _______, _______,_______,_______,_______),
/* LT_2CAP: NUMPAD
* ,-----------------------------------------------------------.
* | | | | | | | | P7| P8| P9| P0| | | | |
* |-----------------------------------------------------------|
* | |MB1|MU |MB2|SU | | | P4| P5| P6| | | | |
* |-----------------------------------------------------------|
* | |ML |MD |MR |SD | | | P1| P2| P3| | |P_Enter |
* |-----------------------------------------------------------|
* | | | | | | | |NUM| P0| | | | | |
* |-----------------------------------------------------------'
* | | | | | | | | |
* `-----------------------------------------------------------'
*/
[2] = KEYMAP( \
_______,_______,_______,_______,_______,_______,_______,KC_P7,KC_P8,KC_P9,KC_P0,_______,_______,_______,_______, \
_______ ,KC_BTN1,KC_MS_U,KC_BTN2,KC_WH_U,_______,_______,KC_P4,KC_P5,KC_P6,_______,_______, _______, _______, \
_______ ,KC_MS_L,KC_MS_D,KC_MS_R,KC_WH_D,_______,_______,KC_P1,KC_P2,KC_P3,_______,_______,KC_PENT, \
_______,_______,_______,_______,_______,_______,_______,_______,KC_P0,_______,_______,_______, _______,_______, \
_______,_______,_______, _______, _______,_______,_______,_______),
/* FN3: Gaming: Regular space and caps
* ,-----------------------------------------------------------.
* |ESC| | | | | | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | | | | | | | | | | | | |
* |-----------------------------------------------------------|
* |CAPS | | | | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | | | | | | | | | | | | |
* |-----------------------------------------------------------'
* | | FN4| | SPACE | | | | |
* `-----------------------------------------------------------'
*/
[3] = KEYMAP( \
KC_ESC,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, \
_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, \
KC_CAPS ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, \
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______, \
_______,KC_FN4,_______, KC_SPC, _______,_______,_______,_______),
/* FN4: Gaming: F Rows while in FN3
* ,-----------------------------------------------------------.
* | ` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| | |
* |-----------------------------------------------------------|
* | | | | | | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | | | | | | | | | | | |
* |-----------------------------------------------------------|
* | | | | | | | | | | | | | | |
* |-----------------------------------------------------------'
* | | FN4 | | | | | | |
* `-----------------------------------------------------------'
*/
[4] = KEYMAP( \
KC_GRV,KC_F1,KC_F2,KC_F3,KC_F4,KC_F5,KC_F6,KC_F7,KC_F8,KC_F9,KC_F10,KC_F11,KC_F12,KC_INS,KC_BSPC, \
_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, \
_______ ,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, \
_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______, \
_______,KC_FN4,_______, _______, _______,_______,_______,_______),
};
const action_t fn_actions[] PROGMEM = {
[0] = ACTION_LAYER_TAP_KEY(1, KC_SPC),
[1] = ACTION_LAYER_TAP_KEY(2, KC_CAPS),
[2] = ACTION_LAYER_MOMENTARY(3),
[3] = ACTION_LAYER_MOMENTARY(4),
};