From b9c5620f1dc1fec2ea97636f44a0b4e06b94946c Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 22 Jun 2012 09:07:39 +0000 Subject: Add a SUGAR_OUTPUT variable --- (limited to 'scripts') 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 -- cgit v0.9.1