diff --git a/README.md b/README.md index f971c30..d35b7d4 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,30 @@ Monitor sinks: will print `RUNNING` or `NOT RUNNING` ```zsh sway-audio-idle-inhibit --dry-print-sink ``` + +## Waybar Integration + +A custom waybar module can be used to display an icon when any application is +using your mic or playing any audio. + +Add the following section to your `~/.config/waybar/config` file and add +`custom/audio_idle_inhibitor` to either the `modules-left`, `modules-center` +or `modules-right` list. + +*Note: The FontAwesome font is used for the icons below* + +``` + "custom/audio_idle_inhibitor": { + "format": "{icon}", + "exec": "sway-audio-idle-inhibit --dry-print-both-waybar", + "exec-if": "which sway-audio-idle-inhibit", + "return-type": "json", + "format-icons": { + "output": "", + "input": "", + "output-input": " ", + "none": "" + } + }, +``` +