mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-19 13:16:51 +00:00
commit
854bba6ba9
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user