LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2006, 09:07 AM   #1
bjw122
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Rep: Reputation: 0
Question 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.
 
Old 04-19-2006, 09:12 AM   #2
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
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
 
Old 04-19-2006, 10:29 AM   #3
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
xscreensaver-command -lock

Always worked fine for me..
 
Old 04-19-2006, 11:23 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
xscreensaver-demo, I asked for the name to change but the maintainer didn't want.
 
Old 04-19-2006, 01:12 PM   #5
bjw122
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Question 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?
 
Old 04-19-2006, 01:18 PM   #6
bjw122
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 04-19-2006, 02:41 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
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.
 
Old 04-19-2006, 02:49 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 04-19-2006, 03:03 PM   #9
bjw122
LQ Newbie
 
Registered: Apr 2006
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to invoke passwd phoenix_fei Programming 2 06-03-2005 03:44 AM
vim invoke noir911 Programming 1 01-29-2005 08:15 PM
invoke xterm through program sudha naidu Programming 2 12-27-2004 04:46 AM
invoke makefile: make invasian Linux - Newbie 2 08-08-2004 02:52 AM
Want to invoke debugger through JSP. kirti Programming 0 06-11-2004 03:30 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration