mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
fix: Add display for unknown battery state (#316)
This commit is contained in:
@@ -119,6 +119,18 @@ The module is only visible when the device's battery is below 10%.
|
||||
| `display` | [link](#battery-display) | Display threshold and style for the module. |
|
||||
| `disabled` | `false` | Disables the `battery` module. |
|
||||
|
||||
<details>
|
||||
<summary>There are also options for some uncommon battery states.</summary>
|
||||
|
||||
| Variable | Description |
|
||||
|------------------|-----------------------------------------------------|
|
||||
| `unknown_symbol` | The symbol shown when the battery state is unknown. |
|
||||
| `empty_symbol` | The symbol shown when the battery state is empty. |
|
||||
|
||||
Note: Battery indicator will be hidden if the status is `unknown` or `empty` unless you specify the option in the config.
|
||||
|
||||
</details>
|
||||
|
||||
### Example
|
||||
|
||||
```toml
|
||||
|
||||
Reference in New Issue
Block a user