[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Multiple monitors
From: |
Michael Raskin |
Subject: |
Re: [STUMP] Multiple monitors |
Date: |
Fri, 03 Sep 2010 22:06:42 +0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100816 Thunderbird/2.0.0.12; Google GoogleBot |
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).
Re: [STUMP] Multiple monitors, Michael Raskin, 2010/09/03
Re: [STUMP] Multiple monitors, Johan Claesson, 2010/09/04