]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
egrep is deprecated according to manpage
authorVladimir-csp <vladimir-csp@yandex.ru>
Wed, 13 Nov 2019 21:48:46 +0000 (00:48 +0300)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2019 21:48:46 +0000 (00:48 +0300)
also do classes as in manpage, no double escapes needed

contrib/systemd/autorandr-lid-listener.service

index 25ba340ab1fc6f59fe2b2862e89e0642f88c1e91..24b1c19df85094bdef5e59ee2c61ce167d125750 100644 (file)
@@ -3,7 +3,7 @@ Description=Runs autorandr whenever the lid state changes
 
 [Service]
 Type=simple
-ExecStart=sh -c "stdbuf -oL libinput debug-events | egrep --line-buffered '^[[:space:]-]+event[0-9]+\\s+SWITCH_TOGGLE\\s' | while read line; do autorandr --batch --change --default default; done"
+ExecStart=sh -c "stdbuf -oL libinput debug-events | grep -E --line-buffered '^[[:space:]-]+event[0-9]+[[:space:]]+SWITCH_TOGGLE[[:space:]]' | while read line; do autorandr --batch --change --default default; done"
 Restart=always
 RestartSec=30
 SyslogIdentifier=autorandr