Quit a program on Ubuntu with Alt + Q

It has been just over 3 weeks since I  started using Linux as my daily driver. It hasn’t been an unpleasant experience – although there have been tweaks and fixes along the way.

Instead of bringing over something from Windows that I am so used to having; today’s tweak comes from the Mac – where you can use Command (⌘) + Q to quit a program. This is mush more elegant than Alt + F4 on Windows and Ubuntu.

On my Microsoft 600 Keyboard Alt + Q feels very much like Command (⌘) + Q on the Mac – so I will go with that.

First of all I will remove the old keybinding for Close Window. This can be done by entering the following into a Terminal window.

gsettings set org.gnome.desktop.wm.keybindings close "@as []"

Now I will add the keybinding for Alt + Q. This can be done by entering the following into a Terminal window.

gsettings set org.gnome.desktop.wm.keybindings close "'<Alt>q'"

You can now quit programs on a PC running Ubuntu the way the Apple Corporation running under Steve Jobs intended.

Or close enough to it!