23 lines
471 B
Bash
Executable File
23 lines
471 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
Wallpaper_DIR="/home/smayzy/wallpaper"
|
|
|
|
set_wallpaper() {
|
|
local Wallpaper=$(find $Wallpaper_DIR | shuf -n 1)
|
|
|
|
> /home/smayzy/.config/hypr/hyprpaper.conf
|
|
|
|
echo "preload = $Wallpaper" >> /home/smayzy/.config/hypr/hyprpaper.conf
|
|
echo "wallpaper = ,$Wallpaper" >> /home/smayzy/.config/hypr/hyprpaper.conf
|
|
|
|
# Restart hyprpaper
|
|
pkill hyprpaper 2>/dev/null
|
|
hyprpaper &
|
|
}
|
|
|
|
while true; do
|
|
set_wallpaper
|
|
sleep 600
|
|
done
|
|
|