summaryrefslogtreecommitdiff
path: root/localxrandr
diff options
context:
space:
mode:
authorroot <root@atreju.jones.dk>2011-07-12 14:03:19 +0200
committerroot <root@atreju.jones.dk>2011-07-12 14:03:19 +0200
commit3d86ba79b44d1190770bd80a8dcf551dd4b26a23 (patch)
treea742b9e2e35011b91aeab3e3bd1d7287a4e22116 /localxrandr
parent387f7a0d3a1d675a2babe7ce4c97173d76ff0e26 (diff)
Support recent enumerated VGA. Explicitly set size when only VGA.
Diffstat (limited to 'localxrandr')
-rwxr-xr-xlocalxrandr4
1 files changed, 3 insertions, 1 deletions
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