
Hy, the only external programm im using in xmobar is currently a script which runs "aumix" to get my current volume of my alsa-device. Do you know trick to get the current volume from haskell directly (from a /proc or /sys file for example or via a lib) without spawning a external program? Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de

On 2008 Oct 31, at 18:51, Dominik Bruhn wrote:
the only external programm im using in xmobar is currently a script which runs "aumix" to get my current volume of my alsa-device. Do you know trick to get the current volume from haskell directly (from a /proc or /sys file for example or via a lib) without spawning a external program?
Try /proc/asound/cardN/oss_mixer (N starts at 0). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (2)
-
Brandon S. Allbery KF8NH
-
Dominik Bruhn