svkbd

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

layout.sr.h (2343B)


      1 #define KEYS 66
      2 static Key keys_sr[] = {
      3 	{ "`","~", XK_quoteleft, 1},
      4 	{ "1","!", XK_1, 1 },
      5 	{ "2","\"", XK_2, 1 },
      6 	{ "3","#", XK_3, 1 },
      7 	{ "4","$", XK_4, 1 },
      8 	{ "5","%", XK_5, 1 },
      9 	{ "6","&", XK_6, 1 },
     10 	{ "7","/", XK_7, 1 },
     11 	{ "8","(", XK_8, 1 },
     12 	{ "9",")", XK_9, 1 },
     13 	{ "0","=", XK_0, 1 },
     14 	{ "'","?", XK_apostrophe, 1 },
     15 	{ "+","*", XK_plus, 1 },
     16 	{ "<-",0, XK_BackSpace, 2 },
     17 	{ "Del",0, XK_Delete, 1},
     18 	{ 0 }, /* New row */
     19 	{ "->|", 0, XK_Tab, 1 },
     20 	{ "љ","Љ", XK_Cyrillic_lje, 1 },
     21 	{ "њ","Њ", XK_Cyrillic_nje, 1 },
     22 	{ "е","Е", XK_Cyrillic_ie, 1 },
     23 	{ "р","Р", XK_Cyrillic_er, 1 },
     24 	{ "т","Т", XK_Cyrillic_te, 1 },
     25 	{ "з","З", XK_Cyrillic_ze, 1 },
     26 	{ "у","У", XK_Cyrillic_u, 1 },
     27 	{ "и","И", XK_Cyrillic_i, 1 },
     28 	{ "о","О", XK_Cyrillic_o, 1 },
     29 	{ "п","П", XK_Cyrillic_pe, 1 },
     30 	{ "ш","Ш", XK_Cyrillic_sha, 1 },
     31 	{ "ђ","Ђ", XK_Serbian_dje, 1 },
     32 	{ "Enter",0, XK_Return, 3 },
     33 	{ 0 }, /* New row */
     34 	{ 0, 0, XK_Caps_Lock, 2 },
     35 	{ "а","А", XK_Cyrillic_a, 1 },
     36 	{ "с","С", XK_Cyrillic_es, 1 },
     37 	{ "д","Д", XK_Cyrillic_de, 1 },
     38 	{ "ф","Ф", XK_Cyrillic_ef, 1 },
     39 	{ "г","Г", XK_Cyrillic_ghe, 1 },
     40 	{ "х","Х", XK_Cyrillic_ha, 1 },
     41 	{ "j","J̣̣", XK_Cyrillic_je, 1 },
     42 	{ "к","К", XK_Cyrillic_ka, 1 },
     43 	{ "л","Л", XK_Cyrillic_el, 1 },
     44 	{ "ч","Ч", XK_Cyrillic_che, 1 },
     45 	{ "ћ","Ћ", XK_Serbian_tshe, 1 },
     46 	{ "ж","Ж", XK_Cyrillic_zhe, 1 },
     47 	{ 0 }, /* New row */
     48 	{ 0, 0, XK_Shift_L, 2 },
     49 	{ "<",">", XK_less, 1 },
     50 	{ "ѕ","Ѕ", XK_Serbian_dze, 1 },
     51 	{ "џ","Џ", XK_Cyrillic_dzhe, 1 },
     52 	{ "ц","Ц", XK_Cyrillic_tse, 1 },
     53 	{ "в","В", XK_Cyrillic_ve, 1 },
     54 	{ "б","Б", XK_Cyrillic_be, 1 },
     55 	{ "н","Н", XK_Cyrillic_en, 1 },
     56 	{ "м","М", XK_Cyrillic_em, 1 },
     57 	{ ",",";", XK_comma, 1 },
     58 	{ ".",":", XK_period, 1 },
     59 	{ "-","_", XK_minus, 1 },
     60 	{ 0, 0, XK_Shift_R, 2 },
     61 	{ 0 }, /* New row */
     62 	{ "Ctrl", 0, XK_Control_L, 2 },
     63 	{ "Win", 0, XK_Super_L, 2 },
     64 	{ "Alt", 0, XK_Alt_L, 2 },
     65 	{ "", 0, XK_space, 5 },
     66 	{ "Alt Gr", 0, XK_ISO_Level3_Shift, 2 },
     67 	{ "Menu", 0, XK_Menu, 2 },
     68 	{ "Ctrl", 0, XK_Control_R, 2 },
     69 };
     70 
     71 Buttonmod buttonmods[] = {
     72 	{ XK_Shift_L, Button2 },
     73 	{ XK_Alt_L, Button3 },
     74 };
     75 
     76 #define OVERLAYS 1
     77 static Key overlay[OVERLAYS] = {
     78 	{ 0, 0, XK_Cancel },
     79 };
     80 
     81 #define LAYERS 1
     82 static char* layer_names[LAYERS] = {
     83 	"sr",
     84 };
     85 
     86 static Key* available_layers[LAYERS] = {
     87 	keys_sr,
     88 };