Small monitor of pulseaudio volume etc. for use in xmobar, as CommandReader input
Go to file
2022-02-05 13:02:09 +01:00
go.mod init 2022-02-05 12:54:32 +01:00
go.sum init 2022-02-05 12:54:32 +01:00
main.go init 2022-02-05 12:54:32 +01:00
README.md README added 2022-02-05 13:02:09 +01:00

Simple PulseAudio volume monitor

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:

Config { commands = [
                    , Run CommandReader "puvol-cont" "Vol"
                    ]
       , template = "%XMonadLog% }{ \
           \│ <action=`alacritty -t pamix -e pamix` button=1>%Vol%</action> \
           \│ %date% "

If it is called as puvol-cont it will wait for updates form PulseAudio, read the current value of the mute and volume states and write an output line to stdout.

Installation

go install kesim.org/puvol

For the continous mode you have to copy or add an symbolic link with name puvol-cont:

cd /path/to/bin/dir
ln -s puvol puvol-cont