svkbd

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

layout.en.h (1778B)


      1 #define KEYS 61
      2 static Key keys_en[] = {
      3 	{ "1","!", XK_1, 1 },
      4 	{ "2","@", XK_2, 1 },
      5 	{ "3","#", XK_3, 1 },
      6 	{ "4","$", XK_4, 1 },
      7 	{ "5","%", XK_5, 1 },
      8 	{ "6","^", XK_6, 1 },
      9 	{ "7","&", XK_7, 1 },
     10 	{ "8","*", XK_8, 1 },
     11 	{ "9","(", XK_9, 1 },
     12 	{ "0",")", XK_0, 1 },
     13 	{ "-","_", XK_minus, 1 },
     14 	{ "=","+", XK_plus, 1 },
     15 	{ "⌫Bksp",0, XK_BackSpace, 2 },
     16 	{ 0 }, /* New row */
     17 	{ "->|",0, XK_Tab, 1 },
     18 	{ 0, 0, XK_q, 1 },
     19 	{ 0, 0, XK_w, 1 },
     20 	{ 0, 0, XK_e, 1 },
     21 	{ 0, 0, XK_r, 1 },
     22 	{ 0, 0, XK_t, 1 },
     23 	{ 0, 0, XK_y, 1 },
     24 	{ 0, 0, XK_u, 1 },
     25 	{ 0, 0, XK_i, 1 },
     26 	{ 0, 0, XK_o, 1 },
     27 	{ 0, 0, XK_p, 1 },
     28 	{ "[","{", XK_bracketleft, 1 },
     29 	{ "]", "}", XK_bracketright, 1 },
     30 	{ "Enter", 0, XK_Return, 3 },
     31 	{ 0 }, /* New row */
     32 	{ 0, 0, XK_Caps_Lock, 2 },
     33 	{ 0, 0, XK_a, 1 },
     34 	{ 0, 0, XK_s, 1 },
     35 	{ 0, 0, XK_d, 1 },
     36 	{ 0, 0, XK_f, 1 },
     37 	{ 0, 0, XK_g, 1 },
     38 	{ 0, 0, XK_h, 1 },
     39 	{ 0, 0, XK_j, 1 },
     40 	{ 0, 0, XK_k, 1 },
     41 	{ 0, 0, XK_l, 1 },
     42 	{ ":",";", XK_semicolon, 1 },
     43 	{ "'","\"", XK_exclam, 1 },
     44 	{ "\\", "|", XK_backslash, 1 },
     45 	{ 0 }, /* New row */
     46 	{ 0, 0, XK_Shift_L, 3 },
     47 	{ 0, 0, XK_z, 1 },
     48 	{ 0, 0, XK_x, 1 },
     49 	{ 0, 0, XK_c, 1 },
     50 	{ 0, 0, XK_v, 1 },
     51 	{ 0, 0, XK_b, 1 },
     52 	{ 0, 0, XK_n, 1 },
     53 	{ 0, 0, XK_m, 1 },
     54 	{ ",", "<", XK_colon, 1 },
     55 	{ ".", ">", XK_period, 1 },
     56 	{ "/", "?", XK_slash, 1 },
     57 	{ 0, 0, XK_Shift_R, 2 },
     58 	{ 0 }, /* New row */
     59 	{ "Ctrl",0,  XK_Control_L, 2 },
     60 	{ "Alt", 0, XK_Alt_L, 2 },
     61 	{ "", 0, XK_space, 5 },
     62 	{ "Alt", 0, XK_Alt_R, 2 },
     63 	{ "Ctrl", 0, XK_Control_R, 2 },
     64 };
     65 
     66 Buttonmod buttonmods[] = {
     67 	{ XK_Shift_L, Button2 },
     68 	{ XK_Alt_L, Button3 },
     69 };
     70 
     71 #define OVERLAYS 1
     72 static Key overlay[OVERLAYS] = {
     73 	{ 0, 0, XK_Cancel },
     74 };
     75 
     76 #define LAYERS 1
     77 static char* layer_names[LAYERS] = {
     78 	"en",
     79 };
     80 
     81 static Key* available_layers[LAYERS] = {
     82 	keys_en,
     83 };