background.sh for dwm added

This commit is contained in:
wt
2024-07-02 12:41:48 +07:00
parent b9040b87dc
commit 5e7cddd075
2 changed files with 14 additions and 1 deletions
+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
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
setxkbmap "us,ru" -option 'grp:win_space_toggle'
feh --bg-fill ~/Pictures/hyprpaper/images/beautiful-nature-landscape-with-mountains-lake.png
~/dotfiles/dwm/background.sh &
picom -b
dwmbar &