repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

test(quickshell): guard nugu palette drift

4519e72cc8c089ed989376c9dd9228d5dc390164

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (3)

+19 / −1 text lines

Diff layout

docs/super/inventory/2026-06-17-quickshell-theme-screenshot-smoke.md

Modified

+11 / −0 text lines

1313`quickshell/nugu/smoke.sh` now:
1515- starts with temporary `HOME` and `XDG_CONFIG_HOME`, preserving live `~/.config/quickshell` and live `~/.cache/nugu/mode`;
16- verifies `quickshell/nugu/nugu.json` matches `hypr/generated/nugu.json` so the self-contained palette copy cannot silently drift;
1617- explicitly renders the scaffold in dark mode and light mode;
1718- still verifies `setThemeMode auto` from the temp Nugu mode cache;
1819- optionally captures cropped scaffold screenshots when `NUGU_QS_SMOKE_SCREENSHOT_DIR` is set;
2122## Commands
24Palette source check:
26```sh
27cd /home/oli/Workspace/dotfiles
28cmp -s quickshell/nugu/nugu.json hypr/generated/nugu.json
29```
31Observed: `cmp` exit `0`.
2333Default gate:
2535```sh
2636cd /home/oli/Workspace/dotfiles
37sh -n quickshell/nugu/smoke.sh
2738quickshell/nugu/smoke.sh
2839pgrep -a qs || true
2940```

quickshell/nugu/README.md

Modified

+2 / −1 text lines

2626```
2828The smoke runner creates a temporary `HOME` and `XDG_CONFIG_HOME`, symlinks only
29this config as `quickshell/nugu`, starts `qs -c nugu`, checks
29this config as `quickshell/nugu`, verifies the copied palette still matches
30`hypr/generated/nugu.json`, starts `qs -c nugu`, checks
3031Diagnostics/bar/theme/hideAll IPC, and cleans up its own `qs` process. When
3132`NUGU_QS_SMOKE_SCREENSHOT_DIR` is set it saves cropped dark/light scaffold
3233screenshots from the focused monitor; the crop is limited to the top-left rollout

quickshell/nugu/smoke.sh

Modified

+6 / −0 text lines

6868: >"$log_out"
6969: >"$log_err"
71# Runtime stays self-contained, but the tracked copy must not drift from the
72# generated Hypr Nugu palette it mirrors.
73if ! cmp -s "$config_dir/nugu.json" "$repo_dir/hypr/generated/nugu.json"; then
74 fail 'quickshell/nugu/nugu.json differs from hypr/generated/nugu.json'
75fi
7177cd "$repo_dir"
7278HOME="$home_tmp" XDG_CONFIG_HOME="$tmp" QS_NO_RELOAD_POPUP=1 qs -c nugu >"$log_out" 2>"$log_err" &
7379qs_pid=$!