Line # Revision Author
1 71 dpavlin #!/bin/sh
2
3 vga=`xrandr | grep ' connected ' | grep -i vga | cut -d" " -f1`
4 active=`xrandr | grep '*' | wc -l`
5
6 if [ $active == 2 ] ; then
7 xrandr --output $vga --off
8 else
9 xrandr --output $vga --auto
10 fi