Closed mrplumber closed 1 month ago
This is a buffer effect. Typically the system flushes stdout when a line ends with a \n
character.
You can disable buffering for swaykbdd using the stdbuf utility:
stdbuf -o 0 swaykbdd --verbose | awk ...
TIL. That will do for me. Thanks.
I tried to pipe
swaykbdd --verbose
output toawk
, but it seems I/O redirection does not work at all. Tried all sorts of redirection without success. Nothing gets redirected.