slock with DPMS and other tweaks
at jcs 39 lines 882 B view raw
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 12is a simple X screen locker. If provided, 13.Ar cmd Op Ar arg ... 14is executed after the screen has been locked. 15.Sh OPTIONS 16.Bl -tag -width Ds 17.It Fl v 18Print version information to stdout and exit. 19.El 20.Sh SECURITY CONSIDERATIONS 21To make sure a locked screen can not be bypassed by switching VTs 22or killing the X server with Ctrl+Alt+Backspace, it is recommended 23to disable both in 24.Xr xorg.conf 5 25for maximum security: 26.Bd -literal -offset left 27Section "ServerFlags" 28 Option "DontVTSwitch" "True" 29 Option "DontZap" "True" 30EndSection 31.Ed 32.Sh EXAMPLES 33$ 34.Nm 35/usr/sbin/s2ram 36.Sh CUSTOMIZATION 37.Nm 38can 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.