Limiting XQuartz to one of 2 monitors?
Limiting XQuartz to one of 2 monitors?
- Subject: Limiting XQuartz to one of 2 monitors?
- From: email@hidden
- Date: Mon, 05 Sep 2011 13:36:39 +0000
- Thread-topic: Limiting XQuartz to one of 2 monitors?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
is it possible to limit X11 to only one of 2 monitors? I use XQuartz in 3 different ways:
1. local (there it is OK with the 2 monitors)
2. with XDCMP
3. with X-Forwarding
I start with double click on the X icon to get the version 1.
To start version 2 (XDCMP) I use a script with following contents:
- ----------------------------------------------------------------------------------------------------------------
#!/bin/sh
cp ~/.xinitrc-nowm ~/.xinitrc
nohup /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 :3 -once -query <IP>
#nohup /Applications/Utilities/X11.app/Contents/MacOS/X11 :3 -once -query <IP>
rm ~/.xinitrc
- ----------------------------------------------------------------------------------------------------------------
To start version 3 (X-Forwarding) I use following script (and making ssh -Y <user>@<ip> on the opened xterm + starting a window-manager remote):
- ----------------------------------------------------------------------------------------------------------------
cp ~/.xinitrc-nowm ~/.xinitrc
nohup /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 :2 -once
rm ~/.xinitrc
- ----------------------------------------------------------------------------------------------------------------
The file ~/.xinitrc-nowm has following contents:
- ----------------------------------------------------------------------------------------------------------------
#!/bin/sh
# $Id: xinitrc,v 1.2 2003/02/27 19:03:30 jharper Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# start some nice programs
exec xterm -geometry 30x5+10+20
# start the window manager
xhost +129.247.205.206
# exec quartz-wm
- ----------------------------------------------------------------------------------------------------------------
xdpyinfo tells me, that screen 0 has a size of 2840 x 1168 pixels (main monitor has 1440 x 900 , second monitor 1400x1050)
With SunOS as remote system I have the possibility to change the display size after logging in to 1440x900 (and changing to full screen mode) but on older XDCMP-clients it does not work.
Is there any way to tell X11 while starting from script to do such a limitation?
Best regards,
Volker Schmidt
PS: Is there a better way to start XQuartz without window-manager as to shuffle with ~/.xinitrc?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iD8DBQFOZNBiO0DXty8lT5ARAohrAKC+HW5QuOcKLP0NQexagXSeHjjCbwCfdXZA
GXoMSQppXbGHok7DNoMlnDk=
=gjXj
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden