You are not logged in.

#1 2010-06-28 05:19:34

Mr.Macdonald
Member
Registered: 2008-10-09
Posts: 26

DWM auto lock after inactivity

I want to have my DWM, run slock (screen locker) after a number of  minutes of inactivity

Thank you

Offline

#2 2010-06-28 05:24:05

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: DWM auto lock after inactivity

It would probably be easier to run xscreensaver, since it can take care of the timing and such.

Offline

#3 2010-06-28 07:16:29

schen
Member
Registered: 2009-06-06
Posts: 468

Re: DWM auto lock after inactivity

Don't use xscreensaver, it's somewhat bloated. Just use xlockmore from the AUR. Put it into the .xinitrc and read the man page for help on it.

Offline

#4 2010-07-02 01:16:47

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: DWM auto lock after inactivity

You can use sinac to monitor the time.

while :; do
    sinac -w 300 && slock
done

Last edited by steve___ (2010-07-02 01:16:59)

Offline

#5 2010-07-02 02:52:46

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: DWM auto lock after inactivity

Install xautolock from AUR.  Then add the following to your ~/.xinitrc:

xautolock -time 10 -locker slock -nowlocker slock -detectsleep -corners 000+ -cornerdelay 3 &

...locks in 10 minutes of inactivity, or whenever you place the mouse cursor in the bottom right corner for 3 seconds.

Last edited by thayer (2010-07-02 02:53:39)


thayer williams ~ cinderwick.ca

Offline

Board footer

Powered by FluxBB