From: Andre Ramnitz Date: Sun, 27 Apr 2025 01:01:21 +0000 (+0200) Subject: hypr: script to apply rnd wallpaper with hyprpaper X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=f79faf87fd4a1aad736ee95c62a924d055a01d61;p=dotfiles.git hypr: script to apply rnd wallpaper with hyprpaper --- diff --git a/dot-local/bin/rndhyprpaper b/dot-local/bin/rndhyprpaper new file mode 100755 index 00000000..1af87ab9 --- /dev/null +++ b/dot-local/bin/rndhyprpaper @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +WALLPAPER_DIR="$HOME/Bilder/Wallpapers-simple" +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" +