You are not logged in.

#1 2018-09-04 03:07:03

cds60601
Member
From: Chicago
Registered: 2018-08-09
Posts: 31

[SOLVED] i3 and auto screen lock

Hi all

I'm struggling trying to get a screen lock setup with i3.
I'm using this in my .xinitrc but it only seems to work when entered in a consol


exec xautolock -time 2 -locker "i3lock -i 'someimge.png'"

The 2 minute time is only for testing purposes. I intend to use something more reasonable like 10 mins. I'm not sure what the syntax ought to be or if I am even working with the correct file.

Any help would be appreciated.

Cheers
Chris

Last edited by cds60601 (2018-09-04 04:12:26)


Yeah, 220, 221. Whatever it takes.
Server: Debian 9 (Stretch)   Workstation: ArchLabs (i3-gaps)

Offline

#2 2018-09-04 03:40:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] i3 and auto screen lock

Post your full ~/.xinitrc

You do realise that nothing after the first exec line will never get run?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-09-04 04:11:23

cds60601
Member
From: Chicago
Registered: 2018-08-09
Posts: 31

Re: [SOLVED] i3 and auto screen lock

Thanks for the reply!
I did find a way (dont know it it's THE way, but a way that works).

I added this line to my .config/i3/config file

exec xautolock -time 10 -locker "i3lock -c 000000"

This is exactly what I wanted, a simple black screen that locks after 10 mins.


Yeah, 220, 221. Whatever it takes.
Server: Debian 9 (Stretch)   Workstation: ArchLabs (i3-gaps)

Offline

Board footer

Powered by FluxBB