i3blocks icon indicating copy to clipboard operation
i3blocks copied to clipboard

For lemonbar, I need i3blocks to *output* a linefeed. But how?

Open jaimet opened this issue 4 years ago • 2 comments

Hi.

I'm trying to use i3blocks (v1.5) with lemonbar. Each of my (persistent) blocklets correctly outputs a linefeed after each iteration, and if I use i3blocks to output to the terminal, it works perfectly.

To test my setup, I now try to use one of my blocklets to feed into lemonbar, and this works perfectly too, because my blocklet is (correctly) outputting a linefeed after each iteration.

Now, however, I try to use the output of i3blocks to feed into lemonbar. But this fails (lemonbar appears, but it stays "empty"). I then realise that this is because i3blocks does not output a linefeed after each iteration/update.

Is there anything that I can do to get i3blocks to output a linefeed after each iteration? (I am compiling v1.5 from source).

Thank you for any help that you can offer.

Jaime

jaimet avatar Feb 20 '20 00:02 jaimet

This might be a better question to ask on the lemobar issues page.

SodaLover avatar May 23 '20 12:05 SodaLover

I have this problem as well when trying to use i3blocks -o term in my wm's native bar. It would be nice if this output included a trailing newline for portability.

Mrfiregem avatar Jul 20 '20 00:07 Mrfiregem