(starship): add battery information.
This commit is contained in:
parent
a8e462e129
commit
ad07f55ac6
@ -17,6 +17,7 @@ $kubernetes\
|
|||||||
[](fg:#212736 bg:#1d2230)\
|
[](fg:#212736 bg:#1d2230)\
|
||||||
$time\
|
$time\
|
||||||
[ ](fg:#1d2230)\
|
[ ](fg:#1d2230)\
|
||||||
|
$battery \
|
||||||
\n$character"""
|
\n$character"""
|
||||||
|
|
||||||
[os]
|
[os]
|
||||||
@ -95,6 +96,25 @@ style = "fg:#769ff0 bg:#212736"
|
|||||||
format = '[[ $symbol $context \($namespace\)](fg:#769ff0 bg:#212736)]($style)'
|
format = '[[ $symbol $context \($namespace\)](fg:#769ff0 bg:#212736)]($style)'
|
||||||
disabled = false
|
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]
|
[custom.category]
|
||||||
command = 'echo "[{{ .bash.prompt.category }}]"'
|
command = 'echo "[{{ .bash.prompt.category }}]"'
|
||||||
when = true
|
when = true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user