xyzlabplugins for Omarchy

Alienware Batteryv0.2.0bar-widget

A battery that leaves your thermal profiles alone.

Omarchy's Power widget carries a power-profiles picker, and power-profiles-daemon fights the Alienware thermal profiles. This one drops the picker and puts the thermal profiles in its place: charge, rate, time left, battery size and cycles, with optional refresh rate and profile switching when you unplug.

Alienware Battery: Draw and time left, with the Alienware thermal profiles underneath.

Install

omarchy plugin add https://github.com/chr0nzz/omarchy-alienware-battery.git --enable

Update with omarchy plugin update xyzlab.alienware-battery, remove with omarchy plugin remove xyzlab.alienware-battery.

Needs

  • Omarchy 4 shell
  • A battery. On a machine without one the widget hides itself
  • Optional alienwarectl, from the Alienware plugin, for the thermal profiles

Then set it up

What to do once it is installed. Anything marked optional can wait.

  1. Remove Omarchy's Power widget

    Open the Omarchy bar settings, remove Power, then drag this one into the gap it left. Skip this and you get two batteries in the bar, and the power-profiles picker you came here to lose is still there fighting your thermal profiles.

  2. Bind a key

    Opens the details, where the arrow keys move between the profile buttons and Enter picks one.

    In ~/.config/hypr/bindings.lua

    o.bind("SUPER SHIFT", "B", "Battery", "omarchy-shell shell summon xyzlab.alienware-battery '{}'")
  3. Follow the power source with the refresh rate

    optional

    Only the internal panel is touched, only when that rate is in its mode list, and only when it is not already there. External monitors are left alone. Leave either at 0 to not touch the rate at all.

    omarchy bar set xyzlab.alienware-battery batteryHz 60
    omarchy bar set xyzlab.alienware-battery acHz 240
  4. Drop to low power on battery

    optional

    Switches the thermal profile when you unplug and puts the previous one back on mains. Needs alienwarectl from the Alienware plugin.

    omarchy bar set xyzlab.alienware-battery lowPowerOnBattery true
  5. Take over the low battery warning

    optional

    Omarchy ships a battery service that already sends this. Leave it off unless you have disabled that service, or you will get the warning twice.

    omarchy bar set xyzlab.alienware-battery notifyLow true

In Tokyo Night

Every shot was taken on a real Omarchy desktop with that theme applied. Pick another and they follow.

What it does

No profiles picker

The power-profiles picker is what fights the Alienware thermal profiles, so it is not here. The thermal profiles sit where it used to be.

The numbers that matter

Charge, draw or charging rate, time left or time to full, battery size, charge cycles, and the charge limit when one is holding.

Thermal profiles

Profile buttons through alienwarectl. Arrows move between them, Enter picks one, and a middle click on the bar steps to the next. They disappear on a machine without the helper.

Urgent at your number

The icon turns urgent on battery at or below a charge you pick, anywhere from 5 to 50 percent.

Refresh rate follows the power

60 on battery and 240 on mains, if you want it. Only the internal panel, only when that rate is in its mode list, and only when it is not already there. External monitors are left alone.

Low power on battery

Optionally drops the thermal profile to low power when you unplug and puts the previous one back on mains.

Stands on its own

It works without the Alienware plugin. You just do not get the thermal profiles.

Keys

KeysAction
Left clickOpen the details
Right clickShow or hide the percentage
Middle clickNext thermal profile
ArrowsMove between the profile buttons
EnterApply the highlighted profile
EscClose

Settings

Change any of these from the bar settings, the plugin's own settings editor, or omarchy bar set xyzlab.alienware-battery <key> <value>.

KeyPurpose
showPercentageCharge percentage beside the icon
lowBatteryCharge, 5 to 50, that turns the icon urgent on battery
showProfilesThermal profiles when alienwarectl is installed
batteryHzPanel refresh rate on battery, 0 leaves the rate alone
acHzPanel refresh rate on mains, 0 leaves the rate alone
lowPowerOnBatterySwitch to the low power profile on battery, and back on mains
notifyLowSend the low battery warning, for when Omarchy's battery service is off