| Crates.io | setwall |
| lib.rs | setwall |
| version | 1.2.0 |
| created_at | 2020-06-17 19:16:08.072945+00 |
| updated_at | 2021-12-10 01:05:14.530707+00 |
| description | Set your wallpaper on Wayland or X11. |
| homepage | https://github.com/fosskers/rs-setwall |
| repository | https://github.com/fosskers/rs-setwall |
| max_upload_size | |
| id | 255007 |
| size | 13,635 |
setwallA simple script for automating the setting of a wallpaper on Sway/Wayland or X11.
For X11, it assumes you have hsetroot installed.
Usage: setwall [OPTIONS]
Optional arguments:
-h, --help
Available commands:
set Set a specific image file as the background.
random Choose a random image file from a given directory.
-c/--comp to pick an output compositor. -c sway will use
swaybg to replace your Sway background, while the default -c x11 will use
hsetroot.-o/--output to pick a Sway output or X screen if using X11. If
this flag is missing, the image will be applied to all screens.-k/--keep to prevent the existing swaybg from being closed.For instance:
setwall random ~/Pictures -c sway -o DP-2 -o DP-3 -o HDMI-A-1
If you have a custom .xinitrc, you can set this line:
/home/YOU/.cargo/bin/setwall random /home/YOU/backgrounds/
Assuming you have a directory full of images at that path. Every time you log in, you'll have a different wallpaper!