Port-sparc archive

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

Re: Volume control buttons



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On May 16, 2008, at 09:13, David Brownlee wrote:

On Fri, 16 May 2008, Jared D. McNeill wrote:

Michael Lorenz wrote:
My WindowMaker menu is currently intercepting the audio keys like this:
SunAudioLowerVolume => mixerctl -nw monitor.master-=2
SunAudioRaiseVolume => mixerctl -nw monitor.master+=2
SunAudioMute        => mixerctl -nw monitor.master=0
... and that works only in WindowMaker. PMF events work everywhere.

The logic I would go with is:

 If X is active
   Deliver keycode
 Else
   Inject PMF event

That way the volume keys JFW on the console, and I can map them to the special GNOME volume controls (with fancy UI overlays) when I'm running X.

        I'd prefer the default to be left with PMF events and require a
        command to request keycodes to be delivered, so the majority of
        users who do not customise their X config still get working
        volume keys.

Yeah, people who remap keycodes in X can also put some sysctl -w whatever into .xinitrc ;)

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSC2KEMpnzkX8Yg2nAQKN1gf6Am03FL6xDG6UGQHY9SLsEbNJ6D6ulWEw
XMqzCQqqGLb2Eh4LYKoNBczQoKe0JJCkdp3lY0sSAeT2JuDkJOwBVB7gaQQ5XoWz
Oxrrt8rmvJgF4PjKSb6CQGUs0KrZ5QpFdtij4EeH6NUQx4Xxh5CeAgDIJrTCW6Oy
N54Ght1KlVtScm/0gIj18HdlXLdc+2w0i792oDb9g2B5Ekdb+FVeGTsfQ8iNpwf+
WIOMjqtBGrZKtt1uzjdFtd7rpLPTN/uGn666x0K7KlM9tCfIt3lVg9oXaOApZh7L
hI5yYNXuHe3Cnb2o8qSGk6HXOWx4Wor0e6EWy+ImP389tD/DWXebCw==
=MBV+
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index