I want to change Key short cut to
LockScreen but it is not working. If I try any other combination like
CTRL+ALT+G , it works.
Win+L combination used to work in 11.10.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Yes, it's very annoying, and hard to remember the exact fix. So hopefully this will help you, and also be an easy way for me to look this up next time I do a fresh Ubuntu install.
There is duplication & conflict between the Gnome Keyboard Shortcut settings (as depicted in your screen shot) and the same settings in the new Unity desktop. Ubuntu (well, Gnome) provides a UI for editing the Gnome Keyboard Shortcut settings but as you've learned, they don't work if they conflict with Unity. And there is no UI installed by default for managing Unity.
Note that to get 'Super-X' style shortcuts to work, you will have to change the 'key to show the launcher' setting, which means that the Super/Windows key will no longer open the launcher. If that's OK with you, continue...
Here is what I do:
Install compizconfig-settings-manager (some will warn you not to, because it gives you enough power to really mess things up). There may be a way to change these without using CCSM but if so, I don't know it. Install it via the Ubuntu Software Center, or:
$ sudo apt-get install compizconfig-settings-manager
Run CompizConfig Settings Manager; acknowledge the warning message.
Ubuntu Unity Pluginicon in the
Key to show the launcher(on the
Behaviourtab). To do this:
Grab key combination
<Super>-L 'Lock Screen' combination that you already set up should now just work!
Note that CCSM also provides its own facility for setting keyboard shortcuts. For things not included in the gnome-control-center, you may have more luck defining custom shortcuts in CCSM. If you select
Commands from the
General section in CCSM, you can define custom commands, like I've done here:
...and then, you can associate those commands with specific key combinations, like this:
As you can see, I've configured Super-E to launch the Gnome text editor, and Super-C to launch the calculator. I find both of these very handy.