You are not logged in.

#1 2017-04-26 17:54:49

rking
Member
Registered: 2015-11-23
Posts: 16

[SOLVED] xautolock killer not working under i3

I've been playing around with xautolock for a while and can make it lock screen after inactivity by adding the following to my my .i3/config

exec_always --no-startup-id xautolock -time 5 -locker "i3lock -c 3bb9ea"

I seem to also be able to have it suspend by swapping the "i3lock -c 3bb9ea" with "systemctl suspend"

however, trying to add the -killtime (>=10) and -killer "systemctl suspend" result in no additional action after the lock.

anyone been able to get this working?  can anyone help with problem solving?

Last edited by rking (2017-04-27 16:21:54)

Offline

#2 2017-04-27 15:31:41

rking
Member
Registered: 2015-11-23
Posts: 16

Re: [SOLVED] xautolock killer not working under i3

so more testing today with a positive result:

xautolock -time 1 -locker "i3lock -n" -killtime 10 -killer "systemctl suspend" works when invoked from the terminal.  am about to try it when entered into the .i3/config

Offline

#3 2017-04-27 16:21:20

rking
Member
Registered: 2015-11-23
Posts: 16

Re: [SOLVED] xautolock killer not working under i3

so the following worked....must be the -n in the i3lock command.   i had to remove the i3lock.service i had created to start the locker on wake from susupend...but it all seems to work

exec_always --no-startup-id xautolock -detectsleep -time 5 -locker "i3lock -n -c 3bb9ea" -killtime 10 -killer "systemctl suspend" &

Offline

#4 2018-01-07 17:03:43

kevinselvaprasanna
Member
Registered: 2018-01-04
Posts: 6

Re: [SOLVED] xautolock killer not working under i3

wow, cool. That worked for me too. Thanks

Offline

#5 2018-01-07 17:13:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] xautolock killer not working under i3

Please don't bump with empty "me too" posts.

https://wiki.archlinux.org/index.php/Co … mpty_posts

Closing.

Offline

Board footer

Powered by FluxBB