i3blocks-contrib
i3blocks-contrib copied to clipboard
unset property and property with empty string
Expected behavior
when using (for example) bandwidth block with config like this:
[bandwidth]
INTERFACE=eth0
interval=5
INLABEL=
OUTLABEL=⇵
I would expect resulting bar to be something like this: XXX 32K⇵8K XXX
Actual behavior
Actually, there are two problems:
- One is adding single space just before
OUTLABEL
. I can add single space toOUTLABEL
, if I want it. But now I am not able to remove it without editing sourcecode of bandwidth. -
INLABEL
set to emply string is evaluated as it would not be set at all and is defaulted to "IN ".
i3blocks config relevant to blocklet(s)
[bandwidth]
INTERFACE=eth0
interval=5
INLABEL=
OUTLABEL=⇵
Output of blocklet(s) when run from command line
some other block IN 0K ⇵0K another block
Expected behavior is:
some other block 0K⇵0K another block