greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.82k stars 472 forks source link

xrandr $resolution returns "primary" for multiple monitors #1947

Closed nafkhanzam closed 9 months ago

nafkhanzam commented 10 months ago

I think these lines should handle multiple monitors

https://github.com/greshake/i3status-rust/blob/40bc766708a32cc3c2072fdb6637ddf7e900c49e/src/blocks/xrandr.rs#L182-L189

since the output could be something like eDP1 connected 1920x1080+0+0 and HDMI2 connected primary 2560x1080+1920+0