Skip to content

Instantly share code, notes, and snippets.

@koepnick
Created May 22, 2025 19:47
Show Gist options
  • Save koepnick/ba543a519829099a01f83e14f1be6653 to your computer and use it in GitHub Desktop.
Save koepnick/ba543a519829099a01f83e14f1be6653 to your computer and use it in GitHub Desktop.
Wayland HiDPI Graphics Fixes

These are simply notes on how I've tamed numerous applications to be more friendly and respecting of scaling.

Since I'm using Hyprland as my daily driver, I'll also be dropping in relevant fixes/helpers when I deem it helpful.

Environment Variables

Basics

QT

export QT_WPA_PLATFORM="wayland;xcb"
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_SCALE_FACTOR=2.0

GTK

Mozilla (likely no longer needed)

export MOZ_ENABLE_WAYLAND=1

SDL

export SDL_VIDEODRIVER="wayland,x11"

Java

export _JAVA_AWT_WM_NONREPARENTING=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment