lcpz / lain

Awesome WM complements
GNU General Public License v2.0
1.05k stars 212 forks source link

collect max fs usage in percent #518

Closed lexxxel closed 1 year ago

lexxxel commented 2 years ago

Suggestion

Add a variable that knows the maximum filled partition in percent.

Reason

fs_now["/"].used showed strange numbers on my system. I also found it useful to know the max used partition value so I added a variable for that.

I did this for my system and liked the change, I don't mind if this PR does not fulfil your criterias and you simply close it.

lcpz commented 1 year ago

The usefulness of metrics like max and min is completely arbitrary. Also, such practice is not KISS.

I'd suggest you move this logic in your rc.lua.