From ae459ce1e908d10779b282259628331919bc5d5d Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 2 Jan 2024 03:41:38 +0100 Subject: [PATCH] static mode is now default --- pixelfloot_bash.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pixelfloot_bash.sh b/pixelfloot_bash.sh index 0950f09..56bc039 100755 --- a/pixelfloot_bash.sh +++ b/pixelfloot_bash.sh @@ -186,19 +186,18 @@ shuf_xy() { echo "OFFSET $(shuf -i 0-$W -n 1) $(shuf -i 0-$H -n 1)" ;; - shake) test -z $H && H=1 - test -z $W && W=1 + shake) test -z $H && H=0 + test -z $W && W=0 echo "OFFSET $(shuf -i $W-$(($W+10)) -n 1) $(shuf -i $H-$(($H+10)) -n 1)" ;; - static) echo "OFFSET $W $H" - ;; - cursor) echo "OFFSET $(xdotool getmouselocation | tr ':' ' '|awk '{print $2 " " $4}')" ;; - - *) echo "OFFSET 0 0" - ;; + + static|*) test -z $H && H=0 + test -z $W && W=0 + echo "OFFSET $W $H" + ;; esac # #