From fd8c7f0c3e3fed9c9aa7c7bfbb772ad6457907d4 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 15 Jul 2023 22:43:57 -0400 Subject: try something different for battery display --- config/starship.toml.PL | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'config') 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__ 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)' -- cgit v1.2.3-54-g00ecf