From: Vladimir-csp Date: Wed, 13 Nov 2019 21:42:26 +0000 (+0300) Subject: space class and double escapes in unit file X-Git-Tag: 1.9~1^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=14baee8f708e21429032499b9088fac8314ae60d;p=deb_pkgs%2Fautorandr.git space class and double escapes in unit file --- diff --git a/contrib/systemd/autorandr-lid-listener.service b/contrib/systemd/autorandr-lid-listener.service index 1d8b60d..25ba340 100644 --- a/contrib/systemd/autorandr-lid-listener.service +++ b/contrib/systemd/autorandr-lid-listener.service @@ -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 '^[\s-]+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 | egrep --line-buffered '^[[:space:]-]+event[0-9]+\\s+SWITCH_TOGGLE\\s' | while read line; do autorandr --batch --change --default default; done" Restart=always RestartSec=30 SyslogIdentifier=autorandr