Ubuntu – How to define keyboard shortcut to suspend Xubuntu 12.04

12.04shortcut-keysxubuntu

I'm using Xubuntu 12.04 on a MacBook Pro. I would like to define a keyboard shortcut (Ctrl+Alt+l) that let's me lock the screen (suspend) Xubuntu. I am following How can I suspend using a keyboard shortcut, without administrator privileges?

The problem is the following: When I try to to define a new shortcut with System -> Settings -> Settings Manager -> Keyboard -> Application Shortcuts -> Add, I only see

Shortcut: [no area to type in]
Command: ___________ [area to type in]

That means I can put in a command, but no shortcut. Is this a bug?

Best Answer

Ok, In Xubuntu it is a bit different, first when you hit Add It comes up with this screen-

enter image description here

Which is exactly as you described, First put the command you want in, from the link you were flowing after installing powermanagement-interface you put in the command box pmi action suspend then hit OK The next screen will let you Key in the Shortcut you want to use, Press the key combo you want to use then release-

enter image description here

If you accidentally hit a wrong button, or want to edit the shortcut, just double click on the shortcut area of the command-

enter image description here