Mercurial > hg > config
view bin/swapscreens.sh @ 156:a9c3a32d8385
add a function for loading modules from the web
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 27 Jul 2011 08:43:34 -0700 |
parents | 206d7550bf45 |
children | 71345f4de3ce |
line wrap: on
line source
#!/bin/bash # swap screens between internal laptop monitor and external monitor INTERNAL="LVDS1" EXTERNAL="VGA1" INTERNAL_MODE="1366x768" EXTERNAL_MODE="1600x1200" xwininfo -root | grep "geometry $EXTERNAL_MODE" if [ $? -eq 0 ] then xrandr --output $EXTERNAL --off --output $INTERNAL --mode $INTERNAL_MODE else xrandr --output $INTERNAL --off --output $EXTERNAL --mode $EXTERNAL_MODE fi