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.– user3Jul 10, 2015 at 9:43
-
Yeah, I'm just researching it atm– user3Jul 10, 2015 at 9:44
-
That's fine :-)– user3Jul 10, 2015 at 10:36
-
1@Tim - as I don't mind posting childish questions: elementaryos.stackexchange.com/q/368/170– user170Jul 10, 2015 at 10:49
-
It's not childish - I posted it on Ask Ubuntu today :)– user3Jul 10, 2015 at 10:51
1 Answer
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.
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:[]
-
1this was valid for Freya, doesn't work in Loki– user170Nov 27, 2016 at 14:32