Add Keyboard Shortcuts To Ubuntu

This article will show you how to add keyboard shortcuts to your Ubuntu desktop. A keyboard shortcut can improve your total desktop experience by assigning a keyboard shortcut to applications that you run frequently. This will cut down on navigation time and will launch a program with just a keystroke or two.

In my case, I decided to add the screen rotation app called Xrandr to the list of keyboard shortcuts that’s already available in Ubuntu. Previously, I talked how to add icons to the Gnome panel. I’m taking this one step further, by adding several custom keystrokes.

To customize a keystroke, we need to open System > Preferences > Keyboard Shortcuts. Click Add. Type the name of the application. In my case, I called it Rotate Left. The command is xrandr -o left. Click Apply. You can then assign a keyboard shortcut by highlighting the entry and typing in the keyboard shortcut.

If you’re not familiar with the actual command, you can take a look at System > Preferences > Main Menu. Find the application that you want and right-click to Properties. Copy and paste the command line entry, and paste it to your keyboard shortcut.

The only thing you want to make sure is, that there are no conflicts with the existing keyboard shortcuts. There are already several Functions keys that are already assigned by default. For example, F1 is normally Help, F3 is Search, F5 is Refresh and F11 is Full Screen mode. So, just keep that in mind.