From 4710377e6e8171e54dde5d9e867f8baafaef5224 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Wed, 14 Oct 2026 19:37:18 -0400 Subject: [PATCH] feat(uwsm): pin Hyprland to AMD iGPU via AQ_DRM_DEVICES --- .chezmoiignore.tmpl | 2 ++ dot_config/uwsm/env-hyprland | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 dot_config/uwsm/env-hyprland diff --git a/.chezmoiignore.tmpl b/.chezmoiignore.tmpl index 40a432f..0fcaa54 100644 --- a/.chezmoiignore.tmpl +++ b/.chezmoiignore.tmpl @@ -37,6 +37,8 @@ dist .config/niri/** .config/hypr .config/hypr/** +.config/uwsm +.config/uwsm/** .config/noctalia .config/noctalia/** .config/niri-dynamic-workspaces diff --git a/dot_config/uwsm/env-hyprland b/dot_config/uwsm/env-hyprland new file mode 100644 index 0000000..d3ddded --- /dev/null +++ b/dot_config/uwsm/env-hyprland @@ -0,0 +1,9 @@ +# Sourced by uwsm before Hyprland starts. +# Keep Hyprland on the AMD iGPU (Radeon 8060S, PCI c4:00.0). The Thunderbolt +# eGPU (RTX 5060 Ti) drives no displays and is for compute only; without this, +# aquamarine opens it as a second KMS device. cardN numbering shifts with eGPU +# hotplug timing, so resolve the stable by-path link. Left unset if missing so +# Hyprland still falls back to auto-detection. +igpu=$(readlink -f /dev/dri/by-path/pci-0000:c4:00.0-card 2>/dev/null) +[ -e "$igpu" ] && export AQ_DRM_DEVICES="$igpu" +unset igpu