aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/setwall
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/setwall')
-rwxr-xr-x.local/bin/setwall3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/setwall b/.local/bin/setwall
index 173faf3..c21cfb1 100755
--- a/.local/bin/setwall
+++ b/.local/bin/setwall
@@ -41,6 +41,9 @@ done
case $MODE in
random)
NEW_WALL=$(find "$WALL_DIR" -type f | shuf -n 1)
+ if [[ -z "$NEW_WALL" ]]; then
+ NEW_WALL="$HOME/.config/hypr/default-wallpaper.png"
+ fi
apply_wallpaper
;;
path)