1
0
Fork 0

fix bug with setting WLR_DRM_DEVICES

This commit is contained in:
Massaki Archambault 2024-06-11 00:13:38 -04:00
parent 6e8385b8a9
commit 53298f2a8c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import-gsettings() {
# list DRM device priority # list DRM device priority
# Set intel graphics as lowest priority # Set intel graphics as lowest priority
# https://github.com/swaywm/sway/wiki#i-have-a-multi-gpu-setup-like-intelnvidia-or-intelamd-and-sway-does-not-start # https://github.com/swaywm/sway/wiki#i-have-a-multi-gpu-setup-like-intelnvidia-or-intelamd-and-sway-does-not-start
export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 0 else 1 end, .key] | @tsv' | sort | awk '{printf "%s:", $2}' | sed -e 's/:$//')" export WLR_DRM_DEVICES="$(drm_info -j | jq --raw-output 'to_entries[] | [if .value.driver.desc == "Intel Graphics" then 1 else 0 end, .key] | @tsv' | sort | awk '{printf "%s:", $2}' | sed -e 's/:$//')"
# disable hardware cursor (cause mouse to stutter on my setup) # disable hardware cursor (cause mouse to stutter on my setup)
#export WLR_NO_HARDWARE_CURSORS=1 #export WLR_NO_HARDWARE_CURSORS=1