diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-05-06 22:34:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 22:34:22 -0400 |
commit | fbfa708d1dfc54fffbc14f9468dd6feeb123a971 (patch) | |
tree | 719895965e033a892e772db72f73c1f016440476 | |
parent | df13859ef2328a1840d17b174b57bf6e93144de0 (diff) |
change: Adds advanced kill option to default config text (#462)
Adds advanced_kill to the default config gen.
-rw-r--r-- | src/constants.rs | 5 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/constants.rs b/src/constants.rs index 713e7dcc..5a9f4220 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -430,7 +430,8 @@ pub const DEFAULT_BATTERY_LAYOUT: &str = r##" // Config and flags pub const DEFAULT_CONFIG_FILE_PATH: &str = "bottom/bottom.toml"; -pub const OLD_CONFIG_TEXT: &str = r##"# This is a default config file for bottom. All of the settings are commented +// TODO: Eventually deprecate this. +pub const CONFIG_TEXT: &str = r##"# This is a default config file for bottom. All of the settings are commented # out by default; if you wish to change them uncomment and modify as you see # fit. @@ -495,6 +496,8 @@ pub const OLD_CONFIG_TEXT: &str = r##"# This is a default config file for bottom #network_use_bytes = false # Displays the network widget with a log scale. #network_use_log = false +# Show a more advanced process kill screen +#advanced_kill = false # These are all the components that support custom theming. Note that colour support # will depend on terminal support. @@ -228,7 +228,7 @@ pub fn create_or_get_config(config_path: &Option<PathBuf>) -> error::Result<Conf fs::create_dir_all(parent_path)?; } // fs::File::create(path)?.write_all(CONFIG_TOP_HEAD.as_bytes())?; - fs::File::create(path)?.write_all(OLD_CONFIG_TEXT.as_bytes())?; + fs::File::create(path)?.write_all(CONFIG_TEXT.as_bytes())?; Ok(Config::default()) } } else { |