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