lefteros_by SomniusX
EL ↗Say hello

LEFTEROS / PERSONAL NOTES

Dual Battery: every battery on the Omarchy bar

5 December 2026 / Lefteris Iliadis / SomniusX

Dual Battery: every battery on the Omarchy bar

My ThinkPad T480 has two batteries: one inside, and the rear one that you can swap while the laptop is running. I put a new internal battery in it and wanted to see how each one was doing.

Omarchy's own power widget couldn't tell me. The icon on the bar shows the combined charge, but the panel reads a single battery. So the panel said 41% while the icon said 67%. Both numbers were correct. They just weren't about the same thing.

So I made Dual Battery, a plugin that takes the place of the stock power widget and shows every battery, plus the total. It's version 1.0.0, under the MIT license. As of 5 December it's on the Omarchy plugins site.

The Dual Battery panel: 59% in total, Internal at 25% and discharging, Rear at 99% and full, with energy, health and draw for each
The panel, with the two level cells and the total on the bar above it.

What it shows

  • On the bar: a small icon with one level bar per battery, next to the usual total icon. Hover over it and you get a summary, like Internal 27% · Rear 99% · Total 60%. Right-click shows or hides the total percentage.
  • In the panel (left-click, or SUPER+CTRL+P): the combined percentage on top, then a column per battery with its charge, state, energy in Wh, health and draw in W. Below that are the totals, with the time left or the time to full. The power profile buttons are the same as before.
  • With one battery: if the laptop has only one, or you pull the rear one out, the widget looks and behaves exactly like the stock one. Plug the battery back in and the dual view returns. There's nothing to configure.
The Omarchy bar with the two level cells and the total battery icon at the right end
The level cells and the total icon on the bar.
The same bar with 59% shown next to the total battery icon
The same bar after a right-click, with the total percentage.

Install

omarchy plugin add https://github.com/Somnius/Dual-Battery-for-Omarchy.git --enable

It needs Omarchy 4.5 or newer and no extra packages. When you enable it, it takes over the stock power widget's place on the bar and its SUPER+CTRL+P shortcut. When you disable it, the stock widget comes back.

I've tested it on one machine: my T480 with Libreboot, Omarchy 4.5.0 and Quickshell 0.3.2. It should work on any laptop where UPower lists two or more batteries that power the system, which mostly means ThinkPads with Power Bridge (T440 to T480, X240 to X270 and similar). I've only run it on this T480, so if you have another one, I'd like to hear how it goes.

Where to find it

Bugs and ideas go to the issues. If something looks wrong, the output of upower -d helps a lot.