Files
lisgd/config.def.h
T

29 lines
1.2 KiB
C

/*
distancethreshold: Minimum cutoff for a gestures to take effect
degreesleniency: Offset degrees within which gesture is recognized (max=45)
timeoutms: Maximum duration for a gesture to take place in miliseconds
orientation: Number of 90 degree turns to shift gestures by
verbose: 1=enabled, 0=disabled; helpful for debugging
device: Path to the /dev/ filesystem device events should be read from
gestures: Array of gestures; binds num of fingers / gesturetypes to commands
Supported gestures: SwipeLR, SwipeRL, SwipeDU, SwipeUD,
SwipeDLUR, SwipeURDL, SwipeDRUL, SwipeULDR
*/
unsigned int distancethreshold = 20;
unsigned int degreesleniency = 35;
unsigned int timeoutms = 800;
unsigned int orientation = 2;
unsigned int verbose = 0;
char *device = "/dev/input/event1";
Gesture gestures[] = {
/* nfingers gesturetype command */
{ 3, SwipeRL, "wtype -k right" },
{ 3, SwipeLR, "wtype -k left" },
{ 4, SwipeLR, "swaymsg workspace prev_on_output" },
{ 4, SwipeRL, "swaymsg workspace next_on_output" },
{ 5, SwipeLR, "wayscriber --daemon-toggle" },
{ 5, SwipeRL, "wayscriber --daemon-toggle" },
};