Conditional Monitor Cofiguration
I use Dell Sputnik for development with i3wm. When I travel, I use the laptop monitor, but while in the office, I connect a desktop monitor. Below is my configuration when the desktop monitor connected.
~$ xrandr
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary (normal left inverted right x axis y axis)
1920x1080 60.0 + 59.9 48.0
1680x1050 60.0 59.9
1600x1024 60.2
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8 60.0
1152x864 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
DP1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 60.0*+
1920x1200 59.9
1920x1080 60.0 60.0 50.0 59.9 24.0 24.0
1920x1080i 60.1 50.0 60.0
1600x1200 60.0
1680x1050 60.0
1280x1024 75.0 60.0
1280x800 59.8
1152x864 75.0
1280x720 60.0 50.0 59.9
1024x768 75.1 60.0
800x600 75.0 60.3
720x576 50.0
720x480 60.0 59.9
640x480 75.0 60.0 59.9
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Is it possible to have the system turn off the laptop monitor when the desktop monitor is connected? I know that I can enter xrandr --output DP1 --off
to do it by hand, but is it possible to have the system do it automatically?
Thanks...