6

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 Jul 10 '15 at 9:43
  • Yeah, I'm just researching it atm – user3 Jul 10 '15 at 9:44
  • That's fine :-) – user3 Jul 10 '15 at 10:36
  • 1
    @Tim - as I don't mind posting childish questions: elementaryos.stackexchange.com/q/368/170 – user170 Jul 10 '15 at 10:49
  • It's not childish - I posted it on Ask Ubuntu today :) – user3 Jul 10 '15 at 10:51
3

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 Nov 27 '16 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy