This commit is contained in:
nnduc
2026-09-25 17:03:27 +07:00
parent 05e604fe27
commit 37b16c4e7c
4 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
wall_dir="${1:?wallpaper directory required}"
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
if [ -n "$img" ]; then
exec swaylock -i "$img"
exec swaylock -f -i "$img"
else
exec swaylock
exec swaylock -f
fi