2023-10-06 12:48:40 +03:00
|
|
|
.Dd October 6, 2023
|
2016-08-23 11:55:34 +03:00
|
|
|
.Dt SLOCK 1
|
2023-10-06 12:48:40 +03:00
|
|
|
.Os
|
2016-08-23 11:55:34 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm slock
|
|
|
|
.Nd simple X screen locker
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl v
|
|
|
|
.Op Ar cmd Op Ar arg ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2023-10-06 12:48:40 +03:00
|
|
|
is a simple X screen locker.
|
|
|
|
If provided,
|
|
|
|
.Ar cmd
|
2016-02-14 02:48:48 +02:00
|
|
|
is executed after the screen has been locked.
|
2023-10-06 12:57:31 +03:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
2016-08-23 11:55:34 +03:00
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl v
|
|
|
|
Print version information to stdout and exit.
|
|
|
|
.El
|
2023-10-06 12:57:31 +03:00
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Ex -std
|
2023-10-06 12:48:40 +03:00
|
|
|
.Sh EXAMPLES
|
|
|
|
$
|
|
|
|
.Nm
|
|
|
|
/usr/sbin/s2ram
|
2016-09-28 21:20:51 +03:00
|
|
|
.Sh SECURITY CONSIDERATIONS
|
|
|
|
To make sure a locked screen can not be bypassed by switching VTs
|
|
|
|
or killing the X server with Ctrl+Alt+Backspace, it is recommended
|
|
|
|
to disable both in
|
|
|
|
.Xr xorg.conf 5
|
|
|
|
for maximum security:
|
2023-10-06 12:48:40 +03:00
|
|
|
.Bd -literal
|
2016-09-28 21:20:51 +03:00
|
|
|
Section "ServerFlags"
|
|
|
|
Option "DontVTSwitch" "True"
|
|
|
|
Option "DontZap" "True"
|
|
|
|
EndSection
|
|
|
|
.Ed
|
2016-08-23 11:55:34 +03:00
|
|
|
.Sh CUSTOMIZATION
|
|
|
|
.Nm
|
|
|
|
can be customized by creating a custom config.h from config.def.h and
|
2023-10-06 12:48:40 +03:00
|
|
|
(re)compiling the source code.
|
|
|
|
This keeps it fast, secure and simple.
|