gotop icon indicating copy to clipboard operation
gotop copied to clipboard

Enhancement Request: Configuration file

Open clinstid opened this issue 6 years ago • 6 comments

It would be great if gotop supported loading configuration from a file for the command line options. I would love to be able to set my color scheme once and then just run gotop directly. It looks like gotop is already pulling in ProtonMail/go-appdir for loading custom color schemes so it seems like it wouldn't be too much more to add support for a config file.

clinstid avatar Feb 14 '19 01:02 clinstid

Thanks for bringing this up as I've been thinking about adding a config file too. I'm curious though, why not just set a persistent shell alias with the color scheme specified? I think a config file would be good for more complex customization options but I'm curious about whether the current options should be available in a config file.

cjbassi avatar Feb 15 '19 06:02 cjbassi

Yea and an option to change how the CPU temp is gotten, I would love to run this software on my RPI3

kingdevnl avatar Feb 22 '19 08:02 kingdevnl

I'm curious though, why not just set a persistent shell alias with the color scheme specified

I absolutely could do that, but if I had the option to use a config file I would prefer that since I don't like to obfuscate commands with shell aliases.Just my own personal preference though. :smile:

clinstid avatar Feb 22 '19 18:02 clinstid

@kingdevnl Is there another library to retrieve temperatures besides gopsutil? If so, we should just add its functionality to gopsutil so that it works for RPI3.

cjbassi avatar Feb 27 '19 22:02 cjbassi

@cjbassi I was also contemplating adding configurable layout, and this would be a good place to set that. Doing it on the command line would be clunky.

ghost avatar Mar 02 '19 10:03 ghost

@serussell Yah I was thinking that too, a config file would be better than the cli for configuring the layout. And we would probably need a way to configure the layout if we added any more widgets.

cjbassi avatar Mar 02 '19 20:03 cjbassi