Open AveryLychee opened 6 years ago
I see the same on multiple bash scripts, that produce perfect outputs if run in a terminal One of which is actually a type periodic, and yet produces this weird rendering.
My first script prints the current battery status formatted like this:
My other script prints the total network activity in the last second; this one is periodic, and is formatted like this:
Both of these scripts have a central space char in their ouput, so the problem should revolve around spaces.
I have a script to convert my bspwm status into something slightly prettier (shown below, in case it's relevant). When run in the terminal, this produces 1 line per bspwm update, and the line is always exactly the same length.
However, when I have this configuration for my block:
The result is very glitchy - sometimes it shows the full output, sometimes it only shows parts of it. Other times it also displays parts of the
bspc subscribe
command's output mixed in with the formatted output.I get the same glitchy results if I write the script to take stdin and use
exec: "bspc subscribe | format_script.hs"
in my blockThe formatting script: