From 14baee8f708e21429032499b9088fac8314ae60d Mon Sep 17 00:00:00 2001 From: Vladimir-csp Date: Thu, 14 Nov 2019 00:42:26 +0300 Subject: [PATCH] space class and double escapes in unit file --- contrib/systemd/autorandr-lid-listener.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2