fix(waybar): widen the battery icon-to-text gap when discharging
The discharging `format` put a single space between the icon span and
{capacity}%, but the battery-bar glyphs carry almost no right bearing,
so the state read cramped — while charging/plugged use glyphs with their
own spacing and looked fine. Widen only the discharging line to two
spaces across all four themes that ship their own bar (boreal,
summer-night, summer-day, executive-slate).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
"warning": 25,
|
"warning": 25,
|
||||||
"critical": 10
|
"critical": 10
|
||||||
},
|
},
|
||||||
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span size='13pt'></span> {capacity}%",
|
"format-charging": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
"warning": 25,
|
"warning": 25,
|
||||||
"critical": 10
|
"critical": 10
|
||||||
},
|
},
|
||||||
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span size='13pt'></span> {capacity}%",
|
"format-charging": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"interval": 60,
|
"interval": 60,
|
||||||
"states": { "warning": 30, "critical": 15 },
|
"states": { "warning": 30, "critical": 15 },
|
||||||
"max-length": 10,
|
"max-length": 10,
|
||||||
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span size='13pt'></span> {capacity}%",
|
"format-charging": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-full": " 100%",
|
"format-full": " 100%",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"battery": {
|
"battery": {
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"states": { "warning": 25, "critical": 10 },
|
"states": { "warning": 25, "critical": 10 },
|
||||||
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
"format": "<span size='13pt'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span size='13pt'></span> {capacity}%",
|
"format-charging": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
"format-plugged": "<span size='13pt'></span> {capacity}%",
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
|
|||||||
Reference in New Issue
Block a user