svkbd

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

layout.sh.h (2070B)


      1 #define KEYS 66
      2 static Key keys_sh[] = {
      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 	{ "<","-", XK_BackSpace, 2 },
     17 	{ "Del",0, XK_Delete, 1},
     18 	{ 0 }, /* New row */
     19 	{ "->|", 0, XK_Tab, 1 },
     20 	{ "q","Q\\", XK_q, 1 },
     21 	{ "w","W|", XK_w, 1 },
     22 	{ "e","E", XK_e, 1 },
     23 	{ "r","R", XK_r, 1 },
     24 	{ "t","T", XK_t, 1 },
     25 	{ "z","Z", XK_z, 1 },
     26 	{ "u","U", XK_u, 1 },
     27 	{ "i","I", XK_i, 1 },
     28 	{ "o","O", XK_o, 1 },
     29 	{ "p","P", XK_p, 1 },
     30 	{ "š","Š÷", XK_scaron, 1 },
     31 	{ "đ","Đ×", XK_dstroke, 1 },
     32 	{ "Enter",0, XK_Return, 3 },
     33 	{ 0 }, /* New row */
     34 	{ 0, 0, XK_Caps_Lock, 2 },
     35 	{ "a","A", XK_a, 1 },
     36 	{ "s","S", XK_s, 1 },
     37 	{ "d","D", XK_d, 1 },
     38 	{ "f","F[", XK_f, 1 },
     39 	{ "g","G]", XK_g, 1 },
     40 	{ "h","H", XK_h, 1 },
     41 	{ "j","J̣̣", XK_j, 1 },
     42 	{ "k","Kł", XK_k, 1 },
     43 	{ "l","LŁ", XK_l, 1 },
     44 	{ "č","Č", XK_ccaron, 1 },
     45 	{ "ć","Ćß", XK_cacute, 1 },
     46 	{ "ž","Ž¤", XK_zcaron, 1 },
     47 	{ 0 }, /* New row */
     48 	{ 0, 0, XK_Shift_L, 2 },
     49 	{ "<",">«»", XK_less, 1 },
     50 	{ "y","Y", XK_y, 1 },
     51 	{ "x","X", XK_x, 1 },
     52 	{ "c","C", XK_c, 1 },
     53 	{ "v","V@", XK_v, 1 },
     54 	{ "b","B{", XK_b, 1 },
     55 	{ "n","N}", XK_n, 1 },
     56 	{ "m","M§", XK_m, 1 }, /* XXX no symbol */
     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 	"sh",
     84 };
     85 
     86 static Key* available_layers[LAYERS] = {
     87 	keys_sh,
     88 };