UtkarshVerma / dwmblocks-async

An efficient, lean, and asynchronous status feed generator for dwm.
GNU General Public License v2.0
232 stars 87 forks source link

Weird status output #31

Closed Eternex49 closed 2 years ago

Eternex49 commented 2 years ago

When I run the status the text isn't displayed correctly. I've made some tests. For example, when I edit config.h to show battery level and Master volume (with underscore as a separator) this should be showed: 89%92% This is instead displayed: 89 92% I've tried displaying three blocks containing the output of the date command: This time the output doesn't miss any characters, but some have been added... A ( has been added before every block, like so: (Thu Jul 21 08:52:15 PM CEST 2022(Thu Jul 21 08:52:15 PM CEST 2022_(Thu Jul 21 08:52:15 PM CEST 2022 As before the underscore characters are the separators.

Checking with the command xprop -root the name of the root window, which is the variable used to store the status text, these paranthesis are indeed present. This means that it's not a problem with dwm displaying it incorrectly. The same goes for the first example I made (the one with battery and volume percentages): using xprop, it appeared that that some escape sequences had been added. Output of xprop -root for the first example: \03089%_\03292%