A Waybar module for monitoring storage

I made this for my own use, so I can have a little more info on-hand than other similar modules I’ve found.

github

Feel free to share any feedback/criticism on my code.
There’s one huge function in particular I need to split up (parseMnts()), but I’m still trying to decide how/where to break it apart. Any suggestions are welcome.

7 Likes

Just use your scopes to break it up if you really want to but I tho it was easy to read because of them.

1 Like

protip: when you want to hide sensitive information from a screenshot, use black bars instead of making the content blurry. Some tools are able to undo the blur. I believe it is a non issue here; I worked in smartcards in the past and got ‘security pilled’ I guess.

1 Like

Thanks, I suspected that was the case but I haven’t seen it mentioned before.