Initial commit

This commit is contained in:
Miles Alan 2020-04-18 20:44:22 -05:00
commit 657331d4b9
5 changed files with 393 additions and 0 deletions

27
config.def.h Normal file
View file

@ -0,0 +1,27 @@
/* Minimum cutoff for a gestures to take effect */
unsigned int threshold = 300;
/* Verbose mode, 1 = enabled, 0 = disabled */
int verbose = 0;
/* Device libinput should read from */
char *device = "/dev/input/event1";
/* Commands to execute upon recieving a swipe gesture */
Gesture gestures[] = {
/* fingers start end command */
{ 1, Left, Right, "xdotool key --clearmodifiers Alt+Shift+h" },
{ 1, Right, Left, "xdotool key --clearmodifiers Alt+Shift+l" },
{ 2, Left, Right, "xdotool key --clearmodifiers Alt+h" },
{ 2, Right, Left, "xdotool key --clearmodifiers Alt+l" },
{ 2, Down, Up, "pidof svkbd-sxmo || svkbd-sxmo &" },
{ 2, Up, Down, "pkill -9 svkbd-sxmo" },
{ 3, Down, Up, "sxmo_vol.sh up" },
{ 3, Up, Down, "sxmo_vol.sh down" },
{ 4, Down, Up, "sxmo_brightness.sh up" },
{ 4, Up, Down, "sxmo_brightness.sh down" },
};