This commit is contained in:
2026-06-25 16:15:58 +07:00
parent 3ed4afab73
commit 99dc13136e
5 changed files with 17 additions and 15 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/bash
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
wall_dir="${1:?wallpaper directory required}"
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
tmp=/tmp/lockscreen.png
res=$(xrandr --current | awk '/ connected/ {getline; print $1; exit}')
: "${res:=1920x1080}"