]> spindle.queued.net Git - xodist/blobdiff - configs/debxo-kde/hooks
debxo: override default X DPI
[xodist] / configs / debxo-kde / hooks
index 16c0f70958d7cf0cebf5d3972a635c3b7be4efdf..2447db4f56781674d31e6c767084777b4eeba17e 100644 (file)
@@ -72,8 +72,18 @@ EOF
                rm -f ${ROOT_DIR}/${pkg}
        done
 
-       # No longer a need for xorg.conf
-       rm -f ${ROOT_DIR}/etc/X11/xorg.conf
+       # Create an Xorg.conf that overrides the default DPI (x bug workaround).
+       cat >${ROOT_DIR}/etc/X11/xorg.conf<<EOF
+Section "Monitor"
+       Identifier "Monitor0"
+       DisplaySize 200 150
+EndSection
+
+Section "Screen"
+       Identifier "Default Screen"
+       Monitor "Monitor0"
+EndSection
+EOF
 
        # configure kdm
        if [ -d ${ROOT_DIR}/etc/kde3/kdm ]; then