Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-06-22 09:07:39 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-06-22 09:08:06 (GMT)
commitb9c5620f1dc1fec2ea97636f44a0b4e06b94946c (patch)
tree1bfbc8e3a6488095c4d5527a9bed98e9e29f0c38 /scripts
parent956fb2113a8920ad2df2ca3afd2ed9e22dda10f4 (diff)
Add a SUGAR_OUTPUT variable
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xinitrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/xinitrc b/scripts/xinitrc
index 90927bf..20a2276 100644
--- a/scripts/xinitrc
+++ b/scripts/xinitrc
@@ -13,9 +13,12 @@ OUTPUTS=`scripts/list-outputs`
for output in $OUTPUTS
do
- if [ -z "$FIRST_OUTPUT" ]; then
- FIRST_OUTPUT=$output
- else
+ # Default to the first output in the list
+ if [ -z $SUGAR_OUTPUT ]; then
+ SUGAR_OUTPUT=$output
+ fi
+
+ if [ $SUGAR_OUTPUT != $output ]; then
xrandr --output $output --off
fi
done