Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've tried a lot of combinations to map my key AE12 to Super (win key) but all them failed...

How can i map a key to act like win key in /usr/share/X11/xkb/symbols/us ?

I am using linux mint.

details on github


Noticed that after reboot layout reverts to previous version plus it displays wrong layout on keyboard graphical layout representation. If after reboot i remove my layout and add it back thought menu then it applies and keys are remapped correctly. But in graphical representation it remains old. After new reboot - same story.

Maybe i need to clean some cache?

share|improve this question

Try adding this to your ~/.Xmodmap

keycode 21 = Super_L
add mod4 = Super_L

Then make sure your desktop manager parses it at start. If it doesn't, add to you ~/.xinitrc

xmodmap ~/.Xmodmap

In your key AE12's keycode isn't 21, use xev to find out the right code. In my case, that key is the key immediately to the left of the backspace key.

share|improve this answer
great, but is there a way to map it in layout file? I want to keep all remaps in one place. – AlexParamonov Jan 23 '13 at 2:45

I didn't use my machine for a while. And when it was booted, my mappings were working like a charm. So it seems was a cache issue...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .