Trying now Ubuntu-18.04, left Windows button on my laptop works now like Super-L. But Super-R just do nothing, which quite strange. I searched a lot - how to make both Super keys active (just like in Windowses, but could find only ways to change active Super from L to R or even to other key, but how to make both of them active? To be short - wants both Super-L and Super-R works. Can I achieve that?
02 Answers
I only know a way using an extra utility that is not included in the Ubuntu software sources. The utility is ksuperkey. It allows to remap modifier keys.
Install the utility and have the following command autostart when you log in. To this aim, you can create a .desktop file in your local .config/autostartfolder and supply the following command on the Exec= line.
Exec=sh -c "sleep 0.3 ; ksuperkey -e 'Super_R=Super_L'"The "sleep" command introduced a small delay (0.3 ms) before running the command.
This remaps the Super Right key to the Super Left key, making it behave the same.
The full ./config/autostart/ksuperkey.desktop file may look as:
#!/usr/bin/env xdg-open
[Desktop Entry]
Categories=Utility;
Comment=Map right Super key to left Super key
Exec=sh -c "sleep 0.3 ; ksuperkey -e 'Super_R=Super_L'"
GenericName=Launcher
Icon=keyboard
Name=ksuperkey
StartupNotify=false
Type=Application
Version=1.0
X-GNOME-Autostart-enabled=true
Name[en_US]=ksuperkey.desktop 6 Tried variant of @PRATAP - works great, but only one session, after any restarts its refreshes to default values. Tryed to add to Xmodmap.desktop file, but looks like right now some gnome-environment bug doesn't allow to consider that file on startup.
Tryed variant of @vanadium with #ksuperkey - it works, but reaction of Supers suddenly got uncosy delay ~0.5 sec, don't know why and it may be only with my system. Also this decision is not so simple and requires ksuperkey (~50 MB)
Got resolved problem by editing file /usr/share/X11/xkb/symbols/pc , where I had reassigned RWIN key value to 'Super-L' instead of inactive 'Super-R'
Thanks all for help, your answers helped me in finding a solution