From 7827d05eb7d1e288210705d08650a776bf917639 Mon Sep 17 00:00:00 2001 From: Myned Date: Thu, 26 Dec 2024 19:10:52 -0500 Subject: [PATCH] starship: modify config Signed-off-by: Myned --- options/custom/programs/starship/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/options/custom/programs/starship/default.nix b/options/custom/programs/starship/default.nix index 47e3b68..e93b776 100644 --- a/options/custom/programs/starship/default.nix +++ b/options/custom/programs/starship/default.nix @@ -41,7 +41,7 @@ in { # https://starship.rs/config/#prompt add_newline = false; - format = concatStringsSep "" [ + format = concatStrings [ # Top left "$shell" "$all" @@ -59,9 +59,19 @@ in { "$character" ]; + # https://starship.rs/advanced-config/#enable-right-prompt + right_format = concatStrings [ + # Bottom right + ]; + # https://starship.rs/config/#battery battery = { format = " [$symbol]($style)"; + charging_symbol = "󰂄"; + discharging_symbol = "󰂃"; + empty_symbol = "󰂎"; + full_symbol = "󰁹"; + unknown_symbol = "󰂑"; display = [ { @@ -204,7 +214,7 @@ in { style = "bold #657b83"; # https://docs.rs/chrono/latest/chrono/format/strftime/index.html - time_format = "%a %b %-d %I:%M%P"; + time_format = "%a %b %-d %-I:%M%P"; }; # https://starship.rs/config/#username