An Omarchy shell bar widget for Framework laptops. It combines battery status, power-profile selection, system statistics, an adjustable charge limit, and a one-cycle Boost mode.
Framework ChargeLimit Power is derived from Omarchy's built-in omarchy.power widget.
- Battery percentage, state, health, power draw, and estimated time
- AC and battery power-profile selection
- Configurable Framework charge limit in the panel
- Boost mode that temporarily raises the Framework charge limit to 100%
- Automatic restoration of the normal charge limit after UPower reports a full battery
- CPU, memory, temperature, and uptime statistics
- Omarchy with the Quickshell plugin system
- A Framework laptop supported by
framework_tool - The Arch Linux
framework-systempackage sudo1.9.10 or newer for regular-expression command arguments
Install the Framework tooling with:
omarchy pkg add framework-systemConfirm that the charge-limit command works before installing the plugin:
sudo /usr/bin/framework_tool --charge-limitAfter publishing this repository, install it using its Git URL:
omarchy plugin add https://github.com/xeTaiz/dome.power.git --enableOmarchy clones the repository into ~/.config/omarchy/plugins/dome.power, validates manifest.json, and prompts for a bar position when running interactively.
Update an installed copy after publishing a new version:
omarchy plugin update dome.powerIf it is already installed but not present on the bar:
omarchy plugin enable dome.powerThe widget runs inside the graphical Omarchy shell, where no terminal is available for a sudo password prompt. It therefore invokes framework_tool with sudo -n and needs a narrowly scoped sudoers rule.
Open a dedicated sudoers file:
sudo visudo -f /etc/sudoers.d/dome-powerAdd the following line, replacing YOUR_USERNAME with your Linux username:
YOUR_USERNAME ALL=(root) NOPASSWD: /usr/bin/framework_tool ^--charge-limit([[:space:]]+[0-9]{1,3})?$
This permits only these command shapes:
/usr/bin/framework_tool --charge-limit
/usr/bin/framework_tool --charge-limit NUMBER
It does not grant passwordless access to other framework_tool subcommands. The sudoers expression accepts a one-to-three-digit argument; the plugin itself clamps configurable limits to 40–100%. Regular-expression command arguments require sudo 1.9.10 or newer; visudo will reject this rule on older releases.
Validate the file before relying on it:
sudo chmod 0440 /etc/sudoers.d/dome-power
sudo visudo -cf /etc/sudoers.d/dome-power
sudo -n /usr/bin/framework_tool --charge-limitThen reload the shell if the widget was already running:
omarchy restart shellThe widget accepts these optional values in its shell.json bar entry:
{
"id": "dome.power",
"chargeLimitStep": 10,
"defaultChargeLimit": 80
}defaultChargeLimit: normal charge ceiling; clamped to 40–100. Default:80.chargeLimitStep: amount changed by the minus and plus buttons. Default:10.showPercentage: show the battery percentage in the bar button. Default:false.
Omarchy manages the temporary chargeToFull setting when Boost is toggled. It should not normally be edited by hand.
Boost sets the Framework charge limit to 100% and records that Boost is active. The widget watches UPower.displayDevice; when UPower reports FullyCharged, or reports 100% while connected to AC, it restores defaultChargeLimit and clears the persisted Boost state.
Automatic disarming depends on UPower reporting one of those full conditions. If a machine remains at 99% and UPower continues to report Charging, Boost remains active until it is toggled off manually.
omarchy plugin remove dome.power
sudo rm /etc/sudoers.d/dome-powerRemoving the plugin does not change the charge limit already stored by the Framework embedded controller. Set the desired limit before removal if necessary:
sudo /usr/bin/framework_tool --charge-limit 80Validate a checkout with:
omarchy plugin validate .User plugin files hot-reload when edited under ~/.config/omarchy/plugins/. If discovery becomes stale, run:
omarchy-shell shell rescanPlugins