Skip to content

fix(battery): hide non-laptop batteries on lock screen indicator#2521

Open
jpds wants to merge 1 commit intonoctalia-dev:mainfrom
jpds:fix/lock-screen-battery-peripheral
Open

fix(battery): hide non-laptop batteries on lock screen indicator#2521
jpds wants to merge 1 commit intonoctalia-dev:mainfrom
jpds:fix/lock-screen-battery-peripheral

Conversation

@jpds
Copy link
Copy Markdown

@jpds jpds commented Apr 21, 2026

Motivation

On desktops without a laptop battery, the primary device falls back to anything with a battery (such as Bluetooth headphones). This causes the lock screen to show the peripheral's charge level.

This PR hides that indicator on the lock-screen (which confused me when I saw a 100% on my desktop).

Type of Change

Mark the relevant option with an "x".

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring

Related Issue

  • Closes #(issue number) (if any)

Testing

Describe how you tested your changes and mark the relevant items.

  • Tested on niri
  • Tested on Hyprland
  • Tested on sway
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-reviewed my code
  • No new warnings or errors
  • Documentation or comments updated (if relevant)

On desktops without a laptop battery, the primary device falls back to
anything with a battery (such as Bluetooth headphones). This causes the
lock screen to show the peripheral's charge level.
@turannul
Copy link
Copy Markdown
Contributor

turannul commented Apr 22, 2026

Showing battery levels on lock screen done for keyboards/mices in mind.

The fallback solely exist for this reason.

@turannul
Copy link
Copy Markdown
Contributor

Showing battery levels on lock screen done for keyboards/mices in mind.

The fallback solely exist for this reason.

8fb1916

This might resolve your point? @jpds

@jpds
Copy link
Copy Markdown
Author

jpds commented Apr 22, 2026

@turannul That is indeed a better option (I don't have any batteries in my input devices myself).

@turannul
Copy link
Copy Markdown
Contributor

@turannul That is indeed a better option (I don't have any batteries in my input devices myself).

Nicd glad to hear, thanks for fast response.

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.

2 participants