summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-26 11:46:23 +0100
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2015-02-26 11:46:23 +0100
commit346a4d07e21d146bbf724816b31af4eb47b83ae3 (patch)
tree3cee9f4f854c446b0c5288f6307b8e7184194c11
parentAdd some comments (diff)
downloaddisplay_autoset-346a4d07e21d146bbf724816b31af4eb47b83ae3.tar.xz
Fix rexexp in detect_status
-rwxr-xr-xautodetect.sh2
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() {