From e1da315eaa3bb68a1c7ebe574863fb98bb26abfc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 2 Nov 2022 18:40:56 -0400 Subject: [PATCH] starship: Make battery more noticeable This makes it easier to predict how much time we have left before the battery runs out when developing without a charger. --- starship/.config/starship.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml index 86718141..a8c2b11c 100644 --- a/starship/.config/starship.toml +++ b/starship/.config/starship.toml @@ -8,6 +8,18 @@ read_only = " ro" style = "yellow" symbol = "" +[[battery.display]] +threshold = 10 +style = "bold red" + +[[battery.display]] +threshold = 30 +style = "bold yellow" + +[[battery.display]] +threshold = 90 +style = "bold normal" + [character] #success_symbol = "[➤](red)[➤](green)[➤](blue)" #error_symbol = "[➤](cyan)[➤](purple)[➤](yellow)"