| Crates.io | river-swww |
| lib.rs | river-swww |
| version | 0.1.1 |
| created_at | 2025-06-15 01:05:50.462761+00 |
| updated_at | 2025-06-15 01:05:50.462761+00 |
| description | Sets swww's wallpaper based on river's focused tags. |
| homepage | |
| repository | https://github.com/l1na-forever/river-swww |
| max_upload_size | |
| id | 1712809 |
| size | 29,424 |
Sets swww's wallpaper based on river's focused tags.

Install river-bedload. river-bedload is used to stream river's events (tag changes) to river-sww.
Next, install river-swww:
cargo install river-swww
Typically, river-swww is added as a service that starts with river (for example, by adding a runit service entry that invokes river-swww). river-swww could also be added to ~/.config/river/init, however, the service won't be automatically restarted upon termination.
Upon first run, a configuration file with default values is generated at ~/.config/river-swww/config.toml. After customizing the configuration, restart river-swww.
The following keys will configure river-swww:
swww_args: Command-line arguments to pass to swww. This is useful for configuring transition settings.default: A path to a default wallpaper, used as a fallback when a tag is applied that doesn't have a matching entry in tags.tags: A map keyed by tag name to the associated wallpaper's path.Example configuration:
{
"swww_args": "--transition-type simple --transition-fps 30 --transition-step 12",
"default": "/home/lina/Pictures/Wallpapers/default.jpg",
"tags": {
"1": "/home/lina/Pictures/Wallpapers/1.jpg",
"2": "/home/lina/Pictures/Wallpapers/2.jpg",
"3": "/home/lina/Pictures/Wallpapers/3.jpg",
"4": "/home/lina/Pictures/Wallpapers/4.jpg",
"5": "/home/lina/Pictures/Wallpapers/5.jpg"
}
}
Run river-swww interactively and monitor its output as river's tag focus changes.
Copyright © 2025 Lina
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDER