puvol/README.md

27 lines
700 B
Markdown
Raw Permalink Normal View History

2022-02-05 13:09:38 +01:00
# Simple PulseAudio volume monitor for xmobar
2022-02-05 13:02:09 +01:00
This little monitor is my attempt to read the current volume and mute setting
of the default sink from PulseAudio and make it accessible to xmobar:
```haskell
2022-02-05 13:03:54 +01:00
Config { commands = [ Run CommandReader "puvol-cont" "Vol" ]
, template = " %Vol% "
2022-02-05 13:02:09 +01:00
```
2022-02-05 13:03:54 +01:00
If it is called as `puvol-cont` it will wait for updates from PulseAudio, read
2022-02-05 13:02:09 +01:00
the current value of the mute and volume states and write an output line to
2022-02-05 13:09:38 +01:00
stdout (`🔇` or volume percentage).
2022-02-05 13:02:09 +01:00
## Installation
```shell
go install kesim.org/puvol
```
For the continous mode you have to copy or add an symbolic link with name `puvol-cont`:
```shell
cd /path/to/bin/dir
ln -s puvol puvol-cont
```