gpustat icon indicating copy to clipboard operation
gpustat copied to clipboard

add command line args for customing colors

Open kyoto7250 opened this issue 2 years ago • 2 comments

close #9

We can specific colors on the command line by this PR.

If you have more better idea, please let me know :)

# usage
gpustat --custom-colors CName=white --custom-colors CUser=white

Thank you for your awesome application!

kyoto7250 avatar Jul 18 '22 15:07 kyoto7250

Thanks, this looks like a good option to add. I have two thoughts:

First, it would be great if one can list multiple color entries in a single flag (with the comma separator), just like fzf supports:

gpustat --custom-colors CName=white
gpustat --custom-colors CName=white,CUser=white,CFoo=bar

Second, the color keys such as CName, CUser were chosen for internal use of string formatting, so I would prefer some universal name that is more consistent with self.entry or json output, e.g. name, memory.used, memory.total. Let me think more what'd be the best.

wookayin avatar Jul 19 '22 03:07 wookayin

Thank you for your review.

Let me think more what'd be the best.

Okay, let me know if you come up with a good idea :)

kyoto7250 avatar Jul 19 '22 03:07 kyoto7250