2 set -e; .
/usr
/local
/lib
/bash-bear
; set +e
8 if xrandr |
grep -q "^$output disconnected" &>/dev
/null
; then
11 xrandr
--output $output --off
13 xrandr
--output $output --right-of eDP1
--mode 3840x2160
15 for i
in 1 2 4 5 6 7 8 9 10; do
16 # if the workspace is already there, this will fail
17 i3-msg
'[workspace="'$i'"]' move workspace to output
$output ||
: