summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorsilly <u65487754@gmail.com>2026-03-09 02:40:57 +0100
committerGitHub <noreply@github.com>2026-03-09 02:40:57 +0100
commit9e6f8bc062b1090e28cb6ace4b8e522d881d8d7e (patch)
tree2400699b9982cd6d909a84e3e09bd76d47a21627 /.config
parentc5f80a1ff3b3093025a5043f972179dc272c3850 (diff)
Update wallpaper.sh
Diffstat (limited to '.config')
-rw-r--r--.config/scripts/wallpaper.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/scripts/wallpaper.sh b/.config/scripts/wallpaper.sh
index b04b8aa..3206102 100644
--- a/.config/scripts/wallpaper.sh
+++ b/.config/scripts/wallpaper.sh
@@ -1,15 +1,15 @@
#!/bin/bash
-WALL_DIR="$HOME/.config/wallpaper"
-CACHE_PATH="$HOME/.cache/current_wallpaper.png"
+WALL_DIR="$HOME/.config/wallpaper/"
+CACHE_PATH="$HOME/.cache/wallpaper.*"
selected=$(echo -e "random\n$(ls "$WALL_DIR")" | fuzzel -d -p "> ")
[[ -z "$selected" ]] && exit
if [ "$selected" = "random" ]; then
- current_wall=$(basename "$(readlink -f "$CACHE_PATH")")
- selected=$(ls "$WALL_DIR" | grep -v "$current_wall" | shuf -n 1)
+ wall=$(basename "$(readlink -f "$CACHE_PATH")")
+ selected=$(ls "$WALL_DIR" | grep -v "$wall" | shuf -n 1)
fi
FULL_PATH="$WALL_DIR/$selected"