From 4a7e3d64f496be6636fefeaf0024eb752fc3320c Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Fri, 4 Feb 2022 10:06:29 -0600 Subject: [PATCH] fix(framework): Follow x1 QHD settings --- framework/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/framework/default.nix b/framework/default.nix index d36b595..3cfa523 100644 --- a/framework/default.nix +++ b/framework/default.nix @@ -17,11 +17,16 @@ services.fprintd.enable = true; # HiDPI - hardware.video.hidpi.enable = lib.mkDefault true; + # Leaving here for documentation + # hardware.video.hidpi.enable = lib.mkDefault true; + + # Fix font sizes in X services.xserver.dpi = 200; + fonts.fontconfig.dpi = 200; + + # Fix sizes of GTK/GNOME ui elements environment.variables = { - GDK_SCALE = "2"; - GDK_DPI_SCALE = "0.5"; - _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2"; + GDK_SCALE = lib.mkDefault "2"; + GDK_DPI_SCALE = lib.mkDefault "0.5"; }; }