DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried out xlock -mode dclock, and I liked the screensaver, but I don't like having to log in again. Is there a way of running this screensaver by xscreensaver? umk
Now I'd like to write a little shell script which runs the command "xlock -nolock -mode dclock" after say 30 minutes - is there a shell variable I could use to specify that 30 minutes have passed? I don't really NEED this, but I'm curious to know... Thanks again, umk
Forgot to say something crucial: what I want to be able to specify in the script is that there were X minutes of inactivity. This should be possible, I guess. umk
Sorry, no idea. I've associated the xlock command I want to use with a launcher button in Window Maker and I just click the button with mouse when I need xlock. Maybe someone else can help with your script?
Hey, wait a minute! I ran an apt-cache search and found a program called xautolock. Apparently it's a helper program designed to launch xlock after some period of inactivity on the input devices. Sounds like just the thing you're looking for.
I've added the line:
xautolock -time 20 -locker "xlock -nolock -mode dclock"
to my ~/.xsession file (after apt-getting xautolock and xlock) and the screensaver comes up after 20 minutes of inactivity, but without locking the screen. Problem solved. umk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.