#StackBounty: #keyboard #shortcut-keys #20.04 #gnome-shell Remap a key permanently

Bounty: 100

I know this question has been ask and answer often but none of the solution found seems to work properly.
I’d like to have both my super keys to work at the same time. I need to map R-Win (key code 134) to L-Win (keycode 133).
On Ubuntu 20.04 I’ve tried the following:

xmodmap -e "keycode 134 = Super_L NoSymbol Super_L"

it works but the change is not even permanent during my session, I have to type it regularly
in order for the command to be effective.
I’ve tried to put the command in my user’s crontab, in startup script for my session.
I’ve put :

keycode 134 = Super_L NoSymbol Super_L

in ~/.Xmodmap, ~/.xmodmaprc and ~/.xmodmap none of them seems to be used or load at session login.

I’ve also tried to edit /usr/share/X11/xkb/symbols/pc to add the following modifier:

modifier_map Mod4 { Super_L, Super_R };

However no effect.

Conclusion, so far the only solution that works is when using xmodmap interactively, but the effect is temporary and needs to be input several in a day of work.

I’m on an almost brand new minimal installation of Ubuntu 20.04. any help would be very much appreciate so I can finally use both my Super key in GnomeShell.

PS: I’ve also tried setxkbmap -option rwin:lwinbut it has no effect neither when put in /etc/default/keyboard XKBOPTIONS option nor when execute interactively.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.