[dev] [slstatus] remove space from fmt_human()

0 views
Skip to first unread message

Ricardson

unread,
May 14, 2026, 9:34:34 PMMay 14
to d...@suckless.org
Hi,

This patch removes the space between the numeric value and
the unit in fmt_human() output.

This makes compact displays such as status bars easier to read.

Example:

Before:
1.9 Gi

After:
1.9Gi

----
Kind regards,
Ricardson (r1w1s1)
0001-slstatus-remove-space-from-fmt_human.patch

drkhsh

unread,
Jun 7, 2026, 5:16:33 PM (7 days ago) Jun 7
to dev mail list
hi r1w1s1,

it has been implemented in this way because of the following SI
convention:

https://www.nist.gov/pml/special-publication-330/sp-330-section-5
(section 5.4.3 Formatting the value of a quantity)

same should be in ISO 80000-1 and NIST SP 811 / SP 330 (the US
interpretation of SI)

however you are free to upload a patch for that specific small-screen
usecase to the wiki!

regards
drkhsh
Reply all
Reply to author
Forward
0 new messages