togglemonitor: automatically change re-set the background

master
TiynGER 4 years ago
parent be50dee9af
commit 78ac7b64ba

@ -8,3 +8,4 @@ extern=HDMI2
(xrandr | grep "$extern disconnected") (xrandr | grep "$extern disconnected")
(xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit) (xrandr --listactivemonitors | grep $extern) || ((xrandr --output $extern --right-of $intern --auto && setbg) & exit)
(xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off (xrandr --listactivemonitors | grep $extern) && xrandr --output $extern --off
setbg
Loading…
Cancel
Save