12 lines
229 B
Bash
Executable file
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
|