aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-01-31 17:38:38 +0300
committerawy <awy@awy.one>2025-01-31 17:38:38 +0300
commit855a7d04f6e50d997fdf45da899b883917d413a2 (patch)
tree4bdb116ec3ef22b1af45e7f02f73c228427cd162
parente1ce07db4ad9397f0adace029034ae934a004af6 (diff)
rust
-rwxr-xr-x.local/bin/hyprslideshow2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/hyprslideshow b/.local/bin/hyprslideshow
index 0edcc74..d917017 100755
--- a/.local/bin/hyprslideshow
+++ b/.local/bin/hyprslideshow
@@ -16,7 +16,7 @@ sleep 1
while true; do
hyprctl hyprpaper unload all
if ! pidof Hyprland > /dev/null; then rm $XDG_RUNTIME_DIR/wallpaper_wait.pid; exit; fi
- new_wp=$(find ${IMG_PATH} -type f | shuf -n1)
+ new_wp=$(fd . $IMG_PATH -t f -E "tiles" -E "unsafe" | shuf -n1)
hyprctl hyprpaper preload $new_wp
monitors_json=$(hyprctl monitors -j)
monitors_count=$(echo $monitors_json | jq length)