/ screensaver image upd - and gravity change

now all images will be to the right, either up or down
This commit is contained in:
committer@tuxwarrior
2025-03-27 20:29:21 -05:00
parent ce8efa1007
commit 773cec3fc3

View File

@@ -3,11 +3,12 @@
# src:https://github.com/veltall/custom-i3lock # src:https://github.com/veltall/custom-i3lock
img_dir=/home/${USER}/.local/share/img img_dir=/home/${USER}/.local/share/img
overlay_images=("ajp.png" "amiga.png" "antiVax.png" "archLinux.png" "archLogo.png" "linuxLogo1.png" "linuxLogo2.png" "neon1.png" "neon2.png" "rickroll.png") overlay_images=("ajp.png" "archLinux.png" "archLogo.png" "atat.png" "birds.png" "butterflies.png" "butterflyBlue.png" "greenFish.png" "jesusChrist.png" "neon1.png" "neon2.png" "panamaAqui.png" "rickroll.png" "smokeAbstract.png" "waterWave.png")
random_image_file=${overlay_images[ $RANDOM % ${#overlay_images[@]} ]} random_image_file=${overlay_images[ $RANDOM % ${#overlay_images[@]} ]}
random_image=${img_dir}/${random_image_file} random_image=${img_dir}/${random_image_file}
gravity=("center" "northwest" "northeast" "southwest" "southeast") #gravity=("center" "northwest" "northeast" "southwest" "southeast")
gravity=("northeast" "southeast")
random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]} random_gravity=${gravity[ $RANDOM % ${#gravity[@]} ]}
notify-send "${random_image_file} @ ${random_gravity}" notify-send "${random_image_file} @ ${random_gravity}"