I like the idea.
If it comes to the separator between components: I used a single white-space to save on the length of resulting line. Since you never know which way the components may be ordered in user’s command, each of them has initially a single leading and trailing space. As soon as building the output is finished, all double spaces are turned into single. The leading and the trailing space of the whole line are being stripped in a single code line.
I assume we’re talking about the
psuinfo command / package. If so:
Obviously you may change the line mentioned above for personal use. However, the /usr/bin/psuinfo command will be overwritten at the nearest package update. You’d need to rename the command and from now on use your own version (or both). IMO - keeping up with package updates would allow us to benefit from changes proposed by the others.
What I suggest is to modify the command / package by adding
an argument to force use of a custom separator, for instance the
-S<number> argument to define number of spaces to use between components.
If it comes to displaying memory as percentage: this could be another component, e.g.
-Cc for used and
-CC for free memory %. I could code it, but if you’d like to contribute and commit a change to the project, I would be happy.