An open API service indexing awesome lists of open source software.

https://github.com/crumb1e/bash-the-wall

lil bash script to grab a wallpaper from unsplash and set it.
https://github.com/crumb1e/bash-the-wall

bash ricing tool wallpaper

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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.

You'll need an api key from unsplash as they've discontinued the source api. Place this in `api_keys.env`.

## Requirements/Dependencies
If you're on linux, you will need [feh](https://github.com/derf/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!
```sh
./wall.sh -h
```

## Example

```sh
./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_](https://www.twitter.com/crumb1e_)