2023-05-28 18:24:21 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
## https://www.reddit.com/r/swaywm/comments/ocec7k/comment/i93s0ma/
|
|
|
|
## https://git.sr.ht/~mil/lisgd/tree/0.3.7/item/config.def.h
|
|
|
|
|
|
|
|
function gestures {
|
|
|
|
lisgd -d /dev/input/by-path/platform-AMDI0010\:00-event -o 0 -t 125 -r 25 -m 3200 \
|
2023-05-29 23:09:15 -04:00
|
|
|
-g "3,RL,N,*,R,$HOME/.config/sway/scripts/gestures.sh next touch" \
|
|
|
|
-g "3,LR,N,*,R,$HOME/.config/sway/scripts/gestures.sh prev touch" \
|
|
|
|
-g "1,DU,B,*,R,$HOME/.config/sway/scripts/tablet/osk-toggle.sh"
|
2023-05-28 18:24:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
if pgrep lisgd ; then
|
|
|
|
killall lisgd
|
|
|
|
gestures
|
|
|
|
else
|
|
|
|
gestures
|
|
|
|
fi
|