vivien / i3blocks

The hacker-friendly status_command for Sway and i3
https://vivien.github.io/i3blocks/
GNU General Public License v3.0
2.25k stars 182 forks source link

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

Open jaimet opened 4 years ago

jaimet commented 4 years ago

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

SodaLover commented 4 years ago

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

Mrfiregem commented 3 years ago

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.