scripts/sway/rotate-wallpaper.sh

10 lines
154 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
kill -SIGUSR1 $PID
else
systemctl --user restart wallpapers.service
fi