Fix X11 apps being blurry or unreadably tiny on a HiDPI screen
Symptom
On a HiDPI/scaled screen, X11 apps (Steam, JetBrains IDEs, older Electron builds, Zoom, wine games) are either a pixelated blurry mess or razor-sharp but so small you cannot read them, while native Wayland apps look perfect.
Cause
Xorg cannot scale, so a compositor has two bad options: upscale the XWayland surface (blurry) or leave it at 1:1 (crisp but tiny). Omarchy ships xwayland.force_zero_scaling = true in /usr/share/omarchy/default/hypr/envs.lua, which picks 'crisp but tiny'. The toolkits then have to be told to draw bigger themselves, and GTK's GDK_SCALE only honours whole numbers.
Fix
Keep zero scaling and scale the toolkits. In ~/.config/hypr/monitors.lua (Omarchy 4):
local omarchy_monitor_scale = 2
hl.monitor({ output = "", mode = "preferred", position = "auto", scale = omarchy_monitor_scale })
-- GTK/X11 apps: integers only, use the nearest whole number to the monitor scale
local omarchy_gdk_scale = 2
hl.env("GDK_SCALE", tostring(omarchy_gdk_scale))
hl.env("XCURSOR_SIZE", "32")
On plain Hyprland 0.55+ without Omarchy:
hl.config({ xwayland = { force_zero_scaling = true } })
hl.env("GDK_SCALE", "2")
hl.env("XCURSOR_SIZE", "32")
On Hyprland <= 0.54 (hyprlang):
xwayland { force_zero_scaling = true }
env = GDK_SCALE,2
env = XCURSOR_SIZE,32
Qt/X11 apps additionally want, in ~/.config/uwsm/env.d/20-user (Omarchy) or ~/.config/uwsm/env (Arch + uwsm), one export per line:
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_ENABLE_HIGHDPI_SCALING=1
Restart each app (and log out/in for the env file) for the change to reach it. Do not use the old XWayland HiDPI patches. They are unsupported.
Verify
Restart the X11 app: xeyes/xprop era apps and Steam render at readable size with sharp text. echo $GDK_SCALE inside a terminal launched from a keybind returns your value.