website-xp-phone 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/package.json +7 -3
  2. package/public/blog/hlwm_and_herbstutil.md +71 -8
  3. package/public/checksums.txt +71 -72
  4. package/public/documents/drift-report.json +1 -1
  5. package/sonar-project.properties +12 -0
  6. package/src/content/addons.json +2 -2
  7. package/src/content/blog.json +2 -3
  8. package/src/content/blogDirs.ts +3 -2
  9. package/src/content/configs.json +5 -3
  10. package/src/content/contacts.json +5 -3
  11. package/src/content/index.ts +1 -2
  12. package/src/content/pages.json +2 -1
  13. package/src/content/projects/development.json +2 -2
  14. package/src/content/projects/doftiles.json +50 -78
  15. package/src/content/projects/frontend.json +2 -2
  16. package/src/content/projects/graphbrowser.json +2 -2
  17. package/src/content/projects/herbctl.json +177 -22
  18. package/src/content/projects/herbstutil.json +22 -22
  19. package/src/content/projects/lightdni-jssas-toggle.json +2 -2
  20. package/src/content/projects/on-deploy.json +27 -17
  21. package/src/content/projects/pagerts.json +4 -4
  22. package/src/content/projects/polyframes.json +13 -13
  23. package/src/content/projects/rarebert.json +2 -2
  24. package/src/content/projects/webuser.json +2 -2
  25. package/src/content/sections.json +11 -5
  26. package/src/lib/slashes.ts +20 -0
  27. package/src/lib/tabNav.ts +192 -0
  28. package/src/pages/BlogDirPage.tsx +2 -1
  29. package/src/pages/BlogPostPage.tsx +4 -2
  30. package/src/shell/App.tsx +5 -0
  31. package/src/shell/resolveRoute.ts +3 -2
  32. package/src/styles/layout.css +0 -1
  33. package/src/styles/window.css +12 -7
  34. package/src/window/MaximizedWindow.tsx +3 -0
  35. package/src/window/state.tsx +11 -4
  36. package/test/tabNav.test.js +137 -0
  37. package/tsconfig.node.tsbuildinfo +1 -1
  38. package/tsconfig.tsbuildinfo +1 -1
  39. package/xp.css/dist/98.css +2 -0
  40. package/xp.css/dist/98.css.map +1 -0
  41. package/xp.css/dist/GUI.css +2 -0
  42. package/xp.css/dist/GUI.css.map +1 -0
  43. package/xp.css/dist/XP.css +2 -0
  44. package/xp.css/dist/XP.css.map +1 -0
  45. package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff +0 -0
  46. package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff2 +0 -0
  47. package/xp.css/dist/fonts/converted/ms_sans_serif.woff +0 -0
  48. package/xp.css/dist/fonts/converted/ms_sans_serif.woff2 +0 -0
  49. package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff +0 -0
  50. package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff2 +0 -0
  51. package/src/content/includes/make-recipes.md +0 -18
@@ -1,103 +1,75 @@
1
1
  {
2
2
  "slug": "doftiles",
3
3
  "title": "doftiles",
4
- "description": "Personal dotfiles: GNU Stow packages, Makefile deployment with hooks, herbstluftwm on WSL2.",
4
+ "description": "Personal dotfiles as a GNU Stow repo: one package per directory, a Makefile deployment with hooks, herbstluftwm as the window manager, and on-deploy as the one-command installer.",
5
5
  "github": "https://github.com/akinevz2/doftiles",
6
6
  "content": {
7
- "heading": "doftiles",
7
+ "heading": "doftiles - the stow packages",
8
8
  "content": [
9
- "dots - herbstluftwm on WSL2, deployed with GNU Stow and Make.",
9
+ "doftiles is the dotfiles repository: every top-level directory with dotfile content is a GNU Stow package whose contents mirror $HOME and get symlinked into place with `stow -R -t $HOME <package>`. Deploy selectively with `make deploy` (a TUI that first configures deploy.profile - the session model, features, units and env - then stows what you pick), or one call it all with `make bootstrap`.",
10
10
  "[https://github.com/akinevz2/doftiles](https://github.com/akinevz2/doftiles)",
11
11
  {
12
- "heading": "From the README",
13
- "theme": "open",
12
+ "heading": "Packages provided",
14
13
  "content": [
15
- "Every top-level directory is a stow package whose contents mirror `$HOME`; recipes link them with `stow -R -t $HOME <package>`. Deploy through make, never bare stow.",
16
- "```sh\ncd ~/dots\ngit submodule update --init --recursive",
17
- "WSL2 needs VcXsrv on the Windows side",
18
- "use `DISPLAY=localhost:0.0`."
19
- ]
14
+ "herbstluftwm - THE window manager stack: the autostart (the WM bootstrap + keybinds), the theme (theme, theme.d/titles.theme, reload_theme, winbarctl), the float machinery + focus helpers (hc_focus, hc_floatx, hc_zoom, the maximize family, hc_center/hc_resize/hc_tile/hc_fit_to shims, hc_bounce, hc_peek, hc_full_focus), the generic hc_* and hlwm_* tools, and all systemd user units (herbst, compton, dunst, hc_send-error-daemon, xvfb, x11vnc, novnc).",
15
+ "polybar - .config/polybar (config.ini + polybar.sh + polywins.sh), polyctl, ewmh_labels, the bar control Makefile; the [module/polyframes] section execs the polyframes binary directly.",
16
+ "shell - .bashrcx, .profile, .aliases, .exports, .zshrc, .vim, .taskrc, .my-credentials, the mimeapps/xdg plumbing, and .local/bin (install hooks, firefox wrapper, check-wsl, load-credentials).",
17
+ "dunst - .config/dunst, check-mail.sh, read-mail.sh.",
18
+ "depends - deployment + dependency management: the on-deploy submodule sources, the per-distro <target>.deploy resolvers, the polyframes submodule, and .config/doftiles.conf (the deploy-method state).",
19
+ "agents - .config/opencode + .config/poolside, the opencode-screencast submodule, .local/bin and .local/share."
20
+ ],
21
+ "theme": "open"
20
22
  },
21
23
  {
22
- "heading": "Packages provided",
23
- "theme": "open",
24
+ "heading": "How deployment works",
24
25
  "content": [
25
- "14 stow packages:",
26
- {
27
- "heading": "Shell and tooling",
28
- "theme": "open",
29
- "content": [
30
- "shell - `.bashrcx`, `.profile`, aliases, exports; firefox -> Windows Firefox; `check-wsl`",
31
- "git - `~/.my-credentials`, `load-credentials` hook, `dekineify`, home `~/Makefile`",
32
- "llms - OpenCode + poolside config, SonarQube/MCP tooling",
33
- "task - Taskwarrior config",
34
- "vim - Vim config",
35
- "zshell - Oh My Zsh config"
36
- ]
37
- },
38
- {
39
- "heading": "Window manager stack",
40
- "theme": "open",
41
- "content": [
42
- "herbst - autostart, keybinds, ~40 scripts (`hc_*`, `rofi_*`, `polyctl`, `winbarctl`)",
43
- "polybar - `config.ini`, `polywins` (submodule), [polyframes](/projects/polyframes) (the renderer binary, now its own project), `ewmh_labels`",
44
- "compton - compositor config, rofi context-menu helpers",
45
- "rofi - themes, applets, ~40 `bin/` helpers",
46
- "dunst - notification config, mail scripts",
47
- "alacritty - terminal config"
48
- ]
49
- },
50
- {
51
- "heading": "Services and maintenance",
52
- "theme": "open",
53
- "content": [
54
- "services - systemd units: `herbst`, `compton`, `dunst` (+ disabled `xvfb`/`x11vnc`/`novnc`)",
55
- "maintenance - `check-msi-dirs` oneshot (dunst alert)"
56
- ]
57
- },
58
- "Caveat: `wm.packages` is stale - pre-rename `opencode`, omits `vim`/`zshell`/`maintenance`; stow those individually."
59
- ]
26
+ "Every top-level directory with .config/.local content is a stow package; each package target stows it, records it as remembered (in ~/.local/state/doftiles/stowed - machine-local, the stowed set differs per host), and runs its post-stow hook. Hooks needing a running WM are guarded and no-op with a note on headless targets.",
27
+ "make deploy - selective deployment: an interactive run first walks the deploy.profile TUI (distro target, session model, features, units, env) and provisions BEFORE any package is stowed; then a whiptail checklist picks the packages. P=\"a b\" is the fine-grained non-interactive form; PROFILE=skip bypasses the profile TUI.",
28
+ "make bootstrap - full deployment in one call: the toolchain assurances (on-deploy toolchain: bun, postinstall trust, the herbctl binary), stow everything, the polyframes artifact (on-deploy deps), verify wm.requires binaries, daemon-reload + enable --now per service.order, status report, credentials last.",
29
+ "make update - safe pull (fast-forward, fallback rebase --autostash), submodule sync, then on-deploy deps --force refreshes the polyframes artifact per the recorded method.",
30
+ "Bare make - restow exactly the remembered subset. The service units needing X stay enabled-but-failed until X exists; the WSL2 host's herbst.service waits for the Windows-side VcXsrv X server to be reachable."
31
+ ],
32
+ "theme": "open"
60
33
  },
61
34
  {
62
- "heading": "The polyframes renderer",
63
- "theme": "open",
35
+ "heading": "The float registers are herbctl verbs",
64
36
  "content": [
65
- "The bar's window-list renderer is a standalone native binary: [polyframes](/projects/polyframes) — a bunli/Bun TypeScript CLI compiled with `bun build --compile` (its own repo; the dots tree carries none of it).",
66
- "It renders the center module (one label per frame+class group, state-decorated, click/scroll actions) and hosts the helpers that used to live here: the rofi menus (`tags`, `hidden`, `windows`, `launch`), `hc_tile`/`hc_center`/`hc_resize` equivalents, `hc_fit_to`-style constraint passes, one-shot `rule once` spawns, and `hc_unmaximize`'s janitor daemon trigger.",
67
- "Why a binary: polybar's spawn environment has no nvm PATH — the compiled executable embeds its runtime and re-executes ITSELF in the bar's click-action strings, so no shim and no node setup is needed.",
68
- "`hc_center`/`hc_resize` remain here as two-line exec-shims delegating to the binary (dots-side callers keep their names). All WM reads go through [herbstutil](https://github.com/akinevz2/herbstutil) (typed JSON). Install: `make install` in the polyframes repo; bar wiring: `[module/polyframes]` in `config.ini`.",
69
- {
70
- "heading": "Links",
71
- "content": [
72
- {
73
- "heading": "polyframes project page",
74
- "link": "/projects/polyframes"
75
- },
76
- {
77
- "heading": "polyframes on GitHub",
78
- "link": "https://github.com/akinevz2/polyframes"
79
- }
80
- ]
81
- }
82
- ]
37
+ "The composite mod-bindings that used to be inline herbstluftwm chains in the autostart (or dots helper scripts) are herbctl verbs now - the autostart spawns the compiled binary: ~/.local/bin/herbctl <verb>.",
38
+ "mod-f / float-focus, mod-x / float-yank, mod-ctrl-f / zoom - the float-register state machines (the hc_focus / hc_floatx / hc_zoom ports), and the plain functional verbs for every navigation, split, close and toggle binding.",
39
+ "The full verb table lives in the [herbctl project](/projects/herbctl); the dots-side helpers it delegates to (hc_center, hc_tile, hc_fit_to and the maximize family) are documented in the [polyframes project](/projects/polyframes) - tile/center are polyframes subcommands behind two-line exec shims."
40
+ ],
41
+ "theme": "open"
83
42
  },
84
43
  {
85
- "heading": "Float registers: mod-f / mod-x / mod-ctrl-f",
86
- "theme": "open",
44
+ "heading": "The session model",
87
45
  "content": [
88
- "The float registers are hlwm configuration wired to the [polyframes](/projects/polyframes) binary. The state machines live in `herbst/.local/bin` (`hc_focus`, `hc_floatx`, `hc_zoom`).",
89
- "mod-f toggles the WINDOW's floating state: tiled to float (size preserved, decoration-aware center, fit pass, focus follows) and back. A single-float policy: when a visible float exists, the press focuses the floating layer instead of stacking a second float.",
90
- "mod-x toggles the LAYER focus: float focused hands focus to the tiling layer (the float stays); tiling focus + visible float slurps the float into the frame (via hc_tile when the frame is populated and non-max); tiling focus + no floats yanks the focused window out (float + center in the monitor), and closes the vacated frame when the yanked window was its only client.",
91
- "mod-ctrl-f zooms: the fresh float is stretched to the frame with its decoration outline flush to the frame's content rect (content = frame minus the theme's floating margins), then a fit pass keeps the full outline on-screen.",
92
- "Geometry writes reconcile against hlwm's real content rect afterwards: float size hints can snap sizes, and the placement re-runs once from the read-back truth - verified against decoration_geometry reads, not the values we wrote."
46
+ "deploy.profile declares how the graphical session starts: wsl-systemd (no display manager - hlwm as the systemd user unit herbst.service, DISPLAY localhost:0.0, waiting for the Windows-side X server; the WSL2 host), greetd (a display manager owns the console; bare-OS targets), xinit (startx runs ~/.xinitrc), or nested (hlwm inside the Xvfb framebuffer, shared over VNC and browser noVNC - co-installable with a primary one, and the xrdp feature layers RDP onto the same shared framebuffer).",
47
+ "on-deploy provision reads the profile and installs the per-feature platform services; the profile's units are enabled additively - activating a second profile never disables the first's."
93
48
  ]
94
49
  },
95
50
  {
96
- "heading": "Deployment via Make",
97
- "theme": "open",
51
+ "heading": "Links",
98
52
  "content": [
99
- "Each recipe's effect includes its prerequisite recipes (run first, in listed order).",
100
- { "include": "make-recipes.md" }
53
+ {
54
+ "heading": "GitHub repository",
55
+ "link": "https://github.com/akinevz2/doftiles"
56
+ },
57
+ {
58
+ "heading": "on-deploy (the orchestrator)",
59
+ "link": "/projects/on-deploy"
60
+ },
61
+ {
62
+ "heading": "herbctl (the keybind verbs)",
63
+ "link": "/projects/herbctl"
64
+ },
65
+ {
66
+ "heading": "polyframes (the bar module + rofi menus)",
67
+ "link": "/projects/polyframes"
68
+ },
69
+ {
70
+ "heading": "herbstutil (the parse/attr layer underneath)",
71
+ "link": "/projects/herbstutil"
72
+ }
101
73
  ]
102
74
  }
103
75
  ]
@@ -10,11 +10,11 @@
10
10
  "[https://github.com/akinevz2/frontend](https://github.com/akinevz2/frontend)",
11
11
  {
12
12
  "heading": "From the README",
13
- "theme": "open",
14
13
  "content": [
15
14
  "Built as a landing page and a point-of-interest for those that stumble upon it: personal storytelling through UI, JSON-driven content that is easy to edit, and small interactive features (windows, modals, media embeds).",
16
15
  "React + TypeScript, Vite for development and builds, xp.css for the nostalgia."
17
- ]
16
+ ],
17
+ "theme": "open"
18
18
  }
19
19
  ]
20
20
  }
@@ -10,11 +10,11 @@
10
10
  "[https://github.com/akinevz2/graphbrowser](https://github.com/akinevz2/graphbrowser)",
11
11
  {
12
12
  "heading": "From the README",
13
- "theme": "open",
14
13
  "content": [
15
14
  "A software package to visualise page dependencies without having to view the page content: the set of navigable items of a webpage, linking from page to page within the World Wide Web.",
16
15
  "GraphBrowser is the GUI counterpart of PagerTS, built with Quarkus and web technologies - the same dependency list that pagerts parses with JSDOM into `title`, `url` and `resources`."
17
- ]
16
+ ],
17
+ "theme": "open"
18
18
  }
19
19
  ]
20
20
  }
@@ -1,43 +1,193 @@
1
1
  {
2
2
  "slug": "herbctl",
3
3
  "title": "herbctl",
4
- "description": "The herbstluftwm keybind imperatives: every composite mod- binding as a get-* verb - the float-layer state machines, the zoom register, the navigation chains - compiled to a standalone bunli binary.",
4
+ "description": "The herbstluftwm keybind imperatives: every composite mod- binding as a plain-named verb - the float-register state machines, the navigation chains, the layout cyclers - compiled to a standalone bunli binary.",
5
5
  "github": "https://github.com/akinevz2/herbctl",
6
6
  "content": {
7
7
  "heading": "herbctl - the keybind imperatives, as a native binary",
8
8
  "content": [
9
- "herbctl owns what the keybinds used to express as inline herbstluftwm chains: one verb per mod-key binding, each a faithful port of the tuned chain (or state machine) it replaces - compiled to a standalone executable with Bun and bunli, so the keybinds spawn binaries, not scripts.",
9
+ "herbctl owns what the keybinds used to express as inline herbstluftwm chains: one verb per mod-binding, each issuing the exact hlwm chains the binding expresses, token for token - compiled to a standalone binary with bunli, so the keybinds spawn binaries, not scripts. The verbs are named by what they do: split-right-cycle, shift-up, minimize-toggle - no whimsy (the original whimsical names were retired 2026-10; only the historical get-south/get-forward/get-deck/get-dedeck quartet keeps its name).",
10
10
  "[https://github.com/akinevz2/herbctl](https://github.com/akinevz2/herbctl)",
11
11
  {
12
12
  "heading": "The verbs",
13
- "theme": "open",
14
13
  "content": [
15
- "Named for what they fetch, not for the key that triggers them:",
16
- "get-south (mod-s) - the zoom/peek grid: urgent first (gated on the tag's urgent count), frame-down focus, the floating-layer branch (focus the layer and un-float via the tag's focused_client - the alias resolves stale mid-chain), cycle and pseudotile fallbacks.",
17
- "get-forward (mod-w), get-shuffle (mod-shift-w) - leave-float and cycle-up; the shift ladder ends in a frame-tree rotate.",
18
- "get-deck (mod-d), get-dedeck (mod-shift-d) - layout cyclers gated on frame occupancy; dedeck collapses to remove.",
19
- "get-explore (mod-e), get-advice (mod-a) - explode/cycle and frame-focus-or-split pairs.",
20
- "get-below (mod-shift-b), get-dive (mod-ctrl-a), get-toss (mod-ctrl-e) - split+shift directions.",
21
- "get-quiet (mod-q), get-hold (mod-shift-q), get-wrench (mod-ctrl-q) - the close/quit family: floats only un-float, empty frames collapse, xkill for the stubborn.",
22
- "get-tuck (mod-shift-t) - the frame half of split-auto: the dots keybind chains it with the terminal spawn so the split only happens for a window that actually arrives.",
23
- "get-vex/get-bend (mod-v/mod-b) and get-vexi/get-bendi (mod-ctrl-v/mod-ctrl-b) - the split-into-direction family.",
24
- "get-hush (mod-shift-f) - fullscreen toggle; get-nap (mod-shift-z) - minimize toggle."
14
+ "25 verbs, one per keybind. Each verb gets its own section below."
15
+ ],
16
+ "theme": "open"
17
+ },
18
+ {
19
+ "heading": "get-south",
20
+ "content": [
21
+ "[$Mod-s] The zoom/peek grid, under lock: urgent jumpto when the tag has urgent windows, frame-down focus, the floating-layer branch (focusing the float layer AND failing through when it is empty), the cycle fallbacks, and a pseudotile toggle. One chained spawn, held under the hlwm lock."
22
+ ]
23
+ },
24
+ {
25
+ "heading": "get-forward",
26
+ "content": [
27
+ "[$Mod-w] Leave the floating layer, then cycle window/frame upward: focus --level=frame up, then cycle_frame. Under lock."
28
+ ]
29
+ },
30
+ {
31
+ "heading": "get-deck",
32
+ "content": [
33
+ "[$Mod-d] The layout cycler, count-gated: with 4+ windows in the focused frame it cycles max/vertical/grid/horizontal; with exactly 2 it cycles max/horizontal; otherwise a bare -1 rotation fallback."
34
+ ]
35
+ },
36
+ {
37
+ "heading": "get-dedeck",
38
+ "content": [
39
+ "[$ModShift-d] The shift-complement of get-deck: with >1 window in the focused frame it mixes in the max/grid/vertical layouts, otherwise it removes the focused frame."
40
+ ]
41
+ },
42
+ {
43
+ "heading": "explode-frame",
44
+ "content": [
45
+ "[$Mod-e] With >1 frame, cycle frames backward; otherwise explode the frame and cycle forward. The last split is never a dead end."
46
+ ]
47
+ },
48
+ {
49
+ "heading": "focus-frame-left",
50
+ "content": [
51
+ "[$Mod-a] Focus the frame to the left, or split one off at a third of the width when there is nothing to focus."
52
+ ]
53
+ },
54
+ {
55
+ "heading": "focus-frame-down",
56
+ "content": [
57
+ "[$Mod-b] Focus the frame down, else split a bottom frame at half and cycle into it."
58
+ ]
59
+ },
60
+ {
61
+ "heading": "shift-up",
62
+ "content": [
63
+ "[$ModShift-w] The shift-up ladder: first shift the window up into the frame above (--level=all); when there is nothing above, with >1 window in the focused frame cycle -1, otherwise try cycle_frame, then fall through to rotating the frame tree."
64
+ ]
65
+ },
66
+ {
67
+ "heading": "rotate-tree",
68
+ "content": [
69
+ "[$ModCtrl-r] Rotate the tree (<3 frames) or cycle frames forward; on a single frame it cycles windows in the opposite direction of the shift-up fallback."
70
+ ]
71
+ },
72
+ {
73
+ "heading": "shift-down",
74
+ "content": [
75
+ "[$ModShift-s] An empty focused frame is removed; a multi-window frame shifts the window down, splitting a bottom frame first when there is nothing below. A lone-window frame in a multi-frame tag deliberately does NOTHING (the neither-branch)."
76
+ ]
77
+ },
78
+ {
79
+ "heading": "split-down",
80
+ "content": [
81
+ "[$ModShift-b] With >1 window in the focused frame, split a bottom frame and shift the window down into it."
82
+ ]
83
+ },
84
+ {
85
+ "heading": "shift-left",
86
+ "content": [
87
+ "[$ModCtrl-a] Shift the window left; with nothing to the left focus the frame left, else split left and shift the window into the new frame."
88
+ ]
89
+ },
90
+ {
91
+ "heading": "shift-right",
92
+ "content": [
93
+ "[$ModCtrl-e] Shift the window right, else split right and focus the new frame right."
94
+ ]
95
+ },
96
+ {
97
+ "heading": "new-frame",
98
+ "content": [
99
+ "[$ModShift-t] The FRAME LOGIC ONLY of the open-a-second-frame binding: split auto + cycle_frame ONLY when the focused frame holds >0 windows; an empty frame stays as is (the terminal then opens into it). The spawn $TERMINAL half stays a dots concern - herbctl never spawns terminals; the dots keybind chains this with the spawn."
25
100
  ]
26
101
  },
27
102
  {
28
- "heading": "The state machines",
103
+ "heading": "split-right-cycle",
104
+ "content": [
105
+ "[$Mod-v] Split right at half and cycle into the new frame."
106
+ ]
107
+ },
108
+ {
109
+ "heading": "split-right-focus",
110
+ "content": [
111
+ "[$ModCtrl-v] Split right at half and focus -e right into the new frame (exploding focus)."
112
+ ]
113
+ },
114
+ {
115
+ "heading": "split-bottom-focus",
116
+ "content": [
117
+ "[$ModCtrl-b] Split bottom at half and focus -i down into the new frame (insertion focus)."
118
+ ]
119
+ },
120
+ {
121
+ "heading": "close-window",
122
+ "content": [
123
+ "[$Mod-q] A focused float is ONLY un-floated; tiling windows get closed, with a lone-window frame removed afterwards (close_and_remove / close_or_remove). Under lock."
124
+ ]
125
+ },
126
+ {
127
+ "heading": "close-or-remove",
128
+ "content": [
129
+ "[$ModShift-q] A focused float is closed and its frame removed; otherwise close_or_remove (close, and remove the frame when it is left empty)."
130
+ ]
131
+ },
132
+ {
133
+ "heading": "xkill-or-close",
134
+ "content": [
135
+ "[$ModCtrl-q] The xkill-or-close chain: a focused client exists -> spawn xkill (targeted kill), else close_and_remove."
136
+ ]
137
+ },
138
+ {
139
+ "heading": "fullscreen-toggle",
140
+ "content": [
141
+ "[$ModShift-f] Fullscreen toggle on the focused client."
142
+ ]
143
+ },
144
+ {
145
+ "heading": "minimize-toggle",
146
+ "content": [
147
+ "[$ModShift-z] Minimized toggle on the focused client."
148
+ ]
149
+ },
150
+ {
151
+ "heading": "The float-register state machines",
29
152
  "theme": "open",
30
153
  "content": [
31
- "Three bindings carry whole register machines, ported branch for branch with the dots scripts as the contract:",
32
- "get-zoom (mod-ctrl-f, the hc_zoom port) - press-count register: tile the float, maximize onto a dedicated <tag>-max tag (state recorded in hlwm env, a per-tag janitor daemon tidies up), restore.",
33
- "get-extracted (mod-x, the hc_floatx port) - the layer-yank machine: focus a float and un-float it, yank the focused window into the float session (the vacated frame is never closed), defer to the tiling layer, drop a float back into an empty frame, and the no-floats tidying branch.",
34
- "get-focus (mod-f, the hc_focus port) - the quick float toggle: no focus chasing, the register handled by hlwm itself.",
35
- "Every branch is pinned by tests that mock the herbstclient binary and assert the exact command argv - no live WM is ever touched by the suite."
154
+ "Three bindings carry whole register machines, ported branch for branch:"
155
+ ]
156
+ },
157
+ {
158
+ "heading": "float-focus",
159
+ "content": [
160
+ "[$Mod-f] The float-register machine: try focusing a float (un-float it into an EMPTY focused frame; with children the float stays, no stacking) / no floats + max layout -> the size-keeping lift (hc_center frame, vacated-frame removal, hc_fit_to frame, then the algorithm=max tail) / a focused float -> direct un-float (no hc_tile). No script-level lock."
161
+ ]
162
+ },
163
+ {
164
+ "heading": "float-yank",
165
+ "content": [
166
+ "[$Mod-x] The layer-yank machine (the hc_floatx port): focus-a-float-then-unfloat / yank (float + center into the float session, frame left alone) / defer / un-float-into-empty-frame / tidying (remove, reveal, polyframes hidden, use_previous)."
167
+ ]
168
+ },
169
+ {
170
+ "heading": "zoom",
171
+ "content": [
172
+ "[$ModCtrl-f] The three-state press machine (the hc_zoom port): tiled -> float (flag reset + center + deco-flush frame fill + fit) / floating -> maximize onto a <tag>-max tag (PF_MAX state owned by the delegated hc_maximize / hc_unmaximize helpers) / maximized -> restore. The -max check runs BEFORE the floating check. Exit 1 when no window is focused."
173
+ ]
174
+ },
175
+ {
176
+ "heading": "The herbstutil dependency",
177
+ "content": [
178
+ "herbctl imports herbstutil for its PURE primitives only - parseAttr, the typed attribute reader. herbctl does not (and must not) import herbstutil's command functions: the composite keybind commands live here, and herbstutil ships none of them."
179
+ ]
180
+ },
181
+ {
182
+ "heading": "Fail-soft, and pinned by tests",
183
+ "content": [
184
+ "Every spawn (herbstclient and the dots helper binaries) carries the 5-second timeout inherited from herbstutil's spawn layer: a vanished window resolves null instead of wedging the bar or the keybind.",
185
+ "Every command is verified against the recorded argv of a mocked herbstclient binary (plus mocked helper binaries) - bun test covers all 25 commands; nothing here needs a live WM to test.",
186
+ "The dots keybinds spawn the compiled standalone binary at ~/.local/bin/herbctl (built with bunli); the dots deployment toolchain (on-deploy) ensures the binary is built and installed."
36
187
  ]
37
188
  },
38
189
  {
39
190
  "heading": "Links",
40
- "theme": "open",
41
191
  "content": [
42
192
  {
43
193
  "heading": "GitHub repository",
@@ -49,9 +199,14 @@
49
199
  },
50
200
  {
51
201
  "heading": "doftiles (the keybinds that spawn it)",
52
- "link": "https://github.com/akinevz2/doftiles"
202
+ "link": "/projects/doftiles"
203
+ },
204
+ {
205
+ "heading": "polyframes (the sibling binary)",
206
+ "link": "/projects/polyframes"
53
207
  }
54
- ]
208
+ ],
209
+ "theme": "open"
55
210
  }
56
211
  ]
57
212
  }
@@ -10,25 +10,23 @@
10
10
  "[https://github.com/akinevz2/herbstutil](https://github.com/akinevz2/herbstutil)",
11
11
  {
12
12
  "heading": "herbstluftwm in a nutshell",
13
- "theme": "open",
14
13
  "content": [
15
14
  "herbstluftwm is a manual tiling window manager for Linux. Its core idea: the whole desktop is one global object tree - monitors, tags, clients (windows), settings - queried and modified over IPC with the companion tool herbstclient.",
16
15
  "The tree is probed with `herbstclient attr <path>`: it prints a short description of the node, its children, and a table of every attribute (typed, writable, hookable).",
17
16
  "```sh\n$ herbstclient attr clients. # children of the clients node\n$ herbstclient attr clients.focus. # introspect the focused window\n$ herbstclient attr clients.focus.tag # read a single leaf value\n```",
18
17
  "The catch: `attr` output is written for humans first - padded type tables, prose, legends. Great to read, fragile to parse."
19
- ]
18
+ ],
19
+ "theme": "open"
20
20
  },
21
21
  {
22
22
  "heading": "What herbstutil does",
23
23
  "status": "v0.3.x - the compatibility layer",
24
- "theme": "open",
25
24
  "content": [
26
25
  "herbstutil rebuilds `herbstclient attr` output as JSON, preserving the node's shape: value - the node's description; children - the names of the child nodes; attributes - every attribute as a name-value pair.",
27
26
  "Where herbstclient speaks humans, herbstutil speaks machine.",
28
27
  "It does not stop at unquoting: herbstclient annotates every attribute with a type hint in the first column of its listing, and herbstutil uses that hint to emit properly typed JSON.",
29
28
  {
30
29
  "heading": "Value typing",
31
- "theme": "open",
32
30
  "content": [
33
31
  "s (string) - JSON string, outer quotes stripped",
34
32
  "b (bool) - JSON boolean",
@@ -37,81 +35,82 @@
37
35
  "p (point) - `XxY` becomes an object { x, y }",
38
36
  "c, r, n, f (color, regex, named value, font) - string",
39
37
  "Leaf values (a single attribute) print no type hint, so a heuristic decides there: true/false become booleans, integers and decimals become numbers, everything else stays a string."
40
- ]
38
+ ],
39
+ "theme": "open"
41
40
  },
42
41
  {
43
42
  "heading": "Usage",
44
- "theme": "open",
45
43
  "content": [
46
44
  "Two ways to the same JSON: let herbstutil run herbstclient for you, or pipe herbstclient through the parse filter (the default command). Built with Bun and bunli, packaged as a single executable:",
47
45
  "```sh\n$ herbstutil attr clients.focus. # runs herbstclient attr and parses it\n$ herbstclient attr clients. | herbstutil parse\n$ herbstclient attr clients. | herbstutil # parse is the default command\n```",
48
46
  "s, --space <n> - pretty-print with `n` spaces of indentation (default 4)",
49
47
  "e, --escape - skip all type conversion and keep every value exactly as herbstclient printed it: strings keep their literal quotes, escaped inside the JSON string",
50
48
  "`parse` refuses to run attached to a terminal: as a filter it always reads from stdin."
51
- ]
49
+ ],
50
+ "theme": "open"
52
51
  }
53
- ]
52
+ ],
53
+ "theme": "open"
54
54
  },
55
55
  {
56
56
  "heading": "Examples",
57
- "theme": "open",
58
57
  "content": [
59
58
  "The same nodes, before and after herbstutil.",
60
59
  {
61
60
  "heading": "Root node: herbstclient attr clients.",
62
- "theme": "open",
63
61
  "content": [
64
62
  "Raw:",
65
63
  "```text\n$ herbstclient attr clients.\nThe managed windows. For every (managed) window id there is an entry here.\n\n4 children:\n 0x280003.\n 0x680004.\n 0x900003.\n focus.\n0 attributes.\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n```",
66
64
  "Through herbstutil:",
67
65
  "```json\n{\n \"value\": \"The managed windows. For every (managed) window id there is an entry here.\",\n \"children\": [\n \"0x280003.\",\n \"0x680004.\",\n \"0x900003.\",\n \"focus.\"\n ],\n \"attributes\": {}\n}\n```"
68
- ]
66
+ ],
67
+ "theme": "open"
69
68
  },
70
69
  {
71
70
  "heading": "Node with attributes: herbstclient attr clients.focus.",
72
- "theme": "open",
73
71
  "content": [
74
72
  "Raw (excerpt):",
75
73
  "```text\n$ herbstclient attr clients.focus.\na managed window\n\n1 child:\n parent_frame.\n24 attributes:\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n s - - class = \"Alacritty\"\n R - h content_geometry = 1255x662+13+34\n s - - class = \"Alacritty\"\n R - h content_geometry = 1255x662+13+34\n b w h decorated = true\n i - h pid = 403112\n s - - tag = \"work\"\n s - h title = \"OC | herbstutil tag 0.1.1b discrepancy\"\n b - h visible = true\n s - h winid = \"0x280003\"\n```",
76
74
  "Through herbstutil (excerpt - all 24 attributes arrive in the JSON):",
77
75
  "```json\n{\n \"value\": \"a managed window\",\n \"children\": [\n \"parent_frame.\"\n ],\n \"attributes\": {\n \"class\": \"Alacritty\",\n \"content_geometry\": {\n \"x\": 13,\n \"y\": 34,\n \"width\": 1255,\n \"height\": 662\n },\n \"decorated\": true,\n \"pid\": 403112,\n \"tag\": \"work\",\n \"title\": \"OC | herbstutil tag 0.1.1b discrepancy\",\n \"visible\": true,\n \"winid\": \"0x280003\"\n }\n}\n```",
78
76
  "Attribute values arrive typed: strings unquoted, booleans and numbers real, rectangles as objects - herbstclient's type hint drives the conversion. Pass `--escape` to keep the raw text instead."
79
- ]
77
+ ],
78
+ "theme": "open"
80
79
  },
81
80
  {
82
81
  "heading": "Leaf node: herbstclient attr clients.focus.tag",
83
- "theme": "open",
84
82
  "content": [
85
83
  "Raw:",
86
84
  "```text\n$ herbstclient attr clients.focus.tag\nwork\n```",
87
85
  "Through herbstutil:",
88
86
  "```json\n{\n \"value\": \"work\",\n \"children\": [],\n \"attributes\": {}\n}\n```"
89
- ]
87
+ ],
88
+ "theme": "open"
90
89
  }
91
- ]
90
+ ],
91
+ "theme": "open"
92
92
  },
93
93
  {
94
94
  "heading": "The pure layer (the v0.3 split)",
95
- "theme": "open",
96
95
  "content": [
97
96
  "herbstutil stayed deliberately small: parse/attr primitives only. The keybind state machines that briefly lived here (the mod-s/w/d/e/a/q/f/x compositions and the float registers) moved out to herbctl - its own project, one floor down on this page.",
98
97
  "Everything downstream (herbctl, polyframes) imports parseAttr directly, bundled at build time; the CLI verbs stay for scripts and humans."
99
- ]
98
+ ],
99
+ "theme": "open"
100
100
  },
101
101
  {
102
102
  "heading": "Shell completion, mirroring herbstclient",
103
- "theme": "open",
104
103
  "content": [
105
104
  "herbstclient's completion model: the binary does the thinking (complete_shell <pos> <words...>), the shell scripts just delegate. herbstutil mirrors it - the complete-shell verb, plus bash/zsh scripts that are byte-structure twins of hlwm's own.",
106
105
  "The attr verb's positional completes LIVE hlwm object paths: the request is delegated to herbstclient -q complete_shell itself, so clients.0x…, tags.by-name. and every attribute name arrive straight from the running WM.",
107
106
  "Install the completion with the package scripts:",
108
107
  "```sh\n$ npm run completion:install # bash + zsh, user-level\n$ herbstutil attr clients.<TAB> # the live tree, in your shell\n```",
109
108
  "Published on npm: `npm i -g herbstutil` gives the command (it runs through bun) - or install from source with bun run build."
110
- ]
109
+ ],
110
+ "theme": "open"
111
111
  },
112
112
  {
113
113
  "heading": "Links",
114
- "theme": "open",
115
114
  "content": [
116
115
  {
117
116
  "heading": "GitHub repository",
@@ -125,7 +124,8 @@
125
124
  "heading": "herbstclient reference",
126
125
  "link": "https://herbstluftwm.org/herbstclient.html"
127
126
  }
128
- ]
127
+ ],
128
+ "theme": "open"
129
129
  }
130
130
  ]
131
131
  }
@@ -10,11 +10,11 @@
10
10
  "[https://github.com/akinevz2/lightdni-jssas-toggle](https://github.com/akinevz2/lightdni-jssas-toggle)",
11
11
  {
12
12
  "heading": "From the README",
13
- "theme": "open",
14
13
  "content": [
15
14
  "TypeScript utility package for applying and toggling CSS themes: theme classes and attributes on the root element, dynamic CSS variables, localStorage/cookie persistence, and accessibility metadata (color-scheme and aria-live announcements).",
16
15
  "A consolidated one-call setTheme API - dependency-safe, and works in vanilla JS/TS, React, and Vue projects."
17
- ]
16
+ ],
17
+ "theme": "open"
18
18
  }
19
19
  ]
20
20
  }