Last active
June 22, 2024 19:00
-
-
Save himalay/37031c529b1e4a04ad31 to your computer and use it in GitHub Desktop.
Sets random wallpaper every 30 minutes using feh(A lightweight and powerful image viewer).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
img=(`find ~/pictures/wallpapers/ -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' | cut -d':' -f1`) | |
while true | |
do | |
feh --bg-scale "${img[$RANDOM % ${#img[@]} ]}" | |
sleep 30m | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, this works well!