Make the Windows Key on your Keyboard open KMenu in KDE

Many people want the KDE menu on Kicker (Kmenu) to open up using the “Windows Keys” that’s taken over every keyboard in the world. Below is how we accomplish this.

create in your home a file called .Xmodmap (notice the leading dot) and put the following in it:
! left win
keycode 115=F13
! right win
keycode 116=F14

Lines beginning with a ! are comments.
Create a file called, for instance, fix-keyb.sh in ~/.kde/Autostart and make it executable
chmod 775 fix-keyb.sh

put the following lines in it:

#! /bin/sh
xmodmap /home/roberto/.Xmodmap

Execute in a terminal the above command (next time you log in, it will be done automatically)
Then go to the KDE Control Center -> Regional & Accessibility -> Keyboard Shortcuts->
“Panel” -> “Pop up launch menu”; select “custom” and use F13 as primary shortcut (just hit left win) and F14 as secondary shorcut (hit right win).

And there you’re all done.

Related Posts

Tags: , ,

Leave a Reply

You must be logged in to post a comment.