diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-15 22:43:57 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-07-15 22:43:57 -0400 |
commit | fd8c7f0c3e3fed9c9aa7c7bfbb772ad6457907d4 (patch) | |
tree | 4ccd268898094cec4b0f4123a4b5cbce06c02937 /config | |
parent | d559a99341d8854ced9a7c548157565a5e85a2de (diff) | |
download | conf-fd8c7f0c3e3fed9c9aa7c7bfbb772ad6457907d4.tar.gz conf-fd8c7f0c3e3fed9c9aa7c7bfbb772ad6457907d4.zip |
try something different for battery display
Diffstat (limited to 'config')
-rw-r--r-- | config/starship.toml.PL | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/config/starship.toml.PL b/config/starship.toml.PL index 0b55697..42270ed 100644 --- a/config/starship.toml.PL +++ b/config/starship.toml.PL @@ -21,7 +21,7 @@ while (<DATA>) { __DATA__ format = """ - [\\(](host)$directory([|](host)$git_branch$git_commit$git_status([|](host)$git_state))[\\)](host)( $aws)( $kubernetes)( $pulumi) $fill ($cmd_duration )([{](host)$battery[}](host) )$username[@](bg)$hostname [\\[](host)$time[\\]](host) $line_break\ + [\\(](host)$directory([|](host)$git_branch$git_commit$git_status([|](host)$git_state))[\\)](host)( $aws)( $kubernetes)( $pulumi) $fill ($cmd_duration )($battery )$username[@](bg)$hostname [\\[](host)$time[\\]](host) $line_break\ $status [@@CHAR@@](user) """ right_format = '$character' @@ -89,20 +89,39 @@ format = '[\($duration\)]($style)' style = 'bg' [battery] -format = '[$percentage]($style)' +format = '[$symbol]($style)' +unknown_symbol = ' ??' [[battery.display]] threshold = 5 +charging_symbol = '⚡️' +discharging_symbol = ' ' style = 'bright-red' [[battery.display]] threshold = 15 +charging_symbol = '⚡️' +discharging_symbol = ' ' style = 'red' [[battery.display]] threshold = 40 +charging_symbol = '⚡️ ' +discharging_symbol = ' ' style = 'yellow' +[[battery.display]] +threshold = 80 +charging_symbol = '⚡️ ' +discharging_symbol = ' ' +style = 'bright-black' + +[[battery.display]] +threshold = 100 +charging_symbol = '⚡️ ' +discharging_symbol = ' ' +style = 'green' + [username] disabled = false format = '[$user]($style)' |