Revision 71

Date:
2008/03/15 13:28:09
Author:
dpavlin
Revision Log:
script to turn VGA output on/off
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/vga-out-switch.sh

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