From 906226a4ed2978cabf0953846f7e05819bf8b003 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 26 Apr 2021 23:00:35 +0200 Subject: [PATCH] added gesture to close less/mless (swipe to left edge or left along bottom edge) --- scripts/core/sxmo_inputhandler.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/core/sxmo_inputhandler.sh b/scripts/core/sxmo_inputhandler.sh index 1a667c0..936cbf0 100755 --- a/scripts/core/sxmo_inputhandler.sh +++ b/scripts/core/sxmo_inputhandler.sh @@ -39,6 +39,11 @@ if [ "$HANDLE" -ne 0 ]; then xdotool key s HANDLE=0 fi + elif echo "$WMNAME" | grep -i -E -w "(less|mless)"; then + if [ "$ACTION" = "back" ] || [ "$ACTION" = "scrollleft_short" ]; then + xdotool key q + HANDLE=0 + fi fi ;; esac