KDE Improvement??

Brian T. Schellenberger bts at babbleon.org
Fri Aug 9 04:28:18 BST 2002

On Thursday 08 August 2002 11:15 pm, Brad Potts wrote:
| Brian,
| Here is what I get when I run xev and then I click the "windows" key:
| KeyRelease event, serial 27, synthetic NO, window 0x2200001,
|     root 0x37, subw 0x0, time 2365491217, (185,316), root:(189,361),
|     state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,

Ok, this is the keycode you need.  And actually the one I have, too.  I 
mis-read it before.  MIxed up "Windows" key and "Widnows application" key; 
imagine that).

So you need

cat > .xmodmap <HERE
keycode 115 = F31

xmodmap .xmodmap

Then use the KDE control to assign actions to the Windows key.

If you use my full .xmodmap file that I previously enclosed, then you can also 
assign actions to the "Windows Application" and "Prnt Scrn" keys.

Note that you must run this xmodmap command every time you log in; I don't 
believe that saving a session will do it.

I just make a script:

#! /bin/csh -f

xmodmap ~/.xmodmap

(And a few other things, like xset for keyboard refresh rate.)

and put that into my startup folder on my desktop so that they are 
automatically executed on login.

Make sure you chmod +x the file.

|     XLookupString gives 0 characters:  ""
| I tried doing this to get the map to work, but you see I get an error:
| [root at toybox bpotts]# xmodmap keycode 115=F29
| xmodmap:  unable to open file 'keycode' for reading
| xmodmap:  unable to open file '115=F29' for reading
| xmodmap:  2 errors encountered, aborting.
| Am I doing this wrong?  I read the instructions a few times thinking I was
| missing something, but I'm seeming to have trouble with this.....
| Any other suggestions?
| Thanks in advance,
| Brad Potts
| On Thursday 08 August 2002 12:54 pm, you wrote:
| > Two stages.  First, you have to use xmodmap to map the Windows key to
| > something recognizable.  The following may work, but if not, just use
| > "xev" to see what key event that key sends.
| >
| > What I have pasted in here is my entire xmodmap.  You are only really
| > interested in the
| >
| > keycode 117 = F29

Brian, the man from Babble-On . . . .   bts at babbleon.org (personal)

http://www.eff.org                      http://www.programming-freedom.org 
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

More information about the kde mailing list