X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=contrib%2Flisten_lid.sh;h=8de7eb64e8dfc1ab9c4b4c0d0205f60d4769a8da;hb=a50b16aa1ad5a6819e902cc0570bbf18421563fc;hp=6daad5375feb5b9804a44bb8194c68a988577ef3;hpb=2a121899d48fb1cce06986f7fd86b7ea3128d28b;p=deb_pkgs%2Fautorandr.git diff --git a/contrib/listen_lid.sh b/contrib/listen_lid.sh index 6daad53..8de7eb6 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' | \ + grep -E --line-buffered '^[[:space:]-]+event[0-9]+[[:space:]]+SWITCH_TOGGLE[[:space:]]' | \ while read line; do autorandr --change --default default done