website-xp-phone 2.5.4 → 2.7.0
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 +1 -1
- package/public/blog/7.md +1 -1
- package/public/blog/archive/seventh-post-lie-theory-na2000.json +2 -2
- package/public/blog/random/google.md +2 -2
- package/public/blog/releases/dotfiles_1_0_0.md +35 -72
- package/public/blog/releases/hlwm_and_herbstutil.md +12 -53
- package/public/blog/releases/try_it_out.md +48 -0
- package/public/checksums.txt +82 -81
- package/public/documents/drift-report.json +1 -1
- package/src/content/addons.json +2 -2
- package/src/content/blog.json +6 -1
- package/src/content/configs.json +2 -2
- package/src/content/contacts.json +2 -0
- package/src/content/index.ts +7 -1
- package/src/content/projects/{webuser.json → _shelve/webuser.json} +6 -5
- package/src/content/projects/development.json +8 -8
- package/src/content/projects/doftiles.json +101 -29
- package/src/content/projects/frontend.json +6 -5
- package/src/content/projects/graphbrowser.json +34 -6
- package/src/content/projects/herbctl.json +78 -46
- package/src/content/projects/herbstutil.json +85 -68
- package/src/content/projects/lightdni-jssas-toggle.json +51 -6
- package/src/content/projects/on-deploy.json +85 -24
- package/src/content/projects/opencode-screencast.json +64 -11
- package/src/content/projects/pagerts.json +58 -22
- package/src/content/projects/polyframes.json +54 -31
- package/src/content/projects/rarebert.json +37 -8
- package/src/content/schema.ts +3 -0
- package/src/content/sections.json +2 -0
- package/src/content/soundcloud.json +7 -7
- package/src/styles/window.css +55 -19
- package/src/themes/pageSlide/index.ts +211 -83
- package/src/themes/pageSlide/pageSlide.css +89 -29
- package/src/window/OkButton.tsx +6 -1
- package/src/window/Window.tsx +78 -0
- package/src/window/themes.ts +6 -7
- package/test/content.test.js +17 -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
|
@@ -1,208 +1,240 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "herbctl",
|
|
3
3
|
"title": "herbctl",
|
|
4
|
-
"description": "
|
|
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
|
+
"lastModified": "2026-11-05",
|
|
6
7
|
"content": {
|
|
7
8
|
"heading": "herbctl - the keybind imperatives, as a native binary",
|
|
8
9
|
"content": [
|
|
9
|
-
"herbctl owns what the keybinds
|
|
10
|
+
"**herbctl** owns what the keybinds of **herbstluftwm** express as spawn 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.",
|
|
11
|
+
"",
|
|
12
|
+
"the verbs are named by what they do: split-right-cycle, shift-up, minimize-toggle.",
|
|
10
13
|
"[https://github.com/akinevz2/herbctl](https://github.com/akinevz2/herbctl)",
|
|
11
14
|
{
|
|
12
|
-
"heading": "
|
|
15
|
+
"heading": "the chains a keybind spawns",
|
|
13
16
|
"content": [
|
|
14
|
-
"
|
|
17
|
+
"an hlwm keybind is a spawn command: the compositor runs one shell line on every key press. the dots bindings chain several herbstclient calls into that line - focus moves, frame splits, layout rotations - held under the hlwm lock so no other client interleaves.",
|
|
18
|
+
"",
|
|
19
|
+
"the composite bindings (the float registers especially) outgrew the one-line form: whole state machines, branched on the frame tree, the floating layer and the layout algorithm. that is what herbctl compiles - the autostart spawns ~/.local/bin/herbctl <verb>, and the dots keybind stays a one-word spawn."
|
|
20
|
+
],
|
|
21
|
+
"theme": "open"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"heading": "the package, architecturally",
|
|
25
|
+
"content": [
|
|
26
|
+
"one **bunli** binary, 26 verbs, one per keybind. each verb is a function that emits the exact herbstclient argv the binding expresses - nothing is re-derived at runtime.",
|
|
27
|
+
"",
|
|
28
|
+
"it imports **herbstutil** for its pure primitives only - parseAttr, the typed attribute reader. it does not (and must not) import herbstutil's command functions: the composite keybind commands live here, and herbstutil ships none of them.",
|
|
29
|
+
"",
|
|
30
|
+
"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.",
|
|
31
|
+
"",
|
|
32
|
+
"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."
|
|
33
|
+
],
|
|
34
|
+
"theme": "open"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"heading": "usage - the verbs",
|
|
38
|
+
"status": "v1.6.1",
|
|
39
|
+
"content": [
|
|
40
|
+
"the dots keybinds spawn the compiled standalone binary at ~/.local/bin/herbctl; **on-deploy**'s toolchain step builds and installs it on deploy. each verb gets its own section below."
|
|
15
41
|
],
|
|
16
42
|
"theme": "open"
|
|
17
43
|
},
|
|
18
44
|
{
|
|
19
45
|
"heading": "get-south",
|
|
20
46
|
"content": [
|
|
21
|
-
"[$Mod-s]
|
|
47
|
+
"[$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
48
|
]
|
|
23
49
|
},
|
|
24
50
|
{
|
|
25
51
|
"heading": "get-forward",
|
|
26
52
|
"content": [
|
|
27
|
-
"[$Mod-w]
|
|
53
|
+
"[$Mod-w] leave the floating layer, then cycle window/frame upward: focus --level=frame up, then cycle_frame. under lock."
|
|
28
54
|
]
|
|
29
55
|
},
|
|
30
56
|
{
|
|
31
57
|
"heading": "get-deck",
|
|
32
58
|
"content": [
|
|
33
|
-
"[$Mod-d]
|
|
59
|
+
"[$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
60
|
]
|
|
35
61
|
},
|
|
36
62
|
{
|
|
37
63
|
"heading": "get-dedeck",
|
|
38
64
|
"content": [
|
|
39
|
-
"[$ModShift-d]
|
|
65
|
+
"[$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
66
|
]
|
|
41
67
|
},
|
|
42
68
|
{
|
|
43
69
|
"heading": "explode-frame",
|
|
44
70
|
"content": [
|
|
45
|
-
"[$Mod-e]
|
|
71
|
+
"[$Mod-e] with >1 frame, cycle frames backward; otherwise explode the frame and cycle forward. the last split is never a dead end."
|
|
46
72
|
]
|
|
47
73
|
},
|
|
48
74
|
{
|
|
49
75
|
"heading": "focus-frame-left",
|
|
50
76
|
"content": [
|
|
51
|
-
"[$Mod-a]
|
|
77
|
+
"[$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
78
|
]
|
|
53
79
|
},
|
|
54
80
|
{
|
|
55
81
|
"heading": "focus-frame-down",
|
|
56
82
|
"content": [
|
|
57
|
-
"[$Mod-b]
|
|
83
|
+
"[$Mod-b] focus the frame down, else split a bottom frame at half and cycle into it."
|
|
58
84
|
]
|
|
59
85
|
},
|
|
60
86
|
{
|
|
61
87
|
"heading": "shift-up",
|
|
62
88
|
"content": [
|
|
63
|
-
"[$ModShift-w]
|
|
89
|
+
"[$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
90
|
]
|
|
65
91
|
},
|
|
66
92
|
{
|
|
67
93
|
"heading": "rotate-tree",
|
|
68
94
|
"content": [
|
|
69
|
-
"[$ModCtrl-r]
|
|
95
|
+
"[$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
96
|
]
|
|
71
97
|
},
|
|
72
98
|
{
|
|
73
99
|
"heading": "shift-down",
|
|
74
100
|
"content": [
|
|
75
|
-
"[$ModShift-s]
|
|
101
|
+
"[$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
102
|
]
|
|
77
103
|
},
|
|
78
104
|
{
|
|
79
105
|
"heading": "split-down",
|
|
80
106
|
"content": [
|
|
81
|
-
"[$ModShift-b]
|
|
107
|
+
"[$ModShift-b] with >1 window in the focused frame, split a bottom frame and shift the window down into it."
|
|
82
108
|
]
|
|
83
109
|
},
|
|
84
110
|
{
|
|
85
111
|
"heading": "shift-left",
|
|
86
112
|
"content": [
|
|
87
|
-
"[$ModCtrl-a]
|
|
113
|
+
"[$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
114
|
]
|
|
89
115
|
},
|
|
90
116
|
{
|
|
91
117
|
"heading": "shift-right",
|
|
92
118
|
"content": [
|
|
93
|
-
"[$ModCtrl-e]
|
|
119
|
+
"[$ModCtrl-e] shift the window right, else split right and focus the new frame right."
|
|
94
120
|
]
|
|
95
121
|
},
|
|
96
122
|
{
|
|
97
123
|
"heading": "new-frame",
|
|
98
124
|
"content": [
|
|
99
|
-
"[$ModShift-t]
|
|
125
|
+
"[$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
126
|
]
|
|
101
127
|
},
|
|
102
128
|
{
|
|
103
129
|
"heading": "split-right-cycle",
|
|
104
130
|
"content": [
|
|
105
|
-
"[$Mod-v]
|
|
131
|
+
"[$Mod-v] split right at half and cycle into the new frame."
|
|
106
132
|
]
|
|
107
133
|
},
|
|
108
134
|
{
|
|
109
135
|
"heading": "split-right-focus",
|
|
110
136
|
"content": [
|
|
111
|
-
"[$ModCtrl-v]
|
|
137
|
+
"[$ModCtrl-v] split right at half and focus -e right into the new frame (exploding focus)."
|
|
112
138
|
]
|
|
113
139
|
},
|
|
114
140
|
{
|
|
115
141
|
"heading": "split-bottom-focus",
|
|
116
142
|
"content": [
|
|
117
|
-
"[$ModCtrl-b]
|
|
143
|
+
"[$ModCtrl-b] split bottom at half and focus -i down into the new frame (insertion focus)."
|
|
118
144
|
]
|
|
119
145
|
},
|
|
120
146
|
{
|
|
121
147
|
"heading": "close-window",
|
|
122
148
|
"content": [
|
|
123
|
-
"[$Mod-q]
|
|
149
|
+
"[$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
150
|
]
|
|
125
151
|
},
|
|
126
152
|
{
|
|
127
153
|
"heading": "close-or-remove",
|
|
128
154
|
"content": [
|
|
129
|
-
"[$ModShift-q]
|
|
155
|
+
"[$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
156
|
]
|
|
131
157
|
},
|
|
132
158
|
{
|
|
133
159
|
"heading": "xkill-or-close",
|
|
134
160
|
"content": [
|
|
135
|
-
"[$ModCtrl-q]
|
|
161
|
+
"[$ModCtrl-q] the xkill-or-close chain: a focused client exists -> spawn xkill (targeted kill), else close_and_remove."
|
|
136
162
|
]
|
|
137
163
|
},
|
|
138
164
|
{
|
|
139
165
|
"heading": "fullscreen-toggle",
|
|
140
166
|
"content": [
|
|
141
|
-
"[$ModShift-f]
|
|
167
|
+
"[$ModShift-f] fullscreen toggle on the focused client."
|
|
142
168
|
]
|
|
143
169
|
},
|
|
144
170
|
{
|
|
145
171
|
"heading": "minimize-toggle",
|
|
146
172
|
"content": [
|
|
147
|
-
"[$ModShift-z]
|
|
173
|
+
"[$ModShift-z] minimized toggle on the focused client."
|
|
148
174
|
]
|
|
149
175
|
},
|
|
150
176
|
{
|
|
151
|
-
"heading": "
|
|
152
|
-
"theme": "open",
|
|
177
|
+
"heading": "the float-register state machines",
|
|
153
178
|
"content": [
|
|
154
|
-
"
|
|
155
|
-
]
|
|
179
|
+
"three bindings carry whole register machines, ported branch for branch:"
|
|
180
|
+
],
|
|
181
|
+
"theme": "open"
|
|
156
182
|
},
|
|
157
183
|
{
|
|
158
184
|
"heading": "float-focus",
|
|
159
185
|
"content": [
|
|
160
|
-
"[$Mod-f]
|
|
186
|
+
"[$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
187
|
]
|
|
162
188
|
},
|
|
163
189
|
{
|
|
164
190
|
"heading": "float-yank",
|
|
165
191
|
"content": [
|
|
166
|
-
"[$Mod-x]
|
|
192
|
+
"[$Mod-x] the layer-yank machine (the hc_floatx port): a float holding focus is UN-FLOATED - the register chain re-tiles it into the focused frame below whatever it holds, every former sub-case (the one-frame use_previous + hc_tile register, the multi-frame defer, the empty-frame un-float) unified into that one behavior - then the tiling layer gets its focus back (floating_focused off as a separate follow-up write; hlwm tracks the register on un-float). the tiling-focused press keeps the older branches: focus-a-float-then-unfloat / yank (float + center into the float session, frame left alone) / tidying (remove, reveal, polyframes hidden, use_previous)."
|
|
167
193
|
]
|
|
168
194
|
},
|
|
169
195
|
{
|
|
170
|
-
"heading": "
|
|
196
|
+
"heading": "float-unfocus",
|
|
171
197
|
"content": [
|
|
172
|
-
"[$ModCtrl-
|
|
198
|
+
"[$ModCtrl-x] the float-recall machine: a float holding focus un-floats into an empty focused frame (the register chain), else hands focus to the tiling layer untouched. from the tiling layer the focused window unconditionally becomes a companion float: hc_resize frame adopts its tiled size first, any dimension over half the work area comes DOWN to half (shrink-only, never grow), and the capped rect lands flush in the top-left corner - the +0+0 outline, content inset by the floating deco margins. on top of that a pre-existing float is recalled (floating_focused on + jumpto + hc_center root); with no float parked, the companion takes the float session itself."
|
|
173
199
|
]
|
|
174
200
|
},
|
|
175
201
|
{
|
|
176
|
-
"heading": "
|
|
202
|
+
"heading": "zoom",
|
|
177
203
|
"content": [
|
|
178
|
-
"
|
|
204
|
+
"[$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."
|
|
179
205
|
]
|
|
180
206
|
},
|
|
181
207
|
{
|
|
182
|
-
"heading": "
|
|
208
|
+
"heading": "stable in v1.6.x",
|
|
209
|
+
"status": "v1.6.1",
|
|
183
210
|
"content": [
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
]
|
|
211
|
+
"the verb names are the shipped surface: plain, functional names - split-right-cycle, shift-up, minimize-toggle - one per keybind, all 26 covered by the mocked-herbstclient suite.",
|
|
212
|
+
"the binary is standalone: built with bunli, spawned by the dots keybinds at ~/.local/bin/herbctl, built and installed by on-deploy's toolchain step.",
|
|
213
|
+
"the registry track publishes on npm: herbctl 1.6.1."
|
|
214
|
+
],
|
|
215
|
+
"theme": "open"
|
|
188
216
|
},
|
|
189
217
|
{
|
|
190
|
-
"heading": "
|
|
218
|
+
"heading": "links",
|
|
191
219
|
"content": [
|
|
192
220
|
{
|
|
193
|
-
"heading": "
|
|
221
|
+
"heading": "github repository",
|
|
222
|
+
"content": "v1.6.1",
|
|
194
223
|
"link": "https://github.com/akinevz2/herbctl"
|
|
195
224
|
},
|
|
196
225
|
{
|
|
197
|
-
"heading": "herbstutil
|
|
226
|
+
"heading": "herbstutil - the primitives underneath",
|
|
227
|
+
"content": "targets herbstutil ^0.3.0",
|
|
198
228
|
"link": "https://github.com/akinevz2/herbstutil"
|
|
199
229
|
},
|
|
200
230
|
{
|
|
201
|
-
"heading": "doftiles
|
|
231
|
+
"heading": "doftiles - the keybinds that spawn it",
|
|
232
|
+
"content": "v1.0.0",
|
|
202
233
|
"link": "/projects/doftiles"
|
|
203
234
|
},
|
|
204
235
|
{
|
|
205
|
-
"heading": "polyframes
|
|
236
|
+
"heading": "polyframes - the sibling binary",
|
|
237
|
+
"content": "v2.2.0",
|
|
206
238
|
"link": "/projects/polyframes"
|
|
207
239
|
}
|
|
208
240
|
],
|
|
@@ -1,88 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "herbstutil",
|
|
3
3
|
"title": "herbstutil",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "the herbstluftwm compatibility layer: herbstclient attr output as clean typed JSON, shell completion mirroring herbstclient's own, and the parse/attr primitives every sibling tool builds on.",
|
|
5
5
|
"github": "https://github.com/akinevz2/herbstutil",
|
|
6
|
+
"lastModified": "2026-11-02",
|
|
6
7
|
"content": {
|
|
7
|
-
"heading": "herbstutil - JSON bridge to herbstluftwm",
|
|
8
|
+
"heading": "herbstutil - the JSON bridge to herbstluftwm",
|
|
8
9
|
"content": [
|
|
9
|
-
"herbstutil is a small command-line tool that turns the output of `herbstclient attr` into clean, typed JSON - so the state of the herbstluftwm window manager can be consumed wherever JSON is spoken.
|
|
10
|
+
"**herbstutil** is a small command-line tool that turns the output of `herbstclient attr` into clean, typed JSON - so the state of the **herbstluftwm** window manager can be consumed wherever JSON is spoken.",
|
|
11
|
+
"",
|
|
12
|
+
"it can run herbstclient itself (`herbstutil attr ...`) or parse piped output like a unix filter.",
|
|
10
13
|
"[https://github.com/akinevz2/herbstutil](https://github.com/akinevz2/herbstutil)",
|
|
11
14
|
{
|
|
12
|
-
"heading": "
|
|
15
|
+
"heading": "the attr interface herbstclient speaks",
|
|
13
16
|
"content": [
|
|
14
|
-
"herbstluftwm is a manual tiling window manager for Linux.
|
|
15
|
-
"
|
|
16
|
-
"```sh\n$ herbstclient attr clients.
|
|
17
|
-
"
|
|
17
|
+
"**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.",
|
|
18
|
+
"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).",
|
|
19
|
+
"```sh\n$ herbstclient attr clients. # the clients node\n$ herbstclient attr clients.focus. # the focused window\n$ herbstclient attr clients.focus.tag # one leaf value\n```",
|
|
20
|
+
"the catch: `attr` output is written for humans first - padded type tables, prose, legends.",
|
|
21
|
+
"",
|
|
22
|
+
"great to read, fragile to parse."
|
|
18
23
|
],
|
|
19
24
|
"theme": "open"
|
|
20
25
|
},
|
|
21
26
|
{
|
|
22
|
-
"heading": "
|
|
23
|
-
"status": "v0.3.x - the compatibility layer",
|
|
27
|
+
"heading": "the package, architecturally",
|
|
24
28
|
"content": [
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{
|
|
42
|
-
"heading": "Usage",
|
|
43
|
-
"content": [
|
|
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:",
|
|
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```",
|
|
46
|
-
"s, --space <n> - pretty-print with `n` spaces of indentation (default 4)",
|
|
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",
|
|
48
|
-
"`parse` refuses to run attached to a terminal: as a filter it always reads from stdin."
|
|
49
|
-
],
|
|
50
|
-
"theme": "open"
|
|
51
|
-
}
|
|
29
|
+
"one **bun**/**bunli** single executable: a pure parse/attr core, exported as a library (parseAttr), under a thin command layer - `attr`, `parse`, `shell-completions`.",
|
|
30
|
+
"",
|
|
31
|
+
"every spawn of herbstclient and helper binaries carries the 5-second timeout the dots wrapper convention mandates: a vanished window resolves null instead of wedging the bar or the keybind.",
|
|
32
|
+
"",
|
|
33
|
+
"parse/attr primitives only - the keybind state machines live one floor down, in **herbctl**."
|
|
34
|
+
],
|
|
35
|
+
"theme": "open"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"heading": "usage",
|
|
39
|
+
"content": [
|
|
40
|
+
"two ways to the same JSON: let herbstutil run herbstclient for you, or pipe herbstclient through the parse filter (the default command):",
|
|
41
|
+
"```sh\n$ herbstutil attr clients.focus. # run + parse in one\n$ herbstclient attr clients. | herbstutil parse\n$ herbstclient attr clients. | herbstutil # parse is default\n```",
|
|
42
|
+
"`-s, --space <n>` - pretty-print with `n` spaces of indentation (default 4)",
|
|
43
|
+
"`-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",
|
|
44
|
+
"`parse` refuses to run attached to a terminal: as a filter it always reads from stdin."
|
|
52
45
|
],
|
|
53
46
|
"theme": "open"
|
|
54
47
|
},
|
|
55
48
|
{
|
|
56
|
-
"heading": "
|
|
49
|
+
"heading": "quirks - the value typing",
|
|
57
50
|
"content": [
|
|
58
|
-
"
|
|
51
|
+
"herbstclient annotates every attribute with a type hint in the first column of its listing; herbstutil uses that hint to emit properly typed JSON:",
|
|
52
|
+
"`s` (string) - JSON string, outer quotes stripped",
|
|
53
|
+
"`b` (bool) - JSON boolean",
|
|
54
|
+
"`i`, `u` (int, uint) - JSON number",
|
|
55
|
+
"`R` (rectangle) - `WIDTHxHEIGHT+X+Y` becomes an object { x, y, width, height }",
|
|
56
|
+
"`p` (point) - `XxY` becomes an object { x, y }",
|
|
57
|
+
"`c`, `r`, `n`, `f` (color, regex, named value, font) - string",
|
|
58
|
+
"",
|
|
59
|
+
"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.",
|
|
60
|
+
"",
|
|
61
|
+
"pass `--escape` to keep the raw text instead."
|
|
62
|
+
],
|
|
63
|
+
"theme": "open"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"heading": "stable in v1.x",
|
|
67
|
+
"status": "v1.1.0",
|
|
68
|
+
"content": [
|
|
69
|
+
"the global command installs from a plain `npm install -g herbstutil` wherever bun exists - the package runs its bun-executed source, no build step to trust and no dist blob to ship.",
|
|
70
|
+
"the help text is terse and prints on stdout; the version in bunli.config and package.json can never diverge (the config spreads the package manifest).",
|
|
71
|
+
"the completion verb ships as `shell-completions`, registered first so help reads attr, parse, shell-completions in the natural order.",
|
|
72
|
+
"the parse contract is the stable surface: typed JSON with value / children / attributes, rectangles and points as objects."
|
|
73
|
+
],
|
|
74
|
+
"theme": "open"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"heading": "examples",
|
|
78
|
+
"content": [
|
|
79
|
+
"the same nodes, before and after herbstutil.",
|
|
59
80
|
{
|
|
60
|
-
"heading": "
|
|
81
|
+
"heading": "root node: herbstclient attr clients.",
|
|
61
82
|
"content": [
|
|
62
|
-
"
|
|
63
|
-
"```text\n$ herbstclient attr clients.\nThe managed windows.
|
|
64
|
-
"
|
|
65
|
-
"```json\n{\n \"value\": \"The managed windows.
|
|
83
|
+
"raw:",
|
|
84
|
+
"```text\n$ herbstclient attr clients.\nThe managed windows. One entry per window id.\n\n4 children:\n 0x280003.\n 0x680004.\n 0x900003.\n focus.\n0 attributes.\n .---- type\n | .-- writable\n | | .-- hookable\n V V V\n```",
|
|
85
|
+
"through herbstutil:",
|
|
86
|
+
"```json\n{\n \"value\": \"The managed windows. One entry per window id.\",\n \"children\": [\n \"0x280003.\",\n \"0x680004.\",\n \"0x900003.\",\n \"focus.\"\n ],\n \"attributes\": {}\n}\n```"
|
|
66
87
|
],
|
|
67
88
|
"theme": "open"
|
|
68
89
|
},
|
|
69
90
|
{
|
|
70
|
-
"heading": "
|
|
91
|
+
"heading": "node with attributes: herbstclient attr clients.focus.",
|
|
71
92
|
"content": [
|
|
72
|
-
"
|
|
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
|
|
74
|
-
"
|
|
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```"
|
|
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."
|
|
93
|
+
"raw (excerpt):",
|
|
94
|
+
"```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 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```",
|
|
95
|
+
"through herbstutil (excerpt - all 24 attributes arrive in the JSON):",
|
|
96
|
+
"```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```"
|
|
77
97
|
],
|
|
78
98
|
"theme": "open"
|
|
79
99
|
},
|
|
80
100
|
{
|
|
81
|
-
"heading": "
|
|
101
|
+
"heading": "leaf node: herbstclient attr clients.focus.tag",
|
|
82
102
|
"content": [
|
|
83
|
-
"
|
|
103
|
+
"raw:",
|
|
84
104
|
"```text\n$ herbstclient attr clients.focus.tag\nwork\n```",
|
|
85
|
-
"
|
|
105
|
+
"through herbstutil:",
|
|
86
106
|
"```json\n{\n \"value\": \"work\",\n \"children\": [],\n \"attributes\": {}\n}\n```"
|
|
87
107
|
],
|
|
88
108
|
"theme": "open"
|
|
@@ -91,37 +111,34 @@
|
|
|
91
111
|
"theme": "open"
|
|
92
112
|
},
|
|
93
113
|
{
|
|
94
|
-
"heading": "
|
|
95
|
-
"content": [
|
|
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.",
|
|
97
|
-
"Everything downstream (herbctl, polyframes) imports parseAttr directly, bundled at build time; the CLI verbs stay for scripts and humans."
|
|
98
|
-
],
|
|
99
|
-
"theme": "open"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"heading": "Shell completion, mirroring herbstclient",
|
|
114
|
+
"heading": "extensions - shell completion",
|
|
103
115
|
"content": [
|
|
104
|
-
"herbstclient's completion model: the binary does the thinking (complete_shell <pos> <words...>), the shell scripts just delegate. herbstutil mirrors it - the
|
|
105
|
-
"
|
|
106
|
-
"
|
|
116
|
+
"**herbstclient**'s completion model: the binary does the thinking (complete_shell <pos> <words...>), the shell scripts just delegate. **herbstutil** mirrors it - the shell-completions verb, plus bash/zsh scripts that are byte-structure twins of hlwm's own.",
|
|
117
|
+
"",
|
|
118
|
+
"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.",
|
|
119
|
+
"",
|
|
120
|
+
"install the completion with the package scripts:",
|
|
107
121
|
"```sh\n$ npm run completion:install # bash + zsh, user-level\n$ herbstutil attr clients.<TAB> # the live tree, in your shell\n```",
|
|
108
|
-
"
|
|
122
|
+
"published on npm: `npm i -g herbstutil` gives the command (it runs through bun) - or install from source with `bun run build`."
|
|
109
123
|
],
|
|
110
124
|
"theme": "open"
|
|
111
125
|
},
|
|
112
126
|
{
|
|
113
|
-
"heading": "
|
|
127
|
+
"heading": "links",
|
|
114
128
|
"content": [
|
|
115
129
|
{
|
|
116
|
-
"heading": "
|
|
130
|
+
"heading": "github repository",
|
|
131
|
+
"content": "v1.1.0",
|
|
117
132
|
"link": "https://github.com/akinevz2/herbstutil"
|
|
118
133
|
},
|
|
119
134
|
{
|
|
120
135
|
"heading": "herbstluftwm project",
|
|
136
|
+
"content": "herbstluftwm 0.9.5",
|
|
121
137
|
"link": "https://herbstluftwm.org"
|
|
122
138
|
},
|
|
123
139
|
{
|
|
124
140
|
"heading": "herbstclient reference",
|
|
141
|
+
"content": "herbstluftwm 0.9.5",
|
|
125
142
|
"link": "https://herbstluftwm.org/herbstclient.html"
|
|
126
143
|
}
|
|
127
144
|
],
|
|
@@ -1,18 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "lightdni-jssas-toggle",
|
|
3
3
|
"title": "lightdni-jssas-toggle",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "lightdni (Doesn't Need Integration) provides a simple declarative API for adding a theme toggle to your website.",
|
|
5
5
|
"github": "https://github.com/akinevz2/lightdni-jssas-toggle",
|
|
6
|
+
"lastModified": "2026-10-29",
|
|
6
7
|
"content": {
|
|
7
|
-
"heading": "lightdni-jssas-toggle",
|
|
8
|
+
"heading": "lightdni-jssas-toggle - the theme toggle, no integration needed",
|
|
8
9
|
"content": [
|
|
9
|
-
"
|
|
10
|
+
"**lightdni** (Doesn't Need Integration) provides a simple declarative API for adding a theme toggle to your website.",
|
|
11
|
+
"",
|
|
10
12
|
"[https://github.com/akinevz2/lightdni-jssas-toggle](https://github.com/akinevz2/lightdni-jssas-toggle)",
|
|
11
13
|
{
|
|
12
|
-
"heading": "
|
|
14
|
+
"heading": "how a website wears its theme",
|
|
13
15
|
"content": [
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
+
"a website's theme is conventionally worn on the root element: a class or a data attribute selects the palette, CSS variables carry the colors, and persistence rides localStorage or a cookie. the platform adds the rest - `color-scheme` for the browser's own widgets, `prefers-color-scheme` for the system setting.",
|
|
17
|
+
"",
|
|
18
|
+
"every framework re-implements this wiring. **lightdni** is that wiring, once, declaratively - in vanilla JS/TS, React and Vue projects alike."
|
|
19
|
+
],
|
|
20
|
+
"theme": "open"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"heading": "the package, architecturally",
|
|
24
|
+
"content": [
|
|
25
|
+
"a TypeScript utility package: one consolidated `setTheme` call that applies theme classes and attributes on the root element, resolves dynamic CSS variables, persists through localStorage/cookie, and maintains the accessibility metadata (`color-scheme`, `aria-live` announcements).",
|
|
26
|
+
"",
|
|
27
|
+
"dependency-safe - no framework runtime, no peer installs."
|
|
28
|
+
],
|
|
29
|
+
"theme": "open"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"heading": "quirks",
|
|
33
|
+
"content": [
|
|
34
|
+
"the persisted theme name is read back defensively - a stored value that names no known theme resolves to the default, not to a broken palette."
|
|
35
|
+
],
|
|
36
|
+
"theme": "open"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"heading": "stable in v1.x",
|
|
40
|
+
"status": "v1.1.1",
|
|
41
|
+
"content": [
|
|
42
|
+
"the one-call `setTheme` API is the stable surface; the persisted-theme reader is back with tests.",
|
|
43
|
+
"",
|
|
44
|
+
"published on npm: lightdni-jssas-toggle 1.1.1."
|
|
45
|
+
],
|
|
46
|
+
"theme": "open"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"heading": "links",
|
|
50
|
+
"content": [
|
|
51
|
+
{
|
|
52
|
+
"heading": "github repository",
|
|
53
|
+
"content": "v1.1.1",
|
|
54
|
+
"link": "https://github.com/akinevz2/lightdni-jssas-toggle"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"heading": "npm package",
|
|
58
|
+
"content": "1.1.1",
|
|
59
|
+
"link": "https://www.npmjs.com/package/lightdni-jssas-toggle"
|
|
60
|
+
}
|
|
16
61
|
],
|
|
17
62
|
"theme": "open"
|
|
18
63
|
}
|