From 5891767a887f8dfceb94646bc6495b627d3ed235 Mon Sep 17 00:00:00 2001 From: Vladimir-csp Date: Thu, 14 Nov 2019 00:41:38 +0300 Subject: [PATCH] \s does not work inside brackets --- contrib/listen_lid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2