Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/hacks/battery-percentage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The stock launcher only fills the battery icon. Add monospace text so the header
screen.font = battery_font
meter = "chg" if is_charging() else f"{int(round(battery_level)):3d}%"
w, _ = screen.measure_text(meter)
screen.text(meter, pos[0] - w - 4, pos[1])
screen.text(meter, pos[0] - w - 4, pos[1] - 2)
```
Full context to anchor your edit is in [`menu/ui.py`](https://github.com/badger/home/blob/main/badge/apps/menu/ui.py#L88-L114).
3. **Save the file in VS Code**, eject the badger volume, and tap `Reset` to reload the launcher.
Expand Down