diff options
author | mjshariati98 <mohammadjavad.shariati@divar.ir> | 2022-02-04 18:16:58 +0330 |
---|---|---|
committer | mjshariati98 <mohammadjavad.shariati@divar.ir> | 2022-02-04 18:16:58 +0330 |
commit | c691514a41a62da34f5e70f164729249184ca01b (patch) | |
tree | e7ee8affc20b19b7036865a73ae4a5d9c81f4fc8 /config.go | |
parent | a32a1c05eae8c6612857f1e2e883382d793640e8 (diff) |
Fix #124
- Add no-x options to disable options
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -34,20 +34,26 @@ type Config struct { Colorscheme colorschemes.Colorscheme UpdateInterval time.Duration AverageLoad bool + NoAverageLoad bool PercpuLoad bool + NoPercpuLoad bool Statusbar bool + NoStatusbar bool TempScale widgets.TempScale NetInterface string Layout string MaxLogSize int64 ExportPort string Mbps bool + NoMbps bool Temps []string Test bool + NoTest bool ExtensionVars map[string]string ConfigFile string Tr lingo.Translations Nvidia bool + NoNvidia bool NvidiaRefresh time.Duration } @@ -61,9 +67,15 @@ func NewConfig() Config { HelpVisible: false, UpdateInterval: time.Second, AverageLoad: false, + NoAverageLoad: false, PercpuLoad: true, + NoPercpuLoad: false, TempScale: widgets.Celsius, Statusbar: false, + NoStatusbar: false, + NoMbps: false, + NoTest: false, + NoNvidia: false, NetInterface: widgets.NetInterfaceAll, MaxLogSize: 5000000, Layout: "default", |