mtop icon indicating copy to clipboard operation
mtop copied to clipboard

nice work!

Open dimitrieh opened this issue 9 years ago • 6 comments

Wow super nice! just got a notification from an issue i filed for bitbar. This is really good :D. we could build on this! what did you use to generate the graphs? also is it real time/whats the interval?

dimitrieh avatar Apr 08 '16 21:04 dimitrieh

Thanks! I use top to generate the data, sampling CPU usage for 2 seconds. The script runs every 5 seconds. You could reduce it to 3 sec by changing the name of the file to mtop.3s.sh but I wouldn't advise any lower. I find this is adequate for my requirements - which is basically to know if there is a chronic runaway process.

The graph is a BMP file generated completely "by hand" in the shell script, with no external utilities. This is done to reduce the overhead of the script and the dependencies needed to install - and mostly because it was a whole lot of fun.

The script is readable enough, but I will write up the BMP rendering as a separate script and document it because I think the same techniques will be very useful for other BitBar plugins as well.

ganeshv avatar Apr 10 '16 13:04 ganeshv

correct :) thanks maybe i'll go tinker with it myself a little in the future. Do you have plans on building this out with all/some/most ^^ of the features from istatmenus :) ?

dimitrieh avatar Apr 10 '16 17:04 dimitrieh

Many iStat features (like realtime updates) are difficult to achieve within the BitBar framework. Also, other resources like network and disk usage at process level don't have nice, standardized CLI tools like top which we can leverage.

I'm looking at how to get these while staying within the BitBar framework. I really like BitBar's simplicity because there is a good chance I will be able to use my favourite plugins even after 5-10 years with minimum maintenance. No firm timelines though.

ganeshv avatar Apr 11 '16 10:04 ganeshv

i can live with that! good luck! :)

On Mon, Apr 11, 2016 at 12:12 PM ganeshv [email protected] wrote:

Many iStat features (like realtime updates) are difficult to achieve within the BitBar framework. Also, other resources like network and disk usage at process level don't have nice, standardized CLI tools like top which we can leverage.

I'm looking at how to get these while staying within the BitBar framework. I really like BitBar's simplicity because there is a good chance I will be able to use my favourite plugins even after 5-10 years with minimum maintenance. No firm timelines though.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ganeshv/mtop/issues/1#issuecomment-208267609

Dimitrie Hoekstra, UI & Interaction Designer dhesign.com | [email protected] | LinkedIn https://www.linkedin.com/in/dimitrieh | Twitter https://twitter.com/strages33/

dimitrieh avatar Apr 11 '16 11:04 dimitrieh

@strages: new plugin in this repo, mdf, for disk stats.

ganeshv avatar Apr 17 '16 15:04 ganeshv

looks great! will see if i can pitch in soon with some design stuff (more of a designer here than a codewizard ;) )

dimitrieh avatar Apr 18 '16 11:04 dimitrieh