2023-01-30 08:19:14 +01:00
|
|
|
#!/bin/sh
|
2023-03-18 22:54:59 +01:00
|
|
|
dir=/home/gunalx/.config/sway/Wallpapers
|
2023-05-19 16:00:17 +02:00
|
|
|
swaybg -i $(find $dir -type f | shuf -n 1) -m fill &&
|
2023-01-30 08:19:14 +01:00
|
|
|
|
|
|
|
OLD_PID=$!
|
|
|
|
while true; do
|
2023-05-19 16:00:17 +02:00
|
|
|
sleep 3000
|
2023-03-18 22:54:59 +01:00
|
|
|
swaybg -i $(find $dir -type f | shuf -n1) -m fill &
|
2023-01-30 08:19:14 +01:00
|
|
|
NEXT_PID=$!
|
|
|
|
sleep 5
|
|
|
|
kill $OLD_PID
|
|
|
|
OLD_PID=$NEXT_PID
|
|
|
|
done
|