Click to See Complete Forum and Search --> : [SOLVED] Gnome Lock Screen Shortcut


JayMan8081
11-03-2004, 04:13 PM
Is there a keyboard shortcut in Gnome that let's you lock the screen? I know in KDE it was Ctrl+Alt+L and I was wondering if there was something similar for Gnome. I am running Gnome 2.4 if that matters. Thanks.

bsm2001
11-03-2004, 04:28 PM
Go to star->system->configuration-.gnome->keyboard shortcuts and create your own.

Fenster
11-03-2004, 05:23 PM
Just make a desktop launcher with the command xscreensaver-command -lock

JayMan8081
11-03-2004, 05:35 PM
bsm2001 - I can't define any new shortcuts in the gnome-control-center. I can only change the ones previously defined there.

fenster - I have an option on the gnome menu to lock the screen, I just wanted a keyboard shortcut that would perform the same function. That way I wouldn't have to use the menu. I figured that since KDE had this option so would Gnome.

Anyone else have any ideas?

infidel
11-04-2004, 09:11 AM
Greetings,

In Gnome 2.8:
Desktop Preferences -> Keyboard Shortcuts
And define your shortcut.
Not sure about other gnome versions though.

JayMan8081
11-04-2004, 11:57 AM
This is essentially the same thing that bsm told me to try. That works great for changing previously defined actions, but in gnome 2.4 "lock screen" isn't defined as a function to map to a keyboard shortcut and I can't create any new ones.

infidel
11-04-2004, 01:56 PM
Sory about that.

Anyway, I'm in Gnome 2.8 again, but in gconf, under apps -> metacity -> keybinding_commands you can define your own commands.
Now under apps-> metacity -> global_keybindings you define the keyboard shortcut for the command you want.
For example, set the 'command_1' key (keybinding_commands) to 'xscreensaver-command -lock', and the 'run_command_1' key (global_keybindings) to '<Shift><Control>l'.
It should work now.

Hope this helps

JayMan8081
11-04-2004, 02:43 PM
Great, thank you very much. That was exactly what I was looking for. :p