]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - contrib/listen_lid.sh
autorandr.service: Use StartLimitIntervalSec
[deb_pkgs/autorandr.git] / contrib / listen_lid.sh
index 6daad5375feb5b9804a44bb8194c68a988577ef3..8de7eb64e8dfc1ab9c4b4c0d0205f60d4769a8da 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' | \
+    grep -E --line-buffered '^[[:space:]-]+event[0-9]+[[:space:]]+SWITCH_TOGGLE[[:space:]]' | \
     while read line; do
     autorandr --change --default default
 done