1 unstable release
Uses new Rust 2024
| 0.1.0 | Jun 26, 2026 |
|---|
#571 in GUI
7KB
swayopacity
A lightweight sway daemon that adjusts the opacity based on focus. Freely adjust the opaqueness of focused and unfocused windows. If you want additional features or find a bug, feel free to open an issue or a pull request.
Requirements
- Sway
- Rust & Cargo
Installation
cargo install swayopacity
Configuration
On first launch, swayopacity creates a configuration file at:
~/.config/swayopacity/config.toml
The default values are:
default_opacity = 0.85 # opacity of unfocused windows
target_opacity = 1.0 # opacity of focused windows
Autostart
With systemd (recommended):
mkdir -p ~/.config/systemd/user
cp systemd/swayopacity.service ~/.config/systemd/user/
systemctl --user enable swayopacity
systemctl --user start swayopacity
With Sway config (simple):
Add to ~/.config/sway/config:
exec swayopacity
License
MIT
Dependencies
~5–12MB
~235K SLoC