repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Polish Nugu Hypr desktop bar

262642409c55309bdf0a41fddd2f75ca32513a55

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (24)

desktop.symlinks

Modified
124 124 pueue/pueued.service
125 125 ~/.config/systemd/user/pueued.service
127 +wezterm/systemd/wezterm-mux-server.service
128 +~/.config/systemd/user/wezterm-mux-server.service
127 130 psd/psd.conf
128 131 ~/.config/psd/psd.conf

enable_user_services.nu

Modified
12 12 [mako mako mako.service]
13 13 [cliphist cliphist cliphist.service]
14 14 [wl-clip-persist wl-clip-persist wl-clip-persist.service]
15 + [wezterm-mux-server wezterm-mux-server wezterm-mux-server.service]
15 16 [nugu-theme nu nugu-theme.service]
16 17 [ironbar ironbar ironbar.service]

hypr/lib/apps.lua

Modified
1 +local tui = require("scripts.tui_tab")
1 3 return {
2 - terminal = "wezterm start --always-new-process",
4 + terminal = "wezterm connect unix",
3 5 terminal_class = "wezterm start --always-new-process --class",
4 6 browser = "firefox",
5 7 editor = "nvim",
6 8 launcher = "hyprlauncher",
7 - file_manager = "wezterm start --always-new-process --class yazi yazi",
9 + file_manager = function() tui.spawn("yazi") end,
10 + bluetooth = function() tui.spawn("bluetui") end,
11 + wifi = function() tui.spawn("impala") end,
8 12 lock = "hyprlock",
9 - logout = "hyprshutdown",
13 + logout = "hyprshutdown --dry-run",
10 14 theme_toggle = "nu ~/.config/hypr/scripts/theme.nu toggle",
11 15 theme_auto = "nu ~/.config/hypr/scripts/theme.nu auto",
12 16 clipboard = "bash -lc 'cliphist list | hyprlauncher --dmenu | cliphist decode | wl-copy'",

hypr/modules/appearance.lua

Modified
67 67 xwayland = {
68 - force_zero_scaling = true,
68 + enabled = false,

hypr/modules/binds.lua

Modified
3 3 local apps = require("lib.apps")
4 4 local workspaces = require("modules.workspaces")
5 5 local mod = "SUPER"
7 7 local function bind(key, cmd, description)
8 - hl.bind(key, hl.dsp.exec_cmd(cmd), { description = description })
8 + local dispatcher = type(cmd) == "function" and cmd or hl.dsp.exec_cmd(cmd)
9 + hl.bind(key, dispatcher, { description = description })
11 12 bind(mod .. " + Return", apps.terminal, "terminal: wezterm")
12 13 bind(mod .. " + Space", apps.launcher, "launcher: hyprlauncher")
13 14 bind(mod .. " + B", apps.browser, "browser: firefox")
14 -bind(mod .. " + E", apps.file_manager, "file manager: yazi")
15 +-- TUI app binds open in an existing WezTerm default mux workspace window as new tabs.
16 +bind(mod .. " + E", apps.file_manager, "files: yazi")
17 +bind(mod .. " + N", apps.wifi, "wifi: impala")
18 +bind(mod .. " + U", apps.bluetooth, "bluetooth: bluetui")
15 19 hl.bind(mod .. " + Q", hl.dsp.window.close(), { description = "close window" })
16 20 hl.bind(mod .. " + C", hl.dsp.window.close(), { description = "close window" })
17 21 bind(mod .. " + V", apps.clipboard, "clipboard history")
45 49 hl.bind(mod .. " + SHIFT + G", hl.dsp.group.next(), { description = "next group tab" })
47 51 for _, ws in ipairs(workspaces.list) do
48 - local target = "name:" .. ws.name
49 - hl.bind(mod .. " + " .. ws.key, hl.dsp.focus({ workspace = target }), { description = "workspace " .. ws.name })
50 - hl.bind(mod .. " + SHIFT + " .. ws.key, hl.dsp.window.move({ workspace = target }), { description = "move to " .. ws.name })
52 + hl.bind(mod .. " + " .. ws.key, hl.dsp.focus({ workspace = ws.id }), { description = "workspace " .. ws.name })
53 + hl.bind(mod .. " + SHIFT + " .. ws.key, hl.dsp.window.move({ workspace = ws.id }), { description = "move to " .. ws.name })
53 56 hl.bind(mod .. " + S", hl.dsp.workspace.toggle_special("scratch"), { description = "toggle scratch" })

hypr/modules/input.lua

Modified
9 9 repeat_delay = 600,
10 10 follow_mouse = 1,
11 11 sensitivity = 0,
12 - accel_profile = "flat",
12 + accel_profile = "adaptive",
13 + natural_scroll = true,
13 14 touchpad = {
14 15 natural_scroll = true,
15 16 disable_while_typing = true,

hypr/modules/rules.lua

Modified
7 7 suppress_event = "maximize",
10 -hl.window_rule({
11 - name = "fix-xwayland-drags",
12 - match = {
13 - class = "^$",
14 - title = "^$",
15 - xwayland = true,
16 - float = true,
17 - fullscreen = false,
18 - pin = false,
19 - },
20 - no_focus = true,
21 -})
23 -hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, workspace = "name:web" })
10 +hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, workspace = "1" })
24 11 hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, opacity = "0.98 0.96" })
26 -hl.window_rule({ match = { class = "^(wezterm|org.wezfurlong.wezterm)$" }, workspace = "name:term" })
27 -hl.window_rule({ match = { class = "^yazi$" }, workspace = "name:term" })
13 +hl.window_rule({ match = { class = "^(wezterm|org.wezfurlong.wezterm)$" }, workspace = "3" })
14 +hl.window_rule({ match = { class = "^yazi$" }, workspace = "3" })
29 -hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, workspace = "name:media" })
16 +hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, workspace = "5" })
30 17 hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, immediate = true })
32 19 hl.window_rule({ match = { class = "^(pavucontrol|blueman-manager|nm-connection-editor)$" }, float = true, center = true })

hypr/modules/workspaces.lua

Modified
1 1 local M = {}
3 3 M.list = {
4 - { key = "1", name = "web" },
5 - { key = "2", name = "code" },
6 - { key = "3", name = "term" },
7 - { key = "4", name = "chat" },
8 - { key = "5", name = "media" },
9 - { key = "9", name = "misc" },
10 - { key = "0", name = "scratch" },
4 + { key = "1", id = "1", name = "web" },
5 + { key = "2", id = "2", name = "code" },
6 + { key = "3", id = "3", name = "term" },
7 + { key = "4", id = "4", name = "chat" },
8 + { key = "5", id = "5", name = "media" },
9 + { key = "9", id = "9", name = "misc" },
13 12 for _, ws in ipairs(M.list) do
14 - hl.workspace_rule({ workspace = "name:" .. ws.name, monitor = "LVDS-1" })
13 + hl.workspace_rule({ workspace = ws.id, monitor = "LVDS-1" })
17 -hl.workspace_rule({ workspace = "name:web", default = true })
16 +hl.workspace_rule({ workspace = "1", default = true })
18 17 hl.workspace_rule({ workspace = "special:scratch", on_created_empty = "wezterm start --always-new-process" })
19 18 hl.workspace_rule({ workspace = "w[tv1]s[false]", gaps_out = 0, gaps_in = 0 })
20 19 hl.workspace_rule({ workspace = "f[1]s[false]", gaps_out = 0, gaps_in = 0 })

hypr/scripts/theme.nu

Modified
122 122 --muted: ($p.ui.minor);
123 123 --unfocus: ($p.ui.unfocus);
124 124 --error: ($p.error);
125 + --warning: ($p.warning);
126 + --info: ($p.info);
127 + --debug: ($p.debug);
125 128 --border: ($p.ui.accent);
127 130 " | save --raw --force $out

hypr/scripts/tui_tab.lua

Added
new file mode 100644
1 +local M = {}
3 +local function shell_quote(value)
4 + value = tostring(value)
5 + return "'" .. value:gsub("'", "'\\''") .. "'"
6 +end
8 +local function trim(value)
9 + return (value or ""):gsub("^%s+", ""):gsub("%s+$", "")
10 +end
12 +local function run(command)
13 + local pipe = io.popen(command .. " 2>/dev/null")
14 + if not pipe then return nil end
16 + local output = pipe:read("*a")
17 + pipe:close()
19 + return trim(output)
20 +end
22 +function M.spawn(...)
23 + local args = { ... }
24 + if #args == 0 then return end
26 + for i, arg in ipairs(args) do
27 + args[i] = shell_quote(arg)
28 + end
30 + local pane_id = run("wezterm cli --prefer-mux spawn -- " .. table.concat(args, " "))
31 + if pane_id and pane_id:match("^%d+$") then
32 + hl.exec_cmd("wezterm cli --prefer-mux activate-pane --pane-id " .. shell_quote(pane_id))
33 + end
34 +end
36 +return M

ironbar/PLAN.md

Added
new file mode 100644
1 +# Ironbar rework plan
3 +Goal: rebuild the bar incrementally, one widget/behavior at a time, with Nugu colors, consistent clicks, and verification after each step.
5 +Workflow rule:
7 +1. Propose exact minimal change.
8 +2. Experiment safely when behavior is unknown.
9 +3. Apply focused changes.
10 +4. Verify live with config validation, service state, logs, screenshots, and interaction tests.
11 +5. Remove superfluous widgets/CSS/scripts.
13 +Originally: stop after each step for discussion.
14 +Current standing goal: continue autonomously to completion while preserving brutal verification.
16 +Order rule: start with Bluetooth as requested, then proceed roughly easiest → hardest.
18 +## Current status
20 +Done/live:
22 +- Bluetooth stack installed/running: `bluez`, `bluez-utils`, `bluetooth.service` active.
23 +- `bluetui` installed and preferred as Bluetooth manager.
24 +- Ironbar Bluetooth widget is status-only; builtin popup disabled because GTK switch popup looked bad.
25 +- Bluetooth left/middle click opens `bluetui` through shared Hypr Lua TUI launcher.
26 +- Ironbar icon theme switched to installed `Adwaita`.
27 +- Ironbar `popup_autohide = true` globally.
28 +- WezTerm mux service added under `wezterm/systemd/wezterm-mux-server.service`, enabled and active.
29 +- WezTerm config attaches GUI to Unix mux (`connect unix`) and status shows `MUX` for mux domain.
30 +- Hypr `SUPER+Enter` opens `wezterm connect unix`.
31 +- Hypr TUI app binds:
32 + - `SUPER+E` → `yazi`
33 + - `SUPER+N` → `impala`
34 + - `SUPER+U` → `bluetui`
35 +- TUI launcher activates the newly spawned WezTerm pane/tab.
36 +- XWayland disabled; obsolete XWayland drag workaround removed.
37 +- Mouse accel switched to adaptive; natural scroll enabled.
39 +Known unresolved:
41 +- No hard blocker.
42 +- Existing visible WezTerm local-domain sessions may need manual migration/closure; no seamless transfer to mux known.
44 +## Checked facts
46 +- Installed Ironbar: `0.19.0`.
47 +- `ironbar --print-schema` exposes needed modules:
48 + - `battery`, `bindmode`, `bluetooth`, `brightness`, `clipboard`, `clock`, `custom`, `focused`, `inhibit`, `launcher`, `music`, `notifications`, `script`, `sys_info`, `tray`, `volume`, `workspaces`.
49 +- WiFi stack: `iwd` + systemd-networkd.
50 + - `iwd.service`: active.
51 + - `NetworkManager`: not installed.
52 + - Ironbar `network_manager` module is wrong unless we intentionally switch network stacks.
53 +- Notifications: Mako currently.
54 + - Ironbar `notifications` module requires SwayNC.
55 + - SwayNC would replace/compete with Mako, so defer.
56 +- `hyprshutdown` installed; keybind uses `--dry-run`.
57 +- Music config must use `player_type = "mpris"`, not `playerctl`.
58 +- Builtin Ironbar workspaces dispatch legacy Hypr syntax; custom switcher is used for Lua-dispatcher compatibility.
60 +## Upstream feature note
62 +From Ironbar compiling wiki/features:
64 +- Default build enables all features.
65 +- Custom builds can disable defaults and enable selected features.
66 +- Must enable at least one config feature.
67 +- If custom-building for this setup:
69 +```text
70 +cli,config+json,workspaces+hyprland,focused,launcher,music+mpris,sys_info,script,custom,tray,volume,battery,bluetooth,brightness,bindmode,inhibit,clipboard,clock,notifications
71 +```
73 +Notes:
75 +- `cli` implies `ipc`.
76 +- `network_manager` omitted while using `iwd`.
77 +- `notifications` only useful if switching to SwayNC.
79 +## Preferences / launch policy
81 +- Work one thing at a time: propose → experiment → change → verify.
82 +- Prefer awesome fast TUIs when they exist (`bluetui`, `impala`, `btm`, `wiremix`, `yazi`, etc.).
83 +- Prefer mux-backed WezTerm tabs for TUI apps over standalone terminal windows.
84 +- Prefer implementation logic in Lua over shell snippets; shell command strings are acceptable only at process boundary.
85 +- Prefer `require(...)` modules over `dofile(...)` in normal config and shared helpers.
86 +- Shared TUI launch logic lives in Hypr Lua: `hypr/scripts/tui_tab.lua`.
87 +- 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.
88 +- TUI launcher should spawn into WezTerm mux and activate the new pane/tab.
89 +- Keep app-specific service/config files in app dirs when possible, e.g. WezTerm systemd unit under `wezterm/systemd/`.
90 +- Avoid fighting ugly GTK popups when a better TUI exists; use Ironbar as status/launcher if builtin popup is poor.
92 +## Package/dependency report
94 +Already installed:
96 +- `ironbar`
97 +- `hyprshutdown`
98 +- `playerctl`
99 +- `iwd`
100 +- `brightnessctl`
101 +- `bluez`
102 +- `bluez-utils`
103 +- `bluetui`
104 +- `impala`
105 +- `wezterm-nightly-bin`
106 +- `upower`
107 +- `pipewire-pulse`
109 +No longer planned:
111 +```sh
112 +sudo pacman -S pavucontrol swaync networkmanager
113 +```
115 +Reasons:
117 +- `wiremix` replaces `pavucontrol` for audio.
118 +- Mako stays; SwayNC would replace/compete with it.
119 +- WiFi stack stays `iwd` + systemd-networkd; no NetworkManager.
121 +Optional only if requested later:
123 +```sh
124 +sudo pacman -S resources
125 +```
127 +Avoid unless intentionally switching network stack:
129 +```sh
130 +sudo pacman -S networkmanager
131 +```
133 +## Verification loop for every step
135 +1. Edit only one widget/behavior.
136 +2. Validate:
138 + ```sh
139 + ironbar --validate-config -c ~/.config/ironbar/config.json -t ~/.config/ironbar/style.css
140 + ```
142 +3. Restart:
144 + ```sh
145 + systemctl --user restart ironbar.service
146 + ```
148 +4. Inspect:
150 + ```sh
151 + systemctl --user status ironbar.service --no-pager
152 + journalctl --user -u ironbar.service -n 80 --no-pager
153 + ```
155 +5. Screenshot / visual check.
156 +6. Discuss before next step.
158 +## Click convention
160 +- Left: popup or primary action.
161 +- Right: toggle/mute/secondary action.
162 +- Middle: open full external tool/TUI.
163 +- Scroll: adjust continuous value.
164 +- Tooltip: document behavior.
166 +## WezTerm mux policy
168 +- WezTerm GUI should attach to Unix mux by default:
169 + - `cfg.unix_domains = { { name = "unix", no_serve_automatically = true } }`
170 + - `cfg.default_gui_startup_args = { "connect", "unix" }`
171 +- Mux server is systemd-managed:
172 + - `wezterm/systemd/wezterm-mux-server.service`
173 +- WezTerm status should make mux visible:
174 + - domain `unix` renders as `MUX`.
175 +- Hypr terminal bind should explicitly use mux:
176 + - `wezterm connect unix`
177 +- TUI app launcher should:
178 + 1. spawn into mux with `wezterm cli --prefer-mux spawn -- ...`
179 + 2. capture pane id in Lua
180 + 3. activate pane with `wezterm cli --prefer-mux activate-pane --pane-id ...`
181 +- Existing non-mux GUI sessions cannot be seamlessly transferred into mux; recreate/close manually.
183 +## Nugu styling rules
185 +- Generated colors stay in `ironbar/nugu.css`.
186 +- Layout/behavior stay in `ironbar/config.json` + `ironbar/style.css`.
187 +- Use vars:
188 + - normal fg: `--fg`
189 + - muted/empty: `--muted` / `--unfocus`
190 + - active bg: `--focus`, fg `--on-focus`
191 + - hover/accent bg: `--accent`, fg `--on-focus`
192 + - error: `--error`
194 +## Ordered implementation steps
196 +### Step 1 — Bluetooth — done
198 +Why first: explicit request.
200 +Implemented:
202 +- `bluez` + `bluez-utils` installed by user; `bluetooth.service` active.
203 +- `bluetui` installed and preferred.
204 +- Ironbar builtin `bluetooth` module used only for bar status.
205 +- Builtin Bluetooth popup disabled; GTK switch popup looked bad even after CSS work.
206 +- Left/middle click opens `bluetui` through shared Hypr Lua TUI launcher:
207 + - `hyprctl eval 'require("scripts.tui_tab").spawn("bluetui")'`
208 +- Bar label uses fixed semantic Bluetooth battery icon, not dynamic percentage icon:
209 + - `󰥈 {device_battery_percent}%`
210 +- `icon_theme` switched from missing `Papirus` to installed `Adwaita`; broken device image fixed.
212 +Verified:
214 +- Ironbar config validates.
215 +- Ironbar restarts and stays active.
216 +- Popup autohide works globally.
217 +- Bluetooth status visible; clicks open `bluetui`.
219 +Follow-up if wanted:
221 +- Tune bar label length/format.
222 +- Add notification if Bluetooth disconnected/low battery.
224 +### Step 2 — baseline validation + obvious fixes
226 +Difficulty: very easy.
228 +Scope:
230 +- Fix music `player_type`: `playerctl` → `mpris`.
231 +- Add `name`/`class` only where needed for CSS targeting.
232 +- No layout rework.
234 +Verify:
236 +- Config validates.
237 +- Ironbar starts cleanly.
239 +### Step 3 — tray
241 +Difficulty: very easy.
243 +Goal:
245 +- Keep tray widget.
246 +- Improve popover padding/colors if needed.
248 +Verify:
250 +- Existing tray icons render.
251 +- Menus/popovers readable.
253 +### Step 4 — clock/calendar colors
255 +Difficulty: easy.
257 +Goal:
259 +- Fix hard-to-read calendar popup.
261 +Scope:
263 +- CSS only.
264 +- Explicit GTK calendar selectors:
265 + - `.popup-clock calendar`
266 + - `.popup-clock calendar header`
267 + - `.popup-clock calendar grid label.day-name`
268 + - `.popup-clock calendar grid label.day-number`
269 + - `.popup-clock calendar grid label.other-month`
270 + - `.popup-clock calendar grid label.today`
271 + - `.popup-clock calendar grid label:selected`
273 +Verify:
275 +- Popup readable in dark + light.
276 +- Today/current/other-month/day-name colors use Nugu vars.
278 +### Step 5 — clipboard
280 +Difficulty: easy.
282 +Goal:
284 +- Keep clipboard widget and make behavior explicit.
286 +Proposed behavior:
288 +- Left: popup/list.
289 +- Middle: optional external launcher later.
290 +- Right: do **not** clear history unless confirmed.
292 +Verify:
294 +- Popup readable.
295 +- Selection/paste still works.
297 +### Step 6 — volume — done
299 +Goal:
301 +- Make volume behavior consistent.
303 +Implemented:
305 +- Builtin `volume` module.
306 +- Scroll adjusts PipeWire output volume.
307 +- Right click mutes output.
308 +- Middle click opens `wiremix` through shared Hypr Lua TUI launcher.
309 +- Sources hidden on bar to reduce clutter.
311 +Verified:
313 +- `pipewire-pulse.socket` active.
314 +- Ironbar logs show volume client connected, no `PAErr(-1)`.
315 +- `wiremix` spawned into WezTerm mux tab and activated.
317 +### Step 7 — battery — done
319 +Difficulty: easy.
321 +Goal:
323 +- Add/keep robust battery widget.
325 +Implementation:
327 +- Builtin `battery` module.
328 +- Show icon + percent.
329 +- Style low/critical/charging states using Nugu semantic colors.
331 +Verified:
333 +- Hidden on machines without `BAT*` via `show_if`.
334 +- Shows X230 battery percentage.
335 +- `upower` active.
336 +- Warning/critical states styled with Nugu semantic colors.
338 +### Step 8 — brightness — done
340 +Difficulty: easy-medium.
342 +Goal:
344 +- Add brightness widget.
346 +Implementation:
348 +- Builtin `brightness` module.
349 +- Use `systemd`/`backlight` backend.
351 +Implemented:
353 +- Builtin brightness module with `systemd`/`intel_backlight` backend.
354 +- Scroll adjusts brightness through Ironbar backend.
355 +- Rejected custom `brightnessctl` script experiment because direct set failed without permission.
357 +Verified:
359 +- Detects `intel_backlight`.
360 +- Brightness visible/readable in screenshots.
361 +- No config/service errors.
363 +### Step 9 — bindmode
365 +Difficulty: easy-medium.
367 +Goal:
369 +- Show Hyprland submap/bindmode only when active.
371 +Implementation:
373 +- Builtin `bindmode` module.
375 +Verify:
377 +- Hidden during normal use.
378 +- Appears/disappears correctly if a Hypr submap is active.
380 +### Step 10 — inhibit — done
382 +Difficulty: medium.
384 +Goal:
386 +- Add sleep/lock inhibition toggle.
388 +Implementation:
390 +- Builtin `inhibit` module.
392 +Proposed behavior:
394 +- Left: toggle selected duration.
395 +- Right: cycle duration.
396 +- Format off/on clearly.
398 +Verified:
400 +- Toggle visible/readable.
401 +- Duration visible in screenshot.
402 +- No Ironbar errors.
404 +### Step 11 — cute cat widget — skipped/removed
406 +Reason:
408 +- Cute but superfluous under the current goal.
409 +- Removed after screenshot showed the right/center area was already dense.
411 +Verified:
413 +- Bar validates/restarts without it.
414 +- Center media has more room.
416 +### Step 12 — media/player controls — done
418 +Difficulty: medium.
420 +Goal:
422 +- Make media useful and compact.
424 +Implementation:
426 +- Builtin `music` module with MPRIS.
427 +- Format: status icon + truncated title/artist.
428 +- Popup: album art + controls.
430 +Implemented:
432 +- Builtin `music` module with MPRIS.
433 +- Compact title/artist format with truncation.
434 +- No extra scroll action; avoid accidental media changes.
436 +Verified:
438 +- Firefox/MPRIS player detected.
439 +- Title visible and compact at 1366px.
440 +- Popup styled by Nugu CSS.
442 +### Step 13 — system monitors
444 +Difficulty: medium.
446 +Goal:
448 +- Add compact system monitor row.
450 +Implementation:
452 +- Builtin `sys_info` module.
454 +Candidate labels:
456 +- CPU percent.
457 +- RAM percent.
458 +- Temperature.
459 +- Disk root percent.
460 +- Network up/down.
462 +Implemented:
464 +- Compact CPU label via builtin `sys_info`.
465 +- Left/middle opens `btm` through shared Hypr Lua TUI launcher.
467 +Useful install:
469 +```sh
470 +sudo pacman -S bottom
471 +```
473 +Optional GUI:
475 +```sh
476 +sudo pacman -S resources
477 +```
479 +Verify:
481 +- Values update at sane intervals.
482 +- Compact enough for 1366px.
483 +- No excessive CPU wakeups.
485 +### Step 14 — power menu
487 +Difficulty: medium-hard.
489 +Goal:
491 +- Polish power menu using installed `hyprshutdown`.
493 +Implementation:
495 +- `custom` module popup.
497 +Candidate buttons:
499 +- lock: `hyprlock`
500 +- suspend: `loginctl lock-session && systemctl suspend`
501 +- logout: `hyprshutdown`
502 +- reboot: `hyprshutdown --post-cmd "systemctl reboot"`
503 +- poweroff: `hyprshutdown --post-cmd "systemctl poweroff"`
505 +Verify:
507 +- Popup opens.
508 +- Lock/suspend/logout work.
509 +- Do not test reboot/poweroff without explicit confirmation.
511 +### Step 15 — notifications — done
513 +Decision:
515 +- Keep Mako.
516 +- Do not install SwayNC; it would replace/compete with Mako.
517 +- Ironbar builtin `notifications` module remains unused.
519 +Implemented:
521 +- Custom Mako indicator script:
522 + - empty: `󰂚`
523 + - active notifications: `󰂞 N`
524 +- Left click: `makoctl restore`.
525 +- Right click: `makoctl dismiss --all`.
527 +Verified:
529 +- Mako service active.
530 +- Count visible/readable in screenshots.
531 +- Dismissing all notifications via Mako works.
532 +- No SwayNC dependency.
534 +### Step 16 — WiFi / network — done
536 +Decision:
538 +- Keep `iwd` + systemd-networkd.
539 +- Do not install/use NetworkManager.
541 +Implemented:
543 +- Custom script module reads `iwctl station wlan0 show`.
544 +- Connected state is icon-only to reduce clutter.
545 +- Disconnected state shows `󰖪 off`.
546 +- Left/middle click opens `impala` through shared Hypr Lua TUI launcher.
548 +Verified:
550 +- `iwd.service` active.
551 +- `networkctl status wlan0` routable/online.
552 +- WiFi icon visible/readable.
553 +- No NetworkManager dependency.
555 +### Step 17 — workspaces — done
557 +Goal:
559 +- Show fixed workspace favorites.
560 +- Logical order:
561 + - `1 web`
562 + - `2 code`
563 + - `3 term`
564 + - `4 chat`
565 + - `5 media`
566 + - `9 misc`
567 +- Empty favorites remain visible.
568 +- Active/occupied/empty states readable.
569 +- Click focuses correct workspace.
571 +Problem found:
573 +- Builtin Ironbar `workspaces` sends legacy `hyprctl dispatch workspace N`.
574 +- Hyprland Lua dispatcher rejects that syntax:
575 + - `error: [string "return hl.dispatch(workspace 1)"]:1: ')' expected near '1'`
577 +Implemented:
579 +- Migrated Hypr workspace rules/binds/window rules to numeric IDs.
580 +- Replaced builtin Ironbar workspaces with a custom workspace switcher.
581 +- Each button uses Lua dispatcher syntax:
582 + - `hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = "N" }))'`
583 +- Added `ironbar/scripts/workspace-label.lua` for active/occupied/empty Nugu-colored labels.
584 +- Workspace label script caches Hypr state in `$XDG_RUNTIME_DIR/ironbar-workspaces.cache` to avoid repeated `hyprctl` calls from six labels.
585 +- Removed unused builtin `.workspaces` CSS.
586 +- Removed launcher underline styling after screenshot showed it clashed with the active workspace/focused launcher pills.
587 +- Increased system-module spacing slightly; verified clock/power still fit on 1366px.
588 +- Removed unused `.notifications` CSS and normalized `.sysinfo` spacing.
589 +- Removed normal `scratch` workspace from the bar; special scratch remains on `SUPER+S`.
591 +Verified:
593 +- Hypr reload ok; no config errors.
594 +- Existing named `web`/`term` windows moved to numeric `1`/`3`.
595 +- All six icons visible; no tofu/question mark glyphs.
596 +- Empty workspace active-state update verified after 2s poll interval.
597 +- Ironbar CPU checked after cache optimization: ~2.4% averaged shortly after restart on X230.
598 +- Clicks verified via `wdotool`:
599 + - workspace `1` focuses `id=1`
600 + - empty workspace `2` focuses `id=2`
601 + - workspace `3` focuses `id=3`
602 +- Ironbar logs contain no workspace dispatch errors after custom switcher.
604 +## Suggested final bar layout
606 +Start:
608 +1. workspaces
609 +2. launcher
610 +3. focused window
611 +4. bindmode
613 +Center:
615 +1. media/player
616 +2. cute cat
618 +End:
620 +1. clipboard
621 +2. Mako indicator
622 +3. WiFi icon
623 +4. Bluetooth battery/status
624 +5. tray
625 +6. sys_info CPU
626 +7. volume
627 +8. brightness
628 +9. battery
629 +10. inhibit
630 +11. clock
631 +12. power menu
633 +## Open decisions
635 +- Media scroll: next/prev, volume, or none? Current: no scroll action.
636 +- Optional later: richer Mako popup/history UI. Current: compact count + restore/dismiss actions.

ironbar/config.json

Modified
2 - "icon_theme": "Papirus",
2 + "icon_theme": "Adwaita",
3 3 "position": "top",
4 4 "height": 30,
5 + "popup_autohide": true,
6 + "popup_gap": 4,
5 7 "start": [
7 - "type": "workspaces",
8 - "name_map": {
9 - "web": "󰖟",
10 - "code": "󰅨",
11 - "term": "󰆍",
12 - "chat": "󰭹",
13 - "media": "󰎆",
14 - "misc": "󰋖",
15 - "scratch": "󰙀"
16 - },
17 - "favorites": ["web", "code", "term", "chat", "media"],
18 - "format": "{icon}"
9 + "type": "custom",
10 + "name": "workspace-switcher",
11 + "class": "nugu-workspaces",
12 + "bar": [
13 + {
14 + "type": "box",
15 + "widgets": [
16 + {
17 + "type": "button",
18 + "class": "workspace-item",
19 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 1 󰖟}}",
20 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"1\" }))'"
21 + },
22 + {
23 + "type": "button",
24 + "class": "workspace-item",
25 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 2 󰅨}}",
26 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"2\" }))'"
27 + },
28 + {
29 + "type": "button",
30 + "class": "workspace-item",
31 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 3 󰆍}}",
32 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"3\" }))'"
33 + },
34 + {
35 + "type": "button",
36 + "class": "workspace-item",
37 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 4 󰭹}}",
38 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"4\" }))'"
39 + },
40 + {
41 + "type": "button",
42 + "class": "workspace-item",
43 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 5 󰎆}}",
44 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"5\" }))'"
45 + },
46 + {
47 + "type": "button",
48 + "class": "workspace-item",
49 + "label": "{{2000:lua ~/.config/ironbar/scripts/workspace-label.lua 9 󰉋}}",
50 + "on_click": "!hyprctl eval 'hl.dispatch(hl.dsp.focus({ workspace = \"9\" }))'"
51 + }
52 + ]
53 + }
54 + ],
55 + "tooltip": "Workspaces: web code term chat media misc"
21 58 "type": "launcher",
59 + "icon_size": 16,
22 60 "truncate": {
23 61 "mode": "end",
24 62 "max_length": 24
28 66 "type": "focused",
67 + "icon_size": 16,
29 68 "truncate": {
30 69 "mode": "end",
31 - "max_length": 64
70 + "max_length": 18
71 + }
72 + },
73 + {
74 + "type": "bindmode",
75 + "truncate": {
76 + "mode": "end",
77 + "max_length": 20
35 81 "center": [
37 83 "type": "music",
38 - "player_type": "playerctl"
84 + "player_type": "mpris",
85 + "format": "{title} / {artist}",
86 + "truncate": {
87 + "mode": "end",
88 + "max_length": 42
89 + }
41 92 "end": [
51 - "type": "tray"
102 + "type": "script",
103 + "class": "mako-status",
104 + "cmd": "~/.config/ironbar/scripts/mako-status.sh",
105 + "mode": "poll",
106 + "interval": 2000,
107 + "on_click_left": "makoctl restore",
108 + "on_click_right": "makoctl dismiss --all",
109 + "tooltip": "Notifications: left restores last, right dismisses all"
110 + },
112 + "type": "script",
113 + "class": "wifi",
114 + "cmd": "~/.config/ironbar/scripts/wifi-status.sh",
115 + "mode": "poll",
116 + "interval": 5000,
117 + "on_click_left": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"impala\")'",
118 + "on_click_middle": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"impala\")'",
119 + "tooltip": "WiFi: left/middle opens impala"
120 + },
122 + "type": "bluetooth",
123 + "format": {
124 + "not_found": "",
125 + "disabled": "󰂲 off",
126 + "enabled": "󰂯 on",
127 + "connected": "󰂱",
128 + "connected_battery": "󰂱 {device_battery_percent}%"
129 + },
130 + "disable_popup": true,
131 + "on_click_left": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"bluetui\")'",
132 + "on_click_middle": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"bluetui\")'",
133 + "tooltip": "Bluetooth: left/middle opens bluetui"
134 + },
136 + "type": "tray",
137 + "icon_size": 14
138 + },
140 + "type": "sys_info",
141 + "format": [" {cpu_percent:1}%"],
142 + "interval": {
143 + "cpu": 2
144 + },
145 + "on_click_left": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"btm\")'",
146 + "on_click_middle": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"btm\")'",
147 + "tooltip": "System monitor: left/middle opens btm"
54 150 "type": "volume",
55 151 "on_scroll_up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+",
56 152 "on_scroll_down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-",
57 - "on_click_right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
153 + "on_click_right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
154 + "on_click_middle": "hyprctl eval 'require(\"scripts.tui_tab\").spawn(\"wiremix\")'",
155 + "show_sources": false,
156 + "tooltip": "Volume: scroll adjusts, right mutes, middle opens wiremix"
157 + },
159 + "type": "brightness",
160 + "format": "{percentage}%",
161 + "icon_label": "display-brightness-symbolic",
162 + "mode": {
163 + "type": "systemd",
164 + "subsystem": "backlight",
165 + "name": "intel_backlight"
166 + },
167 + "smooth_scroll_speed": 0.5,
168 + "tooltip": "Brightness: scroll adjusts display"
60 171 "type": "battery",
61 - "show_if": "ls /sys/class/power_supply/ | grep -q '^BAT'"
172 + "format": "{percentage}%",
173 + "icon_size": 10,
174 + "show_if": "ls /sys/class/power_supply/ | grep -q '^BAT'",
175 + "profiles": {
176 + "warning": {
177 + "percent": 20
178 + },
179 + "critical": {
180 + "when": {
181 + "percent": 5,
182 + "charging": false
183 + },
184 + "format": "󰂎 {percentage}%"
186 + },
187 + "tooltip": "Battery: left opens details"
188 + },
190 + "type": "inhibit",
191 + "durations": ["00:30:00", "01:00:00", "02:00:00", "inf"],
192 + "default_duration": "00:30:00",
193 + "format_on": "󰅶 {duration}",
194 + "format_off": "󰛊 {duration}",
195 + "tooltip": "Inhibit: left toggles, right cycles duration"
64 198 "type": "clock",
94 228 "type": "button",
95 229 "class": "power-btn",
96 - "label": "󰐥",
97 - "on_click": "!systemctl poweroff"
230 + "label": "󰌾 lock",
231 + "on_click": "!hyprlock"
100 234 "type": "button",
101 235 "class": "power-btn",
102 - "label": "󰜉",
103 - "on_click": "!systemctl reboot"
236 + "label": "󰤄 sleep",
237 + "on_click": "!loginctl lock-session && systemctl suspend"
106 240 "type": "button",
107 241 "class": "power-btn",
108 - "label": "󰍃",
109 - "on_click": "!loginctl terminate-session $XDG_SESSION_ID"
242 + "label": "󰍃 out",
243 + "on_click": "!hyprshutdown"
244 + },
246 + "type": "button",
247 + "class": "power-btn",
248 + "label": "󰜉 reboot",
249 + "on_click": "!hyprshutdown --post-cmd \"systemctl reboot\""
250 + },
252 + "type": "button",
253 + "class": "power-btn danger",
254 + "label": "󰐥 off",
255 + "on_click": "!hyprshutdown --post-cmd \"systemctl poweroff\""
258 + },
260 + "type": "label",
261 + "name": "uptime",
262 + "label": "up {{30000:uptime -p | cut -d ' ' -f2-}}"
115 - ]
266 + ],
267 + "tooltip": "Power menu"

ironbar/nugu.css

Modified
10 10 --muted: #9d9d9d;
11 11 --unfocus: #6f6f6f;
12 12 --error: #e46479;
13 + --warning: #9e9a69;
14 + --info: #3ec5dd;
15 + --debug: #ed5eed;
13 16 --border: #d86dd8;

ironbar/scripts/mako-status.sh

Added
new file mode 100755
1 +#!/bin/sh
3 +count=$(makoctl list -j 2>/dev/null | jq 'length' 2>/dev/null)
4 +case "$count" in
5 + ''|0) printf '󰂚\n' ;;
6 + *) printf '󰂞 %s\n' "$count" ;;
7 +esac

ironbar/scripts/wifi-status.sh

Added
new file mode 100755
1 +#!/bin/sh
3 +station=${1:-wlan0}
4 +raw=$(iwctl station "$station" show 2>/dev/null | sed 's/\x1b\[[0-9;]*m//g')
5 +state=$(printf '%s\n' "$raw" | awk '/State/ {print $2; exit}')
7 +if [ "$state" != connected ]; then
8 + printf '󰖪 off\n'
9 + exit 0
10 +fi
12 +printf '󰖩\n'

ironbar/scripts/workspace-label.lua

Added
new file mode 100755
1 +#!/usr/bin/env lua
3 +local id = tostring(arg[1] or "")
4 +local icon = arg[2] or id
6 +local home = os.getenv("HOME") or "/home/oli"
7 +local config_home = os.getenv("XDG_CONFIG_HOME") or (home .. "/.config")
8 +local runtime_dir = os.getenv("XDG_RUNTIME_DIR") or "/tmp"
9 +local css_path = config_home .. "/ironbar/nugu.css"
10 +local cache_path = runtime_dir .. "/ironbar-workspaces.cache"
11 +local cache_ttl = 1.8
13 +local vars = {}
14 +for line in io.lines(css_path) do
15 + local name, value = line:match("%s*%-%-([%w%-]+):%s*(#[%x]+)")
16 + if name and value then
17 + vars[name] = value
18 + end
19 +end
21 +local function read_file(path)
22 + local file = io.open(path, "r")
23 + if not file then return nil end
24 + local data = file:read("*a")
25 + file:close()
26 + return data
27 +end
29 +local function now()
30 + local uptime = read_file("/proc/uptime") or "0"
31 + return tonumber(uptime:match("^%d+%.?%d*")) or os.time()
32 +end
34 +local function sh(cmd)
35 + local handle = io.popen(cmd .. " 2>/dev/null")
36 + if not handle then return "" end
37 + local out = handle:read("*a") or ""
38 + handle:close()
39 + return out
40 +end
42 +local function pango_escape(s)
43 + return tostring(s)
44 + :gsub("&", "&amp;")
45 + :gsub("<", "&lt;")
46 + :gsub(">", "&gt;")
47 +end
49 +local function parse_cache(data)
50 + if not data or data == "" then return nil end
51 + local state = { windows = {} }
52 + for line in data:gmatch("[^\n]+") do
53 + local key, value = line:match("^([^=]+)=(.*)$")
54 + if key == "timestamp" then
55 + state.timestamp = tonumber(value)
56 + elseif key == "active" then
57 + state.active_id = value
58 + elseif key and key:match("^ws%-?%d+$") then
59 + state.windows[key:gsub("^ws", "")] = tonumber(value) or 0
60 + end
61 + end
62 + if not state.timestamp or not state.active_id then return nil end
63 + return state
64 +end
66 +local function current_state()
67 + local cached = parse_cache(read_file(cache_path))
68 + local t = now()
69 + if cached and (t - cached.timestamp) < cache_ttl then
70 + return cached
71 + end
73 + local state = { timestamp = t, active_id = nil, windows = {} }
74 + state.active_id = sh("hyprctl activeworkspace -j"):match('"id"%s*:%s*(-?%d+)') or ""
76 + for object in sh("hyprctl workspaces -j"):gmatch("%b{}") do
77 + local ws_id = object:match('"id"%s*:%s*(-?%d+)')
78 + if ws_id then
79 + state.windows[ws_id] = tonumber(object:match('"windows"%s*:%s*(%d+)') or "0") or 0
80 + end
81 + end
83 + local tmp = string.format("%s.%d", cache_path, os.time())
84 + local file = io.open(tmp, "w")
85 + if file then
86 + file:write("timestamp=", string.format("%.3f", state.timestamp), "\n")
87 + file:write("active=", state.active_id, "\n")
88 + for ws_id, windows in pairs(state.windows) do
89 + file:write("ws", ws_id, "=", tostring(windows), "\n")
90 + end
91 + file:close()
92 + os.rename(tmp, cache_path)
93 + end
95 + return state
96 +end
98 +local state = current_state()
99 +local windows = state.windows[id] or 0
100 +icon = pango_escape(icon)
102 +if state.active_id == id then
103 + print(string.format(
104 + '<span foreground="%s" background="%s" font_weight="bold"> %s </span>',
105 + vars["on-focus"] or "#121212",
106 + vars.focus or "#9aabae",
107 + icon
108 + ))
109 +elseif windows > 0 then
110 + print(string.format('<span foreground="%s">%s</span>', vars.fg or "#dbdbdb", icon))
111 +else
112 + print(string.format('<span foreground="%s">%s</span>', vars.muted or "#9d9d9d", icon))
113 +end

ironbar/style.css

Modified
37 37 button {
38 - padding: 2px 8px;
38 + min-height: 0;
39 + padding: 1px 7px;
39 40 border-radius: var(--radius);
40 41 background: transparent;
45 46 color: var(--on-focus);
48 -.workspaces .item {
49 - padding: 2px 8px;
49 +.nugu-workspaces {
50 + margin-right: 6px;
53 +.nugu-workspaces .workspace-item {
54 + min-height: 0;
50 55 margin: 0 2px;
51 - border-radius: var(--radius);
56 + padding: 1px 5px;
52 57 color: var(--muted);
55 -.workspaces .item.focused {
56 - background: var(--focus);
60 +.nugu-workspaces .workspace-item:hover {
61 + background: var(--accent);
57 62 color: var(--on-focus);
60 -.workspaces .item.focused label {
61 - color: var(--on-focus);
64 -.workspaces .item.visible {
65 - color: var(--fg);
68 -.workspaces .item.urgent {
69 - background-color: var(--error);
70 - color: var(--bg);
73 65 .launcher .item {
66 + min-height: 0;
74 67 margin: 0 2px;
75 - padding: 2px 6px;
68 + padding: 0 5px;
71 +.launcher image,
72 +.focused image {
73 + -gtk-icon-size: 16px;
78 76 .launcher .item.open {
79 - box-shadow: inset 0 -2px var(--unfocus);
77 + color: var(--fg);
82 80 .launcher .item.focused {
104 102 .focused {
105 103 color: var(--focus);
104 + margin-left: 12px;
107 +.bindmode {
106 108 margin-left: 8px;
109 + padding: 1px 7px;
110 + border-radius: var(--radius);
111 + background: var(--warning);
112 + color: var(--bg);
113 + font-weight: bold;
109 116 .popup-music {
118 125 .volume {
119 - margin: 0 4px;
126 + margin: 0 7px;
122 129 .popup-volume {
128 135 border-radius: var(--radius);
138 +.brightness {
139 + margin: 0 7px;
140 + color: var(--fg);
131 143 .battery {
132 - margin: 0 4px;
133 - color: var(--focus);
144 + margin: 0 7px;
145 + color: var(--fg);
148 +.battery.warning {
149 + color: var(--warning);
152 +.battery.critical {
153 + color: var(--error);
154 + font-weight: bold;
157 +.popup-battery {
158 + padding: 10px 12px;
159 + background-color: var(--bg-transparent);
160 + color: var(--fg);
163 +.popup-battery .details {
164 + color: var(--muted);
167 +.inhibit {
168 + margin: 0 7px;
169 + color: var(--muted);
172 +.inhibit button:checked,
173 +.inhibit button:active {
174 + background: var(--focus);
175 + color: var(--on-focus);
136 178 .clock {
137 179 font-weight: bold;
138 - margin: 0 4px;
180 + margin: 0 7px;
139 181 color: var(--accent);
184 +.popup-clock {
185 + padding: 12px;
186 + background-color: var(--bg-transparent);
187 + color: var(--fg);
190 +.popup-clock .calendar-clock {
191 + color: var(--accent);
192 + font-weight: bold;
193 + margin-bottom: 8px;
196 +.popup-clock calendar {
197 + background: transparent;
198 + color: var(--fg);
199 + border-radius: var(--radius);
202 +.popup-clock calendar header {
203 + color: var(--fg);
204 + border-bottom: 1px solid var(--unfocus);
205 + padding-bottom: 6px;
206 + margin-bottom: 6px;
209 +.popup-clock calendar button:hover {
210 + background: var(--surface);
211 + color: var(--fg);
214 +.popup-clock calendar grid label.day-name,
215 +.popup-clock calendar grid label.week-number {
216 + color: var(--muted);
219 +.popup-clock calendar grid label.day-number {
220 + color: var(--fg);
221 + border-radius: var(--radius);
224 +.popup-clock calendar grid label.other-month {
225 + color: var(--unfocus);
228 +.popup-clock calendar grid label.today {
229 + color: var(--accent);
230 + font-weight: bold;
233 +.popup-clock calendar grid label:selected {
234 + background: var(--focus);
235 + color: var(--on-focus);
142 238 .popup-clipboard {
143 239 padding: 8px;
152 248 background-color: var(--surface);
251 +.mako-status {
252 + margin: 0 7px;
253 + color: var(--fg);
256 +.mako-status:hover {
257 + color: var(--accent);
260 +.wifi {
261 + margin: 0 7px;
262 + color: var(--fg);
265 +.bluetooth {
266 + margin: 0 7px;
269 +.bluetooth.disabled,
270 +.bluetooth.not-found {
271 + color: var(--muted);
274 +.bluetooth.enabled {
275 + color: var(--fg);
278 +.bluetooth.connected {
279 + color: var(--fg);
282 +.bluetooth button:checked,
283 +.bluetooth button:active {
284 + background: transparent;
285 + color: var(--fg);
155 288 .tray {
156 - margin: 0 4px;
289 + margin: 0 7px;
159 292 .tray popover contents {
163 296 .power-menu {
164 - margin-left: 4px;
297 + margin-left: 7px;
300 +.power-menu #power-btn {
301 + color: var(--muted);
304 +.power-menu #power-btn:hover,
305 +.power-menu #power-btn:checked {
306 + background: var(--accent);
307 + color: var(--on-focus);
167 310 .popup-power-menu {
168 311 padding: 12px;
312 + background-color: var(--bg-transparent);
313 + color: var(--fg);
171 316 .popup-power-menu #header {
172 317 font-size: 14px;
173 318 font-weight: bold;
174 319 margin-bottom: 8px;
320 + padding-bottom: 8px;
175 321 color: var(--accent);
322 + border-bottom: 1px solid var(--unfocus);
325 +.popup-power-menu #buttons {
326 + margin-bottom: 8px;
178 329 .popup-power-menu .power-btn {
179 - background-color: var(--surface);
180 - border: 1px solid var(--accent);
330 + background-color: transparent;
331 + border: 1px solid var(--unfocus);
181 332 border-radius: var(--radius);
182 - padding: 6px 12px;
183 - margin: 0 4px;
184 - font-size: 16px;
333 + padding: 6px 10px;
334 + margin: 0 3px;
335 + color: var(--fg);
187 338 .popup-power-menu .power-btn:hover {
188 339 background-color: var(--accent);
340 + border-color: var(--accent);
341 + color: var(--on-focus);
344 +.popup-power-menu .power-btn.danger {
345 + border-color: var(--error);
348 +.popup-power-menu .power-btn.danger:hover {
349 + background-color: var(--error);
350 + border-color: var(--error);
189 351 color: var(--bg);
192 -.notifications .count {
193 - font-size: 10px;
194 - background-color: var(--accent);
195 - color: var(--bg);
196 - border-radius: 50%;
197 - padding: 2px 5px;
354 +.popup-power-menu #uptime {
355 + color: var(--muted);
200 358 .sysinfo {
201 - margin: 0 4px;
359 + margin: 0 7px;
204 362 .sysinfo > .item + .item {

nugu/ironbar.nu

Modified
20 20 --muted: ($p.ui.minor);
21 21 --unfocus: ($p.ui.unfocus);
22 22 --error: ($p.error);
23 + --warning: ($p.warning);
24 + --info: ($p.info);
25 + --debug: ($p.debug);
23 26 --border: ($p.ui.accent);

wezterm/bugabinga/mux.lua

Added
new file mode 100644
1 +local wez = require 'wezterm'
3 +return function ( cfg )
4 + if not wez.target_triple:find( 'linux', 1, true ) then return end
6 + cfg.unix_domains = {
7 + {
8 + name = 'unix',
9 + no_serve_automatically = true,
10 + },
11 + }
13 + cfg.default_gui_startup_args = { 'connect', 'unix' }
14 +end

wezterm/bugabinga/options.lua

Modified
24 24 if wez.target_triple:find( 'linux', 1, true ) and os.getenv 'WAYLAND_DISPLAY' then
25 25 cfg.enable_wayland = true
27 - cfg.font_size = 13
27 + if wez.hostname() == 'x230' then
28 + cfg.font_size = 11
29 + else
30 + cfg.font_size = 13
31 + end

wezterm/bugabinga/status.lua

Modified
80 80 local domain_label = function ( domain )
81 + if domain == 'unix' then return 'MUX', wez.nerdfonts.cod_server or wez.nerdfonts.cod_terminal or '□', palette.info end
81 82 if not domain or domain == 'local' or domain == 'Local' then return host_domain() end
82 83 if domain:find( '^WSL:', 1, false ) then return 'WSL', wez.nerdfonts.dev_linux or '□', palette.ui.important_local end
83 84 if domain:find( '^scope:', 1, false ) then return 'EXE', wez.nerdfonts.cod_gear or '□', palette.warning end

wezterm/systemd/wezterm-mux-server.service

Added
new file mode 100644
1 +[Unit]
2 +Description=WezTerm mux server
3 +Documentation=https://wezterm.org/multiplexing.html
5 +[Service]
6 +ExecStart=/usr/bin/wezterm-mux-server
7 +Restart=on-failure
8 +RestartSec=2
10 +[Install]
11 +WantedBy=default.target

wezterm/wezterm.lua

Modified
4 4 local wez = require 'wezterm'
5 5 local cfg = wez.config_builder()
7 7 require 'bugabinga.theme' ( cfg )
8 8 require 'bugabinga.startup' ( cfg )
9 9 require 'bugabinga.options' ( cfg )
10 +require 'bugabinga.mux' ( cfg )
10 11 require 'bugabinga.key_binds' ( cfg )
11 12 require 'bugabinga.mouse_binds' ( cfg )
12 13 require 'bugabinga.window' ( cfg )

x230.symlinks

Modified
106 106 hypr/systemd/ironbar.service
107 107 ~/.config/systemd/user/ironbar.service
109 +wezterm/systemd/wezterm-mux-server.service
110 +~/.config/systemd/user/wezterm-mux-server.service
109 112 fontconfig
110 113 ~/.config/fontconfig