scripts/sway/rotate-wallpaper.sh

10 lines
146 B
Bash
Executable File

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