mirror of
https://github.com/dylanaraps/neofetch
synced 2025-12-30 00:05:08 -05:00
Support multiple displays under wayland (#1596)
This commit is contained in:
parent
ac6f6a1ce4
commit
56c8d7e0c8
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
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user