# Variablen festlegen INTERNAL_OUTPUT="LVDS" ACTIVE_OUTPUT="LVDS1" DEACTIVE_OUTPUT="LVDS-1-1" xrandr | grep $INTERNAL_OUTPUT | grep " connected " if [ $? -eq 1 ]; then exit 0 else xrandr --output $ACTIVE_OUTPUT --auto --output $DEACTIVE_OUTPUT --off fi