Re: X11 resolution
Re: X11 resolution
- Subject: Re: X11 resolution
- From: Harald Hanche-Olsen <email@hidden>
- Date: Tue, 16 Dec 2008 12:06:49 +0100 (CET)
+ Harald Hanche-Olsen <email@hidden>:
It might be an idea having the display resolution being an option
in the org.x.X11 preferences. Here is a proposed (untested!) patch.
Would you consider putting something like it in the official
distribution?
Here is an improved patch that will not force the -dpi flag on
someone who doesn't want it. This time I have in fact tested it.
Usage:
defaults write org.x.X11 dpi -int 106
(Replace 106 by your favourite number. This one is appropriate for
the 12 inch PowerBook G4.)
--- /usr/X11/bin/startx.ORIG 2008-12-07 06:54:13.000000000 +0100
+++ /usr/X11/bin/startx 2008-12-16 11:55:31.000000000 +0100
@@ -113,6 +113,11 @@
defaultserverargs="$defaultserverargs -nolisten tcp"
fi
+dpi="`defaults read $X11_PREFS_DOMAIN dpi 2>/dev/null`"
+if [ -n "$dpi" ] ; then
+ defaultserverargs="$defaultserverargs -dpi $dpi"
+fi
+
for ((d=0; ; d++)) ; do
[[ -e /tmp/.X$d-lock ]] || break
done
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden