diff options
| author | Anton Bobov <abobov@gmail.com> | 2014-07-17 20:22:14 +0600 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2014-07-17 20:22:14 +0600 |
| commit | 4fac048f8743748f2ffb19fa3ef18cf014f79134 (patch) | |
| tree | 1e393b36dfc692f410f30a32b65b13c6cc78a0bd /f7-script.sh | |
| parent | f43355c65406710bfdfcdfe40f188eb13c9bf2ae (diff) | |
Fix display detection.
Diffstat (limited to 'f7-script.sh')
| -rwxr-xr-x | f7-script.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/f7-script.sh b/f7-script.sh index db4022f..55a2962 100755 --- a/f7-script.sh +++ b/f7-script.sh @@ -2,8 +2,8 @@ set -e -INTERNAL=LVDS1 -EXTERNAL=HDMI1 +INTERNAL=$(xrandr --query | gawk '/^LVDS[0-9] connected /{ print $1; exit }') +EXTERNAL=$(xrandr --query | gawk '!/^LVDS[0-9]/ && / connected /{print $1; exit }') show_usage() { cat <<END |
