At Fri, 03 Sep 2010 22:06:42 +0400, Michael Raskin wrote: > > On 09/03/2010 09:42 PM, Eric Larson wrote: > >> #! /bin/sh > >> xrandr -q | grep "VGA-0 connected" && > >> xrandr --output VGA-0 --right-of LVDS --preferred & > >> xrandr -q | grep "VGA-0 connected" || > >> xrandr --output VGA-0 --off & > >> > >> Seems to do the same and is somewhat simpler... > > > > The other thing the script does is set the resolution. That said, I > > suspected that a simple shell script solution would be possible. > > > > When all you have is a hammer... ;) > > For the information of all parties: "--preferred" sets the resolution to > the preferred value for that output (it takes into account connected > monitor, of course).
Ah! Thanks for pointing that out Michael. I might have to move to a shell script after all Eric _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/stumpwm-devel