bib2html.py: Add incollection bibtype
[shutils.git] / X / xrandr-exttomirror
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 OTHER=$(xrandr | grep "\<connected\>" | grep -v eDP | cut -f1 -d" ")
12 if [ "${OTHER}" = "" ]; then
13 echo "Could not find external display."
14 exit 1
15 fi
16
17 echo "Set ${MAIN} as mirror of ${OTHER}"
18
19 xrandr --output ${OTHER} --auto --output ${MAIN} --same-as ${OTHER} --primary