Re: FVWM: problems with All command

From: Kingsly John <kingsly_at_users.sourceforge.net>
Date: Tue, 24 Jun 2003 12:38:17 +0530

+++ Thomas R. Dean [2003-06-23 21:16:59]:

> Anyhow, I just recently upgraded the Motherboard in my system and
> the keyboard. The new keyboard has multimedia keys and I wanted
> to used them to control XMMS. I also have a mac powerbook and having
> the volume keys work regardless of the application is very convenient.
>
> So i've done the following:
> Used xmodmap in .xinitrc to bind XF86AudioRaiseVolume, etc. to the
> appropriate keycodes. (and verified with xev)
>
> Added the following to my .fvwm2rc:
>
> Key XF86AudioRaiseVolume A A ALL (XMMS*) Echo up $[w.id] $[w.name]
> Key XF86AudioLowerVolume A A ALL (XMMS*) Echo down $[w.id] $[w.name]
> Key XF86AudioMute A A ALL (XMMS*) Echo mute $[w.id] $[w.name]

I think you are making things unnecessarily complex...

Here is what I use.. works for all apps and not just XMMS! And I run the OSD
Mixer from osdsh .. so I get a really cool meter on the bottom of the screen
when I'm changing the settings!

Here are the relevant lines from my .fvwm2rc ...

#Sound Controls....

#Master Volume
Key XF86AudioLowerVolume A N Exec /usr/bin/aumix -v -3
Key XF86AudioRaiseVolume A N Exec /usr/bin/aumix -v +3
#PCM Volume
Key XF86AudioLowerVolume A M Exec /usr/bin/aumix -w -3
Key XF86AudioRaiseVolume A M Exec /usr/bin/aumix -w +3
#Bass
Key XF86AudioLowerVolume A C Exec /usr/bin/aumix -b -3
Key XF86AudioRaiseVolume A C Exec /usr/bin/aumix -b +3
#Treble
Key XF86AudioLowerVolume A 4 Exec /usr/bin/aumix -t -3
Key XF86AudioRaiseVolume A 4 Exec /usr/bin/aumix -t +3
#Mute
Key XF86AudioMute A A Exec /usr/bin/amixer -c1 sset Master toggle

#XMMS Specific controls..

Key XF86AudioPlay A N Exec /usr/bin/xmms -t
Key XF86AudioStop A N Exec /usr/bin/xmms -s
Key XF86AudioPrev A N Exec /usr/bin/xmms -r
Key XF86AudioNext A N Exec /usr/bin/xmms -f

(you will have to change the Mute command.. I have two sound cards and use
Alsa)

Kingsly
-- 
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Jun 24 2003 - 02:09:07 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:55 BST