]> spindle.queued.net Git - xodist/blobdiff - configs/debxo-sugar/hooks
debxo: override default X DPI
[xodist] / configs / debxo-sugar / hooks
index bd42ba7786e3ff045b357e3e1fed3fcb7bf7b6e3..53cbdf17efa6fb88c04f5631f6c524d9fad54c61 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