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.
- Host: GitHub
- URL: https://github.com/crumb1e/bash-the-wall
- Owner: crumb1e
- Created: 2019-09-25T21:32:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-13T14:11:46.000Z (over 3 years ago)
- Last Synced: 2025-03-22T06:46:29.915Z (over 1 year ago)
- Topics: bash, ricing, tool, wallpaper
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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_)