You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, April 3rd 2004, 1:19pm

binding the Win-key to K-menu

how can I bind the "Win" button (the one that in windows shows the "start" menu) to the K-menu??
I tried to use the control center-> keybord shortcuts, but it doesn't work at all, because it takes only "win+<another button>" not just "win".... thanks a lot! ;)

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

2

Saturday, April 3rd 2004, 8:24pm

Some distros have it by default others don't. Anyway, I think that this is X server configuration. You will have to change that and change the key handling.

You can use the program 'xev' to monitor X events and find wich of the mod's keys is the win key.

You can find some information in http://www.linuxsa.org.au/mailing-list/2000-02/348.html and http://www.laclinux.com/en/LAC_HOWTO (search for "Mod1" or "Remap Target Keys")

Hope it helps.

3

Monday, April 5th 2004, 8:48pm

nothing to do, keys are mapped in Mods, but when I try to bind a shortcut to WIN it does not work, it shows "win+" waiting another button to be pressed... how can i use only "win"??
(using debian woody)
btw, thank you!

4

Sunday, April 11th 2004, 4:10pm

Win key + numlock doesn't work

It probably allready is. You can see in the Keyboard Shortcuts control center module if your scheme uses this binding.

Problem: it only works when numluck is off. I don't know why :?:

5

Monday, April 12th 2004, 10:51am

you're right! only if numLock is off.... ???????
thank you a lot!

6

Thursday, April 22nd 2004, 6:06pm

Here's what I do:

Create a file called .Xmodmap in your home dir. It contains:
[code:1]
keycode 115=F13
keycode 116=F14
keycode 117=F15
[/code:1]
This binds Win-L to F13, Win-R to F14 and that context menu type button to F15. To get X to see this run
[code:1]
~$ xmodmap .Xmodmap
[/code:1]
I put a script in KDE's Autostart dir to run this every time KDE starts up. It's a little, hacky, but it works. There's probably a way to have X do this rather than KDE.

The disadvantage is that you lose the ability to use the extra keys as modifiers. Because of this I only bind the Win-R key (116 = F14) and leave the other two unbound (or they can be set to Super_L and Menu, respectively, which is the same thing).