A small bash script to set your wallpaper from the command line. Simply run ./wall.sh
followed by any categories you would like!
Or, if you are feelin fancy, run it with no arguments for a random background. Crazy stuff I know...
This uses the unsplash API to source the images.
If you're on linux, you will need feh installed for this to work.
I've tested this on macOS 10.9+ and I can't say for certain that it will work on earlier releases. YMMV.
Run the script with the help flag to find out more!
./wall.sh -h
./wall.sh nature bird
# This will grab a picture from unsplash that matches the query 'nature bird'
As feh only sets the wallpaper for the current session, you can either add ~/.fehbg &
to your startup file (usually ~/.xinitrc, ~/.config/openbox/autostart
etc) to run the last feh command on startup.
Alternatively add ./wall.sh
with your arguments to your startup file to generate a new wallpaper on startup.
Allow a resolution to be passed in rather than always fetching 4k.Done!
Any issues either open an issue on github, or give me a shout over on twitter @crumb1e_