-
Notifications
You must be signed in to change notification settings - Fork 0
/
via_spanish.h
240 lines (210 loc) · 6.37 KB
/
via_spanish.h
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
// #pragma once
#define ES_NO &none
#define ES_TRNS &trans
// layers
#define LAY_1 &mo 1
#define LAY_2 &mo 2
#define LAY_3 &mo 3
// CONTROL CMD/WINDOWS SHIFT ALT/META/OPTION
#define ES_LCTL &kp LCTRL // left control
#define ES_RCTL &kp RCTRL // right control
#define ES_WIN &kp LGUI // WIN
#define ES_CMENU &kp K_CMENU // WIN
#define ES_LALT &kp LALT
#define ES_ALGR &kp RALT
#define ES_LSFT &kp LSHFT
#define ES_RSFT &kp RSHFT
// ARROWS
#define ES_UP &kp UP
#define ES_LEFT &kp LEFT
#define ES_DOWN &kp DOWN
#define ES_RIGHT &kp RIGHT
// SPACE CAPS TAB ENTER BACKSPACE ESCAPE DELETE
#define ES_SPC &kp SPACE // Space
#define ES_CAPS &kp CAPS // Caps Lock
#define ES_BSPC &kp BSPC // Backspace
#define ES_ENT &kp RET // Enter
#define ES_TAB &kp TAB // Tab
#define ES_DEL &kp DEL // Delete
// PAGE UP PAGE DOWN HOME END
#define ES_PGUP &kp PG_UP
#define ES_PGDN &kp PG_DN
#define ES_HOME &kp HOME
#define ES_END &kp END
#define ES_INS &kp INS
#define ES_PRINT &kp PSCRN
#define ES_PAUSE &kp PAUSE_BREAK
// FUNCTION KEYS
#define ES_ESC &kp ESC
#define ES_F1 &kp F1
#define ES_F2 &kp F2
#define ES_F3 &kp F3
#define ES_F4 &kp F4
#define ES_F5 &kp F5
#define ES_F6 &kp F6
#define ES_F7 &kp F7
#define ES_F8 &kp F8
#define ES_F9 &kp F9
#define ES_F10 &kp F10
#define ES_F11 &kp F11
#define ES_F12 &kp F12
// SOUND / VOLUME
#define ES_VOL_UP &kp C_VOLUME_UP
#define ES_VOL_DN &kp C_VOLUME_DOWN
#define ES_MUTE &kp C_MUTE
#define ES_NEXT &kp C_NEXT
#define ES_PREV &kp C_PREVIOUS
#define ES_STOP &kp C_STOP
#define ES_PLAY &kp C_PLAY_PAUSE
#define ES_SHUFFLE &kp C_SHUFFLE
// DISPLAY BRIGHTNESS
#define ES_BRI_UP &kp C_BRI_UP
#define ES_BRI_DN &kp C_BRI_DN
// LANGUAGE
#define ES_LANG1 &kp LANG1
#define ES_LANG2 &kp LANG2
#define ES_LANG3 &kp LANG3
#define ES_LANG4 &kp LANG4
#define ES_LANG5 &kp LANG5
#define ES_LANG6 &kp LANG6
#define ES_LANG7 &kp LANG7
#define ES_LANG8 &kp LANG8
#define ES_LANG9 &kp LANG9
// Row 1
#define ES_CIRC &kp GRAVE // º
#define ES_1 &kp N1 // 1
#define ES_2 &kp N2 // 2
#define ES_3 &kp N3 // 3
#define ES_4 &kp N4 // 4
#define ES_5 &kp N5 // 5
#define ES_6 &kp N6 // 6
#define ES_7 &kp N7 // 7
#define ES_8 &kp N8 // 8
#define ES_9 &kp N9 // 9
#define ES_0 &kp N0 // 0
#define ES_APOS &kp MINUS // ' -
#define ES_EXCL &kp EQUAL // ¡ =
// Row 2
#define ES_Q &kp Q // Q
#define ES_W &kp W // W
#define ES_E &kp E // E
#define ES_R &kp R // R
#define ES_T &kp T // T
#define ES_Y &kp Y // Y
#define ES_U &kp U // U
#define ES_I &kp I // I
#define ES_O &kp O // O
#define ES_P &kp P // P
#define ES_ACEN_R &kp LBKT // ` [
#define ES_PLUS &kp RBKT // + ]
// Row 3
#define ES_A &kp A // A
#define ES_S &kp S // S
#define ES_D &kp D // D
#define ES_F &kp F // F
#define ES_G &kp G // G
#define ES_H &kp H // H
#define ES_J &kp J // J
#define ES_K &kp K // K
#define ES_L &kp L // L
#define ES_EGNE &kp SEMICOLON // Ñ ;
#define ES_ACEN &kp APOS // ´ '
#define ES_CERI &kp HASH // Ç bslh
// Row 4
#define ES_Z &kp Z // Z
#define ES_X &kp X // X
#define ES_C &kp C // C
#define ES_V &kp V // V
#define ES_B &kp B // B
#define ES_N &kp N // N
#define ES_M &kp M // M
#define ES_COMM &kp COMMA // , ,
#define ES_DOT &kp DOT // . .
#define ES_DASH &kp SLASH // - /
// symbols shift
#define ES_EXCL_R &kp LS(N1) // !
#define ES_DOUB_APO &kp LS(N2) // "
#define ES_DOT_MID &kp LS(N3) // ·
#define ES_DOLL &kp LS(N4) // $
#define ES_PERC &kp LS(N5) // %
#define ES_AMPER &kp LS(N6) // &
#define ES_SLASH &kp LS(N7) // /
#define ES_PAREN &kp LS(N8) // (
#define ES_PAREN_R &kp LS(N9) // )
#define ES_EQUAL &kp LS(N0) // =
#define ES_QUEST_R &kp LS(MINUS) // ?
#define ES_QUEST &kp LS(EQUAL) // ¿
#define ES_ACEN_CIR &kp LS(LBKT) // ^
#define ES_STAR &kp LS(RBKT) // *
// symbol r alt
#define ES_BSLSH &kp RA(GRAVE) // BSLSH
#define ES_PIPE &kp RA(N1) // |
#define ES_AT &kp RA(N2) // @
#define ES_HASH &kp RA(N3) // #
#define ES_VIRGULILLA &kp RA(N4) // ~
#define ES_NOT &kp RA(N6) // ¬
#define ES_CEDILLA &kp BACKSLASH // ç''
#define ES_CORCH &kp RA(LBKT) // [
#define ES_CORCH_R &kp RA(RBKT) // ]
#define ES_LLAVE &kp RA(APOS) // {
#define ES_LLAVE_R &kp RA(BACKSLASH) // }
#define ES_EURO &kp RA(E) // €
#define ES_LESS &kp NON_US_BSLH // <
#define ES_MORE &kp PIPE2 // >
#define ES_ACEN_GU &kp DOUBLE_QUOTES // ¨
// mt
#define WIN_CAPS &mt LWIN CAPS
#define CTRL_ENT &mt LCTRL ENTER
#define LT_LAY2_ENT < 2 ENTER
// SYS BT
#define RESET &sys_reset
#define BT_CLEAR &bt BT_CLR
#define BT_0 &bt BT_SEL 0
#define BT_1 &bt BT_SEL 1
#define BT_2 &bt BT_SEL 2
#define BT_3 &bt BT_SEL 3
#define BT_4 &bt BT_SEL 4
// rgb
#define RGB_TOGG &rgb_ug RGB_TOG
#define RGB_EFFO &rgb_ug RGB_EFF
#define RGB_EFRE &rgb_ug RGB_EFR
// desktop left windows
#define ES_DESK_L &kp LG(LC(LEFT))
#define ES_DESK_R &kp LG(LC(RIGHT))
// natural editor
// ixme_natural_macro(fixme_natural_macro,
// bindings = < &kp LC(C) &kp END &kp RET >
// , < &kp W &kp R &kp I &kp T &kp E &kp SPACE >
// , < &kp MINUS &kp LC(V) &kp MINUS &kp SPACE >
// , < &kp LC(V) &kp LS(N7) &kp LS(RBKT) &kp SPACE >
// , < &kp F &kp I &kp X &kp M &kp E &kp SPACE >
// , < &kp B &kp O &kp R &kp R &kp A &kp R > ;
// )
// #define MACRO(name, keys) \
// name: name##_macro { \
// label = #name; \
// compatible = "zmk,behavior-macro";\
// #binding-cells = <0>; \
// tap-ms = <1>; \
// wait-ms = <1>; \
// bindings = <keys>; \
// };
/ {
macros {
fixme_natural_macro: fixme_natural_macro {
label = "fixme_natural_macro";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= < &kp LC(C) &kp LA(F) ¯o_wait_time 200 >
, < &kp LC(V) &kp RIGHT &kp RIGHT &kp LC(V) > ;
// = < &kp LC(C) &kp END &kp RET >
// , < &kp W &kp R &kp I &kp T &kp E &kp SPACE >
// , < &kp MINUS &kp LC(V) &kp MINUS &kp SPACE >
// , < &kp LC(V) &kp LS(N7) &kp LS(RBKT) &kp SPACE >
// , < &kp F &kp I &kp X &kp M &kp E &kp SPACE >
// , < &kp B &kp O &kp R &kp R &kp A &kp R > ;
};
};
};
// }}}