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).

_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to