swayDotfiles/swaybg.sh

12 lines
254 B
Bash
Raw Normal View History

2023-09-05 19:11:24 +02:00
#!/bin/sh
swaybg -i $(find ~/git/Wallpapers/img/ -type f | shuf -n1) -m fill &
OLD_PID=$!
while true; do
sleep 295
swaybg -i $(find ~/git/Wallpapers/img/ -type f | shuf -n1) -m fill &
NEXT_PID=$!
sleep 5
kill $OLD_PID
OLD_PID=$NEXT_PID
done