From 263b3d3c7ae8ce90b244affd799c76cfb814ce6f Mon Sep 17 00:00:00 2001 From: htom Date: Wed, 18 Feb 2026 12:34:41 +0100 Subject: [PATCH] new env variables to handle qt apps and force wayland backend (this needs more testing along with the new env vairables) --- hypr/hyprland.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 912ffad..3cc18df 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -37,6 +37,18 @@ exec-once = waybar exec-once = swayosd-server exec-once = librepods --start-minimized +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_TYPE,wayland +env = XDG_SESSION_DESKTOP,Hyprland +env = SDL_VIDEODRIVER,wayland +env = QT_AUTO_SCREEN_SCALE_FACTOR,1.5 +windowrule = match:xwayland true, no_initial_focus off +# Tell QT applications to use the Wayland backend, and fall back to x11 if Wayland is unavailable +env = QT_QPA_PLATFORM,wayland,xcb + +# Disables window decorations on QT applications +# env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 + ############################# ### ENVIRONMENT VARIABLES ### #############################