diff --git a/docs/config/README.md b/docs/config/README.md index bb40af9f..06028bc3 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -325,11 +325,11 @@ The module is only visible when the device's battery is below 10%. | Option | Default | Description | | -------------------- | --------------------------------- | --------------------------------------------------- | -| `full_symbol` | `""` | The symbol shown when the battery is full. | -| `charging_symbol` | `""` | The symbol shown when the battery is charging. | -| `discharging_symbol` | `""` | The symbol shown when the battery is discharging. | -| `unknown_symbol` | `""` | The symbol shown when the battery state is unknown. | -| `empty_symbol` | `""` | The symbol shown when the battery state is empty. | +| `full_symbol` | `" "` | The symbol shown when the battery is full. | +| `charging_symbol` | `" "` | The symbol shown when the battery is charging. | +| `discharging_symbol` | `" "` | The symbol shown when the battery is discharging. | +| `unknown_symbol` | `" "` | The symbol shown when the battery state is unknown. | +| `empty_symbol` | `" "` | The symbol shown when the battery state is empty. | | `format` | `"[$symbol$percentage]($style) "` | The format for the module. | | `display` | [link](#battery-display) | Display threshold and style for the module. | | `disabled` | `false` | Disables the `battery` module. | @@ -340,9 +340,9 @@ The module is only visible when the device's battery is below 10%. # ~/.config/starship.toml [battery] -full_symbol = "🔋" -charging_symbol = "⚡️" -discharging_symbol = "💀" +full_symbol = "🔋 " +charging_symbol = "⚡️ " +discharging_symbol = "💀 " ``` ### Battery Display diff --git a/src/configs/battery.rs b/src/configs/battery.rs index db313daa..56852546 100644 --- a/src/configs/battery.rs +++ b/src/configs/battery.rs @@ -18,11 +18,11 @@ pub struct BatteryConfig<'a> { impl<'a> Default for BatteryConfig<'a> { fn default() -> Self { BatteryConfig { - full_symbol: "", - charging_symbol: "", - discharging_symbol: "", - unknown_symbol: "", - empty_symbol: "", + full_symbol: " ", + charging_symbol: " ", + discharging_symbol: " ", + unknown_symbol: " ", + empty_symbol: " ", format: "[$symbol$percentage]($style) ", display: vec![BatteryDisplayConfig { threshold: 10,