Commit graph

19 commits

Author SHA1 Message Date
Stacy Harper
f28a81a10c Contextual gesture for amfora
This make gestures convenient enough to use the app only with gestures.

All the scroll direction are used :

Prev link       Scroll Up     Open in new tab

Back prev page                Open link

Close tab       Scroll Down   Next Link

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-21 23:02:28 +02:00
Stacy Harper
c427a0eb7b Cleanup input handling
We now use uncontextualized event name from lisgd as leftrightcorner. We
will determine the action name only in the input handler. It allow
events to match multiple action depending on contexts.

We also add some basics events as left/rigth/up/down and
twoleft/tworight/twoup/twodown and use some of them.

Use use twoup and twodown to scroll in less and right left to
change the page.

We also prefer use case switch instead of if conditions.

We remove this HANDLE variable usage and exit directly when the event
has been handled.

We also add some methods as type, key or typeenter to simplify some
code.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-13 21:00:50 +02:00
Clayton Craft
355f68652e sxmo_lisgdstart: log output to file
Useful when identifying/debugging lisgd crashes, and other strange behavior.

The log location is the same place where dwm logs to, so this seemed
appropriate.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-24 15:10:07 -04:00
Maarten van Gompel
21379b7914 Renamed sxmo_gesturehandler.sh to sxmo_inputhandler.sh (after Sam Bowly's patches), renamed gesture hook to inputhandler hook. Removed hotcorner script and powerbutton scripts and their hooks (now all handled by inputhandler and its hook). 2021-04-10 13:47:22 +02:00
Maarten van Gompel
8959fa50ac fixed top right hotcorner #229 2021-04-02 17:45:52 +02:00
Maarten van Gompel
2188ed15ea forward parameters to lisgdstart hook (as suggeested by ~dinkocar in #222) 2021-03-30 20:36:02 +02:00
Maarten van Gompel
20a8236c28 Implemented environment variables to set the lisgd threshold (requires latest lisgd) 2021-03-28 20:52:22 +02:00
Maarten van Gompel
462c0e58d5 also use new hold-pressed swipes for brightness and volume controls (top respective left edge) 2021-03-27 23:26:45 +01:00
Maarten van Gompel
a4f2c55af5 increasing gesture sensitivity (smaller distance threshold) 2021-03-27 23:26:45 +01:00
Maarten van Gompel
55f473389c Implemented scroll gesture using new lisgd "pressed" action mode 2021-03-27 23:26:45 +01:00
Maarten van Gompel
1145abb014 use 2-finger swipe down to close window, 3 to kill window 2021-03-22 19:49:48 +01:00
Maarten van Gompel
295af30993 various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
Maarten van Gompel
7fb7cd70f3 various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01:00
Maarten van Gompel
e8e4c77a51 swapped the two move-window-to-next-desktop gestures, the direction of the swipe is now the direction of movement (makes more sense imho)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:54:49 +01:00
Maarten van Gompel
6448587eb8 complete revision of gestures, using new edge system
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:53:46 +01:00
Maarten van Gompel
ace9960926 Made choice for virtual keyboard configurable through the $KEYBOARD environment variable.
This implements what was suggested in the discussion regarding the svkbd
patch, it makes the choice of virtual keyboard configurable using the
$KEYBOARD variable, rather than hard-coding it.
2020-07-26 10:22:31 -05:00
Miles Alan
cef4de2af0 Use "$@" for expansion calls rather than manually listing argument numbers 2020-06-27 20:19:47 -05:00
Miles Alan
b80ce9e872 Disable ligsd 1 finger gestures while using foxtrotgps 2020-06-26 20:02:24 -05:00
Miles Alan
60963cd20c Start lisgd via a script instead of directly so changing gestures is simpler 2020-06-26 19:56:56 -05:00