summaryrefslogtreecommitdiffstats
path: root/xorg
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2011-04-24 12:29:44 +0200
committerStefan Ritter <xeno@thehappy.de>2011-04-24 12:29:44 +0200
commit670826e699a2010f4a572471e5f0134d97f49638 (patch)
tree148e185f1eec5a6e24e3b2ab5c8669b1b847c329 /xorg
parent334bdccd140cc454ba9de9d2ff8a5b70b0511594 (diff)
xrandr config for galahad
Diffstat (limited to 'xorg')
-rwxr-xr-xxorg/xinitrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/xorg/xinitrc b/xorg/xinitrc
index af1599c..bad549c 100755
--- a/xorg/xinitrc
+++ b/xorg/xinitrc
@@ -9,7 +9,11 @@ xset fp rehash
if [ -e /usr/bin/xrandr ]; then
if [ $(hostname) = "galahad" ]; then
- xrandr --output LVDS1 --off --output VGA1 --auto
+ if [ $(xrandr -q | grep VGA1 | awk '{print $2}') = "disconnected" ]; then
+ xrandr --output LVDS1 --auto --output VGA1 --off
+ else
+ xrandr --output LVDS1 --off --output VGA1 --auto
+ fi
fi
fi