]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - contrib/listen_lid.sh
line buffering
[deb_pkgs/autorandr.git] / contrib / listen_lid.sh
index 976b26d65d1aa6d86156ec036da7a455eea77e98..8283d374e3d2563ab1d095c9e6ea82dda98f69d7 100755 (executable)
@@ -3,6 +3,6 @@
 # /!\ You must be part of the input group
 # sudo gpasswd -a $USER input
 
-libinput debug-events | grep SWITCH_TOGGLE | while read event; do
+stdbuf -oL libinput debug-events | grep --line-buffered SWITCH_TOGGLE | while read line; do
     autorandr --change --default default
 done