From 9345314fe7e64f6c659439122aacc96250879a59 Mon Sep 17 00:00:00 2001 From: Devan Looches Date: Sun, 6 Nov 2022 13:16:00 -0800 Subject: [PATCH] test(windows): Update defaults for windows --- src/config.rs | 2 +- windows_default.toml | 84 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 windows_default.toml diff --git a/src/config.rs b/src/config.rs index fe0cbbd..011ae3c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -999,7 +999,7 @@ mod test { #[test] fn check_default_config() { - let config = Config::from_config(String::from("config.toml")); + let config = Config::from_config(String::from("windows_default.toml")); assert_eq!(Config::default(), config); } diff --git a/windows_default.toml b/windows_default.toml new file mode 100644 index 0000000..a280edb --- /dev/null +++ b/windows_default.toml @@ -0,0 +1,84 @@ +module-order = "user delimiter os host kernel uptime packages cpu" +offset = 4 +logo-cmd = "auto" +wrap-lines = true + +[format] +mode = "classic" +top-left-corner-char = "╭" +top-right-corner-char = "╮" +bottom-left-corner-char = "╰" +bottom-right-corner-char = "╯" +horizontal-char = "─" +vertical-char = "│" +padding-left = 1 +padding-right = 1 +padding-top = 0 + +[user] +pre-text-style = "bold.yellow" +pre-text = "" +output-style = "bold.yellow" +separator-style = "white" +separator-char = "@" + +[delimiter] +style = "white" +repeat-num = 0 +char = "-" + +[os] +pre-text-style = "bold.yellow" +pre-text = "OS: " +output-style = "white" + +[host] +pre-text-style = "bold.yellow" +pre-text = "Host: " +output-style = "white" + +[kernel] +pre-text-style = "bold.yellow" +pre-text = "Kernel: " +output-style = "white" + +[uptime] +pre-text-style = "bold.yellow" +pre-text = "Uptime: " +output-style = "white" +time-format = "$days days, $hours hours, $minutes minutes" + +[packages] +pre-text-style = "bold.yellow" +pre-text = "Packages: " +output-style = "white" + +[shell] +pre-text-style = "bold.yellow" +pre-text = "Shell: " +output-style = "white" + +[resolution] +pre-text-style = "bold.yellow" +pre-text = "Resolution: " +output-style = "white" + +[desktop-environment] +pre-text-style = "bold.yellow" +pre-text = "Desktop Environment: " +output-style = "white" + +[window-manager] +pre-text-style = "bold.yellow" +pre-text = "Window Manager: " +output-style = "white" + +[terminal] +pre-text-style = "bold.yellow" +pre-text = "Terminal: " +output-style = "white" + +[cpu] +pre-text-style = "bold.yellow" +pre-text = "CPU: " +output-style = "white"