From df7468b4910ebb6dfefb5da7e2e46def6f0d4d8c Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 19 Aug 2016 10:46:38 +0200 Subject: Use XRandr to get monitor layout instead of xinerama. * You can now specify monitor by name, or primary status. --- doc/rofi-manpage.markdown | 10 +++++++++- doc/rofi.1 | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown index 501872f6..2b9b0b2c 100644 --- a/doc/rofi-manpage.markdown +++ b/doc/rofi-manpage.markdown @@ -370,10 +370,16 @@ Default: *5000* When one entry is left, automatically select it. `-m` *num* + +`-m` *name* + `-monitor` *num* +`-monitor` *name* + Select (Xinerama) monitor to display **rofi** on. -Negative numbers are handled differently: +As input it accepts: *primary* (if primary output is set), the *xrandr* output name or integer number (in order of +detection). Negative numbers are handled differently: * **-1**: the currently focused monitor. * **-2**: the currently focused window (i.e. rofi will be displayed on top of the focused window). @@ -384,6 +390,8 @@ Negative numbers are handled differently: Default: *-1* +See `rofi -h` output for the detected monitors, their position and size. + ### PATTERN setting `-terminal` diff --git a/doc/rofi.1 b/doc/rofi.1 index 9cb424c1..fa06458e 100644 --- a/doc/rofi.1 +++ b/doc/rofi.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "ROFI\-MANPAGE" "" "July 2016" "" "" +.TH "ROFI\-MANPAGE" "" "2016-08-18" "" "" . .SH "NAME" \fBrofi\fR \- A window switcher, run launcher, ssh dialog and dmenu replacement @@ -621,10 +621,19 @@ Default: \fI5000\fR When one entry is left, automatically select it\. . .P -\fB\-m\fR \fInum\fR \fB\-monitor\fR \fInum\fR +\fB\-m\fR \fInum\fR . .P -Select (Xinerama) monitor to display \fBrofi\fR on\. Negative numbers are handled differently: +\fB\-m\fR \fIname\fR +. +.P +\fB\-monitor\fR \fInum\fR +. +.P +\fB\-monitor\fR \fIname\fR +. +.P +Select (Xinerama) monitor to display \fBrofi\fR on\. As input it accepts: \fIprimary\fR (if primary output is set), the \fIxrandr\fR output name or integer number (in order of detection)\. Negative numbers are handled differently: . .IP "\(bu" 4 \fB\-1\fR: the currently focused monitor\. @@ -646,6 +655,9 @@ Default: \fI\-1\fR . .IP "" 0 . +.P +See \fBrofi \-h\fR output for the detected monitors, their position and size\. +. .SS "PATTERN setting" \fB\-terminal\fR . -- cgit v1.2.3