LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to manually invoke screensaver? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-manually-invoke-screensaver-436733/)

bjw122 04-19-2006 09:07 AM

How to manually invoke screensaver?
 
I've defined a screensaver in KDE with the options to "Start automatically" and "Require password to stop".

I want to know how to create a link/shortcut on my desktop that will start the screensaver (which will require a password to stop it) when I click it. This will be useful if I need to get up from my desk and don't want to leave the system unlocked.

coolb 04-19-2006 09:12 AM

Quote:

Originally Posted by bjw122
I've defined a screensaver in KDE with the options to "Start automatically" and "Require password to stop".

I want to know how to create a link/shortcut on my desktop that will start the screensaver (which will require a password to stop it) when I click it. This will be useful if I need to get up from my desk and don't want to leave the system unlocked.

man xscreensaver

oneandoneis2 04-19-2006 10:29 AM

xscreensaver-command -lock

Always worked fine for me..

nx5000 04-19-2006 11:23 AM

xscreensaver-demo, I asked for the name to change but the maintainer didn't want.

bjw122 04-19-2006 01:12 PM

Misunderstood?
 
Quote:

Originally Posted by nx5000
xscreensaver-demo, I asked for the name to change but the maintainer didn't want.

Maybe my question was misunderstood? I know how to configure xscreensaver with the GUI that is launched when you type 'xscreensaver-demo'. What I don't know is how to create a link/shortcut on my desktop that will start the screensaver when I click it. Can anyone help with that question?

bjw122 04-19-2006 01:18 PM

It looks like, as reported by oneandoneis2 , you can do a 'xscreensaver-command -lock' but how can I create a desktop icon/shortcut and have this command execute as a result of it being clicked on?

Poetics 04-19-2006 02:41 PM

If you use KDE (and I assume Gnome) you can assign a shortcut key to launch an application, such as "xscreensaver-command -lock" -- or you can simply create a link on your desktop to the same application.

Komakino 04-19-2006 02:49 PM

Quote:

Originally Posted by bjw122
It looks like, as reported by oneandoneis2 , you can do a 'xscreensaver-command -lock' but how can I create a desktop icon/shortcut and have this command execute as a result of it being clicked on?

The same way you'd create a desktop icon to anything else... I haven't used gnome for years, but with KDE you right click,choose new link to application (or something like that) then enter exactly what you've been shown.

bjw122 04-19-2006 03:03 PM

Thank You
 
Quote:

Originally Posted by Poetics
If you use KDE (and I assume Gnome) you can assign a shortcut key to launch an application, such as "xscreensaver-command -lock" -- or you can simply create a link on your desktop to the same application.

Thanks, I hadn't thought of a shortcut. I created one that does executes the "xscreensaver-command -lock" command and that works just fine. Much appreciated.


All times are GMT -5. The time now is 12:17 PM.