Is there a keyboard shortcut, or can a keyboard shortcut be defined, to open the GNOME 3 "status menu" (the one in the upper right corner with your name on it that you use to log out, restart or shut down the machine)?

I want to be able to reboot or shut down the machine without using the mouse. In GNOME 2 I could do Alt+F1 and a short arrow key sequence, and now I want something similar.

Terminal is not an option - the GUI already has the necessary permissions and I want to take advantage of that, not sudo shutdown -h.

link|improve this question
feedback

2 Answers

up vote 0 down vote accepted

To jump to the status bar or the desktop use: ctrl+alt+tab

You could also set up the power button to popup the shutdown menu using gnome-power-settings.

link|improve this answer
I found out about the ctrl-alt-tab, but it was a lot of tabbing/arrows from there to the menu. Plus, in fallback mode, I switch to it, and several tabs after that, the focus seems to have disappeared - nothing happens if I press tab, enter, spacebar, windows and arrows. The power button, however, does it for me. Thanks for the tip. – Lyubomir Jul 17 '11 at 17:11
feedback

The terminal is an option. You can call ConsoleKit over DBus, the same way GNOME does.

dbus-send --system --dest="org.freedesktop.ConsoleKit" \
    /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

To reboot, use the .Restart method instead of .Stop.


To suspend or hibernate, call UPower:

dbus-send --system --dest="org.freedesktop.UPower" \
    /org/freedesktop/UPower org.freedesktop.UPower.Suspend

(Same for .Hibernate.)

link|improve this answer
Thanks for correcting my ignorance. The commands you suggest aren't what I was after, but they do hint up some possibilities. I'll have to look into DBus sometime. – Lyubomir Jul 17 '11 at 17:14
@Lyubomir: To quote your question, "What I want is to be able to reboot or shut down the machine without using the mouse." – grawity Jul 17 '11 at 18:06
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.