background.sh for dwm added

This commit is contained in:
wt committed 2024-07-02 12:41:48 +07:00
1 parent b9040b87dc
commit 5e7cddd075
2 files changed
+14 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
directory=~/Pictures/hyprpaper/images
while true; do
if [ -d "$directory" ]; then
random_background=$(ls $directory/* | shuf -n 1)
feh --bg-fill $random_background
fi
sleep 60
done