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)
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
Modified102 102 "cmd":
"~/.config/ironbar/scripts/wifi-status.sh",
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"],
111 111 sock.connect(event_socket_path())
114 - ready, _, _
= select.select([sock], [], [],
5)
114 + ready, _, _
= select.select([sock], [], [],
10)
ironbar/style.css
Modified 26 26 background-color:
var(
--bg);
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);
53 54 .nugu-workspaces .workspace-item {
290 + margin:
0 7px 0 12px;
290 291 color:
var(
--muted);
356 357 color:
var(--
on-focus);
361 + margin:
0 10px 0 12px;
359 364 .popup-clipboard {
383 + margin:
0 7px 0 12px;
379 384 color:
var(
--fg);
382 -.mako-status:hover {
383 - color:
var(
--accent);
388 389 color:
var(
--fg);
410 + margin:
0 7px 0 12px;
412 413 .tray popover contents {
420 421 .power-menu
button,
489 + margin:
0 7px 0 16px;
491 492 .sysinfo > .item + .item {
492 493 margin-left:
8px;
506 + background:
var(
--accent);
507 + color:
var(
--on-focus);
508 + border-radius:
var(
--radius);
511 +.mako-status:hover
label,
513 +.bluetooth: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);
526 +.mako-status:checked,
538 +.volume
button:checked,
539 +.volume
button:focus,
540 +.brightness:checked,
546 + background:
transparent;