togglemonitor sets bg automatically

master
TiynGER 5 years ago
parent a9140ff6d8
commit 8b44f92d83

@ -3,5 +3,5 @@
intern=LVDS-1
extern=HDMI-1
(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 && setbg) & exit)
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off

Loading…
Cancel
Save