You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Thanks for the crate :)
I know nothing about xrandr, but I'm looking to implement toy-project to automatically activate/deactivate my external monitors when I'm connecting/disconnecting them.
I noticed that when I'm just pluggin in the external monitor it appears in the xrandr output:
HDMI-1 connected (normal left inverted right x axis y axis)
1680x1050 59.88 +
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
This shows even if monitor is not "switched off" by button. But it is not listed in the XHandle::open().unwrap().monitors(). Is it possible to list the monitors that are not "activated" somehow?
The text was updated successfully, but these errors were encountered:
And if you look into the autogenerated docs the third parameter is called get_active.
So what I would do in your position is try forking this crate and flipping that parameter from 0 to 1. If that works you could file a PR that exposes some nice API, which I'd be happy to merge.
Good luck! Feel free to ask more questions, I'll see if I remember anything relevant.
Hey! Thanks for the crate :)
I know nothing about xrandr, but I'm looking to implement toy-project to automatically activate/deactivate my external monitors when I'm connecting/disconnecting them.
I noticed that when I'm just pluggin in the external monitor it appears in the xrandr output:
This shows even if monitor is not "switched off" by button. But it is not listed in the
XHandle::open().unwrap().monitors()
. Is it possible to list the monitors that are not "activated" somehow?The text was updated successfully, but these errors were encountered: