diff --git a/neofetch b/neofetch index 48b96d21..36c7ddbd 100755 --- a/neofetch +++ b/neofetch @@ -3107,9 +3107,10 @@ get_resolution() { resolution="$(xdpyinfo | awk '/dimensions:/ {printf $2}')" elif [[ -d /sys/class/drm ]]; then - for dev in /sys/class/drm/*/modes; do - read -r single_resolution _ < "$dev" + for dev in /sys/class/drm/*; do + [[ $(<"$dev/enabled") != "enabled" ]] && continue + read -r single_resolution _ < "$dev/modes" [[ $single_resolution ]] && resolution="${single_resolution}, ${resolution}" done fi