Script to rotate wallpaper

This commit is contained in:
John Mertz 2022-09-22 14:32:09 -04:00
parent 84ba87dcf8
commit 4a69e4e8d6
1 changed files with 9 additions and 0 deletions

9
sway/rotate-wallpaper.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
PID=`cat /tmp/$USER-wallpaper.pid`
if [ $PID ]; then
kill -SIGUSR1 $PID
else
systemctl --user restart wallpapers.service
fi