Configuring a personalized shortcut in Ubuntu
One of the best things about using Ubuntu which many users often overlook is that you can create your own shortcuts for practically any action that the system has to provide. This makes for a highly personalized user experience in which you set the environment and conditions for usage.
In this article, we will discuss (as a sample illustration) how to create a shortcut for the graphical kill (xkill) action in Ubuntu.
- Open the terminal by navigating to Applications -> Accessories -> Terminal from the menu bar.
- Type in gconf-editor and press Enter.
- The Configuration Editor interface shows up. On the left-hand side panel, navigate to the following branch of the tree: apps -> metacity -> keybinding_commands.
- When you click on keybinding_commands, the right-hand panel shows a list of commands (named command_1, command_2, etc.) with their corresponding description/documentation in the space below.
- Right-click on command_1 – this controls the xkill action – and select edit key.
- A small pop-up asks you to enter the new value for the key. Enter the new value as <Alt>k – this will mean that the shortcut for this action from now on is Alt + k.
- Click on OK.
- Now go to the global_keybindings branch of the tree on the left-hand panel. [You will see it right above the keybinding_commands branch.]
- In the list of commands on the right side, right-click on the name run_command_1, and select the edit key option.
- Again, enter the same value as in Step 6 – i.e. <Alt>k – and click on OK.
- You will see that the value for the option run_command_1 in the global_keybindings is now changed to <Alt>k.
- Close the Configuration Editor.
Your new shortcut for the xkill operation is now in place. You can try this by opening a new program and the using the shortcut that you had set – Alt + k.