stop slideshow when changing bg

This commit is contained in:
andrzej 2024-10-11 19:21:41 +02:00
parent 50e001f085
commit 345d237670
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
11599

View File

@ -24,6 +24,8 @@ randomIndex=$(($RANDOM % $length))
echo ${image}
}
while true; do
chooseRandom ${path}
hyprctl hyprpaper preload "${image}"

View File

@ -1,5 +1,12 @@
bgsDirectory="${HOME}/bgs/"
##set working directory to location of this script
cd "$(dirname "$0")"
##stop slideshow if running
sh ./hyprland-slideshow.sh kill
preloadImage(){
hyprctl hyprpaper preload "${image}"
}