aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/randombg
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/randombg')
-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