Commit Graph

4 Commits

Author SHA1 Message Date
nico
26a2fb8935 Speed up widget updates: tray background pill + instant volume changes
Tray icons now sit in a background pill matching the other stat
pills. Volume no longer waits on a 3s poll - a pactl subscribe
watcher triggers an immediate refresh on change, with a slower
poll left as a fallback. Stats refresh interval reduced 2s -> 1s.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-07-28 22:53:41 +02:00
nico
e5c1705e3f Fix tray context menus (Quit etc.) not appearing
QApplication mode is required for native PlatformMenuEntry popups;
also fix right-click coordinates being passed relative to the tray
icon instead of the bar window.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94
2026-07-28 22:43:24 +02:00
nico
c8b368b474 Add window switcher dropdown to the bar
New button between the workspace pills and window title opens a
dropdown listing all open windows (workspace + title), click to
focus. Also bindable via Mod+Shift+A (previously unused), dispatched
through a Quickshell IPC handler so the keybind works regardless of
which monitor currently has focus.
2026-07-28 20:50:41 +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