From c691514a41a62da34f5e70f164729249184ca01b Mon Sep 17 00:00:00 2001 From: mjshariati98 Date: Fri, 4 Feb 2022 18:16:58 +0330 Subject: Fix #124 - Add no-x options to disable options --- config.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config.go') 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", -- cgit v1.2.3