From ef76c902b9508671c0ae8ee4618700e16d62bb83 Mon Sep 17 00:00:00 2001 From: tetrakist Date: Mon, 15 Mar 2021 06:07:41 -0700 Subject: [PATCH] Use correct orientation for gestures after unlock. Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_lock.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_lock.sh b/scripts/core/sxmo_lock.sh index 85b0a01..5f42cb5 100755 --- a/scripts/core/sxmo_lock.sh +++ b/scripts/core/sxmo_lock.sh @@ -9,7 +9,8 @@ if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/lock" ]; then fi pkill -9 lisgd sxmo_screenlock "$@" -sxmo_lisgdstart.sh & +[ $(xrandr | grep DSI-1 | cut -d " " -f 5) == "right" ] && ORIENTATION=1 || ORIENTATION=0 +sxmo_lisgdstart.sh -o $ORIENTATION & if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/unlock" ]; then "$XDG_CONFIG_HOME/sxmo/hooks/unlock" fi