| Crates.io | chwp |
| lib.rs | chwp |
| version | 1.239.53 |
| created_at | 2022-06-18 11:24:46.425281+00 |
| updated_at | 2025-09-14 20:50:14.701051+00 |
| description | Change your wallpaper from the command line interface. |
| homepage | https://github.com/RouHim/chwp |
| repository | https://github.com/RouHim/chwp |
| max_upload_size | |
| id | 608496 |
| size | 160,686 |
Changes the wallpaper from the command line.
I love the command line, and I love eye candy, this tool combines both worlds by allowing me to change the background image from the command line.
Use the cargo package manager to install the chwp crate:
cargo install chwp
This bash snippet will download and install the latest chwp release:
LATEST_VERSION=$(curl -L -s -H 'Accept: application/json' https://github.com/RouHim/chwp/releases/latest | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/') && \
mkdir -p ~/.local/bin && \
curl -L -o ~/.local/bin/chwp https://github.com/RouHim/chwp/releases/download/$LATEST_VERSION/chwp-linux-x86-64 && \
chmod +x ~/.local/bin/chwp
[!TIP] Ensure
~/.local/binis in your PATH. Addexport PATH="$HOME/.local/bin:$PATH"to your shell's profile.
yay -S chwp-bin
chwp [keywords]|[imageurl] span
Set a random wallpaper for the keyword ocean:
chwp ocean
Set a wallpaper from a specific image url:
chwp https://source.unsplash.com/1920x1080
Set a wallpaper from a local path. A random one will be chosen:
chwp /path/to/pictures/
Set a wallpaper from multiple keywords, a random one will be selected:
chwp water,sky,ocean
Combine multiple keywords with a +:
chwp night+city
The span parameter can be used to span the wallpaper over multiple screens:
chwp ocean span