The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [xautolock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
35 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
1answer
147 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
1answer
165 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 -...
14
votes
1answer
3k 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
0answers
481 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 ...
3
votes
0answers
1k 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]...