1 Commits

Author SHA1 Message Date
nico
4547c27aa7 Move mouse widget standalone, add RGB control widget, align peripherals
The mouse battery pill lived in Bar.qml, duplicated per-screen (it
renders once per monitor) and invisible whenever taskbar mode hid the
stats row entirely. Pulled into its own MouseWidget.qml, same
standalone pattern as the theme widget - single instance, click opens
DPI/poll-rate/idle-time/low-battery-threshold controls. mouse_battery.py
folded into the new mouse.py (adds set-dpi-stage/set-poll-rate/
set-idle-time/set-low-battery-threshold on top of the old status-only
script).

New RGBWidget.qml + scripts/rgb.py: per-device mode/color/speed/
brightness for RAM/GPU/mainboard RGB via OpenRGB's SDK server
(autostarted headless in hyprland.lua), plus a one-click "sync all to
accent". Both RAM sticks are grouped into one card/one set of controls
since they're the same model - rgb.py's commands take a comma-separated
device-id list for exactly this. Found and worked around two real
issues along the way: this server build mishandles openrgb-python's
default protocol version (pinned to 3 instead), and set_color() doesn't
reliably force Direct mode first on its own - a device left on a
cycling effect can keep animating right through a color-set call
despite it reporting success, worst on the GPU's own i2c adapter.
Mitigated with an explicit mode switch + verify-and-retry.

Also: hyprland.lua was missing accel_profile entirely, so libinput's
default adaptive curve was always active - flat now, for the 1:1
response a gaming mouse is normally run with (found while chasing an
unrelated OpenRazer DPI reset making it suddenly noticeable).

Widget layout: all three corner widgets now align on a shared row
height instead of each guessing the previous one's width.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-10-04 02:12:09 +02:00