Questions tagged [xautolock]
The xautolock tag has no usage guidance.
8
questions
3
votes
1
answer
2k
views
Trying to use xautolock to suspend activity after a certain amount of time
I'm using manjaro (5.8.18-1-MANJARO) and the i3 window manager.
I'm trying to lock the screen then suspend activity after given amounts of idle time. I've found that xautolock should suit my needs ...
0
votes
1
answer
540
views
xautolock locker function stops working after a minute
I have a slightly different way of using xautolock: After I lock the screen (using i3lock in my case), I want the display to turn off after some period of time of inactivity. AND I want it to re-turn ...
0
votes
2
answers
331
views
Script to detect mouse clicks like a screen saver while ignoring mouse movement
Would like to disconnect an nic after a minute of user inactivity, where inactivity is defined as no mouse clicks or wheel scrolls. Mouse movement is to be ignored so xscreensaver is not suitable and ...
0
votes
1
answer
304
views
shell script run by xautolock keeps stall value in command substitution
I'm trying to make a simple script to put my computer to sleep if it runs on battery unattended. I have this simple script:
#!/bin/sh
if [ `cat /sys/class/power_supply/ADP1/online` -eq 0 ]; then
...
2
votes
1
answer
329
views
xautolock/ssh-add can't interact with ssh-agent if launched from .xsessionrc
I use xautolock to lock the screen and suspend my laptop after a given amount of time of inactivity. This works fine. This is how xautolock is started from .xsessionrc:
xautolock -time 60 -...
16
votes
2
answers
5k
views
Why does desktop locking stop working after some time?
xautolock is clearly running:
$ ps wafux | grep [x]autolock
user 21410 0.0 0.0 20124 2628 ? S Nov05 0:04 xautolock -time 10 -notify 30 -notifier notify-send --urgency low --expire-...
1
vote
0
answers
527
views
Can I use xautolock or anything else to run a command when input is received after the timeout?
I want to have my screen lock and backlight fade out after some delay, and then I want to have the backlight fade back in when I move the cursor or press a button. Having the screen fade out is easy ...
5
votes
0
answers
2k
views
Why does my Before=sleep.target service run *after resuming*?
I've defined the following service to start a screen locker before suspending:
$ cat /etc/systemd/system/screenlock.service
[Unit]
Description=Lock X session using slock
Before=sleep.target
[Service]...