This repository has been archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdautolock.1.src
88 lines (88 loc) · 1.75 KB
/
sdautolock.1.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.TH "SDAUTOLOCK" 1 "__DATE__" "sdautolock __VERSION__" "sdautolock Manual"
.
.SH NAME
sdautolock \- simple command to run screen locker
.
.SH SYNOPSIS
.B sdautolock
.I idle
.I time
.I locker
[\fI\,args\/\fR...]
.
.SH DESCRIPTION
.B sdautolock
runs
.I locker
when either
systemd is preparing to sleep,
when the session is locked,
or after a certain time elapses.
The program
.I idle
shall output how many milliseconds seconds have elapsed
out of the
.I time
seconds until the screen should automatically lock.
If
.I time
is zero,
.I idle
is never called.
.PP
.I locker
should close the file descriptor
.I SD_SLEEP_LOCK_FD
passed in the environment when it has locked the screen
and exit when the screen has been unlocked.
.I locker
will not be invoked again until the previous instance exits.
(In other words,
locking is idempotent.)
.PP
.I SIGUSR1
and
.I SIGUSR2
can be sent to respectively disable and enable timer based locking.
.
.SH EXAMPLE
The command below locks the screen with i3lock and its "ignore empty password" option after 3 minutes of inactivity on X11:
.EX
sdautolock xprintidle 180 i3lock -e
.EE
.I i3lock
closes
.I SD_SLEEP_LOCK_FD
as necessary (see NOTES).
.
.SH ENVIRONMENT
.I SD_SLEEP_LOCK_FD
is set in the locker program's environment and must be closed to allow the system to sleep.
.PP
.I XSS_SLEEP_LOCK_FD
is set equal to
.I SD_SLEEP_LOCK_FD
for compatibility with programs
(like i3lock)
that close it automatically.
.
.SH AUTHOR
Written by André Marçais.
.SH COPYRIGHT
Copyright \(co 2021 André Marçais.
Licensed under
.UR https://gnu.org/licenses/gpl.html
GPLv3
.UE .
.
.SH SEE ALSO
.BR i3lock (1),
.BR i3lock-color (1),
.BR xprintidle (1),
.BR systemd (1),
.BR org.freedesktop.login1 (5),
.BR xss-lock (1)
.
\" Local Variables:
\" mode: nroff
\" End: