How to create a shortcut that would bring the restart-shutdown menu?

  • I don't know the command - I just screenshotted the shut down menu when I click turn off.
    – user3
    Commented Jul 10, 2015 at 9:43
  • Yeah, I'm just researching it atm
    – user3
    Commented Jul 10, 2015 at 9:44
  • That's fine :-)
    – user3
    Commented Jul 10, 2015 at 10:36
  • 1
    @Tim - as I don't mind posting childish questions: elementaryos.stackexchange.com/q/368/170
    – user170
    Commented Jul 10, 2015 at 10:49
  • It's not childish - I posted it on Ask Ubuntu today :)
    – user3
    Commented Jul 10, 2015 at 10:51

1 Answer 1


This worked in Freya but doesn't work in Loki.

Go to System Settings > Keyboard > Shortcuts > Custom.

Add new command by clicking the + button and add: gnome-session-quit --power-off, then press keys to create shortcut.

Log out and in to be able to use the new shortcut.

enter image description here

I think it looks even more elementary OS-style than the default shutdown menu.

The command for the default shutdown menu is (as provided by this answer):

dbus-send --session --print-reply --dest=com.canonical.Unity /org/gnome/SessionManager/EndSessionDialog org.gnome.SessionManager.EndSessionDialog.Open uint32:2 uint32:0 uint32:0 array:objpath:[]  

enter image description here

  • 1
    this was valid for Freya, doesn't work in Loki
    – user170
    Commented Nov 27, 2016 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.