Skip to content

crumb1e/bash-the-wall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Bash the wall

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.

Requirements/Dependencies

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.

Usage

Run the script with the help flag to find out more!

./wall.sh -h

Example

./wall.sh nature bird
# This will grab a picture from unsplash that matches the query 'nature bird'

Notes

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.


To Do

  • 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_

About

lil bash script to grab a wallpaper from unsplash and set it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages