Keyboard Shortcut for System Shutdown

How to setup a keyboard shortcut to shutdown your ubuntu system.

To get the gnome shutdown dialog directly via a keyboard shortcut, add this command to the Keyboard shortcuts (under System -> Preferences):

/usr/lib/indicator-session/gtk-logout-helper -s

Give it a suitiable name, like Shutdown, and then map it to the Keyboard combination of your choice, by clicking under the ‘Shorcut’ column (which will be showing “Disabled”, until mapped). I just mapped it to Windows Key + End.

Now, enjoy shutting down your system!