summaryrefslogtreecommitdiff
path: root/.local/bin/randomwall
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/randomwall')
-rwxr-xr-x.local/bin/randomwall17
1 files changed, 0 insertions, 17 deletions
diff --git a/.local/bin/randomwall b/.local/bin/randomwall
deleted file mode 100755
index fee4482..0000000
--- a/.local/bin/randomwall
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-WALL_DIR="$HOME/pix/wallpapers/onedarkwallpapers/"
-NEW_WALL=$(find "$WALL_DIR" -type f | shuf -n 1)
-
-if ! pgrep -x hyprpaper >/dev/null; then
- # hyprpaper not running → write config and start it
- cat > ~/.config/hypr/hyprpaper.conf <<EOF
-preload = $NEW_WALL
-wallpaper = ,$NEW_WALL
-EOF
- hyprpaper &
-else
- # hyprpaper is running → just update it live
- hyprctl hyprpaper preload "$NEW_WALL"
- hyprctl hyprpaper wallpaper ",$NEW_WALL"
-fi
-