]> git.armaanb.net Git - slock.git/blob - slock.1
Unboolify slock.c
[slock.git] / slock.1
1 .Dd 2016-08-23
2 .Dt SLOCK 1
3 .Sh NAME
4 .Nm slock
5 .Nd simple X screen locker
6 .Sh SYNOPSIS
7 .Nm
8 .Op Fl v
9 .Op Ar cmd Op Ar arg ...
10 .Sh DESCRIPTION
11 .Nm
12 is a simple X screen locker. If provided,
13 .Ar cmd Op Ar arg ...
14 is executed after the screen has been locked.
15 .Sh OPTIONS
16 .Bl -tag -width Ds
17 .It Fl v
18 Print version information to stdout and exit.
19 .El
20 .Sh SECURITY CONSIDERATIONS
21 To make sure a locked screen can not be bypassed by switching VTs
22 or killing the X server with Ctrl+Alt+Backspace, it is recommended
23 to disable both in
24 .Xr xorg.conf 5
25 for maximum security:
26 .Bd -literal -offset left
27 Section "ServerFlags"
28         Option "DontVTSwitch" "True"
29         Option "DontZap"      "True"
30 EndSection
31 .Ed
32 .Sh EXAMPLES
33 $
34 .Nm
35 /usr/sbin/s2ram
36 .Sh CUSTOMIZATION
37 .Nm
38 can be customized by creating a custom config.h from config.def.h and
39 (re)compiling the source code. This keeps it fast, secure and simple.