Skip to content

Commit 854bba6

Browse files
Merge pull request #171 from Vladimir-csp/patch-2
Further fixes
2 parents 2a12189 + bc77e56 commit 854bba6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/listen_lid.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# sudo gpasswd -a $USER input
55

66
stdbuf -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
1010
done

contrib/systemd/autorandr-lid-listener.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=Runs autorandr whenever the lid state changes
33

44
[Service]
55
Type=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"
77
Restart=always
88
RestartSec=30
99
SyslogIdentifier=autorandr

0 commit comments

Comments
 (0)