File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 44# sudo gpasswd -a $USER input
55
66stdbuf -oL libinput debug-events | \
7- egrep -- line-buffered ' ^[\s -]+event[0-9]+\s +SWITCH_TOGGLE\s ' | \
7+ grep -E -- line-buffered ' ^[[:space:] -]+event[0-9]+[[:space:]] +SWITCH_TOGGLE[[:space:]] ' | \
88 while read line; do
99 autorandr --change --default default
1010done
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Description=Runs autorandr whenever the lid state changes
33
44[Service]
55Type =simple
6- 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"
6+ 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"
77Restart =always
88RestartSec =30
99SyslogIdentifier =autorandr
You can’t perform that action at this time.
0 commit comments