You can try xbindkeys
sudo apt-get install xbindkeys
Create the default config file for xbindkeys
xbindkeys --defaults > /home/your-user-name/.xbindkeysrc
Install xbindkeys-config, the GUI for xbindkeys
sudo apt-get install xbindkeys-config
sudo apt-get install xvkbd
Start xbindkeys with Ctrl+F2
xbindkeys
For GUI editor:
xbindkeys-config
Edit the file ~/.xbindkeysrc
Comment commands there that you don't want.
At the end of the file, put the mapping that you want:
Example: Launch Firefox with Ctrl+F
Firefox:
Ctrl+F
The first line is the command line operation to send when your desired key combination occurs.
The second line is the keystroke to invoke the operation
To find the syntax for the AltGr key being pressed, you can run the xbindkeys-config utility and click the Get Key button.
Then
""xvkbd -xsendevent -text '[AltGr]'""
Ctrl+Alt
Final note: you can set xbindkeys to launch on startup — in Ubuntu, just go to System -> Preferences -> Startup Applications and add a new command xbindkeys.
Also check this article from our website
Source of article