WPChg is a simple and efficient tool for grabbing wallpapers from Unsplash. Written in Go, it's designed for customization and ease-of-use.
To install WPChg, you can either download the binaries or compile from source.
Download the appropriate binary from the latest Release.
git clone https://github.com/bmbkr/wpchg.git
cd wpchg
make build
Run the application with the following command:
./wpchg [OPTIONS]
# For example:
./wpchg -a [Unsplash Access Key] -x 1920 -y 1080 -p ~/.wallpapers \
-s "sh -c ~/.setWallpaper.sh %S" -t nature -t trees -t rain
-v
or--verbose
: Shows verbose debug information.-a
or--access-key
: Unsplash Access Key. (Required)-t
or--tag
: Tags to search for on Unsplash. (Required)-x
or--min-resolution-x
: Minimum resolution width. (Optional)-y
or--min-resolution-y
: Minimum resolution height. (Optional)-X
or--max-resolution-x
: Maximum resolution width. (Optional)-Y
or--max-resolution-y
: Maximum resolution height. (Optional)-p
or--save-path
: Path to save downloaded images to. (Optional)-s
or--set-command
: Command to run to set the wallpaper. Use%s
for relative path and%S
for absolute path. (Optional)
- Makefile
- cmd/
- wpchg/
- main.go
- go.mod
- go.sum
The project uses a Makefile for building and installing. For more information, check out the Makefile itself.
Feel free to submit a pull request or create an issue.
GNU General Public License v3.0. See LICENSE