/[scripts]/trunk/vga-out-switch.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/vga-out-switch.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (hide annotations)
Sat Mar 15 13:28:09 2008 UTC (16 years ago) by dpavlin
File MIME type: application/x-sh
File size: 203 byte(s)
script to turn VGA output on/off

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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26