Skip to content
/ wpchg Public

WPChg is a simple and efficient tool for grabbing wallpapers from Unsplash. Written in Go, it's designed for customization and ease-of-use.

License

Notifications You must be signed in to change notification settings

bmbkr/wpchg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPChg - Unsplash Wallpaper Changer

Version Language License

Table of Contents

Overview

WPChg is a simple and efficient tool for grabbing wallpapers from Unsplash. Written in Go, it's designed for customization and ease-of-use.

Installation

To install WPChg, you can either download the binaries or compile from source.

From Binaries

Download the appropriate binary from the latest Release.

From Source

git clone https://github.com/bmbkr/wpchg.git
cd wpchg
make build

Usage

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

Options

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

File Structure

- Makefile
- cmd/
  - wpchg/
    - main.go
- go.mod
- go.sum

Build

The project uses a Makefile for building and installing. For more information, check out the Makefile itself.

Contributing

Feel free to submit a pull request or create an issue.

License

GNU General Public License v3.0. See LICENSE

About

WPChg is a simple and efficient tool for grabbing wallpapers from Unsplash. Written in Go, it's designed for customization and ease-of-use.

Topics

Resources

License

Stars

Watchers

Forks