OLD | NEW |
(Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # If there's an external display connected, runs the monitor_reconfigure |
| 8 # command to choose a screen resolution. |
| 9 |
| 10 XRANDR=/usr/bin/xrandr |
| 11 MONITOR_RECONFIGURE=/usr/bin/monitor_reconfigure |
| 12 |
| 13 # Always exit with 0 |
| 14 trap "exit 0" EXIT |
| 15 set -e |
| 16 |
| 17 NUM_OUTPUTS=$($XRANDR | grep -c ' connected') |
| 18 if [ "$NUM_OUTPUTS" -gt 1 ]; then |
| 19 $MONITOR_RECONFIGURE |
| 20 fi |
OLD | NEW |