]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
line buffering
authorChristophe-Marie Duquesne <chmd@chmd.fr>
Sun, 3 Nov 2019 22:27:39 +0000 (23:27 +0100)
committerChristophe-Marie Duquesne <chmd@chmd.fr>
Sun, 3 Nov 2019 22:27:39 +0000 (23:27 +0100)
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