egrep is deprecated according to manpage

also do classes as in manpage, no double escapes needed
This commit is contained in:
Vladimir-csp 2019-11-14 00:48:46 +03:00 committed by Gürkan Gür
parent c1be543742
commit 77d140db7f
1 changed files with 1 additions and 1 deletions

View 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