Ubuntu – Secondary keyboard shortcuts in Gnome

gnomeshortcut-keys

Is there a way to set a secondary keyboard shortcut for a certain action (say, "Volume up")?

Best Answer

You can do that with xdotool. Just create a new shortcut with the command
xdotool key --clearmodifiers XF86AudioRaiseVolume to raise or
xdotool key --clearmodifiers XF86AudioLowerVolume to lower.

Step by step instructions:
1) Install xdotool.
2) Open the shortcut manager (on 11.10 and later: Alt + F2 and paste gnome-control-center keyboard)
3) Choose the tab "Shortcuts"
4) Choose "Custom Shortcuts"
5) Click on "+" like in this picture:

enter image description here

6) At "Name:" paste vol.
7) At "Command:" paste xdotool key --clearmodifiers XF86AudioLowerVolume:

enter image description here

8) Close the dialog.
9) Click at "Disabled" and make your shortcut.

enter image description here

10) Enjoy ;-)