stop slideshow when changing bg
This commit is contained in:
parent
50e001f085
commit
345d237670
|
@ -0,0 +1 @@
|
||||||
|
11599
|
|
@ -24,6 +24,8 @@ randomIndex=$(($RANDOM % $length))
|
||||||
echo ${image}
|
echo ${image}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
chooseRandom ${path}
|
chooseRandom ${path}
|
||||||
hyprctl hyprpaper preload "${image}"
|
hyprctl hyprpaper preload "${image}"
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
bgsDirectory="${HOME}/bgs/"
|
bgsDirectory="${HOME}/bgs/"
|
||||||
|
|
||||||
|
##set working directory to location of this script
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
##stop slideshow if running
|
||||||
|
sh ./hyprland-slideshow.sh kill
|
||||||
|
|
||||||
|
|
||||||
preloadImage(){
|
preloadImage(){
|
||||||
hyprctl hyprpaper preload "${image}"
|
hyprctl hyprpaper preload "${image}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue