]> spindle.queued.net Git - xodist/blobdiff - configs/debxo-lxde/hooks
debxo: override default X DPI
[xodist] / configs / debxo-lxde / hooks
index 371fc8e2ca25e18cc72f007030f27ddcca3dca04..f1e4d2ec36c23a5cf3e3d584d5d1fe569dc3fe62 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 nodm
        F=${ROOT_DIR}/etc/default/nodm