dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Threads Compare Notes Search Review guide CI runs Ironbar rework plan
Goal: rebuild the bar incrementally, one widget/behavior at a time, with Nugu colors, consistent clicks, and verification after each step.
Workflow rule:
Propose exact minimal change.
Experiment safely when behavior is unknown.
Apply focused changes.
Verify live with config validation, service state, logs, screenshots, and interaction tests.
Remove superfluous widgets/CSS/scripts.
Originally: stop after each step for discussion.
Current standing goal: continue autonomously to completion while preserving brutal verification.
Order rule: start with Bluetooth as requested, then proceed roughly easiest → hardest.
Current status
Done/live:
Bluetooth stack installed/running: bluez, bluez-utils, bluetooth.service active.
bluetui installed and preferred as Bluetooth manager.
Ironbar Bluetooth widget is status-only; builtin popup disabled because GTK switch popup looked bad.
Bluetooth left/middle click opens bluetui through shared Hypr Lua TUI launcher.
Ironbar icon theme switched to installed Adwaita.
Ironbar popup_autohide = true globally.
WezTerm mux service added under wezterm/systemd/wezterm-mux-server.service, enabled and active.
WezTerm config attaches GUI to Unix mux (connect unix) and status shows MUX for mux domain.
Hypr SUPER+Enter opens wezterm connect unix.
Hypr TUI app binds:
SUPER+E → yazi
SUPER+N → impala
SUPER+U → bluetui
TUI launcher activates the newly spawned WezTerm pane/tab.
XWayland disabled; obsolete XWayland drag workaround removed.
Mouse accel switched to adaptive; natural scroll enabled.
Known unresolved:
No hard blocker.
Physical wheel/trackpad scroll over the volume module remains unverified because wdotool scroll does not trigger Ironbar layer-shell scroll events here.
Existing visible WezTerm local-domain sessions may need manual migration/closure; no seamless transfer to mux known.
Current live audit
Repo clean, ahead of origin; Ironbar commits are local.
Running services verified active: ironbar.service, ironbar-workspaces.service, mako.service, hyprpaper.service, pipewire-pulse.socket, system upower.service, system bluetooth.service.
Resource usage after settling: ironbar about 1.3% CPU / 77M RSS; workspaces-watch.py 0.0% CPU / 15M RSS.
Regions use Ironbar start / center / end boxes:
start: custom workspace switcher, clipboard, bindmode
center: music, clock
end: Mako status, WiFi, Bluetooth, tray, CPU, volume, brightness, battery, inhibit, power
Polling/wakeups:
Mako status script: 5000ms, shell + makoctl list | grep
WiFi status script: 30000ms, shell + iwctl station wlan0 show
sys_info CPU: interval 2
workspace state: Hypr socket2 event watcher, 10s idle refresh, no label polling
Scroll handlers:
volume: wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+ / wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-, smooth_scroll_speed = 1.0
brightness: builtin systemd backlight backend, smooth_scroll_speed = 0.5
Hardcoded color grep reports only generated ironbar/nugu.css; style.css uses semantic Nugu vars.
Known broken/unproven widget behavior: physical volume scroll only. Slider drag and the configured scroll commands are verified.
Checked facts
Installed Ironbar: 0.19.0.
ironbar --print-schema exposes needed modules:
battery, bindmode, bluetooth, brightness, clipboard, clock, custom, focused, inhibit, launcher, music, notifications, script, sys_info, tray, volume, workspaces.
WiFi stack: iwd + systemd-networkd.
iwd.service: active.
NetworkManager: not installed.
Ironbar network_manager module is wrong unless we intentionally switch network stacks.
Notifications: Mako currently.
Ironbar notifications module requires SwayNC.
SwayNC would replace/compete with Mako, so defer.
hyprshutdown installed; keybind uses --dry-run.
Music config must use player_type = "mpris", not playerctl.
Builtin Ironbar workspaces dispatch legacy Hypr syntax; custom switcher is used for Lua-dispatcher compatibility.
Workspace highlighting is event-driven via Hypr socket2 + Ironbar vars; no polling labels.
Upstream feature note
From Ironbar compiling wiki/features:
Default build enables all features.
Custom builds can disable defaults and enable selected features.
Must enable at least one config feature.
If custom-building for this setup:
cli,config+json,workspaces+hyprland,focused,launcher,music+mpris,sys_info,script,custom,tray,volume,battery,bluetooth,brightness,bindmode,inhibit,clipboard,clock,notifications
Notes:
cli implies ipc.
network_manager omitted while using iwd.
notifications only useful if switching to SwayNC.
Preferences / launch policy
Work one thing at a time: propose → experiment → change → verify.
Prefer awesome fast TUIs when they exist (bluetui, impala, btm, wiremix, yazi, etc.).
Prefer mux-backed WezTerm tabs for TUI apps over standalone terminal windows.
Prefer implementation logic in Lua over shell snippets; shell command strings are acceptable only at process boundary.
Prefer require(...) modules over dofile(...) in normal config and shared helpers.
Shared TUI launch logic lives in Hypr Lua: hypr/scripts/tui_tab.lua.
Hypr binds call it via require("scripts.tui_tab"); Ironbar actions bridge through hyprctl eval 'require("scripts.tui_tab").spawn(...)' so both use the same implementation.
TUI launcher should spawn into WezTerm mux and activate the new pane/tab.
Keep app-specific service/config files in app dirs when possible, e.g. WezTerm systemd unit under wezterm/systemd/.
Avoid fighting ugly GTK popups when a better TUI exists; use Ironbar as status/launcher if builtin popup is poor.
Package/dependency report
Already installed:
ironbar
hyprshutdown
playerctl
iwd
brightnessctl
bluez
bluez-utils
bluetui
impala
wezterm-nightly-bin
upower
pipewire-pulse
No longer planned:
sudo pacman -S pavucontrol swaync networkmanager
Reasons:
wiremix replaces pavucontrol for audio.
Mako stays; SwayNC would replace/compete with it.
WiFi stack stays iwd + systemd-networkd; no NetworkManager.
Optional only if requested later:
sudo pacman -S resources
Avoid unless intentionally switching network stack:
sudo pacman -S networkmanager
Verification loop for every step
Edit only one widget/behavior.
Validate:
ironbar --validate-config -c ~/.config/ironbar/config.json -t ~/.config/ironbar/style.css
Restart:
systemctl --user restart ironbar.service
Inspect:
systemctl --user status ironbar.service --no-pager
journalctl --user -u ironbar.service -n 80 --no-pager
Screenshot / visual check.
Discuss before next step.
Click convention
Left: popup or primary action.
Right: toggle/mute/secondary action.
Middle: open full external tool/TUI.
Scroll: adjust continuous value.
Tooltip: document behavior.
WezTerm mux policy
WezTerm GUI should attach to Unix mux by default:
cfg.unix_domains = { { name = "unix", no_serve_automatically = true } }
cfg.default_gui_startup_args = { "connect", "unix" }
Mux server is systemd-managed:
wezterm/systemd/wezterm-mux-server.service
WezTerm status should make mux visible:
domain unix renders as MUX.
Hypr terminal bind should explicitly use mux:
TUI app launcher should:
spawn into mux with wezterm cli --prefer-mux spawn -- ...
capture pane id in Lua
activate pane with wezterm cli --prefer-mux activate-pane --pane-id ...
Existing non-mux GUI sessions cannot be seamlessly transferred into mux; recreate/close manually.
Nugu styling rules
Generated colors stay in ironbar/nugu.css.
Layout/behavior stay in ironbar/config.json + ironbar/style.css.
Use vars:
normal fg: --fg
muted/empty: --muted / --unfocus
active bg: --focus, fg --on-focus
hover/accent bg: --accent, fg --on-focus
error: --error
Ordered implementation steps
Step 1 — Bluetooth — done
Why first: explicit request.
Implemented:
bluez + bluez-utils installed by user; bluetooth.service active.
bluetui installed and preferred.
Ironbar builtin bluetooth module used only for bar status.
Builtin Bluetooth popup disabled; GTK switch popup looked bad even after CSS work.
Left/middle click opens bluetui through shared Hypr Lua TUI launcher:
hyprctl eval 'require("scripts.tui_tab").spawn("bluetui")'
Bar label uses fixed semantic Bluetooth battery icon, not dynamic percentage icon:
{device_battery_percent}%
icon_theme switched from missing Papirus to installed Adwaita; broken device image fixed.
Verified:
Ironbar config validates.
Ironbar restarts and stays active.
Popup autohide works globally.
Bluetooth status visible; clicks open bluetui.
Follow-up if wanted:
Tune bar label length/format.
Add notification if Bluetooth disconnected/low battery.
Step 2 — baseline validation + obvious fixes
Difficulty: very easy.
Scope:
Fix music player_type: playerctl → mpris.
Add name/class only where needed for CSS targeting.
No layout rework.
Verify:
Config validates.
Ironbar starts cleanly.
Step 3 — tray
Difficulty: very easy.
Goal:
Keep tray widget.
Improve popover padding/colors if needed.
Verify:
Existing tray icons render.
Menus/popovers readable.
Step 4 — clock/calendar colors
Difficulty: easy.
Goal:
Fix hard-to-read calendar popup.
Scope:
CSS only.
Explicit GTK calendar selectors:
.popup-clock calendar
.popup-clock calendar header
.popup-clock calendar grid label.day-name
.popup-clock calendar grid label.day-number
.popup-clock calendar grid label.other-month
.popup-clock calendar grid label.today
.popup-clock calendar grid label:selected
Verify:
Popup readable in dark + light.
Today/current/other-month/day-name colors use Nugu vars.
Step 5 — clipboard
Difficulty: easy.
Goal:
Keep clipboard widget and make behavior explicit.
Proposed behavior:
Left: popup/list.
Middle: optional external launcher later.
Right: do not clear history unless confirmed.
Verify:
Popup readable.
Selection/paste still works.
Step 6 — volume — done
Goal:
Make volume behavior consistent.
Implemented:
Builtin volume module.
Scroll adjusts PipeWire output volume.
Right click mutes output.
Middle click opens wiremix through shared Hypr Lua TUI launcher.
Sources hidden on bar to reduce clutter.
Verified:
pipewire-pulse.socket active.
Ironbar logs show volume client connected, no PAErr(-1).
wiremix spawned into WezTerm mux tab and activated.
Popup/device picker colors fixed for dark+light Nugu.
Slider drag verified with wdotool: volume changed from 55% to 7%, then restored to 55% and unmuted.
Scroll actions are configured as oneshot scripts and smooth_scroll_speed = 1.0 is explicit for wheel/trackpad input.
The exact scroll commands were executed manually: 55% → 57% → 55%.
wdotool scroll does not trigger Ironbar layer-shell scroll events in this live setup, so physical scroll remains the remaining manual check.
Step 7 — battery — done
Difficulty: easy.
Goal:
Add/keep robust battery widget.
Implementation:
Builtin battery module.
Show icon + percent.
Style low/critical/charging states using Nugu semantic colors.
Verified:
Hidden on machines without BAT* via show_if.
Shows X230 battery percentage.
upower active.
Warning/critical states styled with Nugu semantic colors.
Step 8 — brightness — done
Difficulty: easy-medium.
Goal:
Implementation:
Builtin brightness module.
Use systemd/backlight backend.
Implemented:
Builtin brightness module with systemd/intel_backlight backend.
Scroll adjusts brightness through Ironbar backend.
Rejected custom brightnessctl script experiment because direct set failed without permission.
Verified:
Detects intel_backlight.
Brightness visible/readable in screenshots.
No config/service errors.
Step 9 — bindmode
Difficulty: easy-medium.
Goal:
Show Hyprland submap/bindmode only when active.
Implementation:
Verify:
Hidden during normal use.
Appears/disappears correctly if a Hypr submap is active.
Step 10 — inhibit — done
Difficulty: medium.
Goal:
Add sleep/lock inhibition toggle.
Implementation:
Proposed behavior:
Left: toggle selected duration.
Right: cycle duration.
Format off/on clearly.
Verified:
Toggle visible/readable.
Duration visible in screenshot.
No Ironbar errors.
Step 11 — cute cat widget — skipped/removed
Reason:
Cute but superfluous under the current goal.
Removed after screenshot showed the right/center area was already dense.
Verified:
Bar validates/restarts without it.
Center media has more room.
Step 12 — media/player controls — done
Difficulty: medium.
Goal:
Make media useful and compact.
Implementation:
Builtin music module with MPRIS.
Format: status icon + truncated title/artist.
Popup: album art + controls.
Implemented:
Builtin music module with MPRIS.
Compact title/artist format with truncation.
No extra scroll action; avoid accidental media changes.
Verified:
Firefox/MPRIS player detected.
Title visible and compact at 1366px.
Popup styled by Nugu CSS.
Step 13 — system monitors
Difficulty: medium.
Goal:
Add compact system monitor row.
Implementation:
Candidate labels:
CPU percent.
RAM percent.
Temperature.
Disk root percent.
Network up/down.
Implemented:
Compact CPU label via builtin sys_info.
Left/middle opens btm through shared Hypr Lua TUI launcher.
Useful install:
sudo pacman -S bottom
Optional GUI:
sudo pacman -S resources
Verify:
Values update at sane intervals.
Compact enough for 1366px.
No excessive CPU wakeups.
Step 14 — power menu
Difficulty: medium-hard.
Goal:
Polish power menu using installed hyprshutdown.
Implementation:
Candidate buttons:
poweroff: hyprshutdown --post-cmd "systemctl poweroff"
reboot: hyprshutdown --post-cmd "systemctl reboot"
logout: hyprshutdown
suspend: loginctl lock-session && systemctl suspend
lock: hyprlock
Popup order puts destructive actions far left and safe lock nearest the right-side opener, avoiding accidental shutdown/reboot from a second click at the trigger position.
Verify:
Popup opens.
Lock/suspend/logout work.
Do not test reboot/poweroff without explicit confirmation.
Step 15 — notifications — done
Decision:
Keep Mako.
Do not install SwayNC; it would replace/compete with Mako.
Ironbar builtin notifications module remains unused.
Implemented:
Custom Mako indicator script:
empty:
active notifications: N
Left click: makoctl restore.
Right click: makoctl dismiss --all.
Verified:
Mako service active.
Count visible/readable in screenshots.
Dismissing all notifications via Mako works.
No SwayNC dependency.
Step 16 — WiFi / network — done
Decision:
Keep iwd + systemd-networkd.
Do not install/use NetworkManager.
Implemented:
Custom script module reads iwctl station wlan0 show.
Connected state is icon-only to reduce clutter.
Disconnected state shows off.
Left/middle click opens impala through shared Hypr Lua TUI launcher.
Verified:
iwd.service active.
networkctl status wlan0 routable/online.
WiFi icon visible/readable.
No NetworkManager dependency.
Step 17 — workspaces — done
Goal:
Show fixed workspace favorites.
Logical order:
1 web
2 code
3 term
4 chat
5 media
9 misc
Empty favorites remain visible.
Active/occupied/empty states readable.
Click focuses correct workspace.
Problem found:
Builtin Ironbar workspaces sends legacy hyprctl dispatch workspace N.
Hyprland Lua dispatcher rejects that syntax:
error: [string "return hl.dispatch(workspace 1)"]:1: ')' expected near '1'
Implemented:
Migrated Hypr workspace rules/binds/window rules to numeric IDs.
Replaced builtin Ironbar workspaces with a custom workspace switcher.
Each button uses Lua dispatcher syntax:
hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = "N" }))'
Replaced old polling ironbar/scripts/workspace-label.lua with ironbar/scripts/workspaces-watch.py.
Watcher listens to Hypr socket2 and writes Ironbar vars (#ws1, #ws2, ...), making highlight update immediately on switch.
Watcher uses direct Hypr Unix socket IPC for state reads and only writes changed Ironbar vars.
Watcher caches the Hypr socket directory and Nugu CSS vars, avoiding repeated hyprctl instances subprocesses and repeated CSS file reads on every workspace event.
Added hypr/systemd/ironbar-workspaces.service, symlink manifest entry, and service enable recipe.
ironbar-workspaces.service is PartOf=ironbar.service so bar restarts immediately refresh workspace vars.
Removed unused builtin .workspaces CSS.
Removed launcher underline styling after screenshot showed it clashed with the active workspace/focused launcher pills.
Increased system-module spacing slightly; verified clock/power still fit on 1366px.
Removed unused .notifications CSS and normalized .sysinfo spacing.
Removed normal scratch workspace from the bar; special scratch remains on SUPER+S.
Verified:
Hypr reload ok; no config errors.
Existing named web/term windows moved to numeric 1/3.
All six icons visible; no tofu/question mark glyphs.
Empty workspace active-state update verified 0.2s after click.
Service active and low overhead: ironbar ~1.8% CPU shortly after restart, watcher ~0.2% CPU / 6.6M RSS on X230.
Clicks verified via wdotool:
workspace 1 focuses id=1
empty workspace 2 focuses id=2
workspace 3 focuses id=3
Ironbar logs contain no workspace dispatch errors after custom switcher.
Suggested final bar layout
Start:
workspaces
clipboard
bindmode
Removed:
focused window module; active app/title was redundant and made the left side noisy.
launcher module; colorful app/window icons broke the semantic Nugu bar aesthetic.
Center:
media/player
clock
End:
Mako indicator
WiFi icon
Bluetooth battery/status
tray
sys_info CPU
volume
brightness
battery
inhibit
power menu
Interaction polish:
All hover states use the same semantic accent background + on-focus foreground, including music and clipboard.
Generic :checked styling was removed; persistent state is explicit per widget.
Power and volume checked/focus states are explicitly neutral so clicking elsewhere clears visible highlight.
Clock popup time/month/year/arrows/days were screenshot-verified readable after GTK calendar selector fixes.
Clipboard grouped with left utilities; notifications grouped with right status.
Bar edge padding increased so power does not sit flush against the display edge.
Region/group spacing added between workspace/utility and right-side connectivity/metrics/inhibit groups.
Active workspace pill widened to make instant highlight easier to see.
WiFi polling relaxed to 30s because connected state is icon-only and detail action opens impala.
Ironbar systemd unit sets GSK_RENDERER=cairo; this removes GTK/Mesa Vulkan startup noise on X230 while staying around 1.5% CPU / 77M RSS after settling.
Destructive power actions were not clicked during validation.
Power popup visual test confirmed destructive off/reboot buttons sit away from the opener cursor side.
Open decisions
Media scroll: next/prev, volume, or none? Current: no scroll action.
Optional later: richer Mako popup/history UI. Current: compact count + restore/dismiss actions.
Markdown source File outline # Ironbar rework plan
Goal: rebuild the bar incrementally, one widget/behavior at a time, with Nugu colors, consistent clicks, and verification after each step.
Workflow rule:
1. Propose exact minimal change.
2. Experiment safely when behavior is unknown.
3. Apply focused changes.
4. Verify live with config validation, service state, logs, screenshots, and interaction tests.
5. Remove superfluous widgets/CSS/scripts.
Originally: stop after each step for discussion.
Current standing goal: continue autonomously to completion while preserving brutal verification.
Order rule: start with Bluetooth as requested, then proceed roughly easiest → hardest.
## Current status
Done/live:
- Bluetooth stack installed/running: `bluez`, `bluez-utils`, `bluetooth.service` active.
- `bluetui` installed and preferred as Bluetooth manager.
- Ironbar Bluetooth widget is status-only; builtin popup disabled because GTK switch popup looked bad.
- Bluetooth left/middle click opens `bluetui` through shared Hypr Lua TUI launcher.
- Ironbar icon theme switched to installed `Adwaita`.
- Ironbar `popup_autohide = true` globally.
- WezTerm mux service added under `wezterm/systemd/wezterm-mux-server.service`, enabled and active.
- WezTerm config attaches GUI to Unix mux (`connect unix`) and status shows `MUX` for mux domain.
- Hypr `SUPER+Enter` opens `wezterm connect unix`.
- Hypr TUI app binds:
- `SUPER+E` → `yazi`
- `SUPER+N` → `impala`
- `SUPER+U` → `bluetui`
- TUI launcher activates the newly spawned WezTerm pane/tab.
- XWayland disabled; obsolete XWayland drag workaround removed.
- Mouse accel switched to adaptive; natural scroll enabled.
Known unresolved:
- No hard blocker.
- Physical wheel/trackpad scroll over the volume module remains unverified because `wdotool scroll` does not trigger Ironbar layer-shell scroll events here.
- Existing visible WezTerm local-domain sessions may need manual migration/closure; no seamless transfer to mux known.
## Current live audit
- Repo clean, ahead of origin; Ironbar commits are local.
- Running services verified active: `ironbar.service`, `ironbar-workspaces.service`, `mako.service`, `hyprpaper.service`, `pipewire-pulse.socket`, system `upower.service`, system `bluetooth.service`.
- Resource usage after settling: `ironbar` about 1.3% CPU / 77M RSS; `workspaces-watch.py` 0.0% CPU / 15M RSS.
- Regions use Ironbar `start` / `center` / `end` boxes:
- start: custom workspace switcher, clipboard, bindmode
- center: music, clock
- end: Mako status, WiFi, Bluetooth, tray, CPU, volume, brightness, battery, inhibit, power
- Polling/wakeups:
- Mako status script: 5000ms, shell + `makoctl list | grep`
- WiFi status script: 30000ms, shell + `iwctl station wlan0 show`
- sys_info CPU: interval 2
- workspace state: Hypr socket2 event watcher, 10s idle refresh, no label polling
- Scroll handlers:
- volume: `wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+` / `wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-`, `smooth_scroll_speed = 1.0`
- brightness: builtin systemd backlight backend, `smooth_scroll_speed = 0.5`
- Hardcoded color grep reports only generated `ironbar/nugu.css`; `style.css` uses semantic Nugu vars.
- Known broken/unproven widget behavior: physical volume scroll only. Slider drag and the configured scroll commands are verified.
## Checked facts
- Installed Ironbar: `0.19.0`.
- `ironbar --print-schema` exposes needed modules:
- `battery`, `bindmode`, `bluetooth`, `brightness`, `clipboard`, `clock`, `custom`, `focused`, `inhibit`, `launcher`, `music`, `notifications`, `script`, `sys_info`, `tray`, `volume`, `workspaces`.
- WiFi stack: `iwd` + systemd-networkd.
- `iwd.service`: active.
- `NetworkManager`: not installed.
- Ironbar `network_manager` module is wrong unless we intentionally switch network stacks.
- Notifications: Mako currently.
- Ironbar `notifications` module requires SwayNC.
- SwayNC would replace/compete with Mako, so defer.
- `hyprshutdown` installed; keybind uses `--dry-run`.
- Music config must use `player_type = "mpris"`, not `playerctl`.
- Builtin Ironbar workspaces dispatch legacy Hypr syntax; custom switcher is used for Lua-dispatcher compatibility.
- Workspace highlighting is event-driven via Hypr socket2 + Ironbar vars; no polling labels.
## Upstream feature note
From Ironbar compiling wiki/features:
- Default build enables all features.
- Custom builds can disable defaults and enable selected features.
- Must enable at least one config feature.
- If custom-building for this setup:
```text
cli,config+json,workspaces+hyprland,focused,launcher,music+mpris,sys_info,script,custom,tray,volume,battery,bluetooth,brightness,bindmode,inhibit,clipboard,clock,notifications
```
Notes:
- `cli` implies `ipc`.
- `network_manager` omitted while using `iwd`.
- `notifications` only useful if switching to SwayNC.
## Preferences / launch policy
- Work one thing at a time: propose → experiment → change → verify.
- Prefer awesome fast TUIs when they exist (`bluetui`, `impala`, `btm`, `wiremix`, `yazi`, etc.).
- Prefer mux-backed WezTerm tabs for TUI apps over standalone terminal windows.
- Prefer implementation logic in Lua over shell snippets; shell command strings are acceptable only at process boundary.
- Prefer `require(...)` modules over `dofile(...)` in normal config and shared helpers.
- Shared TUI launch logic lives in Hypr Lua: `hypr/scripts/tui_tab.lua`.
- Hypr binds call it via `require("scripts.tui_tab")`; Ironbar actions bridge through `hyprctl eval 'require("scripts.tui_tab").spawn(...)'` so both use the same implementation.
- TUI launcher should spawn into WezTerm mux and activate the new pane/tab.
- Keep app-specific service/config files in app dirs when possible, e.g. WezTerm systemd unit under `wezterm/systemd/`.
- Avoid fighting ugly GTK popups when a better TUI exists; use Ironbar as status/launcher if builtin popup is poor.
## Package/dependency report
Already installed:
- `ironbar`
- `hyprshutdown`
- `playerctl`
- `iwd`
- `brightnessctl`
- `bluez`
- `bluez-utils`
- `bluetui`
- `impala`
- `wezterm-nightly-bin`
- `upower`
- `pipewire-pulse`
No longer planned:
```sh
sudo pacman -S pavucontrol swaync networkmanager
```
Reasons:
- `wiremix` replaces `pavucontrol` for audio.
- Mako stays; SwayNC would replace/compete with it.
- WiFi stack stays `iwd` + systemd-networkd; no NetworkManager.
Optional only if requested later:
```sh
sudo pacman -S resources
```
Avoid unless intentionally switching network stack:
```sh
sudo pacman -S networkmanager
```
## Verification loop for every step
1. Edit only one widget/behavior.
2. Validate:
```sh
ironbar --validate-config -c ~/.config/ironbar/config.json -t ~/.config/ironbar/style.css
```
3. Restart:
```sh
systemctl --user restart ironbar.service
```
4. Inspect:
```sh
systemctl --user status ironbar.service --no-pager
journalctl --user -u ironbar.service -n 80 --no-pager
```
5. Screenshot / visual check.
6. Discuss before next step.
## Click convention
- Left: popup or primary action.
- Right: toggle/mute/secondary action.
- Middle: open full external tool/TUI.
- Scroll: adjust continuous value.
- Tooltip: document behavior.
## WezTerm mux policy
- WezTerm GUI should attach to Unix mux by default:
- `cfg.unix_domains = { { name = "unix", no_serve_automatically = true } }`
- `cfg.default_gui_startup_args = { "connect", "unix" }`
- Mux server is systemd-managed:
- `wezterm/systemd/wezterm-mux-server.service`
- WezTerm status should make mux visible:
- domain `unix` renders as `MUX`.
- Hypr terminal bind should explicitly use mux:
- `wezterm connect unix`
- TUI app launcher should:
1. spawn into mux with `wezterm cli --prefer-mux spawn -- ...`
2. capture pane id in Lua
3. activate pane with `wezterm cli --prefer-mux activate-pane --pane-id ...`
- Existing non-mux GUI sessions cannot be seamlessly transferred into mux; recreate/close manually.
## Nugu styling rules
- Generated colors stay in `ironbar/nugu.css`.
- Layout/behavior stay in `ironbar/config.json` + `ironbar/style.css`.
- Use vars:
- normal fg: `--fg`
- muted/empty: `--muted` / `--unfocus`
- active bg: `--focus`, fg `--on-focus`
- hover/accent bg: `--accent`, fg `--on-focus`
- error: `--error`
## Ordered implementation steps
### Step 1 — Bluetooth — done
Why first: explicit request.
Implemented:
- `bluez` + `bluez-utils` installed by user; `bluetooth.service` active.
- `bluetui` installed and preferred.
- Ironbar builtin `bluetooth` module used only for bar status.
- Builtin Bluetooth popup disabled; GTK switch popup looked bad even after CSS work.
- Left/middle click opens `bluetui` through shared Hypr Lua TUI launcher:
- `hyprctl eval 'require("scripts.tui_tab").spawn("bluetui")'`
- Bar label uses fixed semantic Bluetooth battery icon, not dynamic percentage icon:
- ` {device_battery_percent}%`
- `icon_theme` switched from missing `Papirus` to installed `Adwaita`; broken device image fixed.
Verified:
- Ironbar config validates.
- Ironbar restarts and stays active.
- Popup autohide works globally.
- Bluetooth status visible; clicks open `bluetui`.
Follow-up if wanted:
- Tune bar label length/format.
- Add notification if Bluetooth disconnected/low battery.
### Step 2 — baseline validation + obvious fixes
Difficulty: very easy.
Scope:
- Fix music `player_type`: `playerctl` → `mpris`.
- Add `name`/`class` only where needed for CSS targeting.
- No layout rework.
Verify:
- Config validates.
- Ironbar starts cleanly.
### Step 3 — tray
Difficulty: very easy.
Goal:
- Keep tray widget.
- Improve popover padding/colors if needed.
Verify:
- Existing tray icons render.
- Menus/popovers readable.
### Step 4 — clock/calendar colors
Difficulty: easy.
Goal:
- Fix hard-to-read calendar popup.
Scope:
- CSS only.
- Explicit GTK calendar selectors:
- `.popup-clock calendar`
- `.popup-clock calendar header`
- `.popup-clock calendar grid label.day-name`
- `.popup-clock calendar grid label.day-number`
- `.popup-clock calendar grid label.other-month`
- `.popup-clock calendar grid label.today`
- `.popup-clock calendar grid label:selected`
Verify:
- Popup readable in dark + light.
- Today/current/other-month/day-name colors use Nugu vars.
### Step 5 — clipboard
Difficulty: easy.
Goal:
- Keep clipboard widget and make behavior explicit.
Proposed behavior:
- Left: popup/list.
- Middle: optional external launcher later.
- Right: do **not** clear history unless confirmed.
Verify:
- Popup readable.
- Selection/paste still works.
### Step 6 — volume — done
Goal:
- Make volume behavior consistent.
Implemented:
- Builtin `volume` module.
- Scroll adjusts PipeWire output volume.
- Right click mutes output.
- Middle click opens `wiremix` through shared Hypr Lua TUI launcher.
- Sources hidden on bar to reduce clutter.
Verified:
- `pipewire-pulse.socket` active.
- Ironbar logs show volume client connected, no `PAErr(-1)`.
- `wiremix` spawned into WezTerm mux tab and activated.
- Popup/device picker colors fixed for dark+light Nugu.
- Slider drag verified with `wdotool`: volume changed from 55% to 7%, then restored to 55% and unmuted.
- Scroll actions are configured as oneshot scripts and `smooth_scroll_speed = 1.0` is explicit for wheel/trackpad input.
- The exact scroll commands were executed manually: 55% → 57% → 55%.
- `wdotool scroll` does not trigger Ironbar layer-shell scroll events in this live setup, so physical scroll remains the remaining manual check.
### Step 7 — battery — done
Difficulty: easy.
Goal:
- Add/keep robust battery widget.
Implementation:
- Builtin `battery` module.
- Show icon + percent.
- Style low/critical/charging states using Nugu semantic colors.
Verified:
- Hidden on machines without `BAT*` via `show_if`.
- Shows X230 battery percentage.
- `upower` active.
- Warning/critical states styled with Nugu semantic colors.
### Step 8 — brightness — done
Difficulty: easy-medium.
Goal:
- Add brightness widget.
Implementation:
- Builtin `brightness` module.
- Use `systemd`/`backlight` backend.
Implemented:
- Builtin brightness module with `systemd`/`intel_backlight` backend.
- Scroll adjusts brightness through Ironbar backend.
- Rejected custom `brightnessctl` script experiment because direct set failed without permission.
Verified:
- Detects `intel_backlight`.
- Brightness visible/readable in screenshots.
- No config/service errors.
### Step 9 — bindmode
Difficulty: easy-medium.
Goal:
- Show Hyprland submap/bindmode only when active.
Implementation:
- Builtin `bindmode` module.
Verify:
- Hidden during normal use.
- Appears/disappears correctly if a Hypr submap is active.
### Step 10 — inhibit — done
Difficulty: medium.
Goal:
- Add sleep/lock inhibition toggle.
Implementation:
- Builtin `inhibit` module.
Proposed behavior:
- Left: toggle selected duration.
- Right: cycle duration.
- Format off/on clearly.
Verified:
- Toggle visible/readable.
- Duration visible in screenshot.
- No Ironbar errors.
### Step 11 — cute cat widget — skipped/removed
Reason:
- Cute but superfluous under the current goal.
- Removed after screenshot showed the right/center area was already dense.
Verified:
- Bar validates/restarts without it.
- Center media has more room.
### Step 12 — media/player controls — done
Difficulty: medium.
Goal:
- Make media useful and compact.
Implementation:
- Builtin `music` module with MPRIS.
- Format: status icon + truncated title/artist.
- Popup: album art + controls.
Implemented:
- Builtin `music` module with MPRIS.
- Compact title/artist format with truncation.
- No extra scroll action; avoid accidental media changes.
Verified:
- Firefox/MPRIS player detected.
- Title visible and compact at 1366px.
- Popup styled by Nugu CSS.
### Step 13 — system monitors
Difficulty: medium.
Goal:
- Add compact system monitor row.
Implementation:
- Builtin `sys_info` module.
Candidate labels:
- CPU percent.
- RAM percent.
- Temperature.
- Disk root percent.
- Network up/down.
Implemented:
- Compact CPU label via builtin `sys_info`.
- Left/middle opens `btm` through shared Hypr Lua TUI launcher.
Useful install:
```sh
sudo pacman -S bottom
```
Optional GUI:
```sh
sudo pacman -S resources
```
Verify:
- Values update at sane intervals.
- Compact enough for 1366px.
- No excessive CPU wakeups.
### Step 14 — power menu
Difficulty: medium-hard.
Goal:
- Polish power menu using installed `hyprshutdown`.
Implementation:
- `custom` module popup.
Candidate buttons:
- poweroff: `hyprshutdown --post-cmd "systemctl poweroff"`
- reboot: `hyprshutdown --post-cmd "systemctl reboot"`
- logout: `hyprshutdown`
- suspend: `loginctl lock-session && systemctl suspend`
- lock: `hyprlock`
- Popup order puts destructive actions far left and safe lock nearest the right-side opener, avoiding accidental shutdown/reboot from a second click at the trigger position.
Verify:
- Popup opens.
- Lock/suspend/logout work.
- Do not test reboot/poweroff without explicit confirmation.
### Step 15 — notifications — done
Decision:
- Keep Mako.
- Do not install SwayNC; it would replace/compete with Mako.
- Ironbar builtin `notifications` module remains unused.
Implemented:
- Custom Mako indicator script:
- empty: ``
- active notifications: ` N`
- Left click: `makoctl restore`.
- Right click: `makoctl dismiss --all`.
Verified:
- Mako service active.
- Count visible/readable in screenshots.
- Dismissing all notifications via Mako works.
- No SwayNC dependency.
### Step 16 — WiFi / network — done
Decision:
- Keep `iwd` + systemd-networkd.
- Do not install/use NetworkManager.
Implemented:
- Custom script module reads `iwctl station wlan0 show`.
- Connected state is icon-only to reduce clutter.
- Disconnected state shows ` off`.
- Left/middle click opens `impala` through shared Hypr Lua TUI launcher.
Verified:
- `iwd.service` active.
- `networkctl status wlan0` routable/online.
- WiFi icon visible/readable.
- No NetworkManager dependency.
### Step 17 — workspaces — done
Goal:
- Show fixed workspace favorites.
- Logical order:
- `1 web`
- `2 code`
- `3 term`
- `4 chat`
- `5 media`
- `9 misc`
- Empty favorites remain visible.
- Active/occupied/empty states readable.
- Click focuses correct workspace.
Problem found:
- Builtin Ironbar `workspaces` sends legacy `hyprctl dispatch workspace N`.
- Hyprland Lua dispatcher rejects that syntax:
- `error: [string "return hl.dispatch(workspace 1)"]:1: ')' expected near '1'`
Implemented:
- Migrated Hypr workspace rules/binds/window rules to numeric IDs.
- Replaced builtin Ironbar workspaces with a custom workspace switcher.
- Each button uses Lua dispatcher syntax:
- `hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = "N" }))'`
- Replaced old polling `ironbar/scripts/workspace-label.lua` with `ironbar/scripts/workspaces-watch.py`.
- Watcher listens to Hypr socket2 and writes Ironbar vars (`#ws1`, `#ws2`, ...), making highlight update immediately on switch.
- Watcher uses direct Hypr Unix socket IPC for state reads and only writes changed Ironbar vars.
- Watcher caches the Hypr socket directory and Nugu CSS vars, avoiding repeated `hyprctl instances` subprocesses and repeated CSS file reads on every workspace event.
- Added `hypr/systemd/ironbar-workspaces.service`, symlink manifest entry, and service enable recipe.
- `ironbar-workspaces.service` is `PartOf=ironbar.service` so bar restarts immediately refresh workspace vars.
- Removed unused builtin `.workspaces` CSS.
- Removed launcher underline styling after screenshot showed it clashed with the active workspace/focused launcher pills.
- Increased system-module spacing slightly; verified clock/power still fit on 1366px.
- Removed unused `.notifications` CSS and normalized `.sysinfo` spacing.
- Removed normal `scratch` workspace from the bar; special scratch remains on `SUPER+S`.
Verified:
- Hypr reload ok; no config errors.
- Existing named `web`/`term` windows moved to numeric `1`/`3`.
- All six icons visible; no tofu/question mark glyphs.
- Empty workspace active-state update verified 0.2s after click.
- Service active and low overhead: `ironbar` ~1.8% CPU shortly after restart, watcher ~0.2% CPU / 6.6M RSS on X230.
- Clicks verified via `wdotool`:
- workspace `1` focuses `id=1`
- empty workspace `2` focuses `id=2`
- workspace `3` focuses `id=3`
- Ironbar logs contain no workspace dispatch errors after custom switcher.
## Suggested final bar layout
Start:
1. workspaces
2. clipboard
3. bindmode
Removed:
- focused window module; active app/title was redundant and made the left side noisy.
- launcher module; colorful app/window icons broke the semantic Nugu bar aesthetic.
Center:
1. media/player
2. clock
End:
1. Mako indicator
2. WiFi icon
4. Bluetooth battery/status
5. tray
6. sys_info CPU
7. volume
8. brightness
9. battery
10. inhibit
11. power menu
Interaction polish:
- All hover states use the same semantic accent background + on-focus foreground, including music and clipboard.
- Generic `:checked` styling was removed; persistent state is explicit per widget.
- Power and volume checked/focus states are explicitly neutral so clicking elsewhere clears visible highlight.
- Clock popup time/month/year/arrows/days were screenshot-verified readable after GTK calendar selector fixes.
- Clipboard grouped with left utilities; notifications grouped with right status.
- Bar edge padding increased so power does not sit flush against the display edge.
- Region/group spacing added between workspace/utility and right-side connectivity/metrics/inhibit groups.
- Active workspace pill widened to make instant highlight easier to see.
- WiFi polling relaxed to 30s because connected state is icon-only and detail action opens `impala`.
- Ironbar systemd unit sets `GSK_RENDERER=cairo`; this removes GTK/Mesa Vulkan startup noise on X230 while staying around 1.5% CPU / 77M RSS after settling.
- Destructive power actions were not clicked during validation.
- Power popup visual test confirmed destructive off/reboot buttons sit away from the opener cursor side.
## Open decisions
- Media scroll: next/prev, volume, or none? Current: no scroll action.
- Optional later: richer Mako popup/history UI. Current: compact count + restore/dismiss actions.