From 20a8236c28af2f94a06455944c7219acd798b037 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Sun, 28 Mar 2021 20:51:15 +0200 Subject: [PATCH] Implemented environment variables to set the lisgd threshold (requires latest lisgd) --- scripts/core/sxmo_lisgdstart.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_lisgdstart.sh b/scripts/core/sxmo_lisgdstart.sh index e141a2f..ea48dc5 100755 --- a/scripts/core/sxmo_lisgdstart.sh +++ b/scripts/core/sxmo_lisgdstart.sh @@ -6,13 +6,20 @@ 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 "$XDG_CONFIG_HOME"/sxmo/hooks/lisgdstart & else #-g format: # fingers,swipe,edge,distance,command #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,DLUR,BL,*,sxmo_hotcorner.sh bottomleft' \ -g '1,ULDR,TL,*,sxmo_hotcorner.sh topleft' \