stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] Print result from exec?


From: Duncan Bayne
Subject: [STUMP] Print result from exec?
Date: Tue, 24 Jan 2012 09:14:36 +1100

Hi All,

Beginner question here:  I am using amixer to control the sound volume
via accelerator keys, using the following:

(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer set
Master 5+ | grep '%'")
(define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer set
Master 5- | grep '%'")
(define-key *top-map* (kbd "XF86AudioMute") "exec amixer set Master
toggle | grep '%'")

When run from console the output looks like this:

address@hidden ~ $ amixer set Master 5- | grep '%'
  Mono: Playback 59 [92%] [-5.00dB] [on]

I'd like to display that to the user to notify them of the new volume
setting, using the StumpWM print function or similar.

Could someone please point me in the right direction here?  I suspect
this is a reasonably common thing, so perhaps I'm just failing to find
some documentation ...

-- 
Duncan Bayne
ph: +61 420 817 082 | web: http://duncan-bayne.github.com/ | skype: duncan_bayne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]