From 346a4d07e21d146bbf724816b31af4eb47b83ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Thu, 26 Feb 2015 11:46:23 +0100 Subject: Fix rexexp in detect_status --- autodetect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3