From 4a69e4e8d621a65026a4f5d6ab88a17edfd0ba8a 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