feat(rofi): battery charge-limit toggle in the System menu
All checks were successful
Check / eval (push) Successful in 2m54s
All checks were successful
Check / eval (push) Successful in 2m54s
Add a `batterylimit` nomarchy-menu subcommand — a preset picker (80/90/60/Off/Custom…) that writes settings.power.batteryChargeLimit via theme-sync (--no-switch; lands on the next sys-rebuild, power.nix's oneshot applies it). Surfaced as a first-class System row, self-gated on the charge_control_end_threshold sysfs node like Power profile. Moved out of the gum control-center (removed its Battery Limit case + choose entry) so the toggle lives in one place — the rofi menu Bernardo actually uses, per his request. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -34,13 +34,11 @@ Hyprland bind's modmask/keysym against the *actual* layout, whether rofi
|
||||
2.0.0 changed anything, and that the cheatsheet path still resolves.
|
||||
|
||||
|
||||
### 36. Battery / power quick menu
|
||||
(Raised by Bernardo, 2026-07-07 — items "battery toggle in a rofi
|
||||
submenu" + item 6.) Two slices:
|
||||
- (a) **Move the charge-threshold toggle into the rofi System submenu.**
|
||||
Iteration #55 put it in the gum control-center; Bernardo wants it as a
|
||||
first-class row in `nomarchy-menu` › System (self-gated on the
|
||||
`charge_control_end_threshold` sysfs node), reusing the preset picker.
|
||||
### 36. Battery / power quick menu `[human]`
|
||||
(Raised by Bernardo, 2026-07-07 — item 6.) Slice (a) — the charge-threshold
|
||||
toggle in the rofi System submenu — shipped 2026-07-07 (iteration #64;
|
||||
`nomarchy-menu batterylimit`, self-gated on the sysfs node, and MOVED out
|
||||
of the gum control-center). Remaining:
|
||||
- (b) `[human]` **Battery-icon click → a dedicated power menu** offering
|
||||
charge threshold + power profile (and switching backend to TLP when
|
||||
relevant). Bernardo will provide a mockup ("when it's time") — hold
|
||||
|
||||
@@ -236,6 +236,13 @@ QA machine), the **T14s** (webcam case).
|
||||
unchanged (the bar still reserves its space). Accepted trade-off
|
||||
of `layer: bottom`: a floating window dragged over the top strip
|
||||
can now overlap the bar — confirm that's the only regression.
|
||||
- [ ] **Battery limit in rofi System** (iteration #64, item 36a) — after
|
||||
`home-update`: menu › System shows a "Battery limit" row (this laptop
|
||||
exposes the threshold node); picking a preset (80/90/60/Off/Custom)
|
||||
writes it (`nomarchy-theme-sync get settings.power.batteryChargeLimit`
|
||||
reflects the pick) and after a `sys-rebuild` the sysfs
|
||||
`charge_control_end_threshold` matches. The gum control-center no
|
||||
longer lists Battery Limit (moved, not duplicated).
|
||||
- [ ] **Config dialogs float** (iteration #63, item 41 cut) — after
|
||||
`home-update` + relogin: open Bluetooth (blueman-manager) and, if
|
||||
printing is on, System ▸ Printers (system-config-printer) — each
|
||||
|
||||
@@ -17,6 +17,23 @@ Template:
|
||||
|
||||
---
|
||||
|
||||
## 2026-07-07 — Battery-limit toggle in rofi System (iteration #64, item 36a)
|
||||
- **Task:** BACKLOG item 36(a) — Bernardo wanted the charge-threshold
|
||||
toggle as a first-class row in `nomarchy-menu › System`, not buried in
|
||||
the gum control-center where #55 put it.
|
||||
- **Fix:** `rofi.nix` — new `batterylimit` subcommand: a preset picker
|
||||
(80%/90%/60%/Off/Custom…) with battery-0XX icons, writing the baked
|
||||
`settings.power.batteryChargeLimit` via theme-sync `--no-switch` (lands
|
||||
on next sys-rebuild; power.nix's oneshot applies it). Added a System row
|
||||
self-gated on the `charge_control_end_threshold` sysfs node (like Power
|
||||
profile), dispatch, and usage string. **Moved** — removed the duplicate
|
||||
"Battery Limit" case + choose entry from `nomarchy-control-center.sh` so
|
||||
it lives in one place.
|
||||
- **Verified:** V0 green. V1: control-center builds clean (shellcheck),
|
||||
home activation builds clean (writeShellScriptBin's `bash -n` on the
|
||||
menu passed); grepped the built script to confirm the row/dispatch/case/
|
||||
guard are all present. Live menu interaction is a V3 check (queued).
|
||||
|
||||
## 2026-07-07 — Floating-window audit, conservative cut (iteration #63, item 41)
|
||||
- **Task:** BACKLOG item 41 — Bernardo: "take a conservative approach."
|
||||
Broaden the windowrule float set beyond the mixer.
|
||||
|
||||
Reference in New Issue
Block a user