mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 12:32:32 +00:00
Support multiple displays under wayland (#1596)
This commit is contained in:
4
neofetch
4
neofetch
@@ -2991,9 +2991,9 @@ get_resolution() {
|
||||
|
||||
elif [[ -d /sys/class/drm ]]; then
|
||||
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
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user