summaryrefslogtreecommitdiffstats
path: root/config.go
diff options
context:
space:
mode:
authormjshariati98 <mohammadjavad.shariati@divar.ir>2022-02-04 18:16:58 +0330
committermjshariati98 <mohammadjavad.shariati@divar.ir>2022-02-04 18:16:58 +0330
commitc691514a41a62da34f5e70f164729249184ca01b (patch)
treee7ee8affc20b19b7036865a73ae4a5d9c81f4fc8 /config.go
parenta32a1c05eae8c6612857f1e2e883382d793640e8 (diff)
Fix #124
- Add no-x options to disable options
Diffstat (limited to 'config.go')
-rw-r--r--config.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.go b/config.go
index 7ff2947..d818285 100644
--- a/config.go
+++ b/config.go
@@ -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",