Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 3 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.

share|improve this answer
2  
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

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.)

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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