diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-06-22 09:07:39 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-06-22 09:08:06 (GMT) |
commit | b9c5620f1dc1fec2ea97636f44a0b4e06b94946c (patch) | |
tree | 1bfbc8e3a6488095c4d5527a9bed98e9e29f0c38 /scripts/xinitrc | |
parent | 956fb2113a8920ad2df2ca3afd2ed9e22dda10f4 (diff) |
Add a SUGAR_OUTPUT variable
Diffstat (limited to 'scripts/xinitrc')
-rw-r--r-- | scripts/xinitrc | 9 |
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 |