diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2015-02-26 11:46:23 +0100 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2015-02-26 11:46:23 +0100 |
commit | 346a4d07e21d146bbf724816b31af4eb47b83ae3 (patch) | |
tree | 3cee9f4f854c446b0c5288f6307b8e7184194c11 /autodetect.sh | |
parent | Add some comments (diff) | |
download | display_autoset-346a4d07e21d146bbf724816b31af4eb47b83ae3.tar.xz |
Fix rexexp in detect_status
Diffstat (limited to 'autodetect.sh')
-rwxr-xr-x | autodetect.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autodetect.sh b/autodetect.sh index 5c3fc5d..a6aec2e 100755 --- a/autodetect.sh +++ b/autodetect.sh @@ -18,7 +18,7 @@ XRANDR="$(xrandr -q)" ## Some functions detect_status() { - echo "$XRANDR" | sed -n -e "s/$1\s*\([a-z]*\)\s*.*$/\1/p" + echo "$XRANDR" | sed -n -e "s/^$1\s*\([a-z]*\)\s*.*$/\1/p" } detect_connected() { |