]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
\s does not work inside brackets
authorVladimir-csp <vladimir-csp@yandex.ru>
Wed, 13 Nov 2019 21:41:38 +0000 (00:41 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 21:41:38 +0000 (00:41 +0300)
contrib/listen_lid.sh

index 6daad5375feb5b9804a44bb8194c68a988577ef3..de60f40f33318403c10d866be46ad08af3ab7a65 100755 (executable)
@@ -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