Script to rotate wallpaper

This commit is contained in:
John Mertz 2022-09-22 14:32:09 -04:00
parent 8bff2f7147
commit bc61b23883
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
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