From: Vladimir-csp Date: Wed, 13 Nov 2019 21:41:38 +0000 (+0300) Subject: \s does not work inside brackets X-Git-Tag: 1.9~1^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5891767a887f8dfceb94646bc6495b627d3ed235;p=deb_pkgs%2Fautorandr.git \s does not work inside brackets --- diff --git a/contrib/listen_lid.sh b/contrib/listen_lid.sh index 6daad53..de60f40 100755 --- a/contrib/listen_lid.sh +++ b/contrib/listen_lid.sh @@ -4,7 +4,7 @@ # sudo gpasswd -a $USER input stdbuf -oL libinput debug-events | \ - egrep --line-buffered '^[\s-]+event[0-9]+\s+SWITCH_TOGGLE\s' | \ + egrep --line-buffered '^[[:space:]-]+event[0-9]+\s+SWITCH_TOGGLE\s' | \ while read line; do autorandr --change --default default done