Implemented environment variables to set the lisgd threshold (requires latest lisgd)
This commit is contained in:
parent
462c0e58d5
commit
20a8236c28
1 changed files with 8 additions and 1 deletions
|
@ -6,13 +6,20 @@
|
||||||
|
|
||||||
pkill -9 lisgd
|
pkill -9 lisgd
|
||||||
|
|
||||||
|
if [ -z "$LISGD_THRESHOLD" ]; then
|
||||||
|
LISGD_THRESHOLD=125
|
||||||
|
fi
|
||||||
|
if [ -z "$LISGD_THRESHOLD_PRESSED" ]; then
|
||||||
|
LISGD_THRESHOLD_PRESSED=60
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart ]; then
|
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart ]; then
|
||||||
"$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart &
|
"$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart &
|
||||||
else
|
else
|
||||||
#-g format:
|
#-g format:
|
||||||
# fingers,swipe,edge,distance,command
|
# fingers,swipe,edge,distance,command
|
||||||
#order matters, only the first match gets executed
|
#order matters, only the first match gets executed
|
||||||
lisgd "$@" -t 125 \
|
lisgd "$@" -t "$LISGD_THRESHOLD" -T "$LISGD_THRESHOLD_PRESSED" \
|
||||||
-g '1,DRUL,BR,*,sxmo_hotcorner.sh bottomright' \
|
-g '1,DRUL,BR,*,sxmo_hotcorner.sh bottomright' \
|
||||||
-g '1,DLUR,BL,*,sxmo_hotcorner.sh bottomleft' \
|
-g '1,DLUR,BL,*,sxmo_hotcorner.sh bottomleft' \
|
||||||
-g '1,ULDR,TL,*,sxmo_hotcorner.sh topleft' \
|
-g '1,ULDR,TL,*,sxmo_hotcorner.sh topleft' \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue