Files
Panama/config/dot/uwsm/env-hyprland
T

29 lines
1.7 KiB
Plaintext

# ─────────────────────────────────────────────────────────────────────────────
# uwsm environment — Hyprland-specific (HYPR* and AQ_*)
#
# uwsm sources this only for the Hyprland session, after ./env. Keeping the
# compositor-specific variables separate means the general env file stays
# reusable if another compositor is ever added.
#
# See ./env for why these live here instead of in hypr/env.lua.
# ─────────────────────────────────────────────────────────────────────────────
# ── GPU selection ────────────────────────────────────────────────────────────
# Discrete RX 7800 XT first (it drives DP-2), integrated second so anything
# plugged into its outputs still works.
#
# These are the colon-free stable symlinks created by the udev rule at
# config/copy/etc/udev/rules.d/99-panama-gpu.rules -- /dev/dri/cardN numbering
# is not stable across boots, and the /dev/dri/by-path/ names contain colons,
# which AQ_DRM_DEVICES itself uses as a separator.
#
# Guarded, because pointing this at a device that does not exist stops Hyprland
# from starting at all.
if [ -e /dev/dri/amd-dgpu ]; then
if [ -e /dev/dri/amd-igpu ]; then
export AQ_DRM_DEVICES=/dev/dri/amd-dgpu:/dev/dri/amd-igpu
else
export AQ_DRM_DEVICES=/dev/dri/amd-dgpu
fi
fi