7 Commits

Author SHA1 Message Date
nico
7b1a7794f0 Round GPU temperature to an integer in stats.sh
A recent nvidia driver update (620.70.06) made nvidia-smi's
temperature.gpu query return a float (e.g. 59.91) instead of an
integer, which showed up unrounded in the bar's GPU pill.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-11-15 00:48:48 +01:00
nico
a511d29e1f Fix mouse widget's active DPI stage display getting stuck
openrazer's own dpi_stages active-index only updates when a stage is
cycled via the mouse's physical button, not when set-dpi-stage sets
d.dpi directly - so it went stale and no longer matched the real
current DPI, highlighting the wrong stage regardless of what was
actually applied. Derive the active stage from the current DPI value
instead of trusting that index.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-10-15 22:26:56 +02:00
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
nico
3b4e649dc8 Add mouse battery pill, disable pointer acceleration
Setting up OpenRazer (for the battery read) reset the mouse's DPI to
its 1800 default, exposing that input.accel_profile was never set -
Hyprland/libinput default to an adaptive (accelerated) curve, which
became noticeable once the DPI changed. accel_profile = "flat" for a
linear 1:1 response, which is what was expected all along.

New mouse battery pill in the bar (between network and clock), via
scripts/mouse_battery.py querying openrazer - hidden entirely if no
Razer device is found, so it's a no-op for anyone without one.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-10-03 16:13:47 +02:00
nico
4b8892cf90 Stats pills: GPU usage/temp toggle, per-mount disk details, live network throughput
- GPU pill now toggles usage/temperature like CPU, icon stays fixed either way
- Disk pill cycles through every real mounted filesystem (root first); its
  tooltip lists all of them with device name, used/free space and live R/W
  speed sampled from /proc/diskstats
- Every stats tooltip (CPU/RAM/disk/GPU/volume/network) has a heading
- Network tooltip shows the network device and live up/download throughput
  in decimal bit units (Kbit/Mbit/Gbit/s), sampled every second independently
  of the slower nmcli connection/SSID lookup

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-09-27 23:01:00 +02:00
nico
85fee48d10 Add notification panel with unread badge, drop window switcher button
Bell button (left of the workspaces, left of the clock in taskbar mode) opens
a full-height right-edge panel of mako notifications; clicking one marks it
read via scripts/notifs.py. Window switcher stays on Mod+Shift+A.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-09-26 01:34:52 +02:00
nico
e6fc044b79 Replace Waybar entirely with a single native Quickshell bar
Waybar is fully retired: logo, workspaces, active window title, tray,
CPU/RAM/disk/GPU stats, volume, network, clock, and power all now live
in one Bar.qml per monitor, laid out with real QML layouts instead of
absolutely-positioned overlays guessing at Waybar's box model. This
removes the whole class of collision/spacing bugs that came from two
independent renderers (Waybar + Quickshell) trying to line up dynamic
content (tray icon count, GPU/volume digit width) without either side
knowing the other's actual position.

Popups (power menu, calendar, tooltips) now anchor to their trigger
button's live position within the shared row layout rather than
hardcoded margins, so they stay correctly placed regardless of content
width changes.

Workspace/title logic uses the Quickshell.Hyprland module directly
(IPC-driven, per-monitor active workspace and toplevel), replacing
hyprland/workspaces and hyprland/window. Volume uses wpctl. GPU/CPU/RAM/
disk stats reuse the existing stats.sh script, extended with per-core
usage and nvidia-smi output. System tray uses Quickshell's SystemTray
service (StatusNotifierItem) with left-click activate / right-click menu.

hyprland.conf no longer needs the exec-once wait-for-waybar wrapper
since there's only one bar renderer now.
2026-07-28 20:29:18 +02:00