xhotplug

Run arbirary commands in response to newly connected X11 displays
git clone git://git.danielmoch.com/xhotplug.git
Log | Files | Refs | README | LICENSE

commit 794f543364cf241715b63e66dfe20d691ebac7be
parent 91b1f694fb17d2676bd6092df87ccc0cd553e577
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  5 Jul 2020 08:56:13 -0400

Normalize usage documentation

Diffstat:
Mxhotplug.1 | 8++++----
Mxhotplug.c | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/xhotplug.1 b/xhotplug.1 @@ -1,4 +1,4 @@ -.Dd 2020-07-04 +.Dd 2020-07-05 .Dt XHOTPLUG 1 .Os .Sh NAME @@ -6,7 +6,7 @@ .Nd X11 monitor attach/detach event responder .Sh SYNOPSIS .Nm -.Op Fl vh +.Op Fl hv .Ar script .Sh DESCRIPTION .Nm @@ -46,10 +46,10 @@ waits for monitor attach/detach events, calling whenever one is received. .Sh OPTIONS .Bl -tag -width Ds -.It Fl v -Print version and exit. .It Fl h Print usage and exit. +.It Fl v +Print version and exit. .El .Sh EXAMPLES There are several ways to make use of xhotplug. diff --git a/xhotplug.c b/xhotplug.c @@ -23,7 +23,7 @@ enum { void usage(const int e_val) { - printf("usage: %s [-h] [-v] script\n", argv0); + printf("usage: %s [-hv] script\n", argv0); exit(e_val); }