Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- dir="${HOME}/Pictures/wallhaven/111"
- if ! [[ -f "$dir/wlist" ]] ; then
- find "$dir" -type f >| "$dir/wlist"
- fi
- index=$(cat "$dir/wIndex")
- index=$((index+1))
- wallpaper=$(cat "$dir/wlist" | sed -n "$index"p )
- feh --bg-fill "$wallpaper"
- echo "$index" >| "$dir/wIndex"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement