Disable ligsd 1 finger gestures while using foxtrotgps
This commit is contained in:
parent
60963cd20c
commit
b80ce9e872
2 changed files with 14 additions and 6 deletions
8
scripts/core/sxmo_lisgdonefingercheck.sh
Executable file
8
scripts/core/sxmo_lisgdonefingercheck.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
ACTIVEWIN="$(xdotool getactivewindow)"
|
||||
WMCLASS="$(xprop -id "$ACTIVEWIN" | grep WM_CLASS | cut -d ' ' -f3-)"
|
||||
|
||||
# E.g. just a check to ignore 1-finger gestures in foxtrotgps
|
||||
if echo "$WMCLASS" | grep -vi foxtrot; then
|
||||
$@
|
||||
fi
|
|
@ -2,12 +2,12 @@
|
|||
pkill -9 lisgd
|
||||
|
||||
lisgd $@ \
|
||||
-g '1,LR,xdotool key --clearmodifiers Alt+Shift+e' \
|
||||
-g '1,RL,xdotool key --clearmodifiers Alt+Shift+r' \
|
||||
-g '1,DLUR,sxmo_vol.sh up' \
|
||||
-g '1,URDL,sxmo_vol.sh down' \
|
||||
-g '1,DRUL,sxmo_brightness.sh up' \
|
||||
-g '1,ULDR,sxmo_brightness.sh down' \
|
||||
-g '1,LR,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+e' \
|
||||
-g '1,RL,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+r' \
|
||||
-g '1,DLUR,sxmo_lisgdonefingercheck.sh sxmo_vol.sh up' \
|
||||
-g '1,URDL,sxmo_lisgdonefingercheck.sh sxmo_vol.sh down' \
|
||||
-g '1,DRUL,sxmo_lisgdonefingercheck.sh sxmo_brightness.sh up' \
|
||||
-g '1,ULDR,sxmo_lisgdonefingercheck.sh sxmo_brightness.sh down' \
|
||||
-g '2,LR,xdotool key --clearmodifiers Alt+e' \
|
||||
-g '2,RL,xdotool key --clearmodifiers Alt+r' \
|
||||
-g '2,DU,pidof svkbd-sxmo || svkbd-sxmo &' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue