Skip to content

Simple cross-platform cli-program to fetch random image and set it as wallpaper.

License

Notifications You must be signed in to change notification settings

towsifkafi/paperwall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

./paperwall - A simple cli-tool for random wallpapers

This cli tool is my first Rust project, uses Wallhaven's API to automatically update desktop wallpaper. It supports all major operating systems (Windows / Mac / Linux). As it's my initial attempt, there may be bugs, and I welcome feedback and contributions to enhance it.

Installation

You can downlaod binaries for your operating system from the releases section

Or, if you have rust and cargo installed on your system:

cargo install paperwall

Building from source

if you want to build this tool from source. Run these following commands:

git clone https://github.com/towsifkafi/paperwall.git
cd paperwall
cargo build --release
# Optionally, move the built executable to a location in your PATH

Usage

This tool is dead simple, to get a random wallpaper you can just run:

paperwall

By default, it'll fetch a pixel art wallpaper. You can change it by passing --query or -q argument:

paperwall -q "pokemon"

this will fetch a random wallpaper that has pokemon tag. Also, you can search wallpapers via colorcodes:

paperwall --query "magikarp" --color "ffffff"

Help Page:

Simple program to fetch random image and set it as wallpaper

Usage: paperwall [OPTIONS]

Options:
  -q, --query <QUERY>  Query you want to search at https://wallhaven.cc [default: pixel]
  -c, --color <COLOR>  Search with colors [Don't add # in hex codes] [default: ]
  -k, --key <KEY>      Use API key [For searching NSFW images] [default: ]
  -h, --help           Print help
  -V, --version        Print version

Note

Wallhaven does not require an auth key. But if you want to search for NSFW queries, you'll need one. To pass an auth key use the --key argument.

Development

Since this is my first project in rust, there might a lot of bugs. Feel free to submit a Pull Request or post an issue if you encounter any bugs or errors.

Source

Thanks to WallHaven's cool API.

Also, these libraries/links were very helpful resources throughout the development of this project and helped me learn my things related to Rust:

About

Simple cross-platform cli-program to fetch random image and set it as wallpaper.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages