From aa2dcf3c1c52431c7bfbc92a598ab407edc304bc Mon Sep 17 00:00:00 2001 From: Erik Reider Date: Sun, 5 Sep 2021 23:13:17 +0200 Subject: [PATCH] Updated README.md --- README.md | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99679ef..f971c30 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # SwayAudioIdleInhibit Prevents swayidle from sleeping while any application is outputting or -receiving audio +receiving audio. Should work with all Wayland desktops that support the +`zwp_idle_inhibit_manager_v1` protocol but only tested in Sway -This only works for pulseaudio / pipewire-pulse +This only works for Pulseaudio / Pipewire Pulse ## Install @@ -18,8 +19,32 @@ ninja -C build meson install -C build ``` -## Run +## Sway Usage + +```ini +# Enables inhibit_idle when playing audio +exec sway-audio-idle-inhibit +``` + +## Other usages without inhibiting idle + +These could be used to monitor if any application is using your mic or playing +any audio. + +Monitor sources and sinks: will print `RUNNING` or `NOT RUNNING` + +```zsh +sway-audio-idle-inhibit --dry-print-both +``` + +Monitor sources: will print `RUNNING` or `NOT RUNNING` + +```zsh +sway-audio-idle-inhibit --dry-print-source +``` + +Monitor sinks: will print `RUNNING` or `NOT RUNNING` ```zsh -./build/sway-audio-idle-inhibit +sway-audio-idle-inhibit --dry-print-sink ```