Lock screen, and keyboard shortcut to switch desktops?

Please post all general support questions for LXDE here.
Locked
amca01
Posts: 3
Joined: Fri Apr 17, 2009 12:38 am

Lock screen, and keyboard shortcut to switch desktops?

Post by amca01 »

The title more or less says it all; I have two newbie questions:

1) How do I install , either in the panel or on the desktop, a button for locking the screen? That is, a button which executes the command "xscreensaver-command -lock".

2) Is there a way of travelling between desktops using a keyboard shortcut? And if so, how do I set it?

Thanks,
Al
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Lock screen, and keyboard shortcut to switch desktops?

Post by maces »

Hi

1) Make a new textfile in /usr/share/applications called lock_screen.dektop and copy this in it:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Lock Screen
Comment=Locks your screen
Icon=xscreensaver
Exec=xscreensaver-command -lock
Terminal=false
Type=Application
Then choose "Application Lunch Bar Settings". Click add, choose the lock_screen.dektop file and that's it.

2) CRTL+ALT+arrow key.

maces
jeevs
Posts: 3
Joined: Tue May 05, 2009 9:30 am

Re: Lock screen, and keyboard shortcut to switch desktops?

Post by jeevs »

Right click on desktop and create new text file with name: "lockscreen.desktop"

Right click on the file and open with "leafpad"

now paste thefollowing code into it and save it.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Lock Screen
Comment=Locks your screen
Icon=xscreensaver
Exec=xscreensaver-command -lock
Terminal=false
Type=Application
cheers.........
shahgols
Posts: 1
Joined: Fri Sep 18, 2009 12:11 am

Re: Lock screen, and keyboard shortcut to switch desktops?

Post by shahgols »

maces wrote: Then choose "Application Lunch Bar Settings". Click add, choose the lock_screen.dektop file and that's it.

maces
Hi maces,

I'm trying to do the same thing...to add a lock session button on the panel...but I got lost at this point. Where is the "Application Launch Bar Settings"? Thanks.
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: Lock screen, and keyboard shortcut to switch desktops?

Post by maces »

Where you click on your starters, for example PCManFM ect. there click right and the first item in the menu ;)

maces
Locked