How to emulate the super key?

6,233

Here is how I would do it without xmodmap. I'm not sure if I can emulate the SysRQ key this way, but it should work for other keys.

Step One

Install xbindkeys and xte:

sudo apt-get install xbindkeys xautomation 

Now we need to find the bindings of the keys you want to use as Super.
Run xbindkeys -k and press the keys you want. The output should look something like this:

    m:0x15 + c:110
Control+Shift+Mod2 + Home  

(I used Home because I can't use SysRQ on this computer since it requires FN to access it).

Step Two

Create the xbindkeys configuration file:

touch $HOME/.xbindkeysrc  

Now open the file so we can edit it:

gedit .xbindkeysrc

Add this to the bottom of the file:

"xte 'key Super_L'"
 m:0x15 + c:110
Control+Shift+Mod2 + Home  

Save the file.

Restart the computer. The keys you chose earlier should now act as Super when you press them.

Share:
6,233

Related videos on Youtube

BhaveshDiwan
Author by

BhaveshDiwan

A programmer... Nocturnal.... Avid listener of Hindustani classical music. Hire me!? I do not support any war, whatsoever, Period. My Avatar image 'Z' is the logo since 2011 of a website I own.

Updated on September 18, 2022

Comments

  • BhaveshDiwan
    BhaveshDiwan over 1 year

    I use an extremely old retro-keyboard.... " TVS 101.PC-XT"
    This keyboard has only 101 keys (AlphaNumeric, NumPad, FunctionKeys); And I don't intent to change it for I am very comfortable with it !

    Since this keyboard doesn't have a super key (windows Key), I am looking for some way out that I can emulate this.
    I am looking for a shortcut key combination like Ctrl+Shift+SysRQ
    which might behave as the windows logo key Key when used in combination altogether?



    NOTE: I've already gone through this, however this in not the workout in my case since I don't use gnome (no chance for Gnome settings).. I am on Ubuntu minimal + cinnamon.. I am also unable to locate the xmodmap commands to achieve this !