]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
classes
authorVladimir-csp <vladimir-csp@yandex.ru>
Wed, 13 Nov 2019 21:49:33 +0000 (00:49 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 21:49:33 +0000 (00:49 +0300)
contrib/listen_lid.sh

index de60f40f33318403c10d866be46ad08af3ab7a65..8de7eb64e8dfc1ab9c4b4c0d0205f60d4769a8da 100755 (executable)
@@ -4,7 +4,7 @@
 # sudo gpasswd -a $USER input
 
 stdbuf -oL libinput debug-events | \
-    egrep --line-buffered '^[[:space:]-]+event[0-9]+\s+SWITCH_TOGGLE\s' | \
+    grep -E --line-buffered '^[[:space:]-]+event[0-9]+[[:space:]]+SWITCH_TOGGLE[[:space:]]' | \
     while read line; do
     autorandr --change --default default
 done