From 415aff6319e844b7c0336c97546eb82c7012a17e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 13 Nov 2009 15:04:44 +0100 Subject: [PATCH] update monitor xrandr scripts Signed-off-by: Nico Schottelius --- monitor-xrandr-aus.sh | 6 +++++- monitor-xrandr-rechts.sh | 13 ++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/monitor-xrandr-aus.sh b/monitor-xrandr-aus.sh index 8f4f3db..61d7371 100755 --- a/monitor-xrandr-aus.sh +++ b/monitor-xrandr-aus.sh @@ -1,2 +1,6 @@ #!/bin/sh -xrandr --output VGA --off +external="HDMI-2 VGA" + +for R in $external; do + xrandr --output $R --off +done diff --git a/monitor-xrandr-rechts.sh b/monitor-xrandr-rechts.sh index f346d2f..178e28e 100755 --- a/monitor-xrandr-rechts.sh +++ b/monitor-xrandr-rechts.sh @@ -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