Merge pull request #171 from Vladimir-csp/patch-2

Further fixes
This commit is contained in:
Phillip Berndt 2019-11-14 08:03:34 +01:00 committed by GitHub
commit 854bba6ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

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 '^[\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 | 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