5 MAIN
=$
(xrandr |
grep eDP | cut
-f1 -d" ")
6 if [ "${MAIN}" = "" ]; then
7 echo "Could not find main display."
11 echo "Set ${MAIN} as primary"
12 xrandr
--output ${MAIN} --auto --primary
14 OTHER
=$
(xrandr |
grep "\<connected\>" |
grep -v eDP | cut
-f1 -d" ")
15 if [ "${OTHER}" = "" ]; then
16 echo "Could not find external display."
20 echo "Set ${OTHER} off"
21 xrandr
--output ${OTHER} --off