Thank you for your reply.

I've searched the internet, but I can't find the answer to some questions.

It seems that I was already on the right track. I just have a problem dealing with projectors that have a lower screen resolution than my native screen resolution.

IN="LVDS1"
EXT="VGA1"

xrandr --output $IN --auto --output $EXT --auto --same-as $IN

However, I think this makes my computer assume that the external display is the same resolution as my monitor, which is not the case. How do I fix this? I haven't found the answer to my question.

Thank you for your time,
Raphael

On Sun, Apr 20, 2014 at 7:30 PM, Andre Klärner <[email protected]> wrote:
Hi Raphael,

actually there are a gazillion scripts of this kind and everyone finds its best fit.

For me it has worked best to have my awesome configured to deal with all my screen setups (one up to three displays, machine-dependant tags on different displays) and rely on the auto detection of new displays that lead to an awesome restart. For special purposes I use autorandr (invoked manually) that tries to guess the right display arrangement from the connected displays, but in each case of a important presentation I try to check a while before the presentation how to configure e.g. the displayport or VGA with the optimal resolution and prepare an xrandr line in a shell script beforehand, so that I just need to apply this one I'm on. Also "xrandr --output VGA-0 --auto" works a treat if the display device supports DDC.

Also xrandr gets a lot easier once you used it a bit, but it turns out to be more reliable when you finally got its syntax in your muscle memory.
Regards, Andre

On April 20, 2014 9:16:47 PM CEST, Raphael Cervantes <[email protected]> wrote:
Hi all,
I'm trying to implement the script suggested in this page
http://awesome.naquadah.org/wiki/Using_Multiple_Screens
for cycling through different multi-screen configurations. Its in the section: Cycling through possible configurations.

When I put it in my rc.lua file, I get the error message "attempt to index global 'config' (a nil value).

I was wondering if anyone has a script that would allow a plug-and-play

dual monitor that Gnome offers. I can't be bothered to play with xrandr

commands when I'm about to give a presentation to an audience.

-Raphael

--
Andre Klärner

Telefon: 0351/79666546
Fax:     0351/79688547
Mobil:   0172/9838653

Anschrift:
Prohliser Allee 43
01239 Dresden

--
To unsubscribe, send mail to [email protected].

Reply via email to