antoniosarosi / dotfiles

My dotfiles repo, here you can find all my window manager configs as well as documentation and a guide on how to make your own desktop environment.
MIT License
861 stars 186 forks source link

Better way to check connected monitors. #3

Closed ghost closed 4 years ago

ghost commented 4 years ago

This way you check how much monitors are connected to your computer, and choose what you want in any case.

Variables:

monitors_status: list of connections, it just shows "connected" or "disconnected" status. (This can be improved by making a dictionary with the connection name, like {'HDMI-A': 'connected', ...}, if you want to know the name of each device).