mirror of
https://github.com/zebrajr/dotfiles.git
synced 2025-12-06 00:20:05 +01:00
14 lines
403 B
Bash
Executable File
14 lines
403 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Source the config file from the same directory as the script
|
|
SCRIPT_DIR=$(dirname "$0")
|
|
source "$SCRIPT_DIR/config"
|
|
|
|
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"
|