.xprofile
- Autor:
- Datum:
- 17. August 2015 21:12
- Code:
-
1 2 3 4 5 6 7 8 9 10 11
# 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