scripts/sway/rotate-wallpaper.sh

10 lines
146 B
Bash
Raw Normal View History

2022-09-22 18:32:09 +00:00
#!/bin/bash
PID=`cat /tmp/$USER-wallpaper.pid`
if [ $PID ]; then
2023-01-06 19:41:31 +00:00
kill -SIGUSR1 $PID
2022-09-22 18:32:09 +00:00
else
2023-01-06 19:41:31 +00:00
systemctl --user restart wallpapers.service
2022-09-22 18:32:09 +00:00
fi