From 17aacb0185c6be9e5f6d0413ee09bda62f696345 Mon Sep 17 00:00:00 2001 From: Christophe-Marie Duquesne Date: Sun, 3 Nov 2019 23:27:39 +0100 Subject: [PATCH] line buffering --- contrib/listen_lid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2