No battery on desktops; audio block controls only the default output #24
Loading…
Reference in a new issue
No description provided.
Delete branch "rail-battery-volume"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two shell fixes. The audio fix is two commits: the trim, then the volume moving onto the closed block.
No battery on a machine without one.
Sensors.hasBatterynow needs UPower to report a present laptop battery (isLaptopBattery && isPresent), decided at runtime, so one build is right on a laptop and a desktop. Without one, the rail's battery gauge is absent, and home'spowerblock reads the active power profile under a lightning glyph instead of "no battery". Power profiles and stay awake are unchanged. Lock and greeter already gate onhasBattery. The NixOS module now setsservices.upower.enable = mkDefault true: a laptop without UPower would otherwise lose its gauge. Charge and time left are still read from sysfs.Audio: one key from home. The audio block's header is the volume level. With the cursor on the closed block, h/l, ←/→ and the wheel move it, and a click on the meter sets it. That is the rule level rows already follow, so changing the volume no longer means opening the block first. Enter opens it onto mute and, only with more than one output, a single
outputrow that steps the default sink to the next device. The per-output and per-input choice rows and the mic level and mute are gone (mic mute stays on the command page). BLOCKS.me.md has a new section, "A block that is a level", for the one exception to the shared keys:ladjusts this block instead of opening it.Tested in a nested
fjordxy-devsession, with origin/fix-dev-config cherry-picked locally only (not in this branch):power balancedon home.laptopBatteryforced true temporarily. The gauge andbattery 59% on battery / 6h 45m remainingcome back.lraised the sink to 45% andhlowered it to 40% (checked withwpctl) without opening the block. Enter opened it with the cursor on mute, andkreached the header. Theoutputrow was checked with its sink-count test temporarily relaxed, because the dev machine has one output. The wheel and click paths were not exercised.Note: on a machine already running fjordxy without UPower, the battery disappears until it is rebuilt with this module.
🤖 Generated with Claude Code