I’m sure that many of you are used with the <Win>+<L> key combination in
windows, to lock the screen. In Ubuntu (the distro I use), the
corespondent shortcut is <CTRL>+<ALT>+<L>. But, in many other distros
there is no shortcut for this command. Here is what you can do to assign a shortcut for locking the screen. (In order to do that, you have to activate the Win key. Read “How to use the Win key in Linux” to find out how to do it.)
Open the gconf-editor by typing “gconf-editor” in the terminal.
Go to: apps>metacity>keybinding_commands
If in Windows you were used with the Win key combinations, perhaps you would like to use it in Linux too. Here is a short tutorial about how to activate the Win keys in Linux.
First we will set the Windows key behaviour.
Go to System>Preferences>Keyboard.
Go to the Layouts tab and press the Layout Options button.
Open the Alt/Win key option.
Select the “Super is mapped to the Win-keys” behaviour.
Close the windows.
Now, that we have set the key behaviour, let’s make some Windows like shortcuts.
Go to System>Preferences>Keyboard Shortcuts.
Go to Window Management section.
Search for “Hide all windows and focus desktop”. Click on it.
Now will change the default shortcut with the one we want. Press the <WIN><D> combination.
Close the window and test your new shortcut. It works?
Now you can use the Win-keys the same way as in Windows or create the combinations you like.
For a tutorial about locking the screen with <Win>L in other distros then Ubuntu read the “How to lock the screen in GNOME” article.
For a list of most used GNOME and Nautilus shortcuts read “Top 15 shortcut keys in gnome and nautilus”