mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-26 08:41:49 +00:00
egrep is deprecated according to manpage
also do classes as in manpage, no double escapes needed
This commit is contained in:
parent
14baee8f70
commit
4ed7fa9b24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user