Files
dotfiles/hypr/hyprpaper-shadowmoses
2025-04-07 23:03:46 +02:00

11 lines
335 B
Bash
Executable File

#!/usr/bin/env bash
WALLPAPER_DIR="$HOME/pictures/wallpaper/shoujo_ai"
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
# Get a random wallpaper that is not the current one
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
# Apply the selected wallpaper
hyprctl hyprpaper reload ,"$WALLPAPER"