tmux-plugins / tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
MIT License
444 stars 69 forks source link

Adding Swap #68

Open kangarooo opened 3 years ago

kangarooo commented 3 years ago

I dont know how to fix it, but i put inside a code that gives percentages, so it needs just your adjustments. Renamed a copy of gpu and ram files to swap and inside contents to swap. And made bigger readme for better example of swap.

ctjhoa commented 3 years ago

This plugin was initially designed to only display CPU information, then GPU info was added. I don't think we should expand the scope of this plugin further. Creating a tmux-memory seems the best approach IMO. @casperdcl What's your opinion on that?

casperdcl commented 3 years ago

I've been thinking hard about this and the main goal for me is to minimise code duplication. There's a lot of repetition in tmux-cpu's source, and if we create tmux-memory we're really just duplicating across repos rather than just files.

The real solution I think is to redesign tmux-cpu's source a bit. I'm super busy but could take a look again in a couple of weeks (ping me again if I'm unresponsive).