From 3d86ba79b44d1190770bd80a8dcf551dd4b26a23 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 12 Jul 2011 14:03:19 +0200 Subject: Support recent enumerated VGA. Explicitly set size when only VGA. --- localxrandr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'localxrandr') diff --git a/localxrandr b/localxrandr index 43abe19..fd78245 100755 --- a/localxrandr +++ b/localxrandr @@ -17,7 +17,7 @@ for output in $(xrandr | egrep '^[^ ]+ connected' | awk '{print $1}'); do LVDS|LVDS1|LVDS-1) lcd="$output" ;; - VGA) + VGA|VGA1) vga="$output" ;; TMDS-1|DVI1|DVI-I-1) @@ -43,6 +43,8 @@ if [ -n "$lcd" ] && [ -n "$dvi" ]; then else xrandr --output "$dvi" --mode 1280x800 fi +elif [ -n "$vga" ]; then + xrandr --output "$vga" --mode 1680x1050 else xrandr --auto fi -- cgit v1.2.3