if you are using Compiz Config Settings Manager (CCSM) You can use the "
Commands" Plugin to "
Assign bindings to arbitrary commands". The "
Commands" Plugin can be easily installed by dropping the next in a terminal:
sudo apt-get install compiz-plugins-extra.
Its powerful key grabber may have better chances to catch the custom keyboard buttons presses in order to provide the proper key binding which can be assigned to the proper command in the list. A Key Binding for a command, this is: "
Run command 0" will invoke the line that you write in the Commands section related to the "
Command line 0".
In the "
Commands" tab of the "
Commands Plugin", we write the arbitrary commands that we wish to be executed when we hit the proper key or key bindings, as shown in the next screenshot:
Then we click on the "
Key Bindings" tab of the same window in order to enable the proper key bindings for the command. Please notice that I placed the command for the calculator in the "
Command line 1" thus the key bindings will be which corresponds to the "
Run command 1" as shown in the next screenshot.
What I did to see the "
Edit Run command 1" key bindings it was to click in the "
Disabled" button to the right, which showed me a window with a checkbox, after enabling it showed the options. Then simply hit the "Grab key combination" and press the proper button in your keyboard. Please notice that the key bindings corresponds to the "
This way you can define as many custom key bindings to fit your needs.
P.S. Compiz Config Settings Manager can be installed from the Software Center or by dropping
sudo apt-get install ccsm in a terminal.