configfiles/scripts/.config/scripts/prepare_monitors.sh
2015-10-08 10:31:53 +02:00

12 lines
229 B
Bash
Executable file

#!/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