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%
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%