Re: Limiting XQuartz to one of 2 monitors?
Re: Limiting XQuartz to one of 2 monitors?
- Subject: Re: Limiting XQuartz to one of 2 monitors?
- From: Brandon Allbery <email@hidden>
- Date: Mon, 05 Sep 2011 17:31:35 -0400
On Mon, Sep 5, 2011 at 09:36,
<email@hidden> wrote:
PS: Is there a better way to start XQuartz without window-manager as to shuffle with ~/.xinitrc?
Environment variables propagate through to xinitrc scripts (~/.xinitrc [not recommended] or ~/.xinitrc.d/*.sh) — I wasn't certain this would work because it's not unheard of for directly running stuff to ping launchd to rerun it "correctly". So you can do something like
NOWM=1 nohup /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 :2 -once |
and then test for $NOWM in your xinitrc. For this usage, I'd probably set up ~/.xinitrc.d/99nowm.sh as follows
#! /bin/sh if [ "$NOWM" = 1 ]; then USERWM="xterm -geometry 30x5+10+20" else unset USERWM
fi |
(make sure to "chmod +x" it) so that if you have NOWM set you get the xterm (cribbed from your sample ~/.xinitrc) and otherwise you get quartz-wm.
BTW, your "xhost" command in that ~/.xinitrc won't work since the "exec xterm" will prevent it from being reached (unless it fails in which case X11 will shut down immediately after running the "xhost" command). If you really need it, move it above the "exec xterm".
I don't know if current XQuartz will let you use "xrandr" to adjust the screen boundaries; I can view them, at least, and it at least looks possible if somewhat odd (as both monitors are lumped into a single screen; I think the XRandR protocol is hard to do properly given that X11/XQuartz is really a protocol transducer and is limited to what Core Graphics will let clients do). Older X11.app probably can't do much with it at all, as full XRandR support is quite recent, so you probably want to install XQuartz (
http://xquartz.macosforge.org) before experimenting with it.
--
brandon s allbery
email@hiddenwandering unix systems administrator (available) (412) 475-9364 vm/sms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden