mirror of
https://github.com/tomru/switchmon.git
synced 2026-03-03 06:27:23 +01:00
04a8bf17ebf09167e44cf37e68a7fddeb4a7d467
SWM - Switch Monitors
Simple helper for turning on/off connected/disconnected monitors with xrandr.
It uses xrandr to detect on which connectors there are monitors connected. It
then runs xrandr and sets all disconnected monitors to off and all connected
monitors to on.
Monitors will be turned on with xrandr --auto option which tries to detect
the optimal video setting.
If there are multiple monitors connected, each monitor is placed to the right of the previous monitor. This order is currently driven as xrandr lists the connectors.
Languages
JavaScript
100%