cycles instead of random wallpaper dotfiles update

This commit is contained in:
nomadics9 2024-10-24 22:20:34 +03:00
parent 7b6447b8d5
commit cf751fc088

View file

@ -1,4 +1,3 @@
#!/bin/bash
# Directory containing wallpapers
@ -29,7 +28,7 @@ next_index=$(( (current_index + 1) % ${#wallpapers[@]} ))
# Set the next wallpaper
next_wallpaper="${wallpapers[$next_index]}"
hyprctl hyprpaper preload "$next_wallpaper"
hyprctl hyprpaper wallpaper eDP-1,"$next_wallpaper"
hyprctl hyprpaper wallpaper ,"$next_wallpaper"
# Save the new index to the file
echo $next_index > $INDEX_FILE