vivien / i3blocks-contrib

Official repository for community contributed blocklets
https://github.com/vivien/i3blocks
Other
1.29k stars 485 forks source link

cpu_usage2: add option to set max percentage as nproc * 100% #509

Open Elcoid opened 11 months ago

Elcoid commented 11 months ago

I see that there are more than 100 pull requests open, some of them dating back to more than 5 years ago, so I suppose this repo is not maintained anymore. Still, here is a contribution in case it becomes active again in the future.

New feature: If the -n flag is passed in the command line or if the NPROC environment variable is defined, the maximum percentage is set to $(nproc) * 100% instead of the default 100%.