svkbd

simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log | Files | Refs | README | LICENSE

layout.mobile-intl.h (15819B)


      1 #define KEYS 57
      2 
      3 static Key keys_en[KEYS] = {
      4 	{ "Esc", "", XK_Escape, 1 },
      5 	{ "1", "!", XK_1, 1 },
      6 	{ "2", "@", XK_2, 1 },
      7 	{ "3", "#", XK_3, 1 },
      8 	{ "4", "$", XK_4, 1 },
      9 	{ "5", "%", XK_5, 1 },
     10 	{ "6", "^", XK_6, 1 },
     11 	{ "7", "&", XK_7, 1 },
     12 	{ "8", "*", XK_8, 1 },
     13 	{ "9", "(", XK_9, 1 },
     14 	{ "0", ")", XK_0, 1 },
     15 	{ "-", "_", XK_minus, 1 },
     16 
     17 	{ 0 }, /* New row */
     18 
     19 	{ "↹", 0, XK_Tab, 0.75 },
     20 	{ 0, "☺", XK_q, 1 },
     21 	{ 0, 0, XK_w, 1 },
     22 	{ 0, 0, XK_e, 1 },
     23 	{ 0, 0, XK_r, 1 },
     24 	{ 0, 0, XK_t, 1 },
     25 	{ 0, 0, XK_y, 1 },
     26 	{ 0, 0, XK_u, 1 },
     27 	{ 0, 0, XK_i, 1 },
     28 	{ 0, 0, XK_o, 1 },
     29 	{ 0, 0, XK_p, 1 },
     30 	{ "/", "?", XK_slash, .75 },
     31 
     32 	{ 0 }, /* New row */
     33 
     34 	{ "^", 0, XK_Control_L, 1 },
     35 	{ 0, 0, XK_a, 1 },
     36 	{ 0, 0, XK_s, 1 },
     37 	{ 0, 0, XK_d, 1 },
     38 	{ 0, 0, XK_f, 1 },
     39 	{ 0, 0, XK_g, 1 },
     40 	{ 0, 0, XK_h, 1 },
     41 	{ 0, 0, XK_j, 1 },
     42 	{ 0, 0, XK_k, 1 },
     43 	{ 0, 0, XK_l, 1 },
     44 	{ ";", ":", XK_colon, 1 },
     45 	{ "'", "\"", XK_apostrophe, 1 },
     46 
     47 	{ 0 }, /* New row */
     48 
     49 	{ "⇧", 0, XK_Shift_L, 1.5 },
     50 	{ 0, 0, XK_z, 1 },
     51 	{ 0, 0, XK_x, 1 },
     52 	{ 0, 0, XK_c, 1 },
     53 	{ 0, 0, XK_v, 1 },
     54 	{ 0, 0, XK_b, 1 },
     55 	{ 0, 0, XK_n, 1 },
     56 	{ 0, 0, XK_m, 1 },
     57 	{ ",", "<", XK_comma, 1 },
     58 	{ ".", ">", XK_period, 1 },
     59 	{ "⌫", 0, XK_BackSpace, 1 },
     60 
     61 	{ 0 }, /* New row */
     62 	{ "↺", 0, XK_Cancel, 1},
     63 	{ "Alt", 0, XK_Alt_L, 1 },
     64 	{ "", 0, XK_space, 4 },
     65 	{ "↓", 0, XK_Down, 1 },
     66 	{ "↑", 0, XK_Up, 1 },
     67 	{ "↲ Enter", 0, XK_Return, 2 },
     68 };
     69 
     70 static Key keys_minimal[KEYS] = {
     71 	{ 0, "☺", XK_q, 1 },
     72 	{ 0, 0, XK_w, 1 },
     73 	{ 0, 0, XK_e, 1 },
     74 	{ 0, 0, XK_r, 1 },
     75 	{ 0, 0, XK_t, 1 },
     76 	{ 0, 0, XK_y, 1 },
     77 	{ 0, 0, XK_u, 1 },
     78 	{ 0, 0, XK_i, 1 },
     79 	{ 0, 0, XK_o, 1 },
     80 	{ 0, 0, XK_p, 1 },
     81 
     82 	{ 0 }, /* New row */
     83 
     84 	{ 0, 0, XK_a, 1 },
     85 	{ 0, 0, XK_s, 1 },
     86 	{ 0, 0, XK_d, 1 },
     87 	{ 0, 0, XK_f, 1 },
     88 	{ 0, 0, XK_g, 1 },
     89 	{ 0, 0, XK_h, 1 },
     90 	{ 0, 0, XK_j, 1 },
     91 	{ 0, 0, XK_k, 1 },
     92 	{ 0, 0, XK_l, 1 },
     93 
     94 	{ 0 }, /* New row */
     95 
     96 	{ "⇧", 0, XK_Shift_L, 1.5 },
     97 	{ 0, 0, XK_z, 1 },
     98 	{ 0, 0, XK_x, 1 },
     99 	{ 0, 0, XK_c, 1 },
    100 	{ 0, 0, XK_v, 1 },
    101 	{ 0, 0, XK_b, 1 },
    102 	{ 0, 0, XK_n, 1 },
    103 	{ 0, 0, XK_m, 1 },
    104 	{ "⌫", 0, XK_BackSpace, 1.5 },
    105 
    106 	{ 0 }, /* New row */
    107 
    108 	{ "↺", 0, XK_Cancel, 1},
    109 	{ "'", "\"", XK_apostrophe, 1 },
    110 	{ ",", "<", XK_comma, 1 },
    111 	{ "", 0, XK_space, 4 },
    112 	{ ".", ">", XK_period, 1 },
    113 	{ "↲ Enter", 0, XK_Return, 2 },
    114 };
    115 
    116 #define OVERLAYS 226
    117 static Key overlay[OVERLAYS] = {
    118 	{ 0, 0, XK_a }, //Overlay for a
    119 	{ "à", 0, XK_agrave },
    120 	{ "á", 0, XK_aacute },
    121 	{ "â", 0, XK_acircumflex },
    122 	{ "ä", 0, XK_adiaeresis },
    123 	{ "ą", 0, XK_aogonek },
    124 	{ "ã", 0, XK_atilde },
    125 	{ "ā", 0, XK_amacron },
    126 	{ "ă", 0, XK_abreve },
    127 	{ "å", 0, XK_aring },
    128 	{ "æ", 0, XK_ae },
    129 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    130 	{ 0, 0, XK_e }, //Overlay for e (first item after boundary defines the trigger)
    131 	{ "è", 0, XK_egrave },
    132 	{ "é", 0, XK_eacute },
    133 	{ "ê", 0, XK_ecircumflex },
    134 	{ "ë", 0, XK_ediaeresis },
    135 	{ "ę", 0, XK_eogonek },
    136 	{ "ē", 0, XK_emacron },
    137 	{ "ė", 0, XK_eabovedot },
    138 	{ "ě", 0, XK_ecaron },
    139 	{ 0, 0, XK_Cancel },
    140 	{ 0, 0, XK_y }, //New overlay
    141 	{ "ỳ", 0, XK_ygrave },
    142 	{ "ý", 0, XK_yacute },
    143 	{ "ŷ", 0, XK_ycircumflex },
    144 	{ "ÿ", 0, XK_ydiaeresis },
    145 	{ 0, 0, XK_Cancel },
    146 	{ 0, 0, XK_u }, //New overlay
    147 	{ "ù", 0, XK_ugrave },
    148 	{ "ú", 0, XK_uacute },
    149 	{ "û", 0, XK_ucircumflex },
    150 	{ "ü", 0, XK_udiaeresis },
    151 	{ "ų", 0, XK_uogonek },
    152 	{ "ū", 0, XK_umacron },
    153 	{ "ů", 0, XK_uring},
    154 	{ "ŭ", 0, XK_ubreve},
    155 	{ "ű", 0, XK_udoubleacute },
    156 	{ 0, 0, XK_Cancel },
    157 	{ 0, 0, XK_i }, //New overlay
    158 	{ "ì", 0, XK_igrave },
    159 	{ "í", 0, XK_iacute },
    160 	{ "î", 0, XK_icircumflex },
    161 	{ "ï", 0, XK_idiaeresis },
    162 	{ "į", 0, XK_iogonek },
    163 	{ "ī", 0, XK_imacron },
    164 	{ "ı", 0, XK_idotless },
    165 	{ 0, 0, XK_Cancel },
    166 	{ 0, 0, XK_o }, //New overlay
    167 	{ "ò", 0, XK_ograve },
    168 	{ "ó", 0, XK_oacute },
    169 	{ "ô", 0, XK_ocircumflex },
    170 	{ "ö", 0, XK_odiaeresis },
    171 	{ "ǫ", 0, XK_ogonek },
    172 	{ "õ", 0, XK_otilde },
    173 	{ "ō", 0, XK_omacron },
    174 	{ "ø", 0, XK_oslash },
    175 	{ "ő", 0, XK_odoubleacute },
    176 	{ "œ", 0, XK_oe },
    177 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    178 	{ 0, 0, XK_d }, //New overlay
    179 	{ "ď", 0, XK_dcaron },
    180 	{ "ð", 0, XK_eth },
    181 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    182 	{ 0, 0, XK_c }, //New overlay
    183 	{ "ç", 0, XK_ccedilla },
    184 	{ "ĉ", 0, XK_ccircumflex },
    185 	{ "č", 0, XK_ccaron },
    186 	{ "ć", 0, XK_cacute },
    187 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    188 	{ 0, 0, XK_s }, //New overlay
    189 	{ "ş", 0, XK_scedilla },
    190 	{ "ŝ", 0, XK_scircumflex },
    191 	{ "š", 0, XK_scaron },
    192 	{ "ś", 0, XK_sacute },
    193 	{ "ß", 0, XK_ssharp },
    194 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    195 	{ 0, 0, XK_z }, //New overlay
    196 	{ "ž", 0, XK_zcaron },
    197 	{ "ż", 0, XK_zabovedot },
    198 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    199 	{ 0, 0, XK_n }, //New overlay
    200 	{ "ñ", 0, XK_ntilde },
    201 	{ "ń", 0, XK_nacute },
    202 	{ "ň", 0, XK_ncaron },
    203 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    204 	{ 0, 0, XK_t }, //New overlay
    205 	{ "ț", 0, XK_tcedilla },
    206 	{ "ť", 0, XK_tcaron },
    207 	{ "þ", 0, XK_thorn },
    208 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    209 	{ 0, 0, XK_g }, //New overlay
    210 	{ "ĝ", 0, XK_gcircumflex },
    211 	{ "ğ", 0, XK_gbreve },
    212 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    213 	{ 0, 0, XK_h }, //New overlay
    214 	{ "ĥ", 0, XK_hcircumflex },
    215 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    216 	{ 0, 0, XK_j }, //New overlay
    217 	{ "ĵ", 0, XK_jcircumflex },
    218 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    219 	{ 0, 0, XK_l }, //New overlay
    220 	{ "ł", 0, XK_lstroke },
    221 	{ "ľ", 0, XK_lcaron },
    222 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    223 	{ 0, 0, XK_r }, //New overlay
    224 	{ "ř", 0, XK_rcaron },
    225 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    226 	{ 0, 0, XK_Cyrillic_softsign }, //New overlay
    227 	{ "ъ", 0, XK_Cyrillic_hardsign },
    228 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    229 	{ 0, 0, XK_Cyrillic_ie }, //New overlay
    230 	{ "ё", 0, XK_Cyrillic_io },
    231 	{ "э", 0, XK_Cyrillic_e },
    232 	{ "Є", 0, XK_Ukrainian_ie },
    233 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    234 	{ 0, 0, XK_Cyrillic_i }, //New overlay
    235 	{ "і", 0, XK_Ukrainian_i },
    236 	{ "ї", 0, XK_Ukrainian_yi },
    237 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    238 	{ 0, 0, XK_Cyrillic_u }, //New overlay
    239 	{ "ў", 0, XK_Byelorussian_shortu },
    240 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    241 	{ 0, 0, XK_Cyrillic_shorti }, //New overlay
    242 	{ "ј", 0, XK_Cyrillic_je },
    243 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    244 	{ 0, 0, XK_Cyrillic_el }, //New overlay
    245 	{ "љ", 0, XK_Cyrillic_lje },
    246 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    247 	{ 0, 0, XK_Cyrillic_en }, //New overlay
    248 	{ "њ", 0, XK_Cyrillic_nje },
    249 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    250 	{ 0, 0, XK_Cyrillic_tse }, //New overlay
    251 	{ "џ", 0, XK_Cyrillic_dzhe },
    252 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    253 	{ 0, 0, XK_Cyrillic_che }, //New overlay
    254 	{ "ћ", 0, XK_Serbian_tshe },
    255 	{ "ђ", 0, XK_Serbian_dje },
    256 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    257 	{ "🙂", 0, 0x101f642 }, //New overlay -> emoji overlay
    258 	{ "😀", 0, 0x101f600 },
    259 	{ "😁", 0, 0x101f601 },
    260 	{ "😂", 0, 0x101f602 },
    261 	{ "😃", 0, 0x101f603 },
    262 	{ "😄", 0, 0x101f604 },
    263 	{ "😅", 0, 0x101f605 },
    264 	{ "😆", 0, 0x101f606 },
    265 	{ "😇", 0, 0x101f607 },
    266 	{ "😈", 0, 0x101f608 },
    267 	{ "😉", 0, 0x101f609 },
    268 	{ "😊", 0, 0x101f60a },
    269 	{ "😋", 0, 0x101f60b },
    270 	{ "😌", 0, 0x101f60c },
    271 	{ "😍", 0, 0x101f60d },
    272 	{ "😎", 0, 0x101f60e },
    273 	{ "😏", 0, 0x101f60f },
    274 	{ "😐", 0, 0x101f610 },
    275 	{ "😒", 0, 0x101f612 },
    276 	{ "😓", 0, 0x101f613 },
    277 	{ "😛", 0, 0x101f61b },
    278 	{ "😮", 0, 0x101f62e },
    279 	{ "😟", 0, 0x101f61f },
    280 	{ "😟", 0, 0x101f620 },
    281 	{ "😢", 0, 0x101f622 },
    282 	{ "😭", 0, 0x101f62d },
    283 	{ "😳", 0, 0x101f633 },
    284 	{ "😴", 0, 0x101f634 },
    285 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    286 	{ "q", 0, XK_q }, //New overlay -> emoji overlay on Q key (for minimal layer)
    287 	{ "😀", 0, 0x101f600 },
    288 	{ "😁", 0, 0x101f601 },
    289 	{ "😂", 0, 0x101f602 },
    290 	{ "😃", 0, 0x101f603 },
    291 	{ "😄", 0, 0x101f604 },
    292 	{ "😅", 0, 0x101f605 },
    293 	{ "😆", 0, 0x101f606 },
    294 	{ "😇", 0, 0x101f607 },
    295 	{ "😈", 0, 0x101f608 },
    296 	{ "😉", 0, 0x101f609 },
    297 	{ "😊", 0, 0x101f60a },
    298 	{ "😋", 0, 0x101f60b },
    299 	{ "😌", 0, 0x101f60c },
    300 	{ "😍", 0, 0x101f60d },
    301 	{ "😎", 0, 0x101f60e },
    302 	{ "😏", 0, 0x101f60f },
    303 	{ "😐", 0, 0x101f610 },
    304 	{ "😒", 0, 0x101f612 },
    305 	{ "😓", 0, 0x101f613 },
    306 	{ "😛", 0, 0x101f61b },
    307 	{ "😮", 0, 0x101f62e },
    308 	{ "😟", 0, 0x101f61f },
    309 	{ "😟", 0, 0x101f620 },
    310 	{ "😢", 0, 0x101f622 },
    311 	{ "😭", 0, 0x101f62d },
    312 	{ "😳", 0, 0x101f633 },
    313 	{ "😴", 0, 0x101f634 },
    314 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    315 	{ "/?", 0, XK_slash }, //New overlay - punctuation overlay
    316 	{ "1", "!", XK_1, 1 },
    317 	{ "2", "@", XK_2, 1 },
    318 	{ "3", "#", XK_3, 1 },
    319 	{ "4", "$", XK_4, 1 },
    320 	{ "5", "%", XK_5, 1 },
    321 	{ "6", "^", XK_6, 1 },
    322 	{ "7", "&", XK_7, 1 },
    323 	{ "8", "*", XK_8, 1 },
    324 	{ "9", "(", XK_9, 1 },
    325 	{ "0", ")", XK_0, 1 },
    326 	{ "'", "\"", XK_apostrophe, 1 },
    327 	{ "`", "~", XK_grave, 1 },
    328 	{ "-", "_", XK_minus, 1 },
    329 	{ "=", "+", XK_plus, 1 },
    330 	{ "[", "{", XK_bracketleft, 1 },
    331 	{ "]", "}", XK_bracketright, 1 },
    332 	{ ",", "<", XK_comma, 1 },
    333 	{ ".", ">", XK_period, 1 },
    334 	{ "/", "?", XK_slash, 1 },
    335 	{ "\\", "|", XK_backslash, 1 },
    336 	{ "¡", 0, XK_exclamdown, 1 },
    337 	{ "?", 0, XK_questiondown, 1 },
    338 	{ "°", 0, XK_degree, 1 },
    339 	{ "£", 0, XK_sterling, 1 },
    340 	{ "€", 0, XK_EuroSign, 1 },
    341 	{ "¥", 0, XK_yen, 1 },
    342 	{ ";", ":", XK_colon, 1 },
    343 	{ 0, 0, XK_Cancel }, /* XK_Cancel signifies  overlay boundary */
    344 };
    345 
    346 static Key keys_symbols[KEYS] = {
    347 	{ "Esc", 0, XK_Escape, 1 },
    348 	{ "F1", 0, XK_F1, 1 },
    349 	{ "F2", 0, XK_F2, 1 },
    350 	{ "F3", 0, XK_F3, 1 },
    351 	{ "F4", 0, XK_F4, 1 },
    352 	{ "F5", 0, XK_F5, 1 },
    353 	{ "F6", 0, XK_F6, 1 },
    354 	{ "F7", 0, XK_F7, 1 },
    355 	{ "F8", 0, XK_F8, 1 },
    356 	{ "F9", 0, XK_F9, 1 },
    357 	{ "F10", 0, XK_F10, 1 },
    358 	{ 0 }, /* New row */
    359 
    360 	{ "'\"", 0, XK_apostrophe, 1 },
    361 	{ "1", "!", XK_1, 1 },
    362 	{ "2", "@", XK_2, 1 },
    363 	{ "3", "#", XK_3, 1 },
    364 	{ "4", "$", XK_4, 1 },
    365 	{ "5", "%", XK_5, 1 },
    366 	{ "6", "^", XK_6, 1 },
    367 	{ "7", "&", XK_7, 1 },
    368 	{ "8", "*", XK_8, 1 },
    369 	{ "9", "(", XK_9, 1 },
    370 	{ "0", ")", XK_0, 1 },
    371 
    372 	{ 0 }, /* New row */
    373 
    374 	{ ".", ">", XK_period, 1 },
    375 	{ ",", "<", XK_comma, 1 },
    376 	{ "`", "~", XK_grave, 1 },
    377 	{ "-", "_", XK_minus, 1 },
    378 	{ "=", "+", XK_plus, 1 },
    379 	{ "\\", "|", XK_backslash, 1 },
    380 	{ ";", ":", XK_colon, 1 },
    381 	{ "/", "?", XK_slash, 1 },
    382 	{ "[", "{", XK_bracketleft, 1 },
    383 	{ "]", "}", XK_bracketright, 1 },
    384 	{ "Del", 0, XK_Delete, 1 },
    385 
    386 	{ 0 }, /* New row */
    387 
    388 	{ "abc", 0, XK_Mode_switch, 1 },
    389 	{ "☺", 0, 0x101f642, 1 },
    390 	{ "⇤", 0, XK_Home, 1 },
    391 	{ "←", 0, XK_Left, 1 },
    392 	{ "→", 0, XK_Right, 1 },
    393 	{ "⇥", 0, XK_End, 1 },
    394 	{ "⇊", 0, XK_Next, 1 },
    395 	{ "⇈", 0, XK_Prior, 1 },
    396 	{ "Tab", 0, XK_Tab, 1 },
    397 	{ "⌫Bksp", 0, XK_BackSpace, 2 },
    398 
    399 	{ 0 }, /* New row */
    400 	{ "↺", 0, XK_Cancel, 1},
    401 	{ "Shift", 0, XK_Shift_L, 2 },
    402 	{ "Ctrl", 0, XK_Control_L, 1 },
    403 	{ "Alt", 0, XK_Alt_L, 1 },
    404 	{ "", 0, XK_space, 2 },
    405 	{ "↓", 0, XK_Down, 1 },
    406 	{ "↑", 0, XK_Up, 1 },
    407 	{ "↲ Enter", 0, XK_Return, 2 },
    408 };
    409 
    410 static Key keys_functions[KEYS] = {
    411 
    412 	{ "Esc", 0, XK_Escape, 1 },
    413 	{ "▶", 0, XF86XK_AudioPlay, 1 },
    414 	{ "●", 0, XF86XK_AudioRecord, 1 },
    415 	{ "■", 0, XF86XK_AudioStop, 1 },
    416 	{ "◂◂", 0, XF86XK_AudioPrev, 1 },
    417 	{ "▸▸", 0, XF86XK_AudioNext, 1 },
    418 	{ "♫M", 0, XF86XK_AudioMute, 1 },
    419 	{ "♫-", 0, XF86XK_AudioLowerVolume, 1 },
    420 	{ "♫+", 0, XF86XK_AudioRaiseVolume, 1 },
    421 	{ "☀-", 0, XF86XK_MonBrightnessDown, 1 },
    422 	{ "☀+", 0, XF86XK_MonBrightnessUp, 1 },
    423 
    424 	{ 0 }, /* New row */
    425 
    426 	{ "≅", 0, XK_KP_Insert, 1 },
    427 	{ "Del", 0, XK_Delete, 1 },
    428 	{ "⇤", 0, XK_Home, 1 },
    429 	{ "←", 0, XK_Left, 1 },
    430 	{ "→", 0, XK_Right, 1 },
    431 	{ "⇥", 0, XK_End, 1 },
    432 	{ "⇊", 0, XK_Next, 1 },
    433 	{ "⇈", 0, XK_Prior, 1 },
    434 	{ "Tab", 0, XK_Tab, 1 },
    435 	{ "⌫Bksp", 0, XK_BackSpace, 2 },
    436 
    437 	{ 0 }, /* New row */
    438 	{ "↺", 0, XK_Cancel, 1},
    439 	{ "Shift", 0, XK_Shift_L, 2 },
    440 	{ "Ctrl", 0, XK_Control_L, 1 },
    441 	{ "Alt", 0, XK_Alt_L, 1 },
    442 	{ "", 0, XK_space, 2 },
    443 	{ "↓", 0, XK_Down, 1 },
    444 	{ "↑", 0, XK_Up, 1 },
    445 	{ "↲ Enter", 0, XK_Return, 2 },
    446 
    447 	{ 0 }, /* Last item (double 0) */
    448 	{ 0 }, /* Last item (double 0) */
    449 };
    450 
    451 static Key keys_navigation[KEYS] = {
    452 	{ "Esc", 0, XK_Escape, 1 },
    453 	{ "⇤", 0, XK_Home, 1 },
    454 	{ "↑", 0, XK_Up, 1 },
    455 	{ "⇥", 0, XK_End, 1 },
    456 	{ "⇈", 0, XK_Prior, 1 },
    457 	{ 0 }, /* New row */
    458 
    459 	{ "Shift", 0, XK_Shift_L, 1 },
    460 	{ "←", 0, XK_Left, 1 },
    461 	{ "", 0, XK_space, 1 },
    462 	{ "→", 0, XK_Right, 1 },
    463 	{ "⇊", 0, XK_Next, 1 },
    464 
    465 	{ 0 }, /* New row */
    466 
    467 	{ "↺", 0, XK_Cancel, 1},
    468 	{ "⌫Bksp", 0, XK_BackSpace, 1 },
    469 	{ "↓", 0, XK_Down, 1 },
    470 	{ "Tab", 0, XK_Tab, 1 },
    471 	{ "↲ Enter", 0, XK_Return, 1},
    472 
    473 	{ 0 }, /* Last item (double 0) */
    474 	{ 0 }, /* Last item (double 0) */
    475 };
    476 
    477 
    478 static Key keys_ru[KEYS] = {
    479 	{ "Esc", 0, XK_Escape, 1 },
    480 	{ "1", "!", XK_1, 1 },
    481 	{ "2", "@", XK_2, 1 },
    482 	{ "3", "#", XK_3, 1 },
    483 	{ "4", "$", XK_4, 1 },
    484 	{ "5", "%", XK_5, 1 },
    485 	{ "6", "^", XK_6, 1 },
    486 	{ "7", "&", XK_7, 1 },
    487 	{ "8", "*", XK_8, 1 },
    488 	{ "9", "(", XK_9, 1 },
    489 	{ "0", ")", XK_0, 1 },
    490 	{ 0 }, /* New row */
    491 
    492 	{ "й", 0, XK_Cyrillic_shorti, 1 },
    493 	{ "ц", 0, XK_Cyrillic_tse, 1 },
    494 	{ "у", 0, XK_Cyrillic_u, 1 },
    495 	{ "к", 0, XK_Cyrillic_ka, 1 },
    496 	{ "е", 0, XK_Cyrillic_ie, 1 },
    497 	{ "н", 0, XK_Cyrillic_en, 1 },
    498 	{ "г", 0, XK_Cyrillic_ghe, 1 },
    499 	{ "ш", 0, XK_Cyrillic_sha, 1 },
    500 	{ "щ", 0, XK_Cyrillic_shcha, 1 },
    501 	{ "з", 0, XK_Cyrillic_ze, 1 },
    502 	{ "х", 0, XK_Cyrillic_ha, 1 },
    503 
    504 	{ 0 }, /* New row */
    505 
    506 	{ "ф", 0, XK_Cyrillic_ef, 1 },
    507 	{ "ы", 0, XK_Cyrillic_yeru, 1 },
    508 	{ "в", 0, XK_Cyrillic_ve, 1 },
    509 	{ "а", 0, XK_Cyrillic_a, 1 },
    510 	{ "п", 0, XK_Cyrillic_pe, 1 },
    511 	{ "р", 0, XK_Cyrillic_er, 1 },
    512 	{ "о", 0, XK_Cyrillic_o, 1 },
    513 	{ "л", 0, XK_Cyrillic_el, 1 },
    514 	{ "д", 0, XK_Cyrillic_de, 1 },
    515 	{ "ж", 0, XK_Cyrillic_zhe, 1 },
    516 	{ "ю", 0, XK_Cyrillic_yu, 1 },
    517 
    518 	{ 0 }, /* New row */
    519 
    520 	{ "123", 0, XK_Mode_switch, 1 },
    521 	{ "я", 0, XK_Cyrillic_ya, 1 },
    522 	{ "ч", 0, XK_Cyrillic_che, 1 },
    523 	{ "с", 0, XK_Cyrillic_es, 1 },
    524 	{ "м", 0, XK_Cyrillic_em, 1 },
    525 	{ "и", 0, XK_Cyrillic_i, 1 },
    526 	{ "т", 0, XK_Cyrillic_te, 1 },
    527 	{ "ь", 0, XK_Cyrillic_softsign, 1 },
    528 	{ "б", 0, XK_Cyrillic_be, 1 },
    529 	{ "⌫Bksp", 0, XK_BackSpace, 2 },
    530 
    531 	{ 0 }, /* New row */
    532 	{ "↺", 0, XK_Cancel, 1},
    533 	{ "Shift", 0, XK_Shift_L, 2 },
    534 	{ "Ctrl", 0, XK_Control_L, 1 },
    535 	{ "Alt", 0, XK_Alt_L, 1 },
    536 	{ "", 0, XK_space, 2 },
    537 	{ "↓", 0, XK_Down, 1 },
    538 	{ "↑", 0, XK_Up, 1 },
    539 	{ "↲ Enter", 0, XK_Return, 2 },
    540 };
    541 
    542 static Key keys_dialer[KEYS] = {
    543 	{ "Esc", 0, XK_Escape, 1 },
    544 	{ "1", "!" , XK_1, 1 },
    545 	{ "2", "@", XK_2, 1 },
    546 	{ "3", "#", XK_3, 1 },
    547 	{ "-", "_", XK_minus, 1 },
    548 	{ ",", "<", XK_comma, 1 },
    549 	{ 0 }, /* New row */
    550 
    551 	{ "Shift", 0, XK_Shift_L, 1 },
    552 	{ "4", "$", XK_4, 1 },
    553 	{ "5", "%", XK_5, 1 },
    554 	{ "6", "^", XK_6, 1 },
    555 	{ "=", "+", XK_equal, 1 },
    556 	{ "/", "?", XK_slash, 1 },
    557 	{ 0 }, /* New row */
    558 
    559 	{ "abc", 0, XK_Mode_switch, 1 },
    560 	{ "7", "&", XK_7, 1 },
    561 	{ "8", "*", XK_8, 1 },
    562 	{ "9", "(", XK_9, 1 },
    563 	{ "⌫Bksp", 0, XK_BackSpace, 2 },
    564 	{ 0 }, /* New row */
    565 
    566 	{ "↺", 0, XK_Cancel, 1},
    567 	{ "", 0, XK_space, 1 },
    568 	{ "0", ")", XK_0, 1 },
    569 	{ ".", ">", XK_period, 1 },
    570 	{ "↲ Enter", 0, XK_Return, 2},
    571 	{ 0 }, /* New row */
    572 	{ 0 }, /* Last item (double 0) */
    573 };
    574 
    575 #define LAYERS 6
    576 static char* layer_names[LAYERS] = {
    577 	"en",
    578 	"symbols",
    579 	"navigation",
    580 	"dialer",
    581 	"minimal",
    582 	"ru",
    583 };
    584 
    585 static Key* available_layers[LAYERS] = {
    586 	keys_en,
    587 	keys_symbols,
    588 	keys_navigation,
    589 	keys_dialer,
    590 	keys_minimal,
    591 	keys_ru
    592 };
    593 
    594 Buttonmod buttonmods[] = {
    595 	{ XK_Shift_L, Button2 },
    596 	{ XK_Alt_L, Button3 },
    597 };