From: Christophe-Marie Duquesne Date: Sun, 3 Nov 2019 22:27:39 +0000 (+0100) Subject: line buffering X-Git-Tag: 1.9~3^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=17aacb0185c6be9e5f6d0413ee09bda62f696345;p=deb_pkgs%2Fautorandr.git line buffering --- diff --git a/contrib/listen_lid.sh b/contrib/listen_lid.sh index 976b26d..8283d37 100755 --- a/contrib/listen_lid.sh +++ b/contrib/listen_lid.sh @@ -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