Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.