aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-11 16:18:35 +0300
committerawy <awy@awy.one>2025-08-11 16:18:35 +0300
commit89abe977694152f5035cce868bef452170de69e2 (patch)
tree4de0c2205d729a38cce8fce959b1f5c5025b4f4c /.local/bin
parent380aaa017316367f7e76ca14910e070fa68bdf55 (diff)
downloadhyprdots-89abe977694152f5035cce868bef452170de69e2.tar.gz
some papes may not appear
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/randombg4
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