|
|
@ -2,6 +2,6 @@
|
|
|
|
# toggle external monitor
|
|
|
|
# toggle external monitor
|
|
|
|
intern=LVDS-1
|
|
|
|
intern=LVDS-1
|
|
|
|
extern=HDMI-1
|
|
|
|
extern=HDMI-1
|
|
|
|
(xrandr | grep "$extern disconnected") && exit
|
|
|
|
(xrandr | grep "$extern disconnected")
|
|
|
|
(xrandr --listactivemonitors | grep $extern) || (xrandr --output $extern --right-of $intern --auto & exit)
|
|
|
|
(xrandr --listactivemonitors | grep $extern) || (xrandr --output $extern --right-of $intern --auto & exit)
|
|
|
|
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
|
|
|
|
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
|
|
|
|