From 3c54663397560122554ad88dd81fde15480d754f Mon Sep 17 00:00:00 2001 From: Zephrynis Date: Tue, 4 Nov 2025 19:06:55 +0000 Subject: [PATCH] Fix: enhance scaling settings for XWayland applications on 4K monitors --- home/hyprland.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/hyprland.nix b/home/hyprland.nix index b95f46c..a047b72 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -41,6 +41,12 @@ "__GL_VRR_ALLOWED,0" # Disable VRR to avoid game issues "WLR_NO_HARDWARE_CURSORS,1" # Fix cursor issues on NVIDIA "WLR_DRM_NO_ATOMIC,1" # Legacy mode (try disabling if issues) + + # Scaling for XWayland apps + "GDK_SCALE,1.5" # GTK app scaling (matches 4K monitor scale) + "GDK_DPI_SCALE,0.67" # GTK DPI scaling (inverse of GDK_SCALE) + "QT_AUTO_SCREEN_SCALE_FACTOR,1" # Qt automatic scaling + "QT_SCALE_FACTOR,1.5" # Qt manual scaling for 4K monitor ]; # Input configuration