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.
- package/package.json +7 -3
- package/public/blog/hlwm_and_herbstutil.md +71 -8
- package/public/checksums.txt +71 -72
- package/public/documents/drift-report.json +1 -1
- package/sonar-project.properties +12 -0
- package/src/content/addons.json +2 -2
- package/src/content/blog.json +2 -3
- package/src/content/blogDirs.ts +3 -2
- package/src/content/configs.json +5 -3
- package/src/content/contacts.json +5 -3
- package/src/content/index.ts +1 -2
- package/src/content/pages.json +2 -1
- package/src/content/projects/development.json +2 -2
- package/src/content/projects/doftiles.json +50 -78
- package/src/content/projects/frontend.json +2 -2
- package/src/content/projects/graphbrowser.json +2 -2
- package/src/content/projects/herbctl.json +177 -22
- package/src/content/projects/herbstutil.json +22 -22
- package/src/content/projects/lightdni-jssas-toggle.json +2 -2
- package/src/content/projects/on-deploy.json +27 -17
- package/src/content/projects/pagerts.json +4 -4
- package/src/content/projects/polyframes.json +13 -13
- package/src/content/projects/rarebert.json +2 -2
- package/src/content/projects/webuser.json +2 -2
- package/src/content/sections.json +11 -5
- package/src/lib/slashes.ts +20 -0
- package/src/lib/tabNav.ts +192 -0
- package/src/pages/BlogDirPage.tsx +2 -1
- package/src/pages/BlogPostPage.tsx +4 -2
- package/src/shell/App.tsx +5 -0
- package/src/shell/resolveRoute.ts +3 -2
- package/src/styles/layout.css +0 -1
- package/src/styles/window.css +12 -7
- package/src/window/MaximizedWindow.tsx +3 -0
- package/src/window/state.tsx +11 -4
- package/test/tabNav.test.js +137 -0
- package/tsconfig.node.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/xp.css/dist/98.css +2 -0
- package/xp.css/dist/98.css.map +1 -0
- package/xp.css/dist/GUI.css +2 -0
- package/xp.css/dist/GUI.css.map +1 -0
- package/xp.css/dist/XP.css +2 -0
- package/xp.css/dist/XP.css.map +1 -0
- package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff +0 -0
- package/xp.css/dist/fonts/converted/PerfectDOSVGA437Win.woff2 +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif.woff +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif.woff2 +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff +0 -0
- package/xp.css/dist/fonts/converted/ms_sans_serif_bold.woff2 +0 -0
- 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
|
|
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
|
-
"
|
|
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": "
|
|
13
|
-
"theme": "open",
|
|
12
|
+
"heading": "Packages provided",
|
|
14
13
|
"content": [
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
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": "
|
|
23
|
-
"theme": "open",
|
|
24
|
+
"heading": "How deployment works",
|
|
24
25
|
"content": [
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
63
|
-
"theme": "open",
|
|
35
|
+
"heading": "The float registers are herbctl verbs",
|
|
64
36
|
"content": [
|
|
65
|
-
"The
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
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": "
|
|
86
|
-
"theme": "open",
|
|
44
|
+
"heading": "The session model",
|
|
87
45
|
"content": [
|
|
88
|
-
"
|
|
89
|
-
"
|
|
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": "
|
|
97
|
-
"theme": "open",
|
|
51
|
+
"heading": "Links",
|
|
98
52
|
"content": [
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
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-
|
|
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
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
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": "
|
|
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
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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": "
|
|
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
|
}
|