website-xp-phone 2.3.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 (101) hide show
  1. package/build/blogDirsPlugin.ts +100 -0
  2. package/package.json +15 -8
  3. package/public/blog/archive/eighth-post-lost-in-the-sauce.json +36 -0
  4. package/public/blog/archive/noise/eleventh-post-discussion-java-gist.md +5 -0
  5. package/public/blog/archive/noise/fifteenth-post-very-rare-windows-funny.md +8 -0
  6. package/public/blog/archive/noise/fourth-post-meta-blog.md +3 -0
  7. package/public/blog/archive/noise/sixteenth-post-meta-fantasy-blog.md +4 -0
  8. package/public/blog/archive/noise/tenth-post-meta-funny-redacted-and-timetravelled.md +3 -0
  9. package/public/blog/archive/noise/twelfth-post-mixing-phase-technique-audio-music.md +48 -0
  10. package/public/blog/archive/noise/welcome-back-ramble-meta.md +6 -0
  11. package/public/blog/archive/noise/welcome-to-my-blog-meta-blog-welcome-to-my-website.md +7 -0
  12. package/public/blog/archive/seventh-post-lie-theory-na2000.json +22 -0
  13. package/public/blog/archive/sophus-lie.json +36 -0
  14. package/public/blog/hlwm_and_herbstutil.md +74 -0
  15. package/public/blog/writing/hot-action-under-a-cold-moon.json +9 -0
  16. package/public/checksums.txt +90 -67
  17. package/public/documents/drift-report.json +13 -1
  18. package/scripts/refresh-soundcloud.mjs +54 -8
  19. package/sonar-project.properties +12 -0
  20. package/src/content/addons.json +2 -2
  21. package/src/content/blog.json +17 -365
  22. package/src/content/blogDirs.ts +197 -0
  23. package/src/content/configs.json +5 -3
  24. package/src/content/contacts.json +7 -5
  25. package/src/content/index.ts +155 -57
  26. package/src/content/music-ext.json +1 -1
  27. package/src/content/pages.json +2 -1
  28. package/src/content/projects/development.json +2 -2
  29. package/src/content/projects/doftiles.json +63 -7
  30. package/src/content/projects/frontend.json +2 -2
  31. package/src/content/projects/graphbrowser.json +2 -2
  32. package/src/content/projects/herbctl.json +213 -0
  33. package/src/content/projects/herbstutil.json +66 -36
  34. package/src/content/projects/lightdni-jssas-toggle.json +2 -2
  35. package/src/content/projects/on-deploy.json +67 -0
  36. package/src/content/projects/pagerts.json +4 -4
  37. package/src/content/projects/polyframes.json +83 -0
  38. package/src/content/projects/rarebert.json +2 -2
  39. package/src/content/projects/webuser.json +2 -2
  40. package/src/content/schema.ts +7 -4
  41. package/src/content/sections.json +20 -13
  42. package/src/content/soundcloud.json +61 -13
  43. package/src/lib/clippy.ts +29 -8
  44. package/src/lib/history.ts +152 -0
  45. package/src/lib/markdown.tsx +11 -1
  46. package/src/lib/scrollTo.ts +45 -0
  47. package/src/lib/signals.tsx +271 -0
  48. package/src/lib/slashes.ts +20 -0
  49. package/src/lib/tabNav.ts +192 -0
  50. package/src/main.tsx +20 -4
  51. package/src/pages/BlogDirPage.tsx +37 -0
  52. package/src/pages/BlogPostPage.tsx +78 -3
  53. package/src/pages/ProjectPage.tsx +9 -3
  54. package/src/pages/WowPage.tsx +8 -3
  55. package/src/pages/index.ts +2 -0
  56. package/src/shell/App.tsx +19 -8
  57. package/src/shell/Clippy.tsx +13 -3
  58. package/src/shell/MenuBar.tsx +7 -4
  59. package/src/shell/resolveRoute.ts +43 -3
  60. package/src/shell/routerSignals.ts +34 -0
  61. package/src/styles/extras.css +20 -0
  62. package/src/styles/layout.css +2 -3
  63. package/src/styles/menu.css +1 -1
  64. package/src/styles/window.css +20 -8
  65. package/src/themes/pageSlide/index.ts +120 -42
  66. package/src/themes/pageSlide/pageSlide.css +20 -9
  67. package/src/virtual.d.ts +14 -0
  68. package/src/window/MaximizedWindow.tsx +100 -64
  69. package/src/window/OkButton.tsx +42 -25
  70. package/src/window/PageWindows.tsx +7 -0
  71. package/src/window/TitleBar.tsx +3 -1
  72. package/src/window/Window.tsx +132 -87
  73. package/src/window/closeSounds.ts +27 -0
  74. package/src/window/model.ts +11 -0
  75. package/src/window/state.tsx +301 -54
  76. package/src/window/themes.ts +23 -2
  77. package/test/content.test.js +15 -10
  78. package/test/deploy-pipeline.test.js +11 -11
  79. package/test/markdown-tables.test.js +96 -0
  80. package/test/soundcloud-refresh.test.js +68 -0
  81. package/test/tabNav.test.js +137 -0
  82. package/tsconfig.node.tsbuildinfo +1 -1
  83. package/tsconfig.tsbuildinfo +1 -1
  84. package/vite.config.ts +7 -1
  85. package/xp.css/dist/98.css +2 -0
  86. package/xp.css/dist/98.css.map +1 -0
  87. package/xp.css/dist/GUI.css +2 -0
  88. package/xp.css/dist/GUI.css.map +1 -0
  89. package/xp.css/dist/XP.css +2 -0
  90. package/xp.css/dist/XP.css.map +1 -0
  91. package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff +0 -0
  92. package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff2 +0 -0
  93. package/xp.css/dist/fonts/converted/ms_sans_serif.woff +0 -0
  94. package/xp.css/dist/fonts/converted/ms_sans_serif.woff2 +0 -0
  95. package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff +0 -0
  96. package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff2 +0 -0
  97. package/public/blog/4th.md +0 -28
  98. package/public/blog/wsl.1.md +0 -40
  99. package/src/window/hidden.ts +0 -22
  100. /package/public/blog/{ → archive/noise/}/321/200/321/203/320/275/320/270/321/201/321/207-/320/263/320/273/320/276/321/201/321/201/320/260/321/200/320/270/320/271.md" +0 -0
  101. /package/src/content/{characters.json → includes/characters.json} +0 -0
@@ -4,13 +4,158 @@ import sectionsJson from "./sections.json";
4
4
  import contactsJson from "./contacts.json";
5
5
  import addonsJson from "./addons.json";
6
6
  import configsJson from "./configs.json";
7
- import charactersJson from "./characters.json";
7
+ import charactersJson from "./includes/characters.json";
8
8
  import blogJson from "./blog.json";
9
9
  import soundcloudJson from "./soundcloud.json";
10
10
  import musicExtJson from "./music-ext.json";
11
11
 
12
12
  export * from "./schema";
13
13
 
14
+ /* ------------------------------------------------------------------ includes
15
+ * A content file can embed another content file's window tree with an
16
+ * include directive instead of duplicating it:
17
+ *
18
+ * { "include": "make-recipes.md" } → the markdown file, wrapped as a Section
19
+ * { "include": "characters.json" } → the Section of includes/characters.json
20
+ *
21
+ * ANY file under src/content/includes/ is includable — no registration,
22
+ * and the directive carries the FULL FILE NAME (extension included):
23
+ * - `.json`: must hold a Section (the window-tree shape of a content file).
24
+ * - `.md`: author-written markdown (literal newlines), imported raw and
25
+ * wrapped as `{ heading, anchor: <stem>, content: <md> }` (no theme:
26
+ * An optional leading `# Heading` line names the window; otherwise the
27
+ * humanized file stem does ("make-recipes" → "Make recipes").
28
+ * Directives are expanded at load time, recursively (an included tree may
29
+ * itself contain directives). Unknown or circular directives throw during
30
+ * module load, failing the build loudly instead of rendering an opaque
31
+ * object. Each file may be included multiple times across sibling items;
32
+ * cycles are broken by the seen-set, which tracks one inclusion chain.
33
+ * Target lookup goes through the vite glob maps — a directive never joins
34
+ * paths itself, so a hostile name cannot escape the includes/ directory.
35
+ *
36
+ * Everything here precedes its first use: exports below expand their
37
+ * trees at module evaluation, so this scaffolding must be initialized
38
+ * by then (const declarations do not hoist).
39
+ */
40
+
41
+ /** Every includable .json Section, keyed by file name ("characters.json"). */
42
+ const sectionModules = import.meta.glob<Section>("./includes/*.json", {
43
+ eager: true,
44
+ import: "default",
45
+ });
46
+
47
+ /** Every includable .md document, keyed by file name — imported raw. */
48
+ const mdModules = import.meta.glob<string>("./includes/*.md", {
49
+ eager: true,
50
+ import: "default",
51
+ query: "?raw",
52
+ });
53
+
54
+ const stemOf = (path: string): string =>
55
+ path
56
+ .split("/")
57
+ .pop()!
58
+ .replace(/\.json$|\.md$/, "");
59
+
60
+ /** "make-recipes" → "Make recipes". */
61
+ const humanize = (stem: string): string =>
62
+ stem.replace(/-/g, " ").replace(/^./, (c) => c.toUpperCase());
63
+
64
+ /**
65
+ * Wrap an include/ markdown file as a Section: `# Heading` first line
66
+ * names the window (default: humanized stem); the rest is the content.
67
+ */
68
+ const mdSection = (stem: string, md: string): Section => {
69
+ const lines = md.replace(/\r\n/g, "\n").split("\n");
70
+ let heading: string | undefined;
71
+ while (heading === undefined && lines.length > 0) {
72
+ const line = lines[0] ?? "";
73
+ if (line.trim() === "") lines.shift();
74
+ else if (line.startsWith("# ")) {
75
+ heading = line.slice(2).trim();
76
+ lines.shift();
77
+ } else break;
78
+ }
79
+ return {
80
+ heading: heading ?? humanize(stem),
81
+ anchor: stem,
82
+ content: lines.join("\n"),
83
+ };
84
+ };
85
+
86
+ /** Includable Sections, keyed by FULL file name ("make-recipes.md"). */
87
+ const includes: Record<string, Section> = {
88
+ ...Object.fromEntries(
89
+ Object.entries(sectionModules).map(([path, section]) => [
90
+ path.split("/").pop()!,
91
+ section,
92
+ ]),
93
+ ),
94
+ ...Object.fromEntries(
95
+ Object.entries(mdModules).map(([path, md]) => {
96
+ const stem = stemOf(path);
97
+ return [path.split("/").pop()!, mdSection(stem, md)];
98
+ }),
99
+ ),
100
+ };
101
+
102
+ /** The include target a directive file name resolves to. The name must
103
+ * be a bare file name (no directories) with an includable extension;
104
+ * unknown names throw — the same loud failure the renderer would
105
+ * otherwise paper over. */
106
+ const includeTarget = (name: string): Section => {
107
+ if (!/^[a-z0-9][a-z0-9._-]*\.(json|md)$/i.test(name) || name.includes("/")) {
108
+ throw new Error(
109
+ `Unknown include directive: ${name} ` +
110
+ "(targets are bare .json/.md file names under src/content/includes/)",
111
+ );
112
+ }
113
+ const target = includes[name];
114
+ if (!target) {
115
+ throw new Error(
116
+ `Unknown include directive: ${name} (targets live in src/content/includes/)`,
117
+ );
118
+ }
119
+ return target;
120
+ };
121
+
122
+ function expandContent(
123
+ content: NonNullable<Section["content"]>,
124
+ ancestors: Set<string>,
125
+ ): NonNullable<Section["content"]> {
126
+ if (typeof content === "string") return content;
127
+ const items = Array.isArray(content) ? content : [content];
128
+ return items.map((item) => {
129
+ if (typeof item !== "object" || item === null) return item;
130
+ if ("include" in item) {
131
+ const name = item.include;
132
+ if (typeof name !== "string") {
133
+ throw new Error(`Unknown include directive: ${String(name)}`);
134
+ }
135
+ if (ancestors.has(name)) {
136
+ throw new Error(`Circular include directive: ${name}`);
137
+ }
138
+ const chain = new Set(ancestors);
139
+ chain.add(name);
140
+ return expandSection(includeTarget(name), chain);
141
+ }
142
+ if ("banner" in item || "url" in item) return item;
143
+ return expandSection(item as Section, ancestors);
144
+ });
145
+ }
146
+
147
+ /** Expands a nested section, preserving the absence of content exactly. */
148
+ function expandSection(section: Section, ancestors: Set<string>): Section {
149
+ if (!section.content) return section;
150
+ return { ...section, content: expandContent(section.content, ancestors) };
151
+ }
152
+
153
+ /** Expands every include directive in the tree rooted at `section`. */
154
+ function resolveIncludes(section: Section): Section {
155
+ if (!section.content) return section;
156
+ return { ...section, content: expandContent(section.content, new Set()) };
157
+ }
158
+
14
159
  const projectModules = import.meta.glob<Project>("./projects/*.json", {
15
160
  eager: true,
16
161
  import: "default",
@@ -19,9 +164,14 @@ const projectModules = import.meta.glob<Project>("./projects/*.json", {
19
164
  export const projectPath = (project: Project) =>
20
165
  project.path ?? `/projects/${project.slug}`;
21
166
 
22
- export const projects = Object.values(projectModules).sort((a, b) =>
23
- a.title.localeCompare(b.title),
24
- );
167
+ export const projects = Object.values(projectModules)
168
+ // Project pages can embed shared content the same way page trees can:
169
+ // expand include directives (e.g. the make-recipes table) at load time.
170
+ .map((project): Project => ({
171
+ ...project,
172
+ content: resolveIncludes(project.content),
173
+ }))
174
+ .sort((a, b) => a.title.localeCompare(b.title));
25
175
 
26
176
  /**
27
177
  * Short-hand URL for a project: /<slug>. Redirects to the canonical
@@ -73,59 +223,6 @@ const projectRoutes: Route[] = projects.flatMap((project): Route[] => {
73
223
  });
74
224
 
75
225
  export const routes: Route[] = [...pageRoutes, ...projectRoutes];
76
- /* ------------------------------------------------------------------ includes
77
- * A content file can embed another content file's window tree with an
78
- * include directive instead of duplicating it:
79
- *
80
- * { "include": "characters" } → the top-level Section of characters.json
81
- *
82
- * Directives are expanded at load time, recursively (an included tree may
83
- * itself contain directives). Unknown or circular directives throw during
84
- * module load, failing the build loudly instead of rendering an opaque
85
- * object. Each file may be included multiple times across sibling items;
86
- * cycles are broken by the seen-set, which tracks one inclusion chain.
87
- */
88
- const includeRegistry: Record<string, Section> = {
89
- characters: charactersJson as Section,
90
- };
91
-
92
- function expandContent(
93
- content: NonNullable<Section["content"]>,
94
- ancestors: Set<string>,
95
- ): NonNullable<Section["content"]> {
96
- if (typeof content === "string") return content;
97
- const items = Array.isArray(content) ? content : [content];
98
- return items.map((item) => {
99
- if (typeof item !== "object" || item === null) return item;
100
- if ("include" in item) {
101
- const name = item.include;
102
- if (typeof name !== "string" || !includeRegistry[name]) {
103
- throw new Error(`Unknown include directive: ${String(name)}`);
104
- }
105
- if (ancestors.has(name)) {
106
- throw new Error(`Circular include directive: ${name}`);
107
- }
108
- const target = includeRegistry[name];
109
- const chain = new Set(ancestors);
110
- chain.add(name);
111
- return expandSection(target, chain);
112
- }
113
- if ("banner" in item || "url" in item) return item;
114
- return expandSection(item as Section, ancestors);
115
- });
116
- }
117
-
118
- /** Expands a nested section, preserving the absence of content exactly. */
119
- function expandSection(section: Section, ancestors: Set<string>): Section {
120
- if (!section.content) return section;
121
- return { ...section, content: expandContent(section.content, ancestors) };
122
- }
123
-
124
- /** Expands every include directive in the tree rooted at `section`. */
125
- const resolveIncludes = (section: Section): Section => {
126
- if (!section.content) return section;
127
- return { ...section, content: expandContent(section.content, new Set()) };
128
- };
129
226
 
130
227
  export const sections = resolveIncludes(sectionsJson as Section);
131
228
  export const contacts = resolveIncludes(contactsJson as Section);
@@ -135,3 +232,4 @@ export const characters = resolveIncludes(charactersJson as Section);
135
232
  export const blog = resolveIncludes(blogJson as Section);
136
233
  export const soundcloud = soundcloudJson as SoundCloudData;
137
234
  export const musicExt = musicExtJson;
235
+ export * from "./blogDirs";
@@ -17,7 +17,7 @@
17
17
  },
18
18
  {
19
19
  "title": "Báilalo, Gozalo - Ariis (Magnum Opus)",
20
- "url": "https://www.youtube.com/watch?v=qX8VZsPEhD4"
20
+ "url": "https://youtu.be/gvRfd2OxcNk"
21
21
  },
22
22
  {
23
23
  "heading": "Another unique one, \"LOVELY BASTARDS - ZWE1HVNDXR\"",
@@ -33,7 +33,8 @@
33
33
  "menuLabel": "configs",
34
34
  "title": "configs files from kine",
35
35
  "description": "where you can find my configuration files",
36
- "page": "ConfigsPage"
36
+ "page": "ConfigsPage",
37
+ "hidden": true
37
38
  },
38
39
  {
39
40
  "path": "/wow",
@@ -13,11 +13,11 @@
13
13
  "[https://github.com/akinevz2/development](https://github.com/akinevz2/development)",
14
14
  {
15
15
  "heading": "From the README",
16
- "theme": "open",
17
16
  "content": [
18
17
  "The repo runs as a persistent Development Workstation Devcontainer for VS Code.",
19
18
  "Ships the latest Git and GitHub CLI, bootstraps Node.js LTS via nvm, restores akinevz2/doftiles into ~/dots, and stows the bar, dunst, herbst, rofi, shell and vim packages with `stow --adopt`."
20
- ]
19
+ ],
20
+ "theme": "open"
21
21
  }
22
22
  ]
23
23
  }
@@ -1,19 +1,75 @@
1
1
  {
2
2
  "slug": "doftiles",
3
3
  "title": "doftiles",
4
- "description": "A personal dotfiles setup based with deployment, stow, and window manager.",
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
- "A window manager setup based on herbstluftwm, almost ready for public use.",
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
- "configs for kine@home - Ubuntu deploys are as simple as `make install` now.",
16
- "Deployed with GNU stow: the repo is cloned into ~/dots and its packages (bar, dunst, herbst, rofi, shell, vim) are adopted into $HOME."
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"
22
+ },
23
+ {
24
+ "heading": "How deployment works",
25
+ "content": [
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"
33
+ },
34
+ {
35
+ "heading": "The float registers are herbctl verbs",
36
+ "content": [
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"
42
+ },
43
+ {
44
+ "heading": "The session model",
45
+ "content": [
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."
48
+ ]
49
+ },
50
+ {
51
+ "heading": "Links",
52
+ "content": [
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
+ }
17
73
  ]
18
74
  }
19
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
  }
@@ -0,0 +1,213 @@
1
+ {
2
+ "slug": "herbctl",
3
+ "title": "herbctl",
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
+ "github": "https://github.com/akinevz2/herbctl",
6
+ "content": {
7
+ "heading": "herbctl - the keybind imperatives, as a native binary",
8
+ "content": [
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
+ "[https://github.com/akinevz2/herbctl](https://github.com/akinevz2/herbctl)",
11
+ {
12
+ "heading": "The verbs",
13
+ "content": [
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."
100
+ ]
101
+ },
102
+ {
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",
152
+ "theme": "open",
153
+ "content": [
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."
187
+ ]
188
+ },
189
+ {
190
+ "heading": "Links",
191
+ "content": [
192
+ {
193
+ "heading": "GitHub repository",
194
+ "link": "https://github.com/akinevz2/herbctl"
195
+ },
196
+ {
197
+ "heading": "herbstutil (the primitives underneath)",
198
+ "link": "https://github.com/akinevz2/herbstutil"
199
+ },
200
+ {
201
+ "heading": "doftiles (the keybinds that spawn it)",
202
+ "link": "/projects/doftiles"
203
+ },
204
+ {
205
+ "heading": "polyframes (the sibling binary)",
206
+ "link": "/projects/polyframes"
207
+ }
208
+ ],
209
+ "theme": "open"
210
+ }
211
+ ]
212
+ }
213
+ }