Run a command after there has been no output on pipewire for a while.
- Rust 97.4%
- Just 2.6%
| src | still follow RUST_LOG | |
| .gitignore | cargo init | |
| Cargo.lock | moar debug logging | |
| Cargo.toml | moar debug logging | |
| Justfile | moar debug logging | |
| pipewire-idle.service | systemd doesn't set PATH ... | |
| README.md | add readme | |
pipewire-idle
Run a command after there has been no output on pipewire for a while.
E.g., switch off the audio receiver:
pipewire-idle --idle-threshold=5min -- musiccast-auto-on-off suspend --host 192.168.1.23
License
MIT.
Created with LLM assistance.
Ideas
- We could just wait for events on one user-specified
node.name. No need to listen for all sinks.