From e4f6edddad6a9a9d948ea28e3c002e49241fa253 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 1 Feb 2024 03:03:42 -0500 Subject: Use XParseGeometry(), simplify argument processing. --- xdeadzone.1 | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'xdeadzone.1') diff --git a/xdeadzone.1 b/xdeadzone.1 index 3bb3184..29929d0 100644 --- a/xdeadzone.1 +++ b/xdeadzone.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "XDEADZONE" 1 "2024-01-31" "0.1" "Urchlay's Misc Stuff" +.TH "XDEADZONE" 1 "2024-02-01" "0.1" "Urchlay's Misc Stuff" .SH NAME xdeadzone \- keep the mouse pointer out of the dead zone, on mismatched multihead displays. .\" RST source for xdeadzone(1) man page. Convert with: @@ -36,7 +36,7 @@ xdeadzone \- keep the mouse pointer out of the dead zone, on mismatched multihea . .SH SYNOPSIS .sp -xdeadzone [\fB\-nw\fP | \fB\-ne\fP | \fB\-sw\fP | \fB\-se\fP | \fB\-abs\fP \fIx\-position\fP \fIy\-position\fP] \fIwidth\fP \fIheight\fP +xdeadzone [\fB\-nw\fP | \fB\-ne\fP | \fB\-sw\fP | \fB\-se\fP | \fB\-abs\fP] \fIgeometry\fP .sp xdeadzone \fB\-\-help\fP | \fB\-\-version\fP .SH DESCRIPTION @@ -85,15 +85,17 @@ Place window at southwest (bottom left) corner of display. .B \fB\-se\fP Place window at southeast (bottom right) corner of display. .TP -.B \fB\-abs\fP \fIx\-position\fP \fIy\-position\fP -Place window at the given coordinates. Negative numbers will be -treated as offsets from the right/bottom of the display. -.TP -.B \fBwidth\fP -Width of the dead zone. Required; must be a positive integer. +.B \fB\-abs\fP +Place window at the coordinates given by \fBgeometry\fP\&. .TP -.B \fBheight\fP -Height of the dead zone. Required; must be a positive integer. +.B \fBgeometry\fP +This is a standard X11 geometry specification. Its format is +<\fIwidth\fP>x<\fIheight\fP> for all modes other than \fB\-\-abs\fP\&. For \fB\-\-abs\fP, +it\(aqs <\fIwidth\fP>x<\fIheight\fP>[\fI+\-\fP]<\fIxpos\fP>[\fI+\-\fP]<\fIypos\fP>. +Negative xpos and ypos will be +treated as offsets from the right/bottom of the display. +.sp +Examples: \fB200x100\fP, \fB64x64\-0\-0\fP, \fB50x60+100+100\fP\&. .UNINDENT .SH ENVIRONMENT .INDENT 0.0 @@ -124,7 +126,7 @@ To avoid losing the pointer, you can run this: .sp .nf .ft C -xdeadzone \-se 1280 56 & +xdeadzone \-se 1280x56 & .ft P .fi .UNINDENT @@ -141,7 +143,7 @@ losing the mouse there: .sp .nf .ft C -xdeadzone \-ne 640 1024 & +xdeadzone \-ne 640x1024 & .ft P .fi .UNINDENT -- cgit v1.2.3