Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been messing with some things and the lock screen is not working well at the moment. Since I like the standard login screen much better anyway, I would like to change the action for the Ctrl+Alt+L shortcut. At the moment, it does the same thing as "Lock Screen" in the top-right power/settings menu. I would like it to instead have the same effect as "Switch User Account" on the user menu.

How can I do this?

FYI, I'm using 12.04 with the classic Gnome session. Things might look somewhat different in Unity.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

This is possible. Here is the procedure.

Open up settings and go to keyboard->shortcuts->system and unbind the Lock Screen shortcut. (Make sure it says disabled where the key combo normally is)

Go to Custom shortcuts on the same tab and create a new shortcut named login screen. In the command field enter the following:

gdbus call --system --dest org.freedesktop.DisplayManager --object-path /org/freedesktop/DisplayManager/Seat0 --method org.freedesktop.DisplayManager.Seat.SwitchToGreeter

Set the keybinding to Ctrl+Alt+L and then you are all done. From now on when you press that key combo you will be placed on the login screen.

share|improve this answer
1  
This works perfectly. Thank you! –  Kalle Elmér Aug 22 '12 at 9:39
1  
Thanks! I had some clashing shortcuts with IntelliJ IDEA that I managed to clear off at the OS level :) –  Andrei Rinea Nov 17 '13 at 20:43

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.