I have worked out how to do this, by looking back at an old thread on the Mepis forums.
Use the xev command to find out the keycode for the Winkey by opening xev in a terminal, pressing the winkey and making a note of the numerical output. In my case it's 133 but when I used Mepis is was 115.
Write the following file and save it as something (mine is win-key.sh), changing the keycode number if necessary.
- Code: Select all
xmodmap -e 'keycode 133 = F13'
Put it in home/.kde/Autostart and make it executable.
Right click on the application launcher and go to Application Launcher Settings > Keyboard Shortcut.
You should be able to press the winkey, and it will show as F13.
Now, the winkey will behave like it does in Windows. You might need to check it survives a reboot though.