From ad07f55ac6fa4b89e91651ee628ab634909013fa Mon Sep 17 00:00:00 2001 From: Heavy Date: Mon, 9 Jun 2025 17:34:05 +0200 Subject: [PATCH] (starship): add battery information. --- private_dot_config/starship.toml.tmpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/private_dot_config/starship.toml.tmpl b/private_dot_config/starship.toml.tmpl index 8b70b1c..3aa71e0 100644 --- a/private_dot_config/starship.toml.tmpl +++ b/private_dot_config/starship.toml.tmpl @@ -17,6 +17,7 @@ $kubernetes\ [](fg:#212736 bg:#1d2230)\ $time\ [ ](fg:#1d2230)\ +$battery \ \n$character""" [os] @@ -95,6 +96,25 @@ style = "fg:#769ff0 bg:#212736" format = '[[ $symbol $context \($namespace\)](fg:#769ff0 bg:#212736)]($style)' disabled = false +[battery] +#full_symbol = '🔋 ' +#charging_symbol = '⚡️ ' +#discharging_symbol = '💀 ' +#style = "bg:#1d2230" +#format = '[[$symbol$percentage](bg:#1d2230)]($style) ' + +[[battery.display]] +threshold = 30 +style = 'bold red' + +[[battery.display]] +threshold = 50 +style = 'bold yellow' + +[[battery.display]] +threshold = 80 +style = 'bold green' + [custom.category] command = 'echo "[{{ .bash.prompt.category }}]"' when = true