configfiles/scripts/prepare_monitors.sh

13 lines
229 B
Bash
Raw Normal View History

2015-05-29 21:08:06 +02:00
#!/bin/bash
INTERN="LVDS1"
EXTERN="VGA1"
xrandr --output $INTERN --auto
if [ -n "$(xrandr -q | grep $EXTERN' connected')" ]; then
xrandr --output $EXTERN --auto --right-of $INTERN
else
xrandr --output $EXTERN --off
fi