repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Finish Ironbar interaction polish

e85f185b864e2b6c1b6ac17747fc75a57e951267

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

ironbar/PLAN.md

Modified
587 587 - Added `ironbar/scripts/workspace-label.lua` for active/occupied/empty Nugu-colored labels.
588 588 - Replaced polling workspace label script with `ironbar/scripts/workspaces-watch.py`.
589 589 - Watcher listens to Hypr socket2 and writes Ironbar vars (`#ws1`, `#ws2`, ...), making highlight update immediately on switch.
590 +- Watcher uses direct Hypr Unix socket IPC for state reads and only writes changed Ironbar vars.
590 591 - Added `hypr/systemd/ironbar-workspaces.service`, symlink manifest entry, and service enable recipe.
591 592 - Removed old polling `ironbar/scripts/workspace-label.lua`.
592 593 - Removed unused builtin `.workspaces` CSS.
642 643 Interaction polish:
644 645 - All hover states use the same semantic accent background + on-focus foreground.
645 -- Power button checked/focus state is explicitly neutral so clicking elsewhere clears visible highlight.
646 -- Clipboard + notifications grouped as left/center utility/status instead of app launchers.
646 +- Generic `:checked` styling was removed; persistent state is explicit per widget.
647 +- Power and volume checked/focus states are explicitly neutral so clicking elsewhere clears visible highlight.
648 +- Clipboard grouped with left utilities; notifications grouped with right status.
647 649 - Bar edge padding increased so power does not sit flush against the display edge.
650 +- Region/group spacing added between workspace/utility and right-side connectivity/metrics/inhibit groups.
651 +- Active workspace pill widened to make instant highlight easier to see.
652 +- WiFi polling relaxed to 30s because connected state is icon-only and detail action opens `impala`.
648 653 - Destructive power actions were not clicked during validation.
650 655 ## Open decisions

ironbar/config.json

Modified
101 101 "class": "wifi",
102 102 "cmd": "~/.config/ironbar/scripts/wifi-status.sh",
103 103 "mode": "poll",
104 - "interval": 5000,
104 + "interval": 30000,
105 105 "on_click_left": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"impala\")'",
106 106 "on_click_middle": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"impala\")'",
107 107 "tooltip": "WiFi: left/middle opens impala"

ironbar/scripts/workspaces-watch.py

Modified
74 74 def markup(ws_id: str, icon: str, active: str, occupied: set[str], colors: dict[str, str]) -> str:
75 75 if ws_id == active:
76 - return '<span foreground="{}" background="{}" font_weight="bold"> {} </span>'.format(
76 + return '<span foreground="{}" background="{}" font_weight="bold"> {} </span>'.format(
77 77 colors["on-focus"],
78 78 colors["focus"],
79 79 icon,
111 111 sock.connect(event_socket_path())
112 112 pending = b""
113 113 while True:
114 - ready, _, _ = select.select([sock], [], [], 5)
114 + ready, _, _ = select.select([sock], [], [], 10)
115 115 if not ready:
116 116 update()
117 117 continue

ironbar/style.css

Modified
25 25 #bar {
26 26 background-color: var(--bg);
27 - padding: 0 16px;
27 + padding: 0 20px;
28 28 border-bottom: 2px solid var(--accent);
41 41 background: transparent;
44 -button:hover, button:active, button:checked {
44 +button:hover, button:active {
45 45 background: var(--accent);
46 46 color: var(--on-focus);
49 49 .nugu-workspaces {
50 - margin-right: 6px;
50 + margin-left: 4px;
51 + margin-right: 10px;
53 54 .nugu-workspaces .workspace-item {
288 289 .inhibit {
289 - margin: 0 7px;
290 + margin: 0 7px 0 12px;
290 291 color: var(--muted);
356 357 color: var(--on-focus);
360 +.clipboard {
361 + margin: 0 10px 0 12px;
359 364 .popup-clipboard {
360 365 padding: 8px;
377 382 .mako-status {
378 - margin: 0 7px;
383 + margin: 0 7px 0 12px;
379 384 color: var(--fg);
382 -.mako-status:hover {
383 - color: var(--accent);
386 387 .wifi {
387 388 margin: 0 7px;
388 389 color: var(--fg);
408 409 .tray {
409 - margin: 0 7px;
410 + margin: 0 7px 0 12px;
412 413 .tray popover contents {
416 417 .power-menu {
417 - margin-left: 7px;
418 + margin-left: 12px;
420 421 .power-menu button,
487 488 .sysinfo {
488 - margin: 0 7px;
489 + margin: 0 7px 0 16px;
491 492 .sysinfo > .item + .item {
492 493 margin-left: 8px;
496 +.mako-status:hover,
497 +.wifi:hover,
498 +.bluetooth:hover,
499 +.tray:hover,
500 +.sysinfo:hover,
501 +.volume:hover,
502 +.brightness:hover,
503 +.battery:hover,
504 +.inhibit:hover,
505 +.clock:hover {
506 + background: var(--accent);
507 + color: var(--on-focus);
508 + border-radius: var(--radius);
511 +.mako-status:hover label,
512 +.wifi:hover label,
513 +.bluetooth:hover label,
514 +.tray:hover label,
515 +.sysinfo:hover label,
516 +.volume:hover label,
517 +.brightness:hover label,
518 +.battery:hover label,
519 +.inhibit:hover label,
520 +.clock:hover label {
521 + color: var(--on-focus);
524 +.clipboard:checked,
525 +.clipboard:focus,
526 +.mako-status:checked,
527 +.mako-status:focus,
528 +.wifi:checked,
529 +.wifi:focus,
530 +.bluetooth:checked,
531 +.bluetooth:focus,
532 +.tray:checked,
533 +.tray:focus,
534 +.sysinfo:checked,
535 +.sysinfo:focus,
536 +.volume:checked,
537 +.volume:focus,
538 +.volume button:checked,
539 +.volume button:focus,
540 +.brightness:checked,
541 +.brightness:focus,
542 +.battery:checked,
543 +.battery:focus,
544 +.clock:checked,
545 +.clock:focus {
546 + background: transparent;
547 + color: var(--fg);
495 550 .popup {
496 551 padding: 8px;