slock with DPMS and other tweaks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Convert manpage to mandoc and fix usage

In all honor, the previous usage was formally more correct, but for the
sake of consistency across all the tools having the v-flag, I separated
it from the command-string.

Also, make use of the mandoc macros for the manpage. This makes it
easier to maintain, extend and change in the future.

authored by

FRIGN and committed by
Markus Teich
a9eddbd9 d8bec0f6

+27 -29
+26 -28
slock.1
··· 1 - .TH SLOCK 1 slock\-VERSION 2 - .SH NAME 3 - slock \- simple X screen locker 4 - .SH SYNOPSIS 5 - .B slock 6 - .RB [ \-v 7 - | 8 - .IR cmd ] 9 - .SH DESCRIPTION 10 - .B slock 11 - is an X screen locker. If provided, 12 - .IR cmd 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 ... 13 14 is executed after the screen has been locked. 14 - .SH OPTIONS 15 - .TP 16 - .B \-v 17 - prints version information to stdout, then exits. 18 - .SH EXAMPLES 19 - $ slock /usr/sbin/s2ram 20 - .SH CUSTOMIZATION 21 - .B slock 22 - can be customized by creating a custom config.h and (re)compiling the source 23 - code. This keeps it fast, secure and simple. 24 - .SH AUTHORS 25 - See the LICENSE file for the authors. 26 - .SH LICENSE 27 - See the LICENSE file for the terms of redistribution. 28 - .SH BUGS 29 - Please report them. 15 + .Sh OPTIONS 16 + .Bl -tag -width Ds 17 + .It Fl v 18 + Print version information to stdout and exit. 19 + .El 20 + .Sh EXAMPLES 21 + $ 22 + .Nm 23 + /usr/sbin/s2ram 24 + .Sh CUSTOMIZATION 25 + .Nm 26 + can be customized by creating a custom config.h from config.def.h and 27 + (re)compiling the source code. This keeps it fast, secure and simple.
+1 -1
slock.c
··· 282 282 static void 283 283 usage(void) 284 284 { 285 - die("usage: slock [-v | cmd [arg ...]]\n"); 285 + die("usage: slock [-v] [cmd [arg ...]]\n"); 286 286 } 287 287 288 288 int