How to bind custom commands to keyboard shortcuts?

Solution 1:

You can set up your shortcuts in the Keyboard section of System Settings. You can either open System Settings in the Activities search or use the upper-right menu.

Main menu screenshot

Then open Keyboard.

Keyboard in System Settings

You'll see a section for Custom Shortcuts on the bottom left-hand side, if what you're changing is not already present in a section above.

Shortcuts in Keyboard settings

These instructions may also be of use in Unity.