sway-dotfiles/wallpaper.sh

13 lines
250 B
Bash
Raw Normal View History

2023-01-30 08:19:14 +01:00
#!/bin/sh
swaybg -i $(find ./Wallpapers -type f | shuf -n 1) -m fill &
OLD_PID=$!
while true; do
sleep 6000
swaybg -i $(find ./Wallpapers -type f | shuf -n1) -m fill &
NEXT_PID=$!
sleep 5
kill $OLD_PID
OLD_PID=$NEXT_PID
done