Phil Scarratt wrote:
Craige McWhirter wrote:
On Sun, 2006-06-04 at 12:06 +1000, Phil Scarratt wrote:
Just wondering what other people do with their keybinding on Gnome
for media keys.
I use System -> Preferences -> Keyboard Shortcuts to set all my media
keys.
As do I - but the problem is not so much the key binding - it is what
the key binding binds to. Gnome does not seem to expose the correct
function (or whatever) to control the correct volume control - or put
another way does not allow control (easily) of what controls the key
binding controls....but that has just made me think - I could set up a
custom command that controls the correct volume control and then assign
the volume up/down/mute to the custom commands....hmm that might work
might it not?
Fil
Well, after some unnecessary flapping around with setkeycodes and
related commands, all I did was modified the keyboard map with xmodmap
and assigned XF86AudioMute, XF86LowerVolume and XF86RaiseVolume keysyms
to keycodes 160, 174 and 176 respectively, then removed those keystrokes
from System->Preferences->Keyboard Shortcuts, and put them against my
custom commands in gconf-editor instead. Hey presto - volume and mute
keys work again.
This was necessary cause Keyboard Shortcuts cannot take custom commands,
gconf-editor can, but gconf-editor cannot take the raw keycode (eg e0b0)
value as Keyboard Shortcuts can, rather needs the keysym instead, hence
the xmodmap stuff is needed.
Very useful:
http://www.ubuntuforums.org/showthread.php?t=27039&highlight=keytouch
All this cause Gnome (or Ubuntu - not sure which but I suspect Gnome)
can't change the bloody default sound card properly. It just plain
doesn't work properly/at all. And what's worse, it seems in Dapper it
doesn't even remain consistent - ie it doesn't always pick the same card
as the default. Luckily I reboot my machine on only rare occasions or in
blackouts.
Fil
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html