diff options
author | awy <awy@awy.one> | 2025-08-11 16:18:35 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-11 16:18:35 +0300 |
commit | 89abe977694152f5035cce868bef452170de69e2 (patch) | |
tree | 4de0c2205d729a38cce8fce959b1f5c5025b4f4c | |
parent | 380aaa017316367f7e76ca14910e070fa68bdf55 (diff) | |
download | hyprdots-89abe977694152f5035cce868bef452170de69e2.tar.gz |
some papes may not appear
-rwxr-xr-x | .local/bin/randombg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/randombg b/.local/bin/randombg index 6e386ef..61704bf 100755 --- a/.local/bin/randombg +++ b/.local/bin/randombg @@ -9,11 +9,11 @@ fi echo $$ > "$PIDFILE" trap 'rm -f "$PIDFILE"; exit' INT TERM EXIT -swaybg -i $(fd . /mnt/ssd/papes -t f | shuf -n1) -m fill & +swaybg -i "$(fd . /mnt/ssd/papes -t f | shuf -n1)" -m fill & OLD_PID=$! while true; do sleep 300 - swaybg -i $(fd . /mnt/ssd/papes -t f | shuf -n1) -m fill & + swaybg -i "$(fd . /mnt/ssd/papes -t f | shuf -n1)" -m fill & NEXT_PID=$! sleep 5 kill $OLD_PID |