From 04a1729781f8bdb312524f140e09192fc5acf486 Mon Sep 17 00:00:00 2001 From: sudacode Date: Thu, 1 May 2025 21:17:54 -0700 Subject: [PATCH] update command to use tr --- change-wallpaper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/change-wallpaper.sh b/change-wallpaper.sh index d345536..316afee 100755 --- a/change-wallpaper.sh +++ b/change-wallpaper.sh @@ -16,7 +16,7 @@ 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")" ! -name "*.json" | shuf -n 1) # remove double slashes that's there for some reason -WALLPAPER="${WALLPAPER//\/\///}" +WALLPAPER=$(printf "%s" "$WALLPAPER" | tr -s '/') echo "Changing wallpaper to $WALLPAPER" echo "$WALLPAPER" > "$HOME/.wallpaper"