Tuesday, April 10, 2007

How to associate the Start key in KDE

Execute in console

$ xev

And obtain the corresponding info. Example:

eyPress event, serial 30, synthetic NO, window 0x3e00001,
root 0x60, subw 0x0, time 5783328, (-83,158), root:(594,323),
state 0x10, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 30, synthetic NO, window 0x3e00001,
root 0x60, subw 0x0, time 5783427, (-83,158), root:(594,323),
state 0x50, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:


Execute in console (or put in .bashrc)

$ xmodmap -e "keycode 115 = F13" #esto es para que StartKey sea F13
$ xmodmap -e "keycode 91 = 46" #esto es para que la coma del teclado numerico, sea un punto

This is for making StartKey behave like F13

Now, in Control Center -> Regional & Accesibility -> Keyboard Shortcuts -> Global Shortcuts ->
Popup Launch Menu -> change Alt+F1 to F13, simply pressing the StartKey

DONE

Tricks for Maria
$ xmodmap -e "keycode 96 = minus" #F12 se vuelve minus
$ xmodmap -e "keycode 96 = underscore" #F12 se vuelve underscore
$ xmodmap -e "keycode 61 = space" #minus se vuelve space

No comments: