[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Multiple monitors
From: |
Eric Larson |
Subject: |
Re: [STUMP] Multiple monitors |
Date: |
Fri, 03 Sep 2010 13:49:27 -0500 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
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
Re: [STUMP] Multiple monitors, Michael Raskin, 2010/09/03
Re: [STUMP] Multiple monitors, Johan Claesson, 2010/09/04