Skip to content

Commit

Permalink
Added a section in the README to show an example for integrating this…
Browse files Browse the repository at this point in the history
… with waybar
  • Loading branch information
Micah Gorrell committed May 19, 2023
1 parent 1bbafbb commit afd56f9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,25 @@ 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 follow section to your `~/.config/waybar/config` file and add
`custom/audio_idle_inhibitor` to either the `modules-left`, `modules-center`
or `modules-right` list.

```
"custom/audio_idle_inhibitor": {
"format": "{icon}",
"exec": "sway-audio-idle-inhibit --dry-print-both-waybar",
"return-type": "json",
"format-icons": {
"output": "󰅶",
"none": "󰾪"
}
},
```

0 comments on commit afd56f9

Please sign in to comment.