repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

docs(quickshell): plan hypr companion migration

6691462213c96266746714d4b9f007ebb80f9cac

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

+1244 / −0 text lines

Diff layout

docs/super/inventory/2026-06-17-quickshell-hypr-companion-baseline.md

Added
new file mode 100644

+320 / −0 text lines

1# Quickshell Hypr Companion Baseline Inventory — 2026-06-17
2
3Goal source: reimplement Hypr companion apps in Quickshell with same features, same style/integration, dark/light mode, simpler Hypr config, better perf/looks, and retire obsolete apps only after verified parity.
4
5## Evidence collected
6
7Commands run:
8
9- `git status --short`
10- `hyprctl version`
11- `hyprctl monitors -j`
12- `hyprctl binds -j`
13- `hyprctl configerrors`
14- `systemctl --user status ironbar.service ironbar-workspaces.service mako.service cliphist.service wl-clip-persist.service`
15- `ironbar --validate-config -c ~/.config/ironbar/config.json -t ~/.config/ironbar/style.css`
16- `ps -eo pid,pcpu,rss,comm,args | grep ...`
18Current repo state before inventory write:
20- Branch `trunk`, ahead 7.
21- Existing unrelated dirty/untracked state: `../Notes`, `../pi-ext`, `../pi/agent/settings.json`.
22- Do not overwrite/clean those.
24Installed/live baseline:
26- Hyprland `0.55.2`.
27- Quickshell `0.3.0-2` installed as `qs`/`quickshell`.
28- Ironbar `0.19.0-2` live and config validates.
29- Mako `1.11.0-1` live.
30- One monitor: `LVDS-1`, `1366x768`, scale `1`, active workspace `3` during inventory.
31- `hyprctl configerrors` empty.
33Current companion processes:
35| Process | RSS observed | Notes |
36| --- | ---: | --- |
37| `ironbar` | ~297660 KiB RSS in `ps`; systemd reports ~246.5 MiB current | High baseline target to beat. Logs show repeated MPRIS DBus closed errors. |
38| `workspaces-watch.py` | ~16420 KiB RSS; systemd reports ~23.7 MiB | Exists only to feed Ironbar workspace labels. Quickshell should delete this process. |
39| `mako` | ~23772 KiB RSS; systemd reports ~5.7 MiB | Notification daemon to replace after parity. |
40| `cliphist` watcher | ~424 KiB systemd | Keep storage daemon unless Quickshell also stores history. Frontend replacement is separate. |
41| `wl-clip-persist` | ~3.5 MiB systemd | Keep unless a Quickshell clipboard owner fully replaces it. |
42| `hyprlauncher --dmenu` | ~228380 KiB RSS while open | Launcher/dmenu frontend replacement target. |
44## Current tracked companion files
46Hypr:
48- `hypr/hyprland.lua` loads modules.
49- `hypr/modules/apps.lua` defines app commands.
50- `hypr/modules/binds.lua` binds keys.
51- `hypr/modules/hypr_osd.lua` wraps control commands in `hyprctl notify`.
52- `hypr/modules/commands.lua` exposes app/workspace helpers for Ironbar actions.
53- `hypr/modules/workspaces.lua` defines workspaces `1..5` plus Ironbar uses `9`.
54- `hypr/scripts/theme.nu` switches Nugu mode and rewrites Mako/Ironbar runtime theme files.
55- `hypr/hyprtoolkit.conf` themes Hyprtoolkit apps (`hyprlauncher`, `hyprshutdown`, etc.).
56- `hypr/systemd/{ironbar,ironbar-workspaces,mako,cliphist,wl-clip-persist}.service` starts companion services.
58Ironbar:
60- `ironbar/config.json` defines bar layout, widgets, clicks, popups.
61- `ironbar/style.css` defines GTK CSS and Nugu semantic styling.
62- `ironbar/nugu.css` is generated current palette CSS vars.
63- `ironbar/scripts/workspaces-watch.py` tracks Hypr socket2 and feeds Ironbar vars.
64- `ironbar/scripts/mako-status.sh` polls Mako count.
65- `ironbar/scripts/wifi-status.sh` polls iwd status.
67Mako:
69- `mako/config` defines notification behavior/layout and includes `mako/nugu.conf`.
70- `mako/nugu.conf` is generated Nugu color/style fragment.
72Nugu:
74- `nugu/hypr.nu` generates `hypr/generated/nugu.{json,lua}`.
75- `nugu/ironbar.nu` generates Ironbar CSS vars.
76- `nugu/mako.nu` generates Mako theme fragment.
77- `nugu/justfile` currently generates but does not copy Mako/Ironbar output in its `mako`/`ironbar` recipes.
79## Exact Ironbar extraction
81Extracted from `ironbar/config.json` with `jq` on 2026-06-17.
83### Workspace labels
85| Var | Label |
86| --- | --- |
87| `ws1` | `1 󰖟` |
88| `ws2` | `2 󰅨` |
89| `ws3` | `3 󰆍` |
90| `ws4` | `4 󰭹` |
91| `ws5` | `5 󰎆` |
92| `ws9` | `9 󰉋` |
94### Bar modules and actions
96| Section | Type/name | Format | Tooltip | Left/click | Middle | Right | Scroll up | Scroll down |
97| --- | --- | --- | --- | --- | --- | --- | --- | --- |
98| start | `custom workspace-switcher` | buttons from `ws1..ws5,ws9` | Workspaces: web code term chat media misc | `hyprctl eval 'require("modules.commands").workspace("N")'` per button | | | | |
99| start | `clipboard` | max 5, truncate end 30 | | builtin popup/select | | | | |
100| start | `bindmode` | truncate end 20 | | builtin display | | | | |
101| center | `music` | `{title} / {artist}` | | builtin MPRIS | | | | |
102| center | `clock` | `%H:%M` | | builtin calendar popup | | | | |
103| end | `script mako-status` | `󰂚` or `󰂞 N` | Notifications: left restores last, right dismisses all | `makoctl restore` | | `makoctl dismiss --all` | | |
104| end | `script wifi` | `󰖩` or `󰖪 off` | WiFi: left/middle opens impala | `hyprctl eval 'require("modules.commands").app("wifi")'` | same | | | |
105| end | `bluetooth` | `󰂲`, `󰂯`, `󰂱`, `󰂱 {device_battery_percent}%` | Bluetooth: left/middle opens bluetui | `hyprctl eval 'require("modules.commands").app("bluetooth")'` | same | | | |
106| end | `tray` | icon size 14 | | builtin tray menu | | | | |
107| end | `sys_info` | ` {cpu_percent:1}%` | System monitor: left/middle opens btm | `hyprctl eval 'require("modules.commands").app("system_monitor")'` | same | | | |
108| end | `volume` | builtin | Volume: scroll adjusts, right mutes, middle opens wiremix | | `hyprctl eval 'require("modules.commands").app("audio_mixer")'` | `wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle` | `wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+` | `wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-` |
109| end | `brightness` | `󰃠 {percentage}%` | Brightness: scroll adjusts display | builtin | | | builtin smooth scroll | builtin smooth scroll |
110| end | `battery` | `󰁹 {percentage}%` | Battery: left/middle opens upower | `hyprctl eval 'require("modules.commands").app("battery")'` | same | | | |
111| end | `inhibit` | on `󰅶 {duration}`, off `󰛊 {duration}` | Inhibit: left toggles, right cycles duration | builtin toggle | | builtin cycle | | |
112| end | `custom power-menu` | `󰐥` | Power menu | popup toggle | | | | |
114### Power popup actions
116| Label | Command |
117| --- | --- |
118| `󰐥 off` | `!hyprshutdown --post-cmd "systemctl poweroff"` |
119| `󰜉 reboot` | `!hyprshutdown --post-cmd "systemctl reboot"` |
120| `󰍃 out` | `!hyprshutdown` |
121| `󰤄 sleep` | `!loginctl lock-session && systemctl suspend` |
122| `󰌾 lock` | `!hyprlock` |
124## Exact Mako extraction
126Extracted from `mako/config` on 2026-06-17.
128| Key | Value |
129| --- | --- |
130| `font` | `IBM Plex Sans 10` |
131| `border-size` | `2` |
132| `border-radius` | `12` |
133| `padding` | `12,14` |
134| `margin` | `8` |
135| `outer-margin` | `14` |
136| `anchor` | `top-right` |
137| `layer` | `overlay` |
138| `width` | `360` |
139| `height` | `160` |
140| `max-visible` | `4` |
141| `max-history` | `80` |
142| `sort` | `-priority` |
143| `icons` | `1` |
144| `max-icon-size` | `48` |
145| `icon-border-radius` | `7` |
146| `markup` | `1` |
147| `actions` | `1` |
148| `history` | `1` |
149| `ignore-timeout` | `1` |
150| `default-timeout` | `6500` |
151| `format` | `%a\\n<b>%s</b>\\n%b` |
152| `on-button-left` | `invoke-default-action` |
153| `on-button-middle` | `dismiss-group` |
154| `on-button-right` | `dismiss` |
155| `[urgency=low] default-timeout` | `2500` |
156| `[urgency=normal] default-timeout` | `6500` |
157| `[urgency=critical] border-size` | `3` |
158| `[urgency=critical] default-timeout` | `0` |
159| `[grouped] format` | `%a · %g\\n<b>%s</b>\\n%b` |
160| `[hidden] format` | `+%h more notifications` |
162## Hypr binds that touch companion apps
164| Bind | Current action | Replacement target |
165| --- | --- | --- |
166| `SUPER+Space` | `hyprlauncher` | Quickshell launcher IPC/window. |
167| `SUPER+V` | `cliphist list | hyprlauncher --dmenu | cliphist decode | wl-copy` | Quickshell clipboard picker using `cliphist` backend or native history. |
168| `CTRL+ALT+Delete` | `hyprshutdown --dry-run` | Quickshell power/logout window; keep dry-run semantics until explicit destructive action. |
169| `SUPER+ALT+L` | `hyprctl notify` then `hyprlock` | Quickshell OSD/notification then existing lock, or later Quickshell lock. |
170| `SUPER+ALT+S` | `hyprctl notify`, `loginctl lock-session`, `systemctl suspend` | Quickshell OSD/session action wrapper. |
171| `SUPER+SHIFT+R` | `hyprctl reload` then `hyprctl notify` | Quickshell reload toast/OSD. |
172| `SUPER+Escape` | `makoctl dismiss --all; hyprctl dismissnotify` | Quickshell notification dismiss-all plus Hypr notify clear during transition. |
173| `XF86Audio*` | `wpctl`/`playerctl` plus `hyprctl notify` | Quickshell Pipewire/MPRIS OSD and direct service writes where possible. |
174| `XF86MonBrightness*` | `brightnessctl` plus `hyprctl notify` | Quickshell brightness OSD; command boundary may stay `brightnessctl`. |
175| `Print` variants | `hyprshot`/`satty`/`hyprpicker` plus `hyprctl notify` | Keep external capture tools; replace notification wrapper. |
177Core compositor/workspace/window binds are not companion-app scope and should stay in Hypr unless Quickshell global shortcuts prove cleaner.
179## Ironbar feature parity matrix
181| Surface | Current source | Current behavior | Quickshell parity requirement | Verification |
182| --- | --- | --- | --- | --- |
183| Bar shell | `ironbar/config.json`, `style.css` | Top bar, height `30`, transparent bg, `2px` accent bottom border, `20px` horizontal padding. | Per-monitor `PanelWindow`, top anchored, exclusive zone, IBM Plex Mono, same sizing/border/radius. | Screenshot compare dark/light; windows reserve top space. |
184| Workspaces | `custom` widget + `workspaces-watch.py` | Buttons for `1 web`, `2 code`, `3 term`, `4 chat`, `5 media`, `9 misc`; active = important-global, occupied = fg, empty = muted; click focuses workspace via Hypr Lua. | Use `Quickshell.Hyprland` or Hypr socket service, no Python/Ironbar vars, same labels/colors/clicks. Include workspace `9` even though Hypr module list omits it. | Switch/open/move windows; active/occupied update instantly. |
185| Clipboard bar item | Ironbar `clipboard` module | Shows clipboard menu, max 5, truncates 30 chars. | Clipboard picker popup/window. Backend decision: keep `cliphist` for storage first; frontend in Quickshell. | Copy items, open picker, select item to `wl-copy`, delete if current behavior supports deletion. |
186| Bind mode | Ironbar `bindmode` | Shows current Hypr bind mode, truncates 20. | Hypr IPC/event state display if bind modes are used; otherwise match hidden/empty behavior. | Enter any bind mode if configured; visual appears. |
187| Music | Ironbar `music`, MPRIS | Center text `{title} / {artist}`, truncate 42. Current live logs show repeated MPRIS DBus closed errors. | Use `Quickshell.Services.Mpris`; display active player title/artist; no 1Hz DBus error loop. | Play/pause media; title changes; idle hidden/empty cleanly; no log spam. |
188| Clock | Ironbar `clock` | Center `%H:%M`, bold accent, calendar popup styled. | `SystemClock`, same text; popup calendar with readable Nugu styling. | Time update; popup readable in dark/light. |
189| Notification status | `mako-status.sh` poll 5s | Icon `󰂚` when none; `󰂞 N` when active/history reports notifications; left restore last, right dismiss all. | Integrated notification daemon/status. No shell poll. Restore/history behavior must match or consciously supersede. | Send/restore/dismiss notifications. |
190| WiFi status | `wifi-status.sh` poll 30s | Uses `iwctl station wlan0 show`; connected `󰖩`, disconnected `󰖪 off`; left/middle opens `impala`. | For first parity, process adapter or iwd/DBus adapter; same icon/action. Avoid NetworkManager dependency. | Toggle/disconnect/connected states; clicks open `impala`. |
191| Bluetooth | Ironbar `bluetooth` | Status-only; disabled popup; left/middle opens `bluetui`; formats not_found/disabled/enabled/connected/battery. | Use `Quickshell.Services.Bluetooth`; same status and click actions; no ugly builtin popup. | Bluetooth off/on/connected/battery visible; clicks open `bluetui`. |
192| Tray | Ironbar `tray` | Icon size 14; native tray popovers styled. | `Quickshell.Services.SystemTray` with menus via DBusMenu/QsMenuOpener, same icon sizing. | Existing tray icons render; menus work/readable. |
193| CPU | Ironbar `sys_info` | ` {cpu_percent:1}%`, 2s interval; left/middle opens `btm`. | Lightweight CPU sampler every 2s; same display/click. | CPU value changes; click opens `btm`. |
194| Volume | Ironbar `volume` | Scroll `wpctl` +/-2%, right mute, middle `wiremix`, no source display, tooltip. | Pipewire service state, scroll/click parity, maybe OSD sharing; middle opens `wiremix`. | Scroll changes volume; mute state; click opens `wiremix`; OSD if integrated. |
195| Brightness | Ironbar `brightness` | `󰃠 {percentage}%`; systemd backlight `intel_backlight`; smooth scroll. | Backlight adapter, same display/scroll. `brightnessctl` boundary acceptable first. | Scroll/keys update; value matches system. |
196| Battery | Ironbar `battery` | `󰁹 {percentage}%`; hidden if no BAT; warning <=20; critical <=5 discharging; click opens upower terminal. | UPower display device, same warning/critical/hidden behavior; click opens battery command or native popup. | Battery visible on X230; warning classes simulated or inspected. |
197| Inhibit | Ironbar `inhibit` | Durations `30m/1h/2h/inf`, default `inf`, format on/off; left toggles, right cycles. | Quickshell idle inhibitor with duration cycle and visible countdown/state. | Toggle inhibits Hypr idle; duration cycles; sleep does not trigger while on. |
198| Power menu | Ironbar custom popup | Button `󰐥`; popup actions poweroff/reboot/logout/sleep/lock; uptime line. | Quickshell popup/window with same actions and safer confirmation if needed; retain command semantics. | Open menu; non-destructive lock/sleep tested; destructive buttons dry-run or user-confirmed only. |
200## Mako notification parity matrix
202| Current Mako behavior | Requirement in Quickshell notification daemon |
203| --- | --- |
204| Top-right overlay, layer overlay, width `360`, height `160`, margin/outer-margin. | Same placement and size on `LVDS-1`, multi-monitor sane. |
205| Font `IBM Plex Sans 10`; border `2`, radius `12`, padding `12,14`; icon max `48`, icon radius `7`. | Same typography and geometry using Nugu tokens. |
206| `max-visible=4`, `max-history=80`, `sort=-priority`. | Same visible cap and history cap/order. |
207| `markup=1`, `actions=1`, `history=1`, `ignore-timeout=1`. | Render markup safely; expose actions; retain history; notification timeout behavior equal. |
208| `default-timeout=6500`; low `2500`; critical `0`. | Same expiration policy. |
209| Format `%a\n<b>%s</b>\n%b`; grouped `%a · %g\n<b>%s</b>\n%b`; hidden `+%h more notifications`. | Same text content and grouped/overflow indicator. |
210| Mouse: left invoke default action, middle dismiss group, right dismiss. | Same pointer actions. |
211| Semantic colors from `mako/nugu.conf`: normal, low, critical, summary regex error/warn/info. | Same Nugu semantic mapping, dark/light live. |
212| `makoctl dismiss --all`, `makoctl restore` used from binds/bar. | Quickshell IPC replacements for dismiss-all and restore-last/history. |
214## Launcher/clipboard/power parity matrix
216| Current app | Current use | Quickshell replacement boundary |
217| --- | --- | --- |
218| `hyprlauncher` | App launcher on `SUPER+Space`; dmenu frontend for clipboard. Theme from `hyprtoolkit.conf`. | Quickshell launcher must handle desktop app launching and dmenu-like list selection before removing `hyprlauncher` usage. |
219| `cliphist` | Storage daemon and list/decode backend. | Keep daemon initially. Replace only frontend first. Full native clipboard history can be later if it beats `cliphist` without more complexity. |
220| `hyprshutdown` | Graceful logout/power menu; dry-run in keybind, real commands in Ironbar popup. | Quickshell power menu can call `systemctl`/`hyprctl` directly. Use confirmation/dry-run while validating. |
221| `hyprtoolkit.conf` | Theme for Hyprtoolkit apps. | Becomes obsolete when `hyprlauncher`/`hyprshutdown` are gone. Do not delete before then. |
223## Nugu dark/light parity
225Current state:
227- `hypr/generated/nugu.lua` reads `~/.cache/nugu/mode` and falls back to `dark`.
228- `hypr/scripts/theme.nu` supports `dark`, `light`, `toggle`, `auto`, `current`, `watch`.
229- Auto mode: light from `07:00` to `19:00`, dark otherwise; `~/.cache/nugu/auto` disables/enables.
230- Switcher writes:
231 - `~/.cache/nugu/mode`
232 - GTK `org.gnome.desktop.interface color-scheme`
233 - `~/.config/mako/nugu.conf`
234 - `~/.config/ironbar/nugu.css`
235 - Hyprpaper wallpaper path `~/.config/hypr/wallpapers/nugu-{mode}.png`
236 - `hyprctl reload`
237 - restarts Mako and Ironbar
238 - optional `notify-send`.
240Quickshell requirements:
242- Single Nugu theme service reads both palettes and mode state.
243- Use same semantic token names as Nugu/hypr/ironbar/mako now: `ui.*`, `content.*`, `error`, `warning`, `info`, `debug`.
244- Live switch all Quickshell surfaces without Ironbar/Mako restart.
245- Continue setting GTK color-scheme and Hyprland palette reload while Hypr config still uses Nugu.
246- Remove Ironbar/Mako theme generation only after their services are retired.
248Open simplification target:
250- Move mode state from `~/.cache/nugu` to `${XDG_STATE_HOME:-~/.local/state}/nugu` only if done across all consumers in one planned step.
252## Current style contract to preserve
254- Fonts: IBM Plex family exclusively in Hypr desktop configs.
255 - Bar/status mono: `IBM Plex Mono`.
256 - Notifications/toolkit UI sans: `IBM Plex Sans`.
257- Active UI: bg `ui.focus`, fg `content.backdrop`.
258- Hover/accent UI: bg `ui.accent`, fg `content.backdrop`.
259- Muted UI text: `ui.minor` over `ui.backdrop`.
260- Borders/accent lines: `ui.accent`.
261- Bar: compact brutal 30px top strip, no shadows/images, transparent-ish bg, accent bottom line.
262- Rounded corners: small `7px`, notification/popup large `12px`.
264## Retirement candidates and gate
266Do not retire until corresponding parity tests pass live.
268| Candidate | Can retire after |
269| --- | --- |
270| `ironbar.service` | Quickshell bar passes all Ironbar feature rows and screenshot review. |
271| `ironbar-workspaces.service` | Quickshell workspace widget updates active/occupied instantly without Python/Ironbar vars. |
272| `mako.service` | Quickshell notification daemon owns DBus notifications, actions, history, timeouts, styling, dismiss/restore IPC. |
273| `hyprlauncher` usage | Quickshell launcher and dmenu/clipboard picker pass parity. |
274| `hyprshutdown` usage | Quickshell power menu/logout actions pass parity. |
275| `hyprtoolkit.conf` | No remaining Hyprtoolkit apps are bound/used. |
276| `hyprctl notify` helpers in `hypr_osd.lua` | Quickshell OSD/notification IPC replaces all status toasts. |
277| `hypr/scripts/theme.nu` Ironbar/Mako writes | Ironbar/Mako are retired or generation is removed from switcher. |
279Not immediate retirement targets without explicit design/confirmation:
281- `hyprlock` lockscreen.
282- `hypridle` idle policy.
283- `hyprsunset` blue-light filtering.
284- `hyprpolkitagent`.
285- `hyprpaper`/wallpaper handling.
286- `cliphist` storage daemon and `wl-clip-persist`.
288## Architecture implied by the inventory
290One named Quickshell config, likely `~/.config/quickshell/nugu`, should own:
292- Bar windows per monitor.
293- Notification daemon and notification history.
294- Launcher/dmenu/clipboard/power popups.
295- OSD windows for audio/brightness/media/session/screenshot status.
296- Shared services:
297 - `ThemeService`: Nugu palette + mode + IPC switch/toggle.
298 - `HyprService`: workspaces, clients, bind mode, dispatch helper.
299 - `CommandService`: controlled process boundaries for `wezterm`, `impala`, `bluetui`, `btm`, `wiremix`, `hyprshot`, `satty`, `hyprpicker`, lock/suspend.
300 - `ClipboardService`: `cliphist` adapter first.
301 - `NotificationService`: Quickshell `NotificationServer` wrapper.
303Hypr Lua should later shrink to compositor config plus binds that call Quickshell IPC for companion surfaces.
305## Open questions for next design step
3071. Does `same feature as now` require replacing `hyprlock`/`hyprpaper`/`hypridle`, or are those compositor/session primitives allowed to remain?
3082. Should clipboard storage stay `cliphist` permanently, or is native Quickshell history desired if it stays simpler?
3093. Is launcher parity desktop-app launching only, or also arbitrary command/run mode?
3104. Destructive power actions: require confirmation UI, or mirror current single-click Ironbar buttons?
312## Next concrete subgoal
314Create the Quickshell implementation design from this matrix, then build in safe phases:
3161. Scaffold named config with ThemeService + shared style tokens + empty bar.
3172. Replace Ironbar bar first while Mako/Hyprlauncher remain live.
3183. Replace Mako notifications second.
3194. Replace launcher/clipboard/power/OSD.
3205. Only then simplify Hypr binds and retire old services.

docs/super/plans/2026-06-17-quickshell-hypr-companions-phase-1-foundation.md

Added
new file mode 100644

+609 / −0 text lines

1# Quickshell Hypr Companions Phase 1 Foundation Implementation Plan
2
3> **For agentic workers:** REQUIRED SUB-SKILL: Use /skill:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
4
5**Goal:** Add a safe named Quickshell `nugu` config with shared Nugu theme state, IPC skeleton, diagnostics, service wiring, and validation without replacing Ironbar or Mako.
6
7**Architecture:** Quickshell runs as one named config (`qs -c nugu`) from `~/.config/quickshell/nugu/shell.qml`. Phase 1 contains only a `Scope`, `Theme` service, IPC target, and a hidden diagnostics panel. Current desktop daemons remain authoritative.
8
9**Tech Stack:** Quickshell 0.3.0, QML/QtQuick, Nugu JSON palette from `hypr/generated/nugu.json`, systemd user service, dorkfiles symlink manifests.
11**Roadmap:** [`docs/super/roadmaps/2026-06-17-quickshell-hypr-companions-roadmap.md`](../roadmaps/2026-06-17-quickshell-hypr-companions-roadmap.md)
13**Phase:** Phase 1: Quickshell Foundation and Nugu Theme Service
15---
17## File Structure
19Create:
21- `quickshell/nugu/shell.qml` — Quickshell entry point; owns root state and IPC.
22- `quickshell/nugu/Theme.qml` — Nugu palette/mode service for QML.
23- `quickshell/nugu/Diagnostics.qml` — hidden top diagnostic panel used to verify theme and IPC.
24- `quickshell/nugu/README.md` — run/verify notes for this config.
25- `hypr/systemd/quickshell.service` — user service for `qs -c nugu`.
27Modify:
29- `.gitignore` — ignore Quickshell LSP scratch file `.qmlls.ini`.
30- `x230.symlinks` — link Quickshell config and service into `$HOME`.
31- `enable_user_services.nu` — enable Quickshell only when `qs` exists.
33Do not modify:
35- `ironbar/`, `mako/`, `hypr/modules/*` behavior.
36- Existing service enablement for Ironbar/Mako.
37- Nugu generators.
39## Task 1: Add Quickshell config skeleton
41**Files:**
43- Create: `quickshell/nugu/shell.qml`
44- Create: `quickshell/nugu/Theme.qml`
45- Create: `quickshell/nugu/Diagnostics.qml`
46- Create: `quickshell/nugu/README.md`
47- Modify: `.gitignore`
49- [ ] **Step 1: Create the config directory**
51Run:
53```bash
54mkdir -p quickshell/nugu
55```
57Expected: directory exists.
59- [ ] **Step 2: Write `quickshell/nugu/Theme.qml`**
61Create this file exactly:
63```qml
64import QtQuick
65import Quickshell
67QtObject {
68 id: theme
70 readonly property string modePath: `${Quickshell.env("HOME")}/.cache/nugu/mode`
71 readonly property string paletteUrl: Qt.resolvedUrl("../../hypr/generated/nugu.json")
73 property string mode: readMode()
74 property var palettes: readJson(paletteUrl)
75 property var palette: palettes[mode] || palettes.dark
77 readonly property var content: palette.content
78 readonly property var ui: palette.ui
79 readonly property string error: palette.error
80 readonly property string warning: palette.warning
81 readonly property string info: palette.info
82 readonly property string debug: palette.debug
84 function readText(url) {
85 const request = new XMLHttpRequest()
86 request.open("GET", url, false)
87 request.send()
88 if (request.status === 0 || (request.status >= 200 && request.status < 300)) {
89 return request.responseText
90 }
91 console.warn(`nugu: failed reading ${url}: ${request.status}`)
92 return ""
93 }
95 function readJson(url) {
96 const text = readText(url)
97 if (text.length === 0) {
98 return { "dark": fallbackDark(), "light": fallbackDark() }
99 }
100 return JSON.parse(text)
101 }
103 function readMode() {
104 const text = readText(`file://${modePath}`).trim()
105 return text === "light" ? "light" : "dark"
106 }
108 function reload(): void {
109 palettes = readJson(paletteUrl)
110 mode = readMode()
111 palette = palettes[mode] || palettes.dark
112 }
114 function setMode(next: string): void {
115 mode = next === "light" ? "light" : "dark"
116 palette = palettes[mode] || palettes.dark
117 }
119 function fallbackDark() {
120 return {
121 "debug": "#ed5eed",
122 "error": "#ec6376",
123 "warning": "#f0ee69",
124 "info": "#3ec5e3",
125 "content": {
126 "normal": "#ededed",
127 "backdrop": "#121212",
128 "accent": "#d151d1",
129 "minor": "#8b8b8b",
130 "focus": "#7ba1aa",
131 "unfocus": "#5d5d5d",
132 "important_local": "#b59ae4",
133 "important_global": "#dfd3f3"
134 },
135 "ui": {
136 "normal": "#dbdbdb",
137 "backdrop": "#242424",
138 "accent": "#d86dd8",
139 "minor": "#9d9d9d",
140 "focus": "#9aabae",
141 "unfocus": "#6f6f6f",
142 "important_local": "#c9b6eb",
143 "important_global": "#f3effb"
144 }
145 }
146 }
147}
148```
150- [ ] **Step 3: Write `quickshell/nugu/Diagnostics.qml`**
152Create this file exactly:
154```qml
155import QtQuick
156import QtQuick.Layouts
157import Quickshell
159PanelWindow {
160 id: panel
162 required property QtObject theme
164 anchors { top: true; left: true }
165 margins { top: 36; left: 10 }
166 exclusiveZone: -1
167 implicitWidth: 360
168 implicitHeight: 96
169 color: "transparent"
171 Rectangle {
172 anchors.fill: parent
173 radius: 7
174 color: `${panel.theme.ui.backdrop}ee`
175 border.width: 2
176 border.color: panel.theme.ui.accent
178 ColumnLayout {
179 anchors.fill: parent
180 anchors.margins: 12
181 spacing: 6
183 Text {
184 Layout.fillWidth: true
185 text: `Quickshell Nugu · ${panel.theme.mode}`
186 color: panel.theme.ui.important_global
187 font.family: "IBM Plex Mono"
188 font.pixelSize: 13
189 font.bold: true
190 elide: Text.ElideRight
191 }
193 RowLayout {
194 Layout.fillWidth: true
195 spacing: 8
197 Repeater {
198 model: [
199 panel.theme.ui.backdrop,
200 panel.theme.ui.normal,
201 panel.theme.ui.accent,
202 panel.theme.ui.focus,
203 panel.theme.warning,
204 panel.theme.error,
205 panel.theme.info
206 ]
208 Rectangle {
209 required property string modelData
210 Layout.preferredWidth: 34
211 Layout.preferredHeight: 22
212 radius: 4
213 color: modelData
214 border.width: 1
215 border.color: panel.theme.ui.unfocus
216 }
217 }
218 }
220 Text {
221 Layout.fillWidth: true
222 text: "IPC: qs -c nugu ipc call nugu toggleDiagnostics"
223 color: panel.theme.ui.minor
224 font.family: "IBM Plex Mono"
225 font.pixelSize: 11
226 elide: Text.ElideRight
227 }
228 }
229 }
230}
231```
233- [ ] **Step 4: Write `quickshell/nugu/shell.qml`**
235Create this file exactly:
237```qml
238import QtQuick
239import Quickshell
240import Quickshell.Io
241import "."
243Scope {
244 id: root
246 property bool diagnosticsVisible: false
248 Theme { id: theme }
250 IpcHandler {
251 target: "nugu"
253 function showDiagnostics(): void { root.diagnosticsVisible = true }
254 function hideDiagnostics(): void { root.diagnosticsVisible = false }
255 function toggleDiagnostics(): void { root.diagnosticsVisible = !root.diagnosticsVisible }
256 function reloadTheme(): void { theme.reload() }
257 function setThemeMode(mode: string): void { theme.setMode(mode) }
258 }
260 Diagnostics {
261 visible: root.diagnosticsVisible
262 theme: theme
263 }
264}
265```
267- [ ] **Step 5: Write `quickshell/nugu/README.md`**
269Create this file exactly:
271```markdown
272# Nugu Quickshell
274Named Quickshell config for Hypr companion replacement.
276Phase 1 is inert by default. It starts Quickshell, loads Nugu colors, and exposes diagnostics over IPC. It does not replace Ironbar or Mako.
278Run directly:
280```sh
281qs -p quickshell/nugu/shell.qml
282```
284Run named config after dorkfiles link:
286```sh
287qs -c nugu
288```
290Diagnostics:
292```sh
293qs -c nugu ipc call nugu showDiagnostics
294qs -c nugu ipc call nugu hideDiagnostics
295qs -c nugu ipc call nugu toggleDiagnostics
296qs -c nugu ipc call nugu reloadTheme
297qs -c nugu ipc call nugu setThemeMode light
298qs -c nugu ipc call nugu setThemeMode dark
299```
300```
302- [ ] **Step 6: Ignore Quickshell LSP scratch files**
304Append this block to `.gitignore` if no equivalent exists:
306```gitignore
308# Quickshell LSP scratch/config generated by qs.
309**/.qmlls.ini
310```
312- [ ] **Step 7: Validate direct run parses**
314Run from repo root:
316```bash
317timeout 3s qs -p quickshell/nugu/shell.qml >/tmp/nugu-qs-phase1.out 2>/tmp/nugu-qs-phase1.err; code=$?; printf 'exit=%s\n' "$code"; cat /tmp/nugu-qs-phase1.err
318```
320Expected:
322- Exit `124` from `timeout` is acceptable because `qs` keeps running.
323- No QML parse/type errors in stderr.
324- Warnings about DBus/session only need investigation if they prevent startup.
326- [ ] **Step 8: Commit scaffold**
328```bash
329git add .gitignore quickshell/nugu
330git commit -m "feat(quickshell): add nugu shell foundation"
331```
333## Task 2: Add systemd service and dorkfiles links
335**Files:**
337- Create: `hypr/systemd/quickshell.service`
338- Modify: `x230.symlinks`
339- Modify: `enable_user_services.nu`
341- [ ] **Step 1: Write `hypr/systemd/quickshell.service`**
343Create this file exactly:
345```systemd
346[Unit]
347Description=Quickshell Nugu desktop companions
348PartOf=graphical-session.target
349After=graphical-session.target
351[Service]
352Environment=QS_NO_RELOAD_POPUP=1
353ExecStart=/usr/bin/qs -c nugu
354Restart=on-failure
355RestartSec=2
356Slice=session.slice
358[Install]
359WantedBy=graphical-session.target
360```
362- [ ] **Step 2: Add symlink manifest entries**
364In `x230.symlinks`, add these pairs after the existing `ironbar` config pair and before systemd service pairs:
366```text
367quickshell/nugu
368~/.config/quickshell/nugu
369```
371Add this service pair after `hypr/systemd/ironbar-workspaces.service`:
373```text
374hypr/systemd/quickshell.service
375~/.config/systemd/user/quickshell.service
376```
378- [ ] **Step 3: Add service to enable script**
380In `enable_user_services.nu`, add this row after `ironbar-workspaces`:
382```nu
383 [quickshell qs quickshell.service]
384```
386Expected relevant block after edit:
388```nu
389 [ironbar ironbar ironbar.service]
390 [ironbar-workspaces python ironbar-workspaces.service]
391 [quickshell qs quickshell.service]
392```
394- [ ] **Step 4: Validate service file syntax**
396Run:
398```bash
399systemd-analyze --user verify hypr/systemd/quickshell.service
400```
402Expected: no output and exit `0`.
404- [ ] **Step 5: Do not run dorkfiles link automatically**
406Do not run `just link`, `just setup`, or `systemctl --user enable --now quickshell.service` in this plan unless the user explicitly approves mutating `$HOME`/live services.
408- [ ] **Step 6: Commit service wiring**
410Run:
412```bash
413git add hypr/systemd/quickshell.service x230.symlinks enable_user_services.nu
414git commit -m "feat(quickshell): wire nugu user service"
415```
417## Task 3: Validate IPC with a temporary direct process
419**Files:**
421- No tracked file changes.
423- [ ] **Step 1: Start a temporary named config without systemd**
425Run from repo root:
427```bash
428mkdir -p ~/.config/quickshell
429ln -sfn "$PWD/quickshell/nugu" ~/.config/quickshell/nugu
430QS_NO_RELOAD_POPUP=1 qs -c nugu >/tmp/nugu-qs-ipc.out 2>/tmp/nugu-qs-ipc.err &
431printf '%s\n' $! >/tmp/nugu-qs-ipc.pid
432sleep 1
433cat /tmp/nugu-qs-ipc.err
434```
436Expected: no QML parse/type errors.
438This command mutates one symlink under `~/.config/quickshell/nugu`; it is the same link the dorkfiles manifest will manage. If this is not acceptable in the live session, skip this task and validate after explicit link approval.
440- [ ] **Step 2: Show diagnostics via IPC**
442Run:
444```bash
445qs -c nugu ipc call nugu showDiagnostics
446sleep 1
447```
449Expected: small Nugu diagnostics panel appears near top-left. It does not reserve screen space and does not replace Ironbar.
451- [ ] **Step 3: Test dark/light IPC switching**
453Run:
455```bash
456qs -c nugu ipc call nugu setThemeMode light
457sleep 1
458qs -c nugu ipc call nugu setThemeMode dark
459sleep 1
460```
462Expected: diagnostics panel changes between light and dark palette colors.
464- [ ] **Step 4: Hide diagnostics**
466Run:
468```bash
469qs -c nugu ipc call nugu hideDiagnostics
470```
472Expected: diagnostics panel disappears.
474- [ ] **Step 5: Stop temporary Quickshell**
476Run:
478```bash
479kill "$(cat /tmp/nugu-qs-ipc.pid)"
480rm -f /tmp/nugu-qs-ipc.pid
481```
483Expected: no `qs -c nugu` process remains from this task.
485- [ ] **Step 6: Inspect process list**
487Run:
489```bash
490ps -eo pid,pcpu,rss,comm,args | grep -E 'qs -c nugu|quickshell' | grep -v grep || true
491```
493Expected: no output after killing the temporary process.
495## Task 4: Phase 1 verification record
497**Files:**
499- Create: `docs/super/inventory/2026-06-17-quickshell-phase-1-verification.md`
501- [ ] **Step 1: Write verification record from command output**
503Run this after the validation commands above:
505```bash
506mkdir -p docs/super/inventory
507{
508 printf '# Quickshell Phase 1 Verification — 2026-06-17\n\n'
509 printf '## Commands\n\n'
510 printf -- '- `timeout 3s qs -p quickshell/nugu/shell.qml`\n'
511 printf -- '- `systemd-analyze --user verify hypr/systemd/quickshell.service`\n'
512 printf -- '- `qs -c nugu ipc call nugu showDiagnostics`\n'
513 printf -- '- `qs -c nugu ipc call nugu setThemeMode light`\n'
514 printf -- '- `qs -c nugu ipc call nugu setThemeMode dark`\n'
515 printf -- '- `qs -c nugu ipc call nugu hideDiagnostics`\n\n'
516 printf '## Results\n\n'
517 printf '### Direct parse/start stderr\n\n```text\n'
518 sed -n '1,120p' /tmp/nugu-qs-phase1.err 2>/dev/null || true
519 printf '\n```\n\n'
520 printf '### IPC stderr\n\n```text\n'
521 sed -n '1,120p' /tmp/nugu-qs-ipc.err 2>/dev/null || true
522 printf '\n```\n\n'
523 printf '### Old service status\n\n```text\n'
524 systemctl --user --no-pager --plain status ironbar.service mako.service 2>&1 | sed -n '1,100p'
525 printf '\n```\n\n'
526 printf '## Operator observations\n\n'
527 printf -- '- Diagnostics panel appeared after `showDiagnostics`: recorded during execution.\n'
528 printf -- '- Diagnostics panel changed colors after `setThemeMode light` and `setThemeMode dark`: recorded during execution.\n'
529 printf -- '- Diagnostics panel disappeared after `hideDiagnostics`: recorded during execution.\n'
530 printf -- '- Quickshell service was not enabled unless explicitly approved.\n'
531} > docs/super/inventory/2026-06-17-quickshell-phase-1-verification.md
532```
534Expected: the file exists and contains captured stderr/status blocks plus the operator observation lines.
536- [ ] **Step 2: Confirm old services still run**
538Run:
540```bash
541systemctl --user --no-pager --plain status ironbar.service mako.service | sed -n '1,80p'
542```
544Expected: both still active if they were active before the phase.
546- [ ] **Step 3: Commit verification record**
548Run:
550```bash
551git add docs/super/inventory/2026-06-17-quickshell-phase-1-verification.md
552git commit -m "docs(quickshell): record phase 1 verification"
553```
555## Task 5: Phase boundary check
557**Files:**
559- No tracked file changes unless a verification fix is needed.
561- [ ] **Step 1: Run final non-mutating checks**
563Run:
565```bash
566git status --short
567hyprctl configerrors
568systemctl --user --no-pager --plain is-active ironbar.service mako.service
569```
571Expected:
573- Only intended commits or working tree state remain.
574- `hyprctl configerrors` empty.
575- `ironbar.service` and `mako.service` active.
577- [ ] **Step 2: Confirm Phase 1 scope did not replace live apps**
579Run:
581```bash
582systemctl --user --no-pager --plain is-enabled ironbar.service ironbar-workspaces.service mako.service || true
583systemctl --user --no-pager --plain is-enabled quickshell.service || true
584```
586Expected:
588- Existing services unchanged.
589- `quickshell.service` only enabled if the user explicitly approved enabling it.
591- [ ] **Step 3: Handoff to Phase 2 planning**
593Report:
595```text
596Phase 1 foundation is verified. Ironbar and Mako are still live. Next step: write the Phase 2 plan for Quickshell Ironbar bar parity.
597```
599Do not begin Phase 2 implementation in the same execution pass.
601## Plan validation note
603Before implementation, the planned `Theme.qml` + `Diagnostics.qml` + `shell.qml` shape was copied to a temporary `/tmp/pi-exp.qs-phase1.*` directory with `hypr/generated/nugu.json` and run with:
605```bash
606timeout 3s qs -p /tmp/pi-exp.qs-phase1.*/quickshell/nugu/shell.qml
607```
609Observed result on 2026-06-17: exit `124` from `timeout`, empty stderr, temp directory deleted. That supports the Phase 1 QML parse/start shape on local Quickshell `0.3.0`.

docs/super/roadmaps/2026-06-17-quickshell-hypr-companions-roadmap.md

Added
new file mode 100644

+315 / −0 text lines

1# Quickshell Hypr Companions Roadmap
2
3> **For agentic workers:** Use /skill:writing-plans to create one detailed implementation plan per phase. Start with Phase 1 and proceed sequentially unless the user explicitly changes the order.
4
5**Goal:** Reimplement the current Hypr companion app surface in one Quickshell config with verified feature parity, same Nugu style/dark-light behavior, simpler Hypr Lua config, and obsolete Ironbar/Mako/Hyprtoolkit frontends retired only after proof.
6
7**Design Spec:** [`docs/super/inventory/2026-06-17-quickshell-hypr-companion-baseline.md`](../inventory/2026-06-17-quickshell-hypr-companion-baseline.md)
8
9**Planning Strategy:** This is a multi-daemon desktop shell migration. Splitting by live-retirable surfaces keeps the current desktop usable after every phase: first create a Quickshell shell that changes nothing, then replace Ironbar, then Mako, then launchers/OSDs, then simplify Hypr and retire services. Each phase has a live parity gate before any old app is removed.
11---
13## Phase 1: Quickshell Foundation and Nugu Theme Service
15**Outcome:** A named Quickshell config exists and runs safely beside the current desktop. It has shared Nugu theme tokens, config layout, IPC skeleton, logging conventions, and one harmless visible/hidden diagnostic surface.
17**Why now:** Every later phase depends on shared theme, IPC, service boundaries, and a repeatable validation loop.
19**Scope:**
21- Create `quickshell/nugu/` config in the repo and symlink manifest entry.
22- Add a user systemd service for Quickshell, but do not replace Ironbar/Mako yet.
23- Implement the Nugu theme loader for dark/light palettes and current mode.
24- Establish shared dimensions/fonts/colors matching current Ironbar/Mako styling.
25- Add Quickshell IPC namespace for future calls from Hypr binds.
26- Add validation commands and screenshot procedure.
28**Out of scope:**
30- Replacing any live bar, notification daemon, launcher, lockscreen, wallpaper, idle, or polkit agent.
31- Removing Ironbar/Mako/Hyprtoolkit files.
33**Key files/areas likely affected:**
35- `quickshell/nugu/shell.qml`: Quickshell entry point.
36- `quickshell/nugu/services/Theme.qml`: Nugu palette/mode state.
37- `quickshell/nugu/components/`: shared UI primitives.
38- `hypr/systemd/quickshell.service`: user service.
39- `x230.symlinks`: link Quickshell config and service.
40- `enable_user_services.nu`: enable Quickshell when installed.
42**Dependencies:**
44- Quickshell `0.3.0` installed.
45- Existing Nugu palette files in `hypr/generated/nugu.json` or new generated Quickshell-friendly palette file.
47**Verification:**
49- `qs -p quickshell/nugu/shell.qml` starts without QML errors.
50- User service starts and stops without impacting Ironbar/Mako.
51- Dark/light tokens render a tiny diagnostic surface or logged values correctly.
52- No new long-running process replaces existing services yet.
54**Phase boundary health:** The live desktop remains exactly as before except for an optional inert Quickshell process. Old services still own bar/notifications.
56**Risks:**
58- QML import/API mismatch on Quickshell `0.3.0`; mitigate by validating each component with `qs -p` before service enable.
59- Palette duplication; mitigate by generating or reading one source format and using semantic names unchanged.
61**Context notes:** Keep files small. Avoid shell wrapper scripts. Do not use `childrenRect` for container sizing.
63## Phase 2: Ironbar Bar Parity in Quickshell
65**Outcome:** Quickshell renders a top bar matching current Ironbar layout, widgets, actions, style, and dark/light behavior while Ironbar remains available for rollback.
67**Why now:** Ironbar is the largest resource consumer and most obvious simplification target. It also deletes the separate Python workspace watcher.
69**Scope:**
71- Implement top per-monitor `PanelWindow` with same 30px height, IBM Plex Mono typography, accent bottom border, padding, radius, hover/focus colors.
72- Implement widgets: workspaces, clipboard entry point, bind mode, MPRIS, clock/calendar, notification status bridge, WiFi, Bluetooth, tray, CPU, volume, brightness, battery, inhibit, power menu.
73- Match current click/middle/right/scroll actions.
74- Use Quickshell services where stable: Hyprland, Pipewire, MPRIS, SystemTray, UPower, Bluetooth.
75- Use narrow process adapters where simpler: `iwctl`, `brightnessctl`, `wezterm` app launchers.
76- Keep Mako as notification daemon during this phase; notification status can call `makoctl` until Phase 3.
78**Out of scope:**
80- Owning notification DBus name.
81- Replacing `hyprlauncher` app launcher or clipboard dmenu flow beyond the bar clipboard entry point.
82- Stopping Ironbar services automatically.
84**Key files/areas likely affected:**
86- `quickshell/nugu/bar/Bar.qml`: panel layout.
87- `quickshell/nugu/bar/widgets/*.qml`: each widget isolated.
88- `quickshell/nugu/services/Hypr.qml`: workspace and bind mode state.
89- `quickshell/nugu/services/Commands.qml`: launch helpers.
90- `quickshell/nugu/services/Inhibit.qml`: idle inhibit state/durations.
91- `hypr/systemd/quickshell.service`: service stabilization.
93**Dependencies:**
95- Phase 1.
96- Current Ironbar matrix from baseline inventory.
98**Verification:**
100- Side-by-side screenshots against Ironbar in dark and light mode.
101- Interaction matrix: workspace click, tray menu, volume scroll/mute, brightness scroll, battery click, WiFi/Bluetooth clicks, inhibit cycle, power popup opens.
102- Resource comparison after settling: Quickshell bar vs `ironbar` + `workspaces-watch.py`.
103- No QML log spam comparable to current Ironbar MPRIS DBus error loop.
105**Phase boundary health:** Both bars may be run alternately. If Quickshell bar fails, Ironbar remains enabled and unchanged.
107**Risks:**
109- System tray menus are hard; mitigate by validating DBusMenu/QsMenuOpener early in the phase plan.
110- Inhibit parity may require Wayland idle inhibitor behavior checks; keep current idle config untouched until proven.
111- WiFi is iwd, not NetworkManager; do not add NetworkManager.
113**Context notes:** This phase can end with Ironbar still running. Retirement happens in Phase 5 after final visual/interaction approval.
115## Phase 3: Quickshell Notification Daemon Replacing Mako
117**Outcome:** Quickshell owns notifications with Mako-equivalent placement, style, actions, grouping/overflow, history, restore, dismiss-all, and dark/light colors.
119**Why now:** The bar's notification status and global dismiss/restore semantics need a native notification model before Mako can be retired.
121**Scope:**
123- Implement `NotificationServer` and notification popup stack.
124- Match Mako geometry: top-right, overlay, width 360, height 160, max visible 4, history 80.
125- Match Mako timeouts: low 2500ms, normal 6500ms, critical persistent.
126- Render app name, summary, body, icons, actions, grouped/overflow indicator, urgency colors, regex semantic colors.
127- Provide IPC for dismiss-all, restore-last/history, and notification status count.
128- Wire bar notification widget to native service instead of `makoctl`.
130**Out of scope:**
132- Replacing Hyprland `hyprctl notify` OSD helpers; Phase 4 handles OSDs.
133- Removing Mako files/services before live DBus ownership is verified.
135**Key files/areas likely affected:**
137- `quickshell/nugu/notifications/*.qml`: daemon and popup UI.
138- `quickshell/nugu/services/Notifications.qml`: history/actions/status.
139- `hypr/modules/hypr_osd.lua`: only transitional dismiss command may change after verification.
140- `hypr/systemd/mako.service`: retirement only at phase end if parity passes.
141- `enable_user_services.nu`, `x230.symlinks`: Mako retirement only after proof.
143**Dependencies:**
145- Phase 1.
146- Phase 2 if the bar status should be switched in the same phase.
148**Verification:**
150- `notify-send` normal/low/critical with body/icon/action tests.
151- Timeout measurements and critical persistence.
152- Mouse actions: left default action, middle dismiss group, right dismiss.
153- History restore and dismiss-all via Quickshell IPC.
154- Dark/light screenshots.
155- `mako.service` stopped manually for test; Quickshell receives notifications; rollback by restarting Mako.
157**Phase boundary health:** End either with Mako still enabled and no retirement, or with Quickshell notifications proven and Mako disabled in a reversible commit.
159**Risks:**
161- Notification action semantics may differ from Mako. Mitigate by explicit action test notifications.
162- Two notification daemons compete for DBus. Mitigate by only stopping Mako in controlled verification steps.
164**Context notes:** Never leave the system without a notification daemon unless the test explicitly requires it and Mako rollback is one command.
166## Phase 4: Launcher, Clipboard Picker, Power Menu, and OSD IPC
168**Outcome:** Hypr companion keybind frontends are Quickshell IPC calls instead of Hyprtoolkit apps or `hyprctl notify` wrappers.
170**Why now:** These surfaces depend on the foundation, theme, command service, and notification/OSD UI.
172**Scope:**
174- Implement Quickshell launcher for `SUPER+Space` with desktop app search/launch parity.
175- Implement dmenu-like list picker sufficient for clipboard history selection.
176- Keep `cliphist` storage initially; replace `hyprlauncher --dmenu` frontend.
177- Implement power/logout popup/window matching current Ironbar/hyprshutdown actions.
178- Implement OSDs for volume, mic mute, brightness, media, lock/suspend/reload, screenshot, color pick.
179- Add Quickshell IPC methods and migrate relevant Hypr binds to `qs -c nugu ipc call ...`.
181**Out of scope:**
183- Native clipboard storage replacing `cliphist`.
184- Replacing `hyprlock`, `hypridle`, `hyprpaper`, `hyprsunset`, or `hyprpolkitagent`.
185- Destructive power action execution without explicit confirmation behavior.
187**Key files/areas likely affected:**
189- `quickshell/nugu/launcher/*.qml`.
190- `quickshell/nugu/clipboard/*.qml`.
191- `quickshell/nugu/power/*.qml`.
192- `quickshell/nugu/osd/*.qml`.
193- `quickshell/nugu/services/Ipc.qml` or equivalent IPC handlers.
194- `hypr/modules/apps.lua`: replace `hyprlauncher`/`hyprshutdown`/clipboard commands.
195- `hypr/modules/binds.lua`: call Quickshell IPC for companion surfaces.
196- `hypr/modules/hypr_osd.lua`: shrink or delete after all helpers migrate.
198**Dependencies:**
200- Phase 1.
201- Phase 3 for notification/OSD visual infrastructure, unless OSD is implemented as separate popup service.
203**Verification:**
205- Launcher opens, filters, launches apps, closes on selection/escape.
206- Clipboard picker lists recent text, selects to clipboard, handles empty history.
207- Power menu lock/logout/sleep dry-run or confirmed behavior; no accidental poweroff/reboot.
208- Hardware media keys update state and show Quickshell OSD.
209- Screenshot/color actions still run and show Quickshell confirmation.
210- Hypr binds list shows simpler companion command targets.
212**Phase boundary health:** Old commands remain recoverable from git and packages. `cliphist` daemon remains live, so clipboard storage is not disrupted.
214**Risks:**
216- Launcher parity can grow large. Mitigate with desktop-app launching and clipboard dmenu parity first; arbitrary command mode only if current setup actually has it.
217- IPC command quoting can become messy. Mitigate by one stable helper command pattern and tests.
219**Context notes:** Prefer Quickshell IPC over adding scripts. Hypr Lua should only dispatch stable command strings.
221## Phase 5: Service Retirement and Hypr Config Simplification
223**Outcome:** Obsolete services/apps are disabled or removed from manifests only after parity proof. Hypr config is smaller and no longer carries companion-app implementation details.
225**Why now:** Retirement before parity risks breaking the live desktop. After Phases 2–4, old apps should be unused.
227**Scope:**
229- Disable/remove `ironbar.service` and `ironbar-workspaces.service` from symlink manifests and enable script after Quickshell bar passes approval.
230- Disable/remove `mako.service` after Quickshell notifications pass approval.
231- Remove `hyprlauncher` and `hyprshutdown` usage after launcher/power parity.
232- Remove or simplify `hypr/hyprtoolkit.conf` once no Hyprtoolkit apps remain in binds/bar.
233- Delete obsolete Ironbar workspace watcher/service and generated Ironbar/Mako theme writes only after no consumer remains.
234- Simplify `hypr/modules/apps.lua`, `hypr/modules/binds.lua`, `hypr/modules/hypr_osd.lua` to compositor binds plus Quickshell IPC calls.
236**Out of scope:**
238- Package uninstallation. That can be a separate manual cleanup after a stable period.
239- Replacing lock/wallpaper/idle/polkit unless Phase 6 approves it.
241**Key files/areas likely affected:**
243- `x230.symlinks`.
244- `enable_user_services.nu`.
245- `hypr/systemd/*` old service files.
246- `ironbar/`, `mako/` directories.
247- `hypr/modules/apps.lua`, `hypr/modules/binds.lua`, `hypr/modules/hypr_osd.lua`.
248- `hypr/scripts/theme.nu`, `nugu/ironbar.nu`, `nugu/mako.nu`, `nugu/justfile`.
250**Dependencies:**
252- Phase 2 approval for bar.
253- Phase 3 approval for notifications.
254- Phase 4 approval for launcher/clipboard/power/OSD.
256**Verification:**
258- `systemctl --user --type=service` shows Quickshell active and old retired services inactive/disabled as intended.
259- `grep` proves no remaining `hyprlauncher`, `hyprshutdown`, `ironbar`, `makoctl`, `hyprctl notify` usage in live paths except documented transitional/rollback docs.
260- Full interaction matrix passes with old services stopped.
261- Resource comparison shows fewer processes and lower or justified memory/CPU.
262- `just check` or relevant repo tests pass.
264**Phase boundary health:** The desktop has one Quickshell companion service plus still-valid compositor/session helpers. Removed services are no longer referenced.
266**Risks:**
268- Hidden references in scripts/docs/manifests. Mitigate with repo-wide grep and live service checks.
269- Generated Nugu recipes may still produce old files. Mitigate by updating recipes only when consumers are removed.
271**Context notes:** Preserve old files until replacements are proven. Deletion can be last commit of the phase.
273## Phase 6: Optional Deep Replacements Review
275**Outcome:** Decide explicitly whether Quickshell should also replace deeper Hypr ecosystem tools: lockscreen, wallpaper, idle integration, polkit agent, clipboard storage, or wallpaper/theme automation.
277**Why now:** The original objective says companion apps broadly, but replacing security/session primitives is riskier than replacing UI frontends. Make the decision only after the primary migration is stable.
279**Scope:**
281- Evaluate `hyprlock`, `hypridle`, `hyprpaper`, `hyprsunset`, `hyprpolkitagent`, `cliphist`, `wl-clip-persist` against the goal: simplification, better performance, better looks.
282- For each candidate, choose keep/replace/defer with evidence.
283- If replacing any candidate, create a separate roadmap/plan.
285**Out of scope:**
287- Implementing replacements in this phase.
288- Weakening lock/session/polkit safety.
290**Key files/areas likely affected:**
292- `hypr/hyprlock.conf`, `hypr/hypridle.conf`, `hypr/hyprsunset.conf`.
293- `hypr/systemd/cliphist.service`, `hypr/systemd/wl-clip-persist.service`.
294- `polkit/` and user service manifests if polkit is considered.
295- Quickshell lock/polkit/clipboard docs/examples if a later phase is approved.
297**Dependencies:**
299- Phases 1–5 complete and stable.
300- Explicit user approval for security/session replacements.
302**Verification:**
304- Written decision matrix with measured process/resource impact and risk.
305- If all are kept, document why they are no longer considered obsolete companion apps.
306- If any are selected for replacement, a new spec/roadmap starts before code.
308**Phase boundary health:** No system behavior changes. This is a decision phase.
310**Risks:**
312- Scope creep. Mitigate by forbidding implementation in this phase.
313- Security regressions from lock/polkit replacement. Mitigate by explicit separate approval and rollback path.
315**Context notes:** Keeping a small, correct Hypr helper may be simpler than recreating it in Quickshell. The goal is simplification, not maximal replacement.