diff options
| author | silly <u65487754@gmail.com> | 2026-03-16 13:19:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-16 13:19:28 +0100 |
| commit | d3af780cbf81a526a4544c997ba9621b68cca818 (patch) | |
| tree | 1cd8a80ec80f49927a18ab873e2ab7a557aa83b0 | |
| parent | 394abb1b7d4b7e50e3273203a1cb374c47feb519 (diff) | |
Update wallpaper.sh
| -rw-r--r-- | .config/scripts/wallpaper.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/scripts/wallpaper.sh b/.config/scripts/wallpaper.sh index e6140fa..b33e094 100644 --- a/.config/scripts/wallpaper.sh +++ b/.config/scripts/wallpaper.sh @@ -13,6 +13,9 @@ list_images() { for img in "$WALLPAPER_DIR"*; do filename=$(basename "$img") + + [[ "$filename" == "dice.png" ]] && continue + thumb="$THUMBNAIL_DIR$filename" if [ ! -f "$thumb" ]; then @@ -30,7 +33,7 @@ selected=$(list_images | rofi -dmenu -i -p ">" -theme "$RASI_THEME") if [[ "$selected" == "random" ]]; then current_wall=$(basename "$(readlink -f "$CACHE_PATH")" 2>/dev/null) - selected=$(ls -p "$WALLPAPER_DIR" | grep -v / | grep -v "^$current_wall$" | shuf -n 1) + selected=$(ls -p "$WALLPAPER_DIR" | grep -v / | grep -v "^$current_wall$" | grep -v "dice.png" | shuf -n 1) fi FULL_PATH="$WALLPAPER_DIR/$selected" |
