From bc61b23883dd9c4abd8e164d29aa413e0a57f75c Mon Sep 17 00:00:00 2001 From: John Mertz Date: Thu, 22 Sep 2022 14:32:09 -0400 Subject: [PATCH] Script to rotate wallpaper --- sway/rotate-wallpaper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sway/rotate-wallpaper.sh diff --git a/sway/rotate-wallpaper.sh b/sway/rotate-wallpaper.sh new file mode 100755 index 0000000..4f3cb39 --- /dev/null +++ b/sway/rotate-wallpaper.sh @@ -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