]> git.donarmstrong.com Git - qmk_firmware.git/blob - quantum/keymap_extras/keymap_italian.h
Add standard definitions for ALGR and KC_ALGR (#4389)
[qmk_firmware.git] / quantum / keymap_extras / keymap_italian.h
1 /* Copyright 2015-2016 Matthias Schmidtt
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #ifndef KEYMAP_ITALIAN
18 #define KEYMAP_ITALIAN
19
20 #include "keymap.h"
21
22 // Alt gr
23 #define IT_ALGR KC_RALT
24
25 // normal characters
26
27
28
29 #define IT_A KC_A
30 #define IT_B KC_B
31 #define IT_C KC_C
32 #define IT_D KC_D
33 #define IT_E KC_E
34 #define IT_F KC_F
35 #define IT_G KC_G
36 #define IT_H KC_H
37 #define IT_I KC_I
38 #define IT_J KC_J
39 #define IT_K KC_K
40 #define IT_L KC_L
41 #define IT_M KC_M
42 #define IT_N KC_N
43 #define IT_O KC_O
44 #define IT_P KC_P
45 #define IT_Q KC_Q
46 #define IT_R KC_R
47 #define IT_S KC_S
48 #define IT_T KC_T
49 #define IT_U KC_U
50 #define IT_V KC_V
51 #define IT_W KC_W
52 #define IT_X KC_X
53 #define IT_Y KC_Y
54 #define IT_Z KC_Z
55
56 #define IT_0 KC_0
57 #define IT_1 KC_1
58 #define IT_2 KC_2
59 #define IT_3 KC_3
60 #define IT_4 KC_4
61 #define IT_5 KC_5
62 #define IT_6 KC_6
63 #define IT_7 KC_7
64 #define IT_8 KC_8
65 #define IT_9 KC_9
66
67 #define IT_DOT KC_DOT
68 #define IT_COMM KC_COMM
69
70 #define IT_EACC KC_LBRC  // è, é, [, {
71 #define IT_PLUS KC_RBRC  // +, *, ], }
72 #define IT_OACC KC_SCLN  // ò, ç, @,
73 #define IT_AACC KC_QUOT  // à, °, #,
74 #define IT_UACC KC_BSLS  // ù, §,  ,
75 #define IT_IACC KC_EQL   // ì, ^,  ,
76
77 #define IT_APOS KC_MINS  // ', ?,  ,
78
79
80
81 #define IT_BKSL KC_GRAVE // backslash \, |
82
83
84 #define IT_ACUT  // accent acute ´ and grave `
85
86 #define IT_LESS KC_NUBS // < and > and |
87 #define IT_MINS KC_SLSH // - and _
88
89 // shifted characters
90 #define IT_PIPE LSFT(IT_BKSL) // °
91 #define IT_EXLM LSFT(KC_1) // !
92 #define IT_DQOT LSFT(KC_2) // "
93 #define IT_STRL LSFT(KC_3) // £
94 #define IT_DLR  LSFT(KC_4) // $
95 #define IT_PERC LSFT(KC_5) // %
96 #define IT_AMPR LSFT(KC_6) // &
97 #define IT_SLSH LSFT(KC_7) // /
98 #define IT_LPRN LSFT(KC_8) // (
99 #define IT_RPRN LSFT(KC_9) // )
100 #define IT_EQL  LSFT(KC_0) // =
101 #define IT_QST  LSFT(IT_APOS) // ?
102 #define IT_CRC  LSFT(IT_IACC) // ^
103 #define IT_ASTR LSFT(IT_PLUS) // *
104 #define IT_MORE LSFT(IT_LESS) // >
105 #define IT_COLN LSFT(IT_DOT) // :
106 #define IT_SCLN LSFT(IT_COMM) // ;
107 #define IT_UNDS LSFT(IT_MINS) // _
108
109 // Alt Gr-ed characters
110 #define IT_LCBR ALGR(KC_7) // {
111 #define IT_LBRC ALGR(IT_EACC) // [
112 #define IT_RBRC ALGR(IT_PLUS) // ]
113 #define IT_RCBR ALGR(KC_0) // }
114 #define IT_AT   ALGR(IT_OACC)   // @
115 #define IT_EURO ALGR(KC_E)              // €
116 #define IT_PIPE LSFT(IT_BKSL)   // |
117 #define IT_SHRP ALGR(IT_AACC)   // #
118
119 #define IT_X_PLUS       X_RBRACKET      // #
120
121 #endif