cycles instead of random wallpaper dotfiles update
This commit is contained in:
parent
7b6447b8d5
commit
cf751fc088
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Directory containing wallpapers
|
# Directory containing wallpapers
|
||||||
|
@ -29,7 +28,7 @@ next_index=$(( (current_index + 1) % ${#wallpapers[@]} ))
|
||||||
# Set the next wallpaper
|
# Set the next wallpaper
|
||||||
next_wallpaper="${wallpapers[$next_index]}"
|
next_wallpaper="${wallpapers[$next_index]}"
|
||||||
hyprctl hyprpaper preload "$next_wallpaper"
|
hyprctl hyprpaper preload "$next_wallpaper"
|
||||||
hyprctl hyprpaper wallpaper eDP-1,"$next_wallpaper"
|
hyprctl hyprpaper wallpaper ,"$next_wallpaper"
|
||||||
|
|
||||||
# Save the new index to the file
|
# Save the new index to the file
|
||||||
echo $next_index > $INDEX_FILE
|
echo $next_index > $INDEX_FILE
|
||||||
|
|
Loading…
Reference in a new issue