Top Level Namespace
Defined Under Namespace
Classes: Event, Mode, Rlirc, Xevent
Instance Method Summary collapse
-
#aumix_get_volume ⇒ Object
– $Id: aumix.rb,v 1.2 2004/09/16 20:05:45 inando Exp $ $Source: /var/cvs/rlirc/rlirc/lib/rlirc/aumix.rb,v $ ++.
- #aumix_mute_toggle ⇒ Object
- #aumix_set_volume(vol) ⇒ Object
- #osd(text) ⇒ Object
- #xevent(cmd) ⇒ Object
Instance Method Details
#aumix_get_volume ⇒ Object
–
$Id: aumix.rb,v 1.2 2004/09/16 20:05:45 inando Exp $
$Source: /var/cvs/rlirc/rlirc/lib/rlirc/aumix.rb,v $
++
aumix helper functions
9 10 11 |
# File 'lib/rlirc/aumix.rb', line 9 def aumix_get_volume `aumix -v q`.sub(',', '').split[1].to_i end |
#aumix_mute_toggle ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rlirc/aumix.rb', line 19 def aumix_mute_toggle vol = aumix_get_volume if vol == 0 new_vol = $volume else new_vol = 0 $volume = vol end puts "aumix #{vol} -> #{new_vol}" if $debug aumix_set_volume(new_vol) end |
#aumix_set_volume(vol) ⇒ Object
13 14 15 |
# File 'lib/rlirc/aumix.rb', line 13 def aumix_set_volume(vol) `aumix -v #{vol}` end |
#osd(text) ⇒ Object
17 18 19 |
# File 'lib/rlirc/osd.rb', line 17 def osd(text) $osd.display(text, 0) end |
#xevent(cmd) ⇒ Object
13 14 15 |
# File 'lib/rlirc/xevent.rb', line 13 def xevent(cmd) $xevent.do(cmd) end |