bib2html.py: Add incollection bibtype
[shutils.git] / X / xrandr-single
1 #!/bin/sh
2
3 set -e
4
5 MAIN=$(xrandr | grep eDP | cut -f1 -d" ")
6 if [ "${MAIN}" = "" ]; then
7 echo "Could not find main display."
8 exit 1
9 fi
10
11 echo "Set ${MAIN} as primary"
12 xrandr --output ${MAIN} --auto --primary
13
14 OTHER=$(xrandr | grep "\<connected\>" | grep -v eDP | cut -f1 -d" ")
15 if [ "${OTHER}" = "" ]; then
16 echo "Could not find external display."
17 exit 1
18 fi
19
20 echo "Set ${OTHER} off"
21 xrandr --output ${OTHER} --off