update monitor xrandr scripts

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-11-13 15:04:44 +01:00
parent 63ff201259
commit 415aff6319
2 changed files with 15 additions and 4 deletions

View File

@ -1,2 +1,6 @@
#!/bin/sh
xrandr --output VGA --off
external="HDMI-2 VGA"
for R in $external; do
xrandr --output $R --off
done

View File

@ -1,4 +1,11 @@
#!/bin/sh
xrandr --output LVDS --auto
xrandr --output VGA --auto
xrandr --output VGA --right-of LVDS
L=LVDS1
xrandr --output $L --auto
external="VGA1 HDMI1 DP1 HDMI2 DP2 DP3 HDMI-2 VGA"
for R in $external; do
xrandr --output $R --auto --right-of $L
done