Support multiple displays under wayland (#1596)
This commit is contained in:
parent
ac6f6a1ce4
commit
56c8d7e0c8
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2991,9 +2991,9 @@ get_resolution() {
|
||||||
|
|
||||||
elif [[ -d /sys/class/drm ]]; then
|
elif [[ -d /sys/class/drm ]]; then
|
||||||
for dev in /sys/class/drm/*/modes; do
|
for dev in /sys/class/drm/*/modes; do
|
||||||
read -r resolution _ < "$dev"
|
read -r single_resolution _ < "$dev"
|
||||||
|
|
||||||
[[ $resolution ]] && break
|
[[ $single_resolution ]] && resolution="${single_resolution}, ${resolution}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue