diff options
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() { |