You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Swayidle inhibitor that automatically detects audio / video and will prevent your system from sleeping. No manual intervention needed!
Overview
The main function of this project is to keep any sway based WM from going into an idle state when consuming media. Swaddle will monitor the dbus running daemon and based on values it sees inPlayback Status will correctly cause idling or inhibition.
Dependencies
dirs: Config setup
config: Config building
dbus: Interfacing with the D-Bus.
env_logger: Better log handling
toml: For creating config file
serde: To serialize toml
Installation
Swaddle can be installed from the AUR:
paru -S swaddle
Building from source
Clone the repo and execute
just build_release
You can move the binary into your$PATH or run directly
Debugging
To get some debugging logging from swaddle you can set the log level to debug and execute
just run_debug
Post-Install
To integrate swaddle with Sway/Hyprland, add the following line to your Sway/Hypr configuration: