svkbd

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

layout.arrows.h (495B)


      1 #define KEYS 6
      2 static Key keys_arrows[] = {
      3 	{ 0, 0, XK_Shift_L, 2 },
      4 	{ "←", 0, XK_Left, 1 },
      5 	{ "↓", 0, XK_Down, 1 },
      6 	{ "↑", 0, XK_Up, 1 },
      7 	{ "→", 0, XK_Right, 1},
      8 	{ "Alt", 0, XK_Alt_L, 2 },
      9 };
     10 
     11 Buttonmod buttonmods[] = {
     12 	{ XK_Shift_L, Button2 },
     13 	{ XK_Alt_L, Button3 },
     14 };
     15 
     16 #define OVERLAYS 1
     17 static Key overlay[OVERLAYS] = {
     18 	{ 0, 0, XK_Cancel },
     19 };
     20 
     21 #define LAYERS 1
     22 static char* layer_names[LAYERS] = {
     23 	"arrows",
     24 };
     25 
     26 static Key* available_layers[LAYERS] = {
     27 	keys_arrows,
     28 };
     29