summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sample_configs/bottom.toml3
-rw-r--r--src/options.rs6
2 files changed, 6 insertions, 3 deletions
diff --git a/sample_configs/bottom.toml b/sample_configs/bottom.toml
index a6b47855..1dd183af 100644
--- a/sample_configs/bottom.toml
+++ b/sample_configs/bottom.toml
@@ -34,6 +34,9 @@
#default_widget = "network_default"
#default_widget = "process_default"
+# Basic mode
+#basic = true
+
# These are all the components that support custom theming. Currently, it only
# supports taking in a string representing a hex colour. Note that colour support
diff --git a/src/options.rs b/src/options.rs
index d67e5ce7..fc92a915 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -26,7 +26,7 @@ pub struct ConfigFlags {
pub regex: Option<bool>,
pub default_widget: Option<String>,
pub show_disabled_data: Option<bool>,
- pub basic_mode: Option<bool>,
+ pub basic: Option<bool>,
//disabled_cpu_cores: Option<Vec<u64>>, // TODO: [FEATURE] Enable disabling cores in config/flags
}
@@ -176,8 +176,8 @@ pub fn get_use_basic_mode_option(matches: &clap::ArgMatches<'static>, config: &C
if matches.is_present("BASIC_MODE") {
return true;
} else if let Some(flags) = &config.flags {
- if let Some(basic_mode) = flags.basic_mode {
- return basic_mode;
+ if let Some(basic) = flags.basic {
+ return basic;
}
}