From 2031e3635907550700150f85a18ae7e0582776ee Mon Sep 17 00:00:00 2001 From: fro Date: Sun, 18 Jan 2026 18:10:53 -0500 Subject: [PATCH] / gravity change --- dots/bin/i3lock_fk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dots/bin/i3lock_fk.sh b/dots/bin/i3lock_fk.sh index 91043ba..f8c1f02 100755 --- a/dots/bin/i3lock_fk.sh +++ b/dots/bin/i3lock_fk.sh @@ -9,6 +9,8 @@ random_image=$(ls -1 /home/${USER}/.local/share/img/*.png | shuf | head -1) random_image_filname="$(basename -- $random_image)" # get random gravity to use for the overlay image, take the number of displays into account +# https://imagemagick.org/script/command-line-options.php#gravity +# $ magick -list gravity numberOfDisplays=$(xrandr --query | grep -o " connected " | wc -l) gravity=("center") # "center" "northwest" "northeast" "southwest" "southeast" if [[ numberOfDisplays == 1 ]] || [[ numberOfDisplays == 3 ]] ; then @@ -16,7 +18,7 @@ if [[ numberOfDisplays == 1 ]] || [[ numberOfDisplays == 3 ]] ; then elif [[ numberOfDisplays == 2 ]] ; then gravity=("northeast" "southeast") else - gravity=("southeast") + gravity=("east") fi random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}