togglemonitor now doesnt exit too early

master
TiynGER 5 years ago
parent 1e8b3e6186
commit a9140ff6d8

@ -2,6 +2,6 @@
# toggle external monitor
intern=LVDS-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 --off

Loading…
Cancel
Save