From fd7a467d8430682ad665a3db0b6e60aeea4c721f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 8 Sep 2024 12:16:31 -0400 Subject: swaybg randomize background hourly --- bin/executable_swaybg-random | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/executable_swaybg-random b/bin/executable_swaybg-random index 6184e33..ba4baa1 100644 --- a/bin/executable_swaybg-random +++ b/bin/executable_swaybg-random @@ -1,15 +1,4 @@ #!/bin/sh # Usage: swaybg-random directory -DIR=$1 -PIDFILE=$XDG_RUNTIME_DIR/swaybg.pid - -if test -z "$DIR"; then - echo "Usage: swaybg-random dir" - exit 1 -fi - -swaybg -i $(find $DIR/. -type f | shuf -n1) -m fill -o \* & -NEWPID=$! -pkill -F $PIDFILE -echo $NEWPID > $PIDFILE +exec swaybg -i "$(find ~/bg/. -type f | shuf -n1)" -m fill -- cgit v1.2.3