[xmonad] Offtopic: Get current volume

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Oct 31 19:00:20 EDT 2008


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 at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the xmonad mailing list