Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: run_monitor_reconfigure

Issue 3647002: monitor_reconfig: Add script to run for external displays. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/monitor_reconfig.git
Patch Set: apply review feedback Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698