Skip to content

Conversation

embedovator
Copy link
Contributor

Hi! This very well could be my first commit to an open source project. It may not be much, but here it is. Just a simple fix/feature, that instead of showing "n/a" for the battery menu bar when on AC power, it instead switches to show percentage only.

  • Modified battery widget to show only percentage in a single row when time remaining is not available (e.g., when AC adapter is plugged in)
  • Maintains two-row display with both percentage and time when running on battery with valid time information
  • Improves UI by removing duplicate information and making better use of space

Tested it out, looks to be working.

On A/C power (while charging), does NOT show "n/a" anymore. Instead, only shows percentage in a single row.
on_ac

Shows time correctly when on battery (unchanged)
on_battery

…ttery widget

- Modified battery widget to show only percentage in a single row when time remaining is not available (e.g., when AC adapter is plugged in)
- Maintains two-row display with both percentage and time when running on battery with valid time information
- Improves UI by removing duplicate information and making better use of space
@embedovator embedovator changed the title Fix: show single row with percentage when time is not available in battery widget Feat: show single row with percentage when time is not available in battery widget Jul 24, 2025
@exelban exelban merged commit 9068e18 into exelban:master Aug 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants