diff options
author | Martin Perner <martin@perner.cc> | 2011-08-30 16:38:04 +0200 |
---|---|---|
committer | Martin Perner <martin@perner.cc> | 2011-08-30 16:44:23 +0200 |
commit | 23a3b81bfd480e5a1d63bbad91e2b611b99758e1 (patch) | |
tree | 01c49d1fc6b67e49d92552cbe29638d4632dffd2 /README | |
parent | d17958115fbb80d5baf58830f33390cd21acedac (diff) | |
download | xmobar-23a3b81bfd480e5a1d63bbad91e2b611b99758e1.tar.gz xmobar-23a3b81bfd480e5a1d63bbad91e2b611b99758e1.tar.bz2 |
catch alsa exception on decibel acquire
This closes #17.
For some reasons the alsa interface does not provide a dB value on all
systems. Instead an error is returned.
The alsa-mixer library checks for such return values and throws an
exception if one is detected.
This patch catches the exception and returns 0 as dB value.
Diffstat (limited to 'README')
-rw-r--r-- | README | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -603,10 +603,12 @@ Monitors have default aliases. - `--lowd` _number_ Low threshold for dB. Defaults to -30.0. - Variables that can be used with the `-t`/`--template` argument: `volume`, `volumebar`, `dB`, `status` +- Note that `dB` might only return 0 on your system. This is known + to happen on systems with a pulseaudio backend. - Default template: `Vol: <volume>% <status>` -- Requires the package [alsa-mixer] installed in your system. In addition, - to activate this plugin you must pass `--flags="with_alsa"` during - compilation. +- Requires the package [alsa-core] and [alsa-mixer] installed in your + system. In addition, to activate this plugin you must pass + `--flags="with_alsa"` during compilation. `MPD Args RefreshRate` |