Closed Absolpega closed 1 year ago
Thanks for the contribution!
I have a minor nitpick regarding the readout's output. It seems that /proc/<pid>/comm
could end in a newline, which we will want to remove, otherwise the output may appear as shown in this next picture.
oh yea i didn't notice that because my fetch removes any new lines when printing
We have extra::pop_newline
that'll do this for you :)
i think a cleaner option would be String::trim()
on second thought String::trim returns &str
@grtcdr made the change
Thanks again, @Absolpega.
A future step should be to stylize (according to conventions) the different compositor names, this pull request doesn't need to implement that, but it'd be nice to have.
resolves #90
this is my first ever pull request
the code is based on this stack overflow answer https://stackoverflow.com/a/72755046