In Ubuntu 11.04, ctrl-alt-del gives me a menu with shutdown, hibernate, suspend and restart, but no logout. Is there a key combination to logout of Ubuntu? Is there a way to provide one?
Creating custom keyboard shortcuts:For 11.04:To add a new shortcut open System -> Preferences -> Keyboard Shortcuts and press Add:
In the opening window type in your custom command name and the command you want to run (e.g. Press on the Shortcut line of your new shortcut and press the key combination you want to use (here Alt + Backspace). If it already exists you will get a warning.
Choose Add to add a new shortcut, give the commands mentioned and choose your key combination. You may neeed to reboot your system for a shortcut to take effect For 11.10 and later:To add a new shortcut open System Settings -> Keyboard and choose the Shortcuts tab:
Press the '+' sign on the bottom left to enter the name of your custom shortcut and the command you want to run (e.g. Note: The default keyboard shortcut to logout with a 60s timeout is Ctrl + Alt + Del in 11.10. |
|||||||
|
|
In Ubuntu 11.10 you could write a script containing
make it executable with In previous Ubuntu versions there was |
|||
|
I think You can just make custom shortcut for "gnome-session-quit --logout --no-prompt" without any bash scripting. |
|||
|
|
|
If you are using Unity (the default environment in Ubuntu 11.04 and later) then you can press the |
|||||
|
|
In Ubuntu 1204 there are two out-of-the-box solutions:
In each case, confirm logout by hitting Enter. A bug in Ubuntu for #1 is that if you login and do nothing and hit Alt-F2 you get Dash (to run programs). Just hit Esc and try again with Alt-F2 and you'll get the "Run a command" instead this time. |
||||
|
|


