summaryrefslogtreecommitdiff
path: root/.config/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.config/scripts')
-rw-r--r--.config/scripts/wallpaper.sh5
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"