detached d9218d6

merge: rename-neferwl (rename to neferwl, GPL-3.0, README and docs/config.md)

commit
d9218d640572cd651d0ab6467540f9d2f10048d6
author
brice · · 2026-09-26 16:16 UTC
merge of
f81774e + 22e7d30 · diff against the first parent
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
refs
tag: v0.1.0
142 files · +1153 -306
M .gitignore +1 -1
@@ -1,4 +1,4 @@
1-/nefertty
1+/neferwl
22 /bin/
33 *.test
44 *.out
@@ -1,4 +1,4 @@
1-/nefertty1+/neferwl
2 /bin/2 /bin/
3 *.test3 *.test
4 *.out4 *.out
M .mockery.yml +4 -4
@@ -7,7 +7,7 @@ template: testify
77 template-schema: '{{.Template}}.schema.json'
88 require-template-schema-exists: true
99 packages:
10- github.com/bnema/nefertty/internal/ports:
10+ github.com/bnema/neferwl/internal/ports:
1111 config:
1212 dir: internal/mocks/ports
1313 pkgname: portsmocks
@@ -16,14 +16,14 @@ packages:
1616 Renderer:
1717 Seat:
1818 # Unexported adapter seams: mocks live next to the code, in test files.
19- github.com/bnema/nefertty/internal/adapters/drm:
19+ github.com/bnema/neferwl/internal/adapters/drm:
2020 interfaces:
2121 kms:
2222 config:
2323 dir: internal/adapters/drm
2424 pkgname: drm
2525 filename: kms_mock_test.go
26- github.com/bnema/nefertty/internal/adapters/wayland:
26+ github.com/bnema/neferwl/internal/adapters/wayland:
2727 interfaces:
2828 procEnv:
2929 config:
@@ -35,7 +35,7 @@ packages:
3535 dir: internal/adapters/wayland
3636 pkgname: wayland
3737 filename: syncobj_device_mock_test.go
38- github.com/bnema/nefertty/internal/adapters/statefile:
38+ github.com/bnema/neferwl/internal/adapters/statefile:
3939 interfaces:
4040 procTree:
4141 config:
@@ -7,7 +7,7 @@ template: testify
7 template-schema: '{{.Template}}.schema.json'7 template-schema: '{{.Template}}.schema.json'
8 require-template-schema-exists: true8 require-template-schema-exists: true
9 packages:9 packages:
10- github.com/bnema/nefertty/internal/ports:10+ github.com/bnema/neferwl/internal/ports:
11 config:11 config:
12 dir: internal/mocks/ports12 dir: internal/mocks/ports
13 pkgname: portsmocks13 pkgname: portsmocks
@@ -16,14 +16,14 @@ packages:
16 Renderer:16 Renderer:
17 Seat:17 Seat:
18 # Unexported adapter seams: mocks live next to the code, in test files.18 # Unexported adapter seams: mocks live next to the code, in test files.
19- github.com/bnema/nefertty/internal/adapters/drm:19+ github.com/bnema/neferwl/internal/adapters/drm:
20 interfaces:20 interfaces:
21 kms:21 kms:
22 config:22 config:
23 dir: internal/adapters/drm23 dir: internal/adapters/drm
24 pkgname: drm24 pkgname: drm
25 filename: kms_mock_test.go25 filename: kms_mock_test.go
26- github.com/bnema/nefertty/internal/adapters/wayland:26+ github.com/bnema/neferwl/internal/adapters/wayland:
27 interfaces:27 interfaces:
28 procEnv:28 procEnv:
29 config:29 config:
@@ -35,7 +35,7 @@ packages:
35 dir: internal/adapters/wayland35 dir: internal/adapters/wayland
36 pkgname: wayland36 pkgname: wayland
37 filename: syncobj_device_mock_test.go37 filename: syncobj_device_mock_test.go
38- github.com/bnema/nefertty/internal/adapters/statefile:38+ github.com/bnema/neferwl/internal/adapters/statefile:
39 interfaces:39 interfaces:
40 procTree:40 procTree:
41 config:41 config:
M LICENSE +674 -21
@@ -1,21 +1,674 @@
1-MIT License
2-
3-Copyright (c) 2026 nefertty contributors
4-
5-Permission is hereby granted, free of charge, to any person obtaining a copy
6-of this software and associated documentation files (the "Software"), to deal
7-in the Software without restriction, including without limitation the rights
8-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-copies of the Software, and to permit persons to whom the Software is
10-furnished to do so, subject to the following conditions:
11-
12-The above copyright notice and this permission notice shall be included in all
13-copies or substantial portions of the Software.
14-
15-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-SOFTWARE.
1+ GNU GENERAL PUBLIC LICENSE
2+ Version 3, 29 June 2007
3+
4+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5+ Everyone is permitted to copy and distribute verbatim copies
6+ of this license document, but changing it is not allowed.
7+
8+ Preamble
9+
10+ The GNU General Public License is a free, copyleft license for
11+software and other kinds of works.
12+
13+ The licenses for most software and other practical works are designed
14+to take away your freedom to share and change the works. By contrast,
15+the GNU General Public License is intended to guarantee your freedom to
16+share and change all versions of a program--to make sure it remains free
17+software for all its users. We, the Free Software Foundation, use the
18+GNU General Public License for most of our software; it applies also to
19+any other work released this way by its authors. You can apply it to
20+your programs, too.
21+
22+ When we speak of free software, we are referring to freedom, not
23+price. Our General Public Licenses are designed to make sure that you
24+have the freedom to distribute copies of free software (and charge for
25+them if you wish), that you receive source code or can get it if you
26+want it, that you can change the software or use pieces of it in new
27+free programs, and that you know you can do these things.
28+
29+ To protect your rights, we need to prevent others from denying you
30+these rights or asking you to surrender the rights. Therefore, you have
31+certain responsibilities if you distribute copies of the software, or if
32+you modify it: responsibilities to respect the freedom of others.
33+
34+ For example, if you distribute copies of such a program, whether
35+gratis or for a fee, you must pass on to the recipients the same
36+freedoms that you received. You must make sure that they, too, receive
37+or can get the source code. And you must show them these terms so they
38+know their rights.
39+
40+ Developers that use the GNU GPL protect your rights with two steps:
41+(1) assert copyright on the software, and (2) offer you this License
42+giving you legal permission to copy, distribute and/or modify it.
43+
44+ For the developers' and authors' protection, the GPL clearly explains
45+that there is no warranty for this free software. For both users' and
46+authors' sake, the GPL requires that modified versions be marked as
47+changed, so that their problems will not be attributed erroneously to
48+authors of previous versions.
49+
50+ Some devices are designed to deny users access to install or run
51+modified versions of the software inside them, although the manufacturer
52+can do so. This is fundamentally incompatible with the aim of
53+protecting users' freedom to change the software. The systematic
54+pattern of such abuse occurs in the area of products for individuals to
55+use, which is precisely where it is most unacceptable. Therefore, we
56+have designed this version of the GPL to prohibit the practice for those
57+products. If such problems arise substantially in other domains, we
58+stand ready to extend this provision to those domains in future versions
59+of the GPL, as needed to protect the freedom of users.
60+
61+ Finally, every program is threatened constantly by software patents.
62+States should not allow patents to restrict development and use of
63+software on general-purpose computers, but in those that do, we wish to
64+avoid the special danger that patents applied to a free program could
65+make it effectively proprietary. To prevent this, the GPL assures that
66+patents cannot be used to render the program non-free.
67+
68+ The precise terms and conditions for copying, distribution and
69+modification follow.
70+
71+ TERMS AND CONDITIONS
72+
73+ 0. Definitions.
74+
75+ "This License" refers to version 3 of the GNU General Public License.
76+
77+ "Copyright" also means copyright-like laws that apply to other kinds of
78+works, such as semiconductor masks.
79+
80+ "The Program" refers to any copyrightable work licensed under this
81+License. Each licensee is addressed as "you". "Licensees" and
82+"recipients" may be individuals or organizations.
83+
84+ To "modify" a work means to copy from or adapt all or part of the work
85+in a fashion requiring copyright permission, other than the making of an
86+exact copy. The resulting work is called a "modified version" of the
87+earlier work or a work "based on" the earlier work.
88+
89+ A "covered work" means either the unmodified Program or a work based
90+on the Program.
91+
92+ To "propagate" a work means to do anything with it that, without
93+permission, would make you directly or secondarily liable for
94+infringement under applicable copyright law, except executing it on a
95+computer or modifying a private copy. Propagation includes copying,
96+distribution (with or without modification), making available to the
97+public, and in some countries other activities as well.
98+
99+ To "convey" a work means any kind of propagation that enables other
100+parties to make or receive copies. Mere interaction with a user through
101+a computer network, with no transfer of a copy, is not conveying.
102+
103+ An interactive user interface displays "Appropriate Legal Notices"
104+to the extent that it includes a convenient and prominently visible
105+feature that (1) displays an appropriate copyright notice, and (2)
106+tells the user that there is no warranty for the work (except to the
107+extent that warranties are provided), that licensees may convey the
108+work under this License, and how to view a copy of this License. If
109+the interface presents a list of user commands or options, such as a
110+menu, a prominent item in the list meets this criterion.
111+
112+ 1. Source Code.
113+
114+ The "source code" for a work means the preferred form of the work
115+for making modifications to it. "Object code" means any non-source
116+form of a work.
117+
118+ A "Standard Interface" means an interface that either is an official
119+standard defined by a recognized standards body, or, in the case of
120+interfaces specified for a particular programming language, one that
121+is widely used among developers working in that language.
122+
123+ The "System Libraries" of an executable work include anything, other
124+than the work as a whole, that (a) is included in the normal form of
125+packaging a Major Component, but which is not part of that Major
126+Component, and (b) serves only to enable use of the work with that
127+Major Component, or to implement a Standard Interface for which an
128+implementation is available to the public in source code form. A
129+"Major Component", in this context, means a major essential component
130+(kernel, window system, and so on) of the specific operating system
131+(if any) on which the executable work runs, or a compiler used to
132+produce the work, or an object code interpreter used to run it.
133+
134+ The "Corresponding Source" for a work in object code form means all
135+the source code needed to generate, install, and (for an executable
136+work) run the object code and to modify the work, including scripts to
137+control those activities. However, it does not include the work's
138+System Libraries, or general-purpose tools or generally available free
139+programs which are used unmodified in performing those activities but
140+which are not part of the work. For example, Corresponding Source
141+includes interface definition files associated with source files for
142+the work, and the source code for shared libraries and dynamically
143+linked subprograms that the work is specifically designed to require,
144+such as by intimate data communication or control flow between those
145+subprograms and other parts of the work.
146+
147+ The Corresponding Source need not include anything that users
148+can regenerate automatically from other parts of the Corresponding
149+Source.
150+
151+ The Corresponding Source for a work in source code form is that
152+same work.
153+
154+ 2. Basic Permissions.
155+
156+ All rights granted under this License are granted for the term of
157+copyright on the Program, and are irrevocable provided the stated
158+conditions are met. This License explicitly affirms your unlimited
159+permission to run the unmodified Program. The output from running a
160+covered work is covered by this License only if the output, given its
161+content, constitutes a covered work. This License acknowledges your
162+rights of fair use or other equivalent, as provided by copyright law.
163+
164+ You may make, run and propagate covered works that you do not
165+convey, without conditions so long as your license otherwise remains
166+in force. You may convey covered works to others for the sole purpose
167+of having them make modifications exclusively for you, or provide you
168+with facilities for running those works, provided that you comply with
169+the terms of this License in conveying all material for which you do
170+not control copyright. Those thus making or running the covered works
171+for you must do so exclusively on your behalf, under your direction
172+and control, on terms that prohibit them from making any copies of
173+your copyrighted material outside their relationship with you.
174+
175+ Conveying under any other circumstances is permitted solely under
176+the conditions stated below. Sublicensing is not allowed; section 10
177+makes it unnecessary.
178+
179+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180+
181+ No covered work shall be deemed part of an effective technological
182+measure under any applicable law fulfilling obligations under article
183+11 of the WIPO copyright treaty adopted on 20 December 1996, or
184+similar laws prohibiting or restricting circumvention of such
185+measures.
186+
187+ When you convey a covered work, you waive any legal power to forbid
188+circumvention of technological measures to the extent such circumvention
189+is effected by exercising rights under this License with respect to
190+the covered work, and you disclaim any intention to limit operation or
191+modification of the work as a means of enforcing, against the work's
192+users, your or third parties' legal rights to forbid circumvention of
193+technological measures.
194+
195+ 4. Conveying Verbatim Copies.
196+
197+ You may convey verbatim copies of the Program's source code as you
198+receive it, in any medium, provided that you conspicuously and
199+appropriately publish on each copy an appropriate copyright notice;
200+keep intact all notices stating that this License and any
201+non-permissive terms added in accord with section 7 apply to the code;
202+keep intact all notices of the absence of any warranty; and give all
203+recipients a copy of this License along with the Program.
204+
205+ You may charge any price or no price for each copy that you convey,
206+and you may offer support or warranty protection for a fee.
207+
208+ 5. Conveying Modified Source Versions.
209+
210+ You may convey a work based on the Program, or the modifications to
211+produce it from the Program, in the form of source code under the
212+terms of section 4, provided that you also meet all of these conditions:
213+
214+ a) The work must carry prominent notices stating that you modified
215+ it, and giving a relevant date.
216+
217+ b) The work must carry prominent notices stating that it is
218+ released under this License and any conditions added under section
219+ 7. This requirement modifies the requirement in section 4 to
220+ "keep intact all notices".
221+
222+ c) You must license the entire work, as a whole, under this
223+ License to anyone who comes into possession of a copy. This
224+ License will therefore apply, along with any applicable section 7
225+ additional terms, to the whole of the work, and all its parts,
226+ regardless of how they are packaged. This License gives no
227+ permission to license the work in any other way, but it does not
228+ invalidate such permission if you have separately received it.
229+
230+ d) If the work has interactive user interfaces, each must display
231+ Appropriate Legal Notices; however, if the Program has interactive
232+ interfaces that do not display Appropriate Legal Notices, your
233+ work need not make them do so.
234+
235+ A compilation of a covered work with other separate and independent
236+works, which are not by their nature extensions of the covered work,
237+and which are not combined with it such as to form a larger program,
238+in or on a volume of a storage or distribution medium, is called an
239+"aggregate" if the compilation and its resulting copyright are not
240+used to limit the access or legal rights of the compilation's users
241+beyond what the individual works permit. Inclusion of a covered work
242+in an aggregate does not cause this License to apply to the other
243+parts of the aggregate.
244+
245+ 6. Conveying Non-Source Forms.
246+
247+ You may convey a covered work in object code form under the terms
248+of sections 4 and 5, provided that you also convey the
249+machine-readable Corresponding Source under the terms of this License,
250+in one of these ways:
251+
252+ a) Convey the object code in, or embodied in, a physical product
253+ (including a physical distribution medium), accompanied by the
254+ Corresponding Source fixed on a durable physical medium
255+ customarily used for software interchange.
256+
257+ b) Convey the object code in, or embodied in, a physical product
258+ (including a physical distribution medium), accompanied by a
259+ written offer, valid for at least three years and valid for as
260+ long as you offer spare parts or customer support for that product
261+ model, to give anyone who possesses the object code either (1) a
262+ copy of the Corresponding Source for all the software in the
263+ product that is covered by this License, on a durable physical
264+ medium customarily used for software interchange, for a price no
265+ more than your reasonable cost of physically performing this
266+ conveying of source, or (2) access to copy the
267+ Corresponding Source from a network server at no charge.
268+
269+ c) Convey individual copies of the object code with a copy of the
270+ written offer to provide the Corresponding Source. This
271+ alternative is allowed only occasionally and noncommercially, and
272+ only if you received the object code with such an offer, in accord
273+ with subsection 6b.
274+
275+ d) Convey the object code by offering access from a designated
276+ place (gratis or for a charge), and offer equivalent access to the
277+ Corresponding Source in the same way through the same place at no
278+ further charge. You need not require recipients to copy the
279+ Corresponding Source along with the object code. If the place to
280+ copy the object code is a network server, the Corresponding Source
281+ may be on a different server (operated by you or a third party)
282+ that supports equivalent copying facilities, provided you maintain
283+ clear directions next to the object code saying where to find the
284+ Corresponding Source. Regardless of what server hosts the
285+ Corresponding Source, you remain obligated to ensure that it is
286+ available for as long as needed to satisfy these requirements.
287+
288+ e) Convey the object code using peer-to-peer transmission, provided
289+ you inform other peers where the object code and Corresponding
290+ Source of the work are being offered to the general public at no
291+ charge under subsection 6d.
292+
293+ A separable portion of the object code, whose source code is excluded
294+from the Corresponding Source as a System Library, need not be
295+included in conveying the object code work.
296+
297+ A "User Product" is either (1) a "consumer product", which means any
298+tangible personal property which is normally used for personal, family,
299+or household purposes, or (2) anything designed or sold for incorporation
300+into a dwelling. In determining whether a product is a consumer product,
301+doubtful cases shall be resolved in favor of coverage. For a particular
302+product received by a particular user, "normally used" refers to a
303+typical or common use of that class of product, regardless of the status
304+of the particular user or of the way in which the particular user
305+actually uses, or expects or is expected to use, the product. A product
306+is a consumer product regardless of whether the product has substantial
307+commercial, industrial or non-consumer uses, unless such uses represent
308+the only significant mode of use of the product.
309+
310+ "Installation Information" for a User Product means any methods,
311+procedures, authorization keys, or other information required to install
312+and execute modified versions of a covered work in that User Product from
313+a modified version of its Corresponding Source. The information must
314+suffice to ensure that the continued functioning of the modified object
315+code is in no case prevented or interfered with solely because
316+modification has been made.
317+
318+ If you convey an object code work under this section in, or with, or
319+specifically for use in, a User Product, and the conveying occurs as
320+part of a transaction in which the right of possession and use of the
321+User Product is transferred to the recipient in perpetuity or for a
322+fixed term (regardless of how the transaction is characterized), the
323+Corresponding Source conveyed under this section must be accompanied
324+by the Installation Information. But this requirement does not apply
325+if neither you nor any third party retains the ability to install
326+modified object code on the User Product (for example, the work has
327+been installed in ROM).
328+
329+ The requirement to provide Installation Information does not include a
330+requirement to continue to provide support service, warranty, or updates
331+for a work that has been modified or installed by the recipient, or for
332+the User Product in which it has been modified or installed. Access to a
333+network may be denied when the modification itself materially and
334+adversely affects the operation of the network or violates the rules and
335+protocols for communication across the network.
336+
337+ Corresponding Source conveyed, and Installation Information provided,
338+in accord with this section must be in a format that is publicly
339+documented (and with an implementation available to the public in
340+source code form), and must require no special password or key for
341+unpacking, reading or copying.
342+
343+ 7. Additional Terms.
344+
345+ "Additional permissions" are terms that supplement the terms of this
346+License by making exceptions from one or more of its conditions.
347+Additional permissions that are applicable to the entire Program shall
348+be treated as though they were included in this License, to the extent
349+that they are valid under applicable law. If additional permissions
350+apply only to part of the Program, that part may be used separately
351+under those permissions, but the entire Program remains governed by
352+this License without regard to the additional permissions.
353+
354+ When you convey a copy of a covered work, you may at your option
355+remove any additional permissions from that copy, or from any part of
356+it. (Additional permissions may be written to require their own
357+removal in certain cases when you modify the work.) You may place
358+additional permissions on material, added by you to a covered work,
359+for which you have or can give appropriate copyright permission.
360+
361+ Notwithstanding any other provision of this License, for material you
362+add to a covered work, you may (if authorized by the copyright holders of
363+that material) supplement the terms of this License with terms:
364+
365+ a) Disclaiming warranty or limiting liability differently from the
366+ terms of sections 15 and 16 of this License; or
367+
368+ b) Requiring preservation of specified reasonable legal notices or
369+ author attributions in that material or in the Appropriate Legal
370+ Notices displayed by works containing it; or
371+
372+ c) Prohibiting misrepresentation of the origin of that material, or
373+ requiring that modified versions of such material be marked in
374+ reasonable ways as different from the original version; or
375+
376+ d) Limiting the use for publicity purposes of names of licensors or
377+ authors of the material; or
378+
379+ e) Declining to grant rights under trademark law for use of some
380+ trade names, trademarks, or service marks; or
381+
382+ f) Requiring indemnification of licensors and authors of that
383+ material by anyone who conveys the material (or modified versions of
384+ it) with contractual assumptions of liability to the recipient, for
385+ any liability that these contractual assumptions directly impose on
386+ those licensors and authors.
387+
388+ All other non-permissive additional terms are considered "further
389+restrictions" within the meaning of section 10. If the Program as you
390+received it, or any part of it, contains a notice stating that it is
391+governed by this License along with a term that is a further
392+restriction, you may remove that term. If a license document contains
393+a further restriction but permits relicensing or conveying under this
394+License, you may add to a covered work material governed by the terms
395+of that license document, provided that the further restriction does
396+not survive such relicensing or conveying.
397+
398+ If you add terms to a covered work in accord with this section, you
399+must place, in the relevant source files, a statement of the
400+additional terms that apply to those files, or a notice indicating
401+where to find the applicable terms.
402+
403+ Additional terms, permissive or non-permissive, may be stated in the
404+form of a separately written license, or stated as exceptions;
405+the above requirements apply either way.
406+
407+ 8. Termination.
408+
409+ You may not propagate or modify a covered work except as expressly
410+provided under this License. Any attempt otherwise to propagate or
411+modify it is void, and will automatically terminate your rights under
412+this License (including any patent licenses granted under the third
413+paragraph of section 11).
414+
415+ However, if you cease all violation of this License, then your
416+license from a particular copyright holder is reinstated (a)
417+provisionally, unless and until the copyright holder explicitly and
418+finally terminates your license, and (b) permanently, if the copyright
419+holder fails to notify you of the violation by some reasonable means
420+prior to 60 days after the cessation.
421+
422+ Moreover, your license from a particular copyright holder is
423+reinstated permanently if the copyright holder notifies you of the
424+violation by some reasonable means, this is the first time you have
425+received notice of violation of this License (for any work) from that
426+copyright holder, and you cure the violation prior to 30 days after
427+your receipt of the notice.
428+
429+ Termination of your rights under this section does not terminate the
430+licenses of parties who have received copies or rights from you under
431+this License. If your rights have been terminated and not permanently
432+reinstated, you do not qualify to receive new licenses for the same
433+material under section 10.
434+
435+ 9. Acceptance Not Required for Having Copies.
436+
437+ You are not required to accept this License in order to receive or
438+run a copy of the Program. Ancillary propagation of a covered work
439+occurring solely as a consequence of using peer-to-peer transmission
440+to receive a copy likewise does not require acceptance. However,
441+nothing other than this License grants you permission to propagate or
442+modify any covered work. These actions infringe copyright if you do
443+not accept this License. Therefore, by modifying or propagating a
444+covered work, you indicate your acceptance of this License to do so.
445+
446+ 10. Automatic Licensing of Downstream Recipients.
447+
448+ Each time you convey a covered work, the recipient automatically
449+receives a license from the original licensors, to run, modify and
450+propagate that work, subject to this License. You are not responsible
451+for enforcing compliance by third parties with this License.
452+
453+ An "entity transaction" is a transaction transferring control of an
454+organization, or substantially all assets of one, or subdividing an
455+organization, or merging organizations. If propagation of a covered
456+work results from an entity transaction, each party to that
457+transaction who receives a copy of the work also receives whatever
458+licenses to the work the party's predecessor in interest had or could
459+give under the previous paragraph, plus a right to possession of the
460+Corresponding Source of the work from the predecessor in interest, if
461+the predecessor has it or can get it with reasonable efforts.
462+
463+ You may not impose any further restrictions on the exercise of the
464+rights granted or affirmed under this License. For example, you may
465+not impose a license fee, royalty, or other charge for exercise of
466+rights granted under this License, and you may not initiate litigation
467+(including a cross-claim or counterclaim in a lawsuit) alleging that
468+any patent claim is infringed by making, using, selling, offering for
469+sale, or importing the Program or any portion of it.
470+
471+ 11. Patents.
472+
473+ A "contributor" is a copyright holder who authorizes use under this
474+License of the Program or a work on which the Program is based. The
475+work thus licensed is called the contributor's "contributor version".
476+
477+ A contributor's "essential patent claims" are all patent claims
478+owned or controlled by the contributor, whether already acquired or
479+hereafter acquired, that would be infringed by some manner, permitted
480+by this License, of making, using, or selling its contributor version,
481+but do not include claims that would be infringed only as a
482+consequence of further modification of the contributor version. For
483+purposes of this definition, "control" includes the right to grant
484+patent sublicenses in a manner consistent with the requirements of
485+this License.
486+
487+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488+patent license under the contributor's essential patent claims, to
489+make, use, sell, offer for sale, import and otherwise run, modify and
490+propagate the contents of its contributor version.
491+
492+ In the following three paragraphs, a "patent license" is any express
493+agreement or commitment, however denominated, not to enforce a patent
494+(such as an express permission to practice a patent or covenant not to
495+sue for patent infringement). To "grant" such a patent license to a
496+party means to make such an agreement or commitment not to enforce a
497+patent against the party.
498+
499+ If you convey a covered work, knowingly relying on a patent license,
500+and the Corresponding Source of the work is not available for anyone
501+to copy, free of charge and under the terms of this License, through a
502+publicly available network server or other readily accessible means,
503+then you must either (1) cause the Corresponding Source to be so
504+available, or (2) arrange to deprive yourself of the benefit of the
505+patent license for this particular work, or (3) arrange, in a manner
506+consistent with the requirements of this License, to extend the patent
507+license to downstream recipients. "Knowingly relying" means you have
508+actual knowledge that, but for the patent license, your conveying the
509+covered work in a country, or your recipient's use of the covered work
510+in a country, would infringe one or more identifiable patents in that
511+country that you have reason to believe are valid.
512+
513+ If, pursuant to or in connection with a single transaction or
514+arrangement, you convey, or propagate by procuring conveyance of, a
515+covered work, and grant a patent license to some of the parties
516+receiving the covered work authorizing them to use, propagate, modify
517+or convey a specific copy of the covered work, then the patent license
518+you grant is automatically extended to all recipients of the covered
519+work and works based on it.
520+
521+ A patent license is "discriminatory" if it does not include within
522+the scope of its coverage, prohibits the exercise of, or is
523+conditioned on the non-exercise of one or more of the rights that are
524+specifically granted under this License. You may not convey a covered
525+work if you are a party to an arrangement with a third party that is
526+in the business of distributing software, under which you make payment
527+to the third party based on the extent of your activity of conveying
528+the work, and under which the third party grants, to any of the
529+parties who would receive the covered work from you, a discriminatory
530+patent license (a) in connection with copies of the covered work
531+conveyed by you (or copies made from those copies), or (b) primarily
532+for and in connection with specific products or compilations that
533+contain the covered work, unless you entered into that arrangement,
534+or that patent license was granted, prior to 28 March 2007.
535+
536+ Nothing in this License shall be construed as excluding or limiting
537+any implied license or other defenses to infringement that may
538+otherwise be available to you under applicable patent law.
539+
540+ 12. No Surrender of Others' Freedom.
541+
542+ If conditions are imposed on you (whether by court order, agreement or
543+otherwise) that contradict the conditions of this License, they do not
544+excuse you from the conditions of this License. If you cannot convey a
545+covered work so as to satisfy simultaneously your obligations under this
546+License and any other pertinent obligations, then as a consequence you may
547+not convey it at all. For example, if you agree to terms that obligate you
548+to collect a royalty for further conveying from those to whom you convey
549+the Program, the only way you could satisfy both those terms and this
550+License would be to refrain entirely from conveying the Program.
551+
552+ 13. Use with the GNU Affero General Public License.
553+
554+ Notwithstanding any other provision of this License, you have
555+permission to link or combine any covered work with a work licensed
556+under version 3 of the GNU Affero General Public License into a single
557+combined work, and to convey the resulting work. The terms of this
558+License will continue to apply to the part which is the covered work,
559+but the special requirements of the GNU Affero General Public License,
560+section 13, concerning interaction through a network will apply to the
561+combination as such.
562+
563+ 14. Revised Versions of this License.
564+
565+ The Free Software Foundation may publish revised and/or new versions of
566+the GNU General Public License from time to time. Such new versions will
567+be similar in spirit to the present version, but may differ in detail to
568+address new problems or concerns.
569+
570+ Each version is given a distinguishing version number. If the
571+Program specifies that a certain numbered version of the GNU General
572+Public License "or any later version" applies to it, you have the
573+option of following the terms and conditions either of that numbered
574+version or of any later version published by the Free Software
575+Foundation. If the Program does not specify a version number of the
576+GNU General Public License, you may choose any version ever published
577+by the Free Software Foundation.
578+
579+ If the Program specifies that a proxy can decide which future
580+versions of the GNU General Public License can be used, that proxy's
581+public statement of acceptance of a version permanently authorizes you
582+to choose that version for the Program.
583+
584+ Later license versions may give you additional or different
585+permissions. However, no additional obligations are imposed on any
586+author or copyright holder as a result of your choosing to follow a
587+later version.
588+
589+ 15. Disclaimer of Warranty.
590+
591+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599+
600+ 16. Limitation of Liability.
601+
602+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610+SUCH DAMAGES.
611+
612+ 17. Interpretation of Sections 15 and 16.
613+
614+ If the disclaimer of warranty and limitation of liability provided
615+above cannot be given local legal effect according to their terms,
616+reviewing courts shall apply local law that most closely approximates
617+an absolute waiver of all civil liability in connection with the
618+Program, unless a warranty or assumption of liability accompanies a
619+copy of the Program in return for a fee.
620+
621+ END OF TERMS AND CONDITIONS
622+
623+ How to Apply These Terms to Your New Programs
624+
625+ If you develop a new program, and you want it to be of the greatest
626+possible use to the public, the best way to achieve this is to make it
627+free software which everyone can redistribute and change under these terms.
628+
629+ To do so, attach the following notices to the program. It is safest
630+to attach them to the start of each source file to most effectively
631+state the exclusion of warranty; and each file should have at least
632+the "copyright" line and a pointer to where the full notice is found.
633+
634+ <one line to give the program's name and a brief idea of what it does.>
635+ Copyright (C) <year> <name of author>
636+
637+ This program is free software: you can redistribute it and/or modify
638+ it under the terms of the GNU General Public License as published by
639+ the Free Software Foundation, either version 3 of the License, or
640+ (at your option) any later version.
641+
642+ This program is distributed in the hope that it will be useful,
643+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645+ GNU General Public License for more details.
646+
647+ You should have received a copy of the GNU General Public License
648+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649+
650+Also add information on how to contact you by electronic and paper mail.
651+
652+ If the program does terminal interaction, make it output a short
653+notice like this when it starts in an interactive mode:
654+
655+ <program> Copyright (C) <year> <name of author>
656+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657+ This is free software, and you are welcome to redistribute it
658+ under certain conditions; type `show c' for details.
659+
660+The hypothetical commands `show w' and `show c' should show the appropriate
661+parts of the General Public License. Of course, your program's commands
662+might be different; for a GUI interface, you would use an "about box".
663+
664+ You should also get your employer (if you work as a programmer) or school,
665+if any, to sign a "copyright disclaimer" for the program, if necessary.
666+For more information on this, and how to apply and follow the GNU GPL, see
667+<https://www.gnu.org/licenses/>.
668+
669+ The GNU General Public License does not permit incorporating your program
670+into proprietary programs. If your program is a subroutine library, you
671+may consider it more useful to permit linking proprietary applications with
672+the library. If this is what you want to do, use the GNU Lesser General
673+Public License instead of this License. But first, please read
674+<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -1,21 +1,674 @@
1-MIT License1+ GNU GENERAL PUBLIC LICENSE
2-2+ Version 3, 29 June 2007
3-Copyright (c) 2026 nefertty contributors3+
4-4+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5-Permission is hereby granted, free of charge, to any person obtaining a copy5+ Everyone is permitted to copy and distribute verbatim copies
6-of this software and associated documentation files (the "Software"), to deal6+ of this license document, but changing it is not allowed.
7-in the Software without restriction, including without limitation the rights7+
8-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell8+ Preamble
9-copies of the Software, and to permit persons to whom the Software is9+
10-furnished to do so, subject to the following conditions:10+ The GNU General Public License is a free, copyleft license for
11-11+software and other kinds of works.
12-The above copyright notice and this permission notice shall be included in all12+
13-copies or substantial portions of the Software.13+ The licenses for most software and other practical works are designed
14-14+to take away your freedom to share and change the works. By contrast,
15-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15+the GNU General Public License is intended to guarantee your freedom to
16-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16+share and change all versions of a program--to make sure it remains free
17-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE17+software for all its users. We, the Free Software Foundation, use the
18-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER18+GNU General Public License for most of our software; it applies also to
19-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,19+any other work released this way by its authors. You can apply it to
20-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE20+your programs, too.
21-SOFTWARE.21+
22+ When we speak of free software, we are referring to freedom, not
23+price. Our General Public Licenses are designed to make sure that you
24+have the freedom to distribute copies of free software (and charge for
25+them if you wish), that you receive source code or can get it if you
26+want it, that you can change the software or use pieces of it in new
27+free programs, and that you know you can do these things.
28+
29+ To protect your rights, we need to prevent others from denying you
30+these rights or asking you to surrender the rights. Therefore, you have
31+certain responsibilities if you distribute copies of the software, or if
32+you modify it: responsibilities to respect the freedom of others.
33+
34+ For example, if you distribute copies of such a program, whether
35+gratis or for a fee, you must pass on to the recipients the same
36+freedoms that you received. You must make sure that they, too, receive
37+or can get the source code. And you must show them these terms so they
38+know their rights.
39+
40+ Developers that use the GNU GPL protect your rights with two steps:
41+(1) assert copyright on the software, and (2) offer you this License
42+giving you legal permission to copy, distribute and/or modify it.
43+
44+ For the developers' and authors' protection, the GPL clearly explains
45+that there is no warranty for this free software. For both users' and
46+authors' sake, the GPL requires that modified versions be marked as
47+changed, so that their problems will not be attributed erroneously to
48+authors of previous versions.
49+
50+ Some devices are designed to deny users access to install or run
51+modified versions of the software inside them, although the manufacturer
52+can do so. This is fundamentally incompatible with the aim of
53+protecting users' freedom to change the software. The systematic
54+pattern of such abuse occurs in the area of products for individuals to
55+use, which is precisely where it is most unacceptable. Therefore, we
56+have designed this version of the GPL to prohibit the practice for those
57+products. If such problems arise substantially in other domains, we
58+stand ready to extend this provision to those domains in future versions
59+of the GPL, as needed to protect the freedom of users.
60+
61+ Finally, every program is threatened constantly by software patents.
62+States should not allow patents to restrict development and use of
63+software on general-purpose computers, but in those that do, we wish to
64+avoid the special danger that patents applied to a free program could
65+make it effectively proprietary. To prevent this, the GPL assures that
66+patents cannot be used to render the program non-free.
67+
68+ The precise terms and conditions for copying, distribution and
69+modification follow.
70+
71+ TERMS AND CONDITIONS
72+
73+ 0. Definitions.
74+
75+ "This License" refers to version 3 of the GNU General Public License.
76+
77+ "Copyright" also means copyright-like laws that apply to other kinds of
78+works, such as semiconductor masks.
79+
80+ "The Program" refers to any copyrightable work licensed under this
81+License. Each licensee is addressed as "you". "Licensees" and
82+"recipients" may be individuals or organizations.
83+
84+ To "modify" a work means to copy from or adapt all or part of the work
85+in a fashion requiring copyright permission, other than the making of an
86+exact copy. The resulting work is called a "modified version" of the
87+earlier work or a work "based on" the earlier work.
88+
89+ A "covered work" means either the unmodified Program or a work based
90+on the Program.
91+
92+ To "propagate" a work means to do anything with it that, without
93+permission, would make you directly or secondarily liable for
94+infringement under applicable copyright law, except executing it on a
95+computer or modifying a private copy. Propagation includes copying,
96+distribution (with or without modification), making available to the
97+public, and in some countries other activities as well.
98+
99+ To "convey" a work means any kind of propagation that enables other
100+parties to make or receive copies. Mere interaction with a user through
101+a computer network, with no transfer of a copy, is not conveying.
102+
103+ An interactive user interface displays "Appropriate Legal Notices"
104+to the extent that it includes a convenient and prominently visible
105+feature that (1) displays an appropriate copyright notice, and (2)
106+tells the user that there is no warranty for the work (except to the
107+extent that warranties are provided), that licensees may convey the
108+work under this License, and how to view a copy of this License. If
109+the interface presents a list of user commands or options, such as a
110+menu, a prominent item in the list meets this criterion.
111+
112+ 1. Source Code.
113+
114+ The "source code" for a work means the preferred form of the work
115+for making modifications to it. "Object code" means any non-source
116+form of a work.
117+
118+ A "Standard Interface" means an interface that either is an official
119+standard defined by a recognized standards body, or, in the case of
120+interfaces specified for a particular programming language, one that
121+is widely used among developers working in that language.
122+
123+ The "System Libraries" of an executable work include anything, other
124+than the work as a whole, that (a) is included in the normal form of
125+packaging a Major Component, but which is not part of that Major
126+Component, and (b) serves only to enable use of the work with that
127+Major Component, or to implement a Standard Interface for which an
128+implementation is available to the public in source code form. A
129+"Major Component", in this context, means a major essential component
130+(kernel, window system, and so on) of the specific operating system
131+(if any) on which the executable work runs, or a compiler used to
132+produce the work, or an object code interpreter used to run it.
133+
134+ The "Corresponding Source" for a work in object code form means all
135+the source code needed to generate, install, and (for an executable
136+work) run the object code and to modify the work, including scripts to
137+control those activities. However, it does not include the work's
138+System Libraries, or general-purpose tools or generally available free
139+programs which are used unmodified in performing those activities but
140+which are not part of the work. For example, Corresponding Source
141+includes interface definition files associated with source files for
142+the work, and the source code for shared libraries and dynamically
143+linked subprograms that the work is specifically designed to require,
144+such as by intimate data communication or control flow between those
145+subprograms and other parts of the work.
146+
147+ The Corresponding Source need not include anything that users
148+can regenerate automatically from other parts of the Corresponding
149+Source.
150+
151+ The Corresponding Source for a work in source code form is that
152+same work.
153+
154+ 2. Basic Permissions.
155+
156+ All rights granted under this License are granted for the term of
157+copyright on the Program, and are irrevocable provided the stated
158+conditions are met. This License explicitly affirms your unlimited
159+permission to run the unmodified Program. The output from running a
160+covered work is covered by this License only if the output, given its
161+content, constitutes a covered work. This License acknowledges your
162+rights of fair use or other equivalent, as provided by copyright law.
163+
164+ You may make, run and propagate covered works that you do not
165+convey, without conditions so long as your license otherwise remains
166+in force. You may convey covered works to others for the sole purpose
167+of having them make modifications exclusively for you, or provide you
168+with facilities for running those works, provided that you comply with
169+the terms of this License in conveying all material for which you do
170+not control copyright. Those thus making or running the covered works
171+for you must do so exclusively on your behalf, under your direction
172+and control, on terms that prohibit them from making any copies of
173+your copyrighted material outside their relationship with you.
174+
175+ Conveying under any other circumstances is permitted solely under
176+the conditions stated below. Sublicensing is not allowed; section 10
177+makes it unnecessary.
178+
179+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180+
181+ No covered work shall be deemed part of an effective technological
182+measure under any applicable law fulfilling obligations under article
183+11 of the WIPO copyright treaty adopted on 20 December 1996, or
184+similar laws prohibiting or restricting circumvention of such
185+measures.
186+
187+ When you convey a covered work, you waive any legal power to forbid
188+circumvention of technological measures to the extent such circumvention
189+is effected by exercising rights under this License with respect to
190+the covered work, and you disclaim any intention to limit operation or
191+modification of the work as a means of enforcing, against the work's
192+users, your or third parties' legal rights to forbid circumvention of
193+technological measures.
194+
195+ 4. Conveying Verbatim Copies.
196+
197+ You may convey verbatim copies of the Program's source code as you
198+receive it, in any medium, provided that you conspicuously and
199+appropriately publish on each copy an appropriate copyright notice;
200+keep intact all notices stating that this License and any
201+non-permissive terms added in accord with section 7 apply to the code;
202+keep intact all notices of the absence of any warranty; and give all
203+recipients a copy of this License along with the Program.
204+
205+ You may charge any price or no price for each copy that you convey,
206+and you may offer support or warranty protection for a fee.
207+
208+ 5. Conveying Modified Source Versions.
209+
210+ You may convey a work based on the Program, or the modifications to
211+produce it from the Program, in the form of source code under the
212+terms of section 4, provided that you also meet all of these conditions:
213+
214+ a) The work must carry prominent notices stating that you modified
215+ it, and giving a relevant date.
216+
217+ b) The work must carry prominent notices stating that it is
218+ released under this License and any conditions added under section
219+ 7. This requirement modifies the requirement in section 4 to
220+ "keep intact all notices".
221+
222+ c) You must license the entire work, as a whole, under this
223+ License to anyone who comes into possession of a copy. This
224+ License will therefore apply, along with any applicable section 7
225+ additional terms, to the whole of the work, and all its parts,
226+ regardless of how they are packaged. This License gives no
227+ permission to license the work in any other way, but it does not
228+ invalidate such permission if you have separately received it.
229+
230+ d) If the work has interactive user interfaces, each must display
231+ Appropriate Legal Notices; however, if the Program has interactive
232+ interfaces that do not display Appropriate Legal Notices, your
233+ work need not make them do so.
234+
235+ A compilation of a covered work with other separate and independent
236+works, which are not by their nature extensions of the covered work,
237+and which are not combined with it such as to form a larger program,
238+in or on a volume of a storage or distribution medium, is called an
239+"aggregate" if the compilation and its resulting copyright are not
240+used to limit the access or legal rights of the compilation's users
241+beyond what the individual works permit. Inclusion of a covered work
242+in an aggregate does not cause this License to apply to the other
243+parts of the aggregate.
244+
245+ 6. Conveying Non-Source Forms.
246+
247+ You may convey a covered work in object code form under the terms
248+of sections 4 and 5, provided that you also convey the
249+machine-readable Corresponding Source under the terms of this License,
250+in one of these ways:
251+
252+ a) Convey the object code in, or embodied in, a physical product
253+ (including a physical distribution medium), accompanied by the
254+ Corresponding Source fixed on a durable physical medium
255+ customarily used for software interchange.
256+
257+ b) Convey the object code in, or embodied in, a physical product
258+ (including a physical distribution medium), accompanied by a
259+ written offer, valid for at least three years and valid for as
260+ long as you offer spare parts or customer support for that product
261+ model, to give anyone who possesses the object code either (1) a
262+ copy of the Corresponding Source for all the software in the
263+ product that is covered by this License, on a durable physical
264+ medium customarily used for software interchange, for a price no
265+ more than your reasonable cost of physically performing this
266+ conveying of source, or (2) access to copy the
267+ Corresponding Source from a network server at no charge.
268+
269+ c) Convey individual copies of the object code with a copy of the
270+ written offer to provide the Corresponding Source. This
271+ alternative is allowed only occasionally and noncommercially, and
272+ only if you received the object code with such an offer, in accord
273+ with subsection 6b.
274+
275+ d) Convey the object code by offering access from a designated
276+ place (gratis or for a charge), and offer equivalent access to the
277+ Corresponding Source in the same way through the same place at no
278+ further charge. You need not require recipients to copy the
279+ Corresponding Source along with the object code. If the place to
280+ copy the object code is a network server, the Corresponding Source
281+ may be on a different server (operated by you or a third party)
282+ that supports equivalent copying facilities, provided you maintain
283+ clear directions next to the object code saying where to find the
284+ Corresponding Source. Regardless of what server hosts the
285+ Corresponding Source, you remain obligated to ensure that it is
286+ available for as long as needed to satisfy these requirements.
287+
288+ e) Convey the object code using peer-to-peer transmission, provided
289+ you inform other peers where the object code and Corresponding
290+ Source of the work are being offered to the general public at no
291+ charge under subsection 6d.
292+
293+ A separable portion of the object code, whose source code is excluded
294+from the Corresponding Source as a System Library, need not be
295+included in conveying the object code work.
296+
297+ A "User Product" is either (1) a "consumer product", which means any
298+tangible personal property which is normally used for personal, family,
299+or household purposes, or (2) anything designed or sold for incorporation
300+into a dwelling. In determining whether a product is a consumer product,
301+doubtful cases shall be resolved in favor of coverage. For a particular
302+product received by a particular user, "normally used" refers to a
303+typical or common use of that class of product, regardless of the status
304+of the particular user or of the way in which the particular user
305+actually uses, or expects or is expected to use, the product. A product
306+is a consumer product regardless of whether the product has substantial
307+commercial, industrial or non-consumer uses, unless such uses represent
308+the only significant mode of use of the product.
309+
310+ "Installation Information" for a User Product means any methods,
311+procedures, authorization keys, or other information required to install
312+and execute modified versions of a covered work in that User Product from
313+a modified version of its Corresponding Source. The information must
314+suffice to ensure that the continued functioning of the modified object
315+code is in no case prevented or interfered with solely because
316+modification has been made.
317+
318+ If you convey an object code work under this section in, or with, or
319+specifically for use in, a User Product, and the conveying occurs as
320+part of a transaction in which the right of possession and use of the
321+User Product is transferred to the recipient in perpetuity or for a
322+fixed term (regardless of how the transaction is characterized), the
323+Corresponding Source conveyed under this section must be accompanied
324+by the Installation Information. But this requirement does not apply
325+if neither you nor any third party retains the ability to install
326+modified object code on the User Product (for example, the work has
327+been installed in ROM).
328+
329+ The requirement to provide Installation Information does not include a
330+requirement to continue to provide support service, warranty, or updates
331+for a work that has been modified or installed by the recipient, or for
332+the User Product in which it has been modified or installed. Access to a
333+network may be denied when the modification itself materially and
334+adversely affects the operation of the network or violates the rules and
335+protocols for communication across the network.
336+
337+ Corresponding Source conveyed, and Installation Information provided,
338+in accord with this section must be in a format that is publicly
339+documented (and with an implementation available to the public in
340+source code form), and must require no special password or key for
341+unpacking, reading or copying.
342+
343+ 7. Additional Terms.
344+
345+ "Additional permissions" are terms that supplement the terms of this
346+License by making exceptions from one or more of its conditions.
347+Additional permissions that are applicable to the entire Program shall
348+be treated as though they were included in this License, to the extent
349+that they are valid under applicable law. If additional permissions
350+apply only to part of the Program, that part may be used separately
351+under those permissions, but the entire Program remains governed by
352+this License without regard to the additional permissions.
353+
354+ When you convey a copy of a covered work, you may at your option
355+remove any additional permissions from that copy, or from any part of
356+it. (Additional permissions may be written to require their own
357+removal in certain cases when you modify the work.) You may place
358+additional permissions on material, added by you to a covered work,
359+for which you have or can give appropriate copyright permission.
360+
361+ Notwithstanding any other provision of this License, for material you
362+add to a covered work, you may (if authorized by the copyright holders of
363+that material) supplement the terms of this License with terms:
364+
365+ a) Disclaiming warranty or limiting liability differently from the
366+ terms of sections 15 and 16 of this License; or
367+
368+ b) Requiring preservation of specified reasonable legal notices or
369+ author attributions in that material or in the Appropriate Legal
370+ Notices displayed by works containing it; or
371+
372+ c) Prohibiting misrepresentation of the origin of that material, or
373+ requiring that modified versions of such material be marked in
374+ reasonable ways as different from the original version; or
375+
376+ d) Limiting the use for publicity purposes of names of licensors or
377+ authors of the material; or
378+
379+ e) Declining to grant rights under trademark law for use of some
380+ trade names, trademarks, or service marks; or
381+
382+ f) Requiring indemnification of licensors and authors of that
383+ material by anyone who conveys the material (or modified versions of
384+ it) with contractual assumptions of liability to the recipient, for
385+ any liability that these contractual assumptions directly impose on
386+ those licensors and authors.
387+
388+ All other non-permissive additional terms are considered "further
389+restrictions" within the meaning of section 10. If the Program as you
390+received it, or any part of it, contains a notice stating that it is
391+governed by this License along with a term that is a further
392+restriction, you may remove that term. If a license document contains
393+a further restriction but permits relicensing or conveying under this
394+License, you may add to a covered work material governed by the terms
395+of that license document, provided that the further restriction does
396+not survive such relicensing or conveying.
397+
398+ If you add terms to a covered work in accord with this section, you
399+must place, in the relevant source files, a statement of the
400+additional terms that apply to those files, or a notice indicating
401+where to find the applicable terms.
402+
403+ Additional terms, permissive or non-permissive, may be stated in the
404+form of a separately written license, or stated as exceptions;
405+the above requirements apply either way.
406+
407+ 8. Termination.
408+
409+ You may not propagate or modify a covered work except as expressly
410+provided under this License. Any attempt otherwise to propagate or
411+modify it is void, and will automatically terminate your rights under
412+this License (including any patent licenses granted under the third
413+paragraph of section 11).
414+
415+ However, if you cease all violation of this License, then your
416+license from a particular copyright holder is reinstated (a)
417+provisionally, unless and until the copyright holder explicitly and
418+finally terminates your license, and (b) permanently, if the copyright
419+holder fails to notify you of the violation by some reasonable means
420+prior to 60 days after the cessation.
421+
422+ Moreover, your license from a particular copyright holder is
423+reinstated permanently if the copyright holder notifies you of the
424+violation by some reasonable means, this is the first time you have
425+received notice of violation of this License (for any work) from that
426+copyright holder, and you cure the violation prior to 30 days after
427+your receipt of the notice.
428+
429+ Termination of your rights under this section does not terminate the
430+licenses of parties who have received copies or rights from you under
431+this License. If your rights have been terminated and not permanently
432+reinstated, you do not qualify to receive new licenses for the same
433+material under section 10.
434+
435+ 9. Acceptance Not Required for Having Copies.
436+
437+ You are not required to accept this License in order to receive or
438+run a copy of the Program. Ancillary propagation of a covered work
439+occurring solely as a consequence of using peer-to-peer transmission
440+to receive a copy likewise does not require acceptance. However,
441+nothing other than this License grants you permission to propagate or
442+modify any covered work. These actions infringe copyright if you do
443+not accept this License. Therefore, by modifying or propagating a
444+covered work, you indicate your acceptance of this License to do so.
445+
446+ 10. Automatic Licensing of Downstream Recipients.
447+
448+ Each time you convey a covered work, the recipient automatically
449+receives a license from the original licensors, to run, modify and
450+propagate that work, subject to this License. You are not responsible
451+for enforcing compliance by third parties with this License.
452+
453+ An "entity transaction" is a transaction transferring control of an
454+organization, or substantially all assets of one, or subdividing an
455+organization, or merging organizations. If propagation of a covered
456+work results from an entity transaction, each party to that
457+transaction who receives a copy of the work also receives whatever
458+licenses to the work the party's predecessor in interest had or could
459+give under the previous paragraph, plus a right to possession of the
460+Corresponding Source of the work from the predecessor in interest, if
461+the predecessor has it or can get it with reasonable efforts.
462+
463+ You may not impose any further restrictions on the exercise of the
464+rights granted or affirmed under this License. For example, you may
465+not impose a license fee, royalty, or other charge for exercise of
466+rights granted under this License, and you may not initiate litigation
467+(including a cross-claim or counterclaim in a lawsuit) alleging that
468+any patent claim is infringed by making, using, selling, offering for
469+sale, or importing the Program or any portion of it.
470+
471+ 11. Patents.
472+
473+ A "contributor" is a copyright holder who authorizes use under this
474+License of the Program or a work on which the Program is based. The
475+work thus licensed is called the contributor's "contributor version".
476+
477+ A contributor's "essential patent claims" are all patent claims
478+owned or controlled by the contributor, whether already acquired or
479+hereafter acquired, that would be infringed by some manner, permitted
480+by this License, of making, using, or selling its contributor version,
481+but do not include claims that would be infringed only as a
482+consequence of further modification of the contributor version. For
483+purposes of this definition, "control" includes the right to grant
484+patent sublicenses in a manner consistent with the requirements of
485+this License.
486+
487+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488+patent license under the contributor's essential patent claims, to
489+make, use, sell, offer for sale, import and otherwise run, modify and
490+propagate the contents of its contributor version.
491+
492+ In the following three paragraphs, a "patent license" is any express
493+agreement or commitment, however denominated, not to enforce a patent
494+(such as an express permission to practice a patent or covenant not to
495+sue for patent infringement). To "grant" such a patent license to a
496+party means to make such an agreement or commitment not to enforce a
497+patent against the party.
498+
499+ If you convey a covered work, knowingly relying on a patent license,
500+and the Corresponding Source of the work is not available for anyone
501+to copy, free of charge and under the terms of this License, through a
502+publicly available network server or other readily accessible means,
503+then you must either (1) cause the Corresponding Source to be so
504+available, or (2) arrange to deprive yourself of the benefit of the
505+patent license for this particular work, or (3) arrange, in a manner
506+consistent with the requirements of this License, to extend the patent
507+license to downstream recipients. "Knowingly relying" means you have
508+actual knowledge that, but for the patent license, your conveying the
509+covered work in a country, or your recipient's use of the covered work
510+in a country, would infringe one or more identifiable patents in that
511+country that you have reason to believe are valid.
512+
513+ If, pursuant to or in connection with a single transaction or
514+arrangement, you convey, or propagate by procuring conveyance of, a
515+covered work, and grant a patent license to some of the parties
516+receiving the covered work authorizing them to use, propagate, modify
517+or convey a specific copy of the covered work, then the patent license
518+you grant is automatically extended to all recipients of the covered
519+work and works based on it.
520+
521+ A patent license is "discriminatory" if it does not include within
522+the scope of its coverage, prohibits the exercise of, or is
523+conditioned on the non-exercise of one or more of the rights that are
524+specifically granted under this License. You may not convey a covered
525+work if you are a party to an arrangement with a third party that is
526+in the business of distributing software, under which you make payment
527+to the third party based on the extent of your activity of conveying
528+the work, and under which the third party grants, to any of the
529+parties who would receive the covered work from you, a discriminatory
530+patent license (a) in connection with copies of the covered work
531+conveyed by you (or copies made from those copies), or (b) primarily
532+for and in connection with specific products or compilations that
533+contain the covered work, unless you entered into that arrangement,
534+or that patent license was granted, prior to 28 March 2007.
535+
536+ Nothing in this License shall be construed as excluding or limiting
537+any implied license or other defenses to infringement that may
538+otherwise be available to you under applicable patent law.
539+
540+ 12. No Surrender of Others' Freedom.
541+
542+ If conditions are imposed on you (whether by court order, agreement or
543+otherwise) that contradict the conditions of this License, they do not
544+excuse you from the conditions of this License. If you cannot convey a
545+covered work so as to satisfy simultaneously your obligations under this
546+License and any other pertinent obligations, then as a consequence you may
547+not convey it at all. For example, if you agree to terms that obligate you
548+to collect a royalty for further conveying from those to whom you convey
549+the Program, the only way you could satisfy both those terms and this
550+License would be to refrain entirely from conveying the Program.
551+
552+ 13. Use with the GNU Affero General Public License.
553+
554+ Notwithstanding any other provision of this License, you have
555+permission to link or combine any covered work with a work licensed
556+under version 3 of the GNU Affero General Public License into a single
557+combined work, and to convey the resulting work. The terms of this
558+License will continue to apply to the part which is the covered work,
559+but the special requirements of the GNU Affero General Public License,
560+section 13, concerning interaction through a network will apply to the
561+combination as such.
562+
563+ 14. Revised Versions of this License.
564+
565+ The Free Software Foundation may publish revised and/or new versions of
566+the GNU General Public License from time to time. Such new versions will
567+be similar in spirit to the present version, but may differ in detail to
568+address new problems or concerns.
569+
570+ Each version is given a distinguishing version number. If the
571+Program specifies that a certain numbered version of the GNU General
572+Public License "or any later version" applies to it, you have the
573+option of following the terms and conditions either of that numbered
574+version or of any later version published by the Free Software
575+Foundation. If the Program does not specify a version number of the
576+GNU General Public License, you may choose any version ever published
577+by the Free Software Foundation.
578+
579+ If the Program specifies that a proxy can decide which future
580+versions of the GNU General Public License can be used, that proxy's
581+public statement of acceptance of a version permanently authorizes you
582+to choose that version for the Program.
583+
584+ Later license versions may give you additional or different
585+permissions. However, no additional obligations are imposed on any
586+author or copyright holder as a result of your choosing to follow a
587+later version.
588+
589+ 15. Disclaimer of Warranty.
590+
591+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599+
600+ 16. Limitation of Liability.
601+
602+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610+SUCH DAMAGES.
611+
612+ 17. Interpretation of Sections 15 and 16.
613+
614+ If the disclaimer of warranty and limitation of liability provided
615+above cannot be given local legal effect according to their terms,
616+reviewing courts shall apply local law that most closely approximates
617+an absolute waiver of all civil liability in connection with the
618+Program, unless a warranty or assumption of liability accompanies a
619+copy of the Program in return for a fee.
620+
621+ END OF TERMS AND CONDITIONS
622+
623+ How to Apply These Terms to Your New Programs
624+
625+ If you develop a new program, and you want it to be of the greatest
626+possible use to the public, the best way to achieve this is to make it
627+free software which everyone can redistribute and change under these terms.
628+
629+ To do so, attach the following notices to the program. It is safest
630+to attach them to the start of each source file to most effectively
631+state the exclusion of warranty; and each file should have at least
632+the "copyright" line and a pointer to where the full notice is found.
633+
634+ <one line to give the program's name and a brief idea of what it does.>
635+ Copyright (C) <year> <name of author>
636+
637+ This program is free software: you can redistribute it and/or modify
638+ it under the terms of the GNU General Public License as published by
639+ the Free Software Foundation, either version 3 of the License, or
640+ (at your option) any later version.
641+
642+ This program is distributed in the hope that it will be useful,
643+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645+ GNU General Public License for more details.
646+
647+ You should have received a copy of the GNU General Public License
648+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649+
650+Also add information on how to contact you by electronic and paper mail.
651+
652+ If the program does terminal interaction, make it output a short
653+notice like this when it starts in an interactive mode:
654+
655+ <program> Copyright (C) <year> <name of author>
656+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657+ This is free software, and you are welcome to redistribute it
658+ under certain conditions; type `show c' for details.
659+
660+The hypothetical commands `show w' and `show c' should show the appropriate
661+parts of the General Public License. Of course, your program's commands
662+might be different; for a GUI interface, you would use an "about box".
663+
664+ You should also get your employer (if you work as a programmer) or school,
665+if any, to sign a "copyright disclaimer" for the program, if necessary.
666+For more information on this, and how to apply and follow the GNU GPL, see
667+<https://www.gnu.org/licenses/>.
668+
669+ The GNU General Public License does not permit incorporating your program
670+into proprietary programs. If your program is a subroutine library, you
671+may consider it more useful to permit linking proprietary applications with
672+the library. If this is what you want to do, use the GNU Lesser General
673+Public License instead of this License. But first, please read
674+<https://www.gnu.org/licenses/why-not-lgpl.html>.
M Makefile +6 -6
@@ -2,15 +2,15 @@
22
33 # 0 runs until quit; set e.g. TTY_TIMEOUT=60s for a safety net.
44 TTY_TIMEOUT ?= 0
5-RUNS := $(or $(XDG_STATE_HOME),$(HOME)/.local/state)/nefertty/runs
5+RUNS := $(or $(XDG_STATE_HOME),$(HOME)/.local/state)/neferwl/runs
66
77 # Build a fresh binary with the git revision embedded.
88 bin:
9- CGO_ENABLED=0 go build -o bin/nefertty ./cmd/nefertty
9+ CGO_ENABLED=0 go build -o bin/neferwl ./cmd/neferwl
1010
1111 # Run on the current TTY. Quit: Ctrl+Alt+Backspace (or the quit bind).
1212 tty: bin
13- ./bin/nefertty --backend=drm --debug=all --timeout=$(TTY_TIMEOUT); \
13+ ./bin/neferwl --backend=drm --debug=all --timeout=$(TTY_TIMEOUT); \
1414 echo "exit $$? - log: $(RUNS)/latest.log"
1515
1616 # Summarise the last run: lifecycle, warnings and errors.
@@ -59,9 +59,9 @@ pkg:
5959 @test -z "$$(git status --porcelain)" || echo "warning: uncommitted changes are not packaged" >&2
6060 v=$$(t=$$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//; s/-/_/g'); \
6161 echo "$${t:-0.0.0}.r$$(git rev-list --count HEAD).g$$(git rev-parse --short HEAD)"); \
62- d=$$(mktemp -d /tmp/nefertty-pkg.XXXXXX); trap 'rm -rf "$$d"' EXIT; \
63- git archive --prefix=nefertty-$$v/ -o "$$d/nefertty-$$v.tar.gz" HEAD; \
62+ d=$$(mktemp -d /tmp/neferwl-pkg.XXXXXX); trap 'rm -rf "$$d"' EXIT; \
63+ git archive --prefix=neferwl-$$v/ -o "$$d/neferwl-$$v.tar.gz" HEAD; \
6464 cp packaging/arch/PKGBUILD "$$d/"; \
6565 cd "$$d" && sed -i "s/^pkgver=.*/pkgver=$$v/; s/^sha256sums=.*/sha256sums=('$$(sha256sum *.tar.gz | cut -d' ' -f1)')/" PKGBUILD; \
66- makepkg -f --noconfirm; mkdir -p $(CURDIR)/dist; rm -f $(CURDIR)/dist/nefertty-*.pkg.tar.zst; mv *.pkg.tar.zst $(CURDIR)/dist/
66+ makepkg -f --noconfirm; mkdir -p $(CURDIR)/dist; rm -f $(CURDIR)/dist/neferwl-*.pkg.tar.zst; mv *.pkg.tar.zst $(CURDIR)/dist/
6767 @ls dist/*.pkg.tar.zst
@@ -2,15 +2,15 @@
2 2
3 # 0 runs until quit; set e.g. TTY_TIMEOUT=60s for a safety net.3 # 0 runs until quit; set e.g. TTY_TIMEOUT=60s for a safety net.
4 TTY_TIMEOUT ?= 04 TTY_TIMEOUT ?= 0
5-RUNS := $(or $(XDG_STATE_HOME),$(HOME)/.local/state)/nefertty/runs5+RUNS := $(or $(XDG_STATE_HOME),$(HOME)/.local/state)/neferwl/runs
6 6
7 # Build a fresh binary with the git revision embedded.7 # Build a fresh binary with the git revision embedded.
8 bin:8 bin:
9- CGO_ENABLED=0 go build -o bin/nefertty ./cmd/nefertty9+ CGO_ENABLED=0 go build -o bin/neferwl ./cmd/neferwl
10 10
11 # Run on the current TTY. Quit: Ctrl+Alt+Backspace (or the quit bind).11 # Run on the current TTY. Quit: Ctrl+Alt+Backspace (or the quit bind).
12 tty: bin12 tty: bin
13- ./bin/nefertty --backend=drm --debug=all --timeout=$(TTY_TIMEOUT); \13+ ./bin/neferwl --backend=drm --debug=all --timeout=$(TTY_TIMEOUT); \
14 echo "exit $$? - log: $(RUNS)/latest.log"14 echo "exit $$? - log: $(RUNS)/latest.log"
15 15
16 # Summarise the last run: lifecycle, warnings and errors.16 # Summarise the last run: lifecycle, warnings and errors.
@@ -59,9 +59,9 @@ pkg:
59 @test -z "$$(git status --porcelain)" || echo "warning: uncommitted changes are not packaged" >&259 @test -z "$$(git status --porcelain)" || echo "warning: uncommitted changes are not packaged" >&2
60 v=$$(t=$$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//; s/-/_/g'); \60 v=$$(t=$$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//; s/-/_/g'); \
61 echo "$${t:-0.0.0}.r$$(git rev-list --count HEAD).g$$(git rev-parse --short HEAD)"); \61 echo "$${t:-0.0.0}.r$$(git rev-list --count HEAD).g$$(git rev-parse --short HEAD)"); \
62- d=$$(mktemp -d /tmp/nefertty-pkg.XXXXXX); trap 'rm -rf "$$d"' EXIT; \62+ d=$$(mktemp -d /tmp/neferwl-pkg.XXXXXX); trap 'rm -rf "$$d"' EXIT; \
63- git archive --prefix=nefertty-$$v/ -o "$$d/nefertty-$$v.tar.gz" HEAD; \63+ git archive --prefix=neferwl-$$v/ -o "$$d/neferwl-$$v.tar.gz" HEAD; \
64 cp packaging/arch/PKGBUILD "$$d/"; \64 cp packaging/arch/PKGBUILD "$$d/"; \
65 cd "$$d" && sed -i "s/^pkgver=.*/pkgver=$$v/; s/^sha256sums=.*/sha256sums=('$$(sha256sum *.tar.gz | cut -d' ' -f1)')/" PKGBUILD; \65 cd "$$d" && sed -i "s/^pkgver=.*/pkgver=$$v/; s/^sha256sums=.*/sha256sums=('$$(sha256sum *.tar.gz | cut -d' ' -f1)')/" PKGBUILD; \
66- makepkg -f --noconfirm; mkdir -p $(CURDIR)/dist; rm -f $(CURDIR)/dist/nefertty-*.pkg.tar.zst; mv *.pkg.tar.zst $(CURDIR)/dist/66+ makepkg -f --noconfirm; mkdir -p $(CURDIR)/dist; rm -f $(CURDIR)/dist/neferwl-*.pkg.tar.zst; mv *.pkg.tar.zst $(CURDIR)/dist/
67 @ls dist/*.pkg.tar.zst67 @ls dist/*.pkg.tar.zst
M README.md +89 -23
@@ -1,12 +1,68 @@
1-# NeferTTY
1+<h1 align="center">NeferWL</h1>
22
3-NeferTTY is a minimal Wayland compositor in Go with Niri-style scrollable columns. It runs on a TTY (DRM/KMS, libinput, Vulkan) or headless.
3+<p align="center">
4+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-blue?style=flat-square" alt="License: GPLv3"></a>
5+ <a href="https://github.com/bnema/neferwl"><img src="https://img.shields.io/badge/platform-Linux-blue?style=flat-square" alt="Platform: Linux"></a>
6+ <a href="https://github.com/bnema/neferwl/commits/main"><img src="https://badgen.net/github/last-commit/bnema/neferwl/main?icon=github" alt="Last commit"></a>
7+ <a href="https://github.com/bnema/neferwl/stargazers"><img src="https://badgen.net/github/stars/bnema/neferwl?icon=github" alt="GitHub stars"></a>
8+</p>
9+
10+<p align="center">A Wayland compositor for people who live in a terminal and die in games.</p>
11+
12+> [!WARNING]
13+> **Early alpha.** NeferWL is developed and tested mostly on AMD CPUs and GPUs. NVIDIA support is incomplete and untested; expect bugs and breaking config changes.
14+
15+---
16+
17+## Why NeferWL
18+
19+NeferWL does a few things and does them fast. No animations, no themes, no built-in bar or wallpaper: those are choices, not missing features. Every frame budget goes to your apps.
20+
21+- **A terminal, then out of the way.** One workspace opens your terminal at startup. Bars, launchers and notifications are external clients (Waybar, fuzzel, mako…).
22+- **Columns between tiling and scrolling.** Up to `max-columns` windows share the screen like a classic tiling WM (Sway); past that, columns scroll to the right like Niri, or split in a spiral with `overflow = fixed`. Each workspace picks its own rules.
23+- **Workspaces you design.** Numbered workspaces are dynamic. Named workspaces can be hidden behind a bind, and **slots** declare their columns (width + command): NeferWL starts the apps in the background and puts each window in its place.
24+- **Multi-monitor done right.** Each monitor owns its workspaces. Unplug one and its workspaces move to another monitor; plug it back and they return home, without stealing your focus.
25+- **Built for games.** Fullscreen games skip composition entirely (details below), with tearing and VRR when the game asks.
26+- **Light.** A running session uses about 40–80 MB of RAM with two 4K monitors, and near-zero CPU when nothing changes on screen.
27+- **Live config.** One flat `key = value` file. Every key applies on save, keyboard layout included; windows stay open.
28+
29+A complete desktop in a few lines:
30+
31+```text
32+keyboard.layout = fr
33+terminal = foot
34+startup = waybar
35+
36+output.DP-1 = 3840x2160@144
37+output.DP-1.scale = 1.5
38+
39+layout.max-columns = 3
40+
41+# A hidden dev workspace: editor and terminal, started and placed for you.
42+workspace.dev.hidden = on
43+workspace.dev.column.1 = 67%, code --new-window
44+workspace.dev.column.2 = 33%, foot
45+bind.cmd+d = workspace dev
46+```
47+
48+### The performance path
49+
50+Every Wayland protocol NeferWL implements is there because it saves work or latency:
51+
52+- **Zero copy.** GPU clients (`zwp_linux_dmabuf_v1` v4) are sampled in place. Vulkan composes straight into exported scanout images, and the frame fence goes to KMS as `IN_FENCE_FD`: no CPU copy, no CPU wait before a flip.
53+- **Direct scanout.** A fullscreen window's buffer goes straight to the display plane; dmabuf feedback sends the game a scanout-ready format first. A lone opaque window can use an overlay plane.
54+- **Tearing and VRR.** `wp_tearing_control_v1` flips without waiting for vblank when the game requests it; variable refresh runs while a buffer is scanned out.
55+- **Explicit sync.** `wp_linux_drm_syncobj_v1` passes GPU fences end to end (needed by NVIDIA).
56+- **Frame pacing.** `wp_presentation` from kernel flip timestamps, `wp_fifo_v1`, `wp_commit_timing_v1` and `wp_content_type_v1`.
57+- **Only what changed.** Damage-limited redraws, occlusion culling of hidden surfaces, idle outputs never redraw. Atomic KMS: frame, cursor, overlay and VRR in one commit.
58+- **Input for games.** Relative pointer, pointer constraints, keyboard shortcuts inhibit, 1 kHz+ non-blocking input, hardware cursor plane.
59+- **X11 games.** Steam and Wine run through xwayland-satellite, started on the first X11 connection.
460
561 Requires Linux and Go 1.27.
662
763 ## Hardware support
864
9-NeferTTY needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device that can export images as dmabufs; without them it stops at startup with an error. Frames are composed on the GPU only: no CPU copy and no CPU wait for the GPU before a page flip.
65+NeferWL needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device that can export images as dmabufs; without them it stops at startup with an error. Frames are composed on the GPU only: no CPU copy and no CPU wait for the GPU before a page flip.
1066
1167 - **AMD GPUs:** developed and tested on AMD (radv).
1268 - **NVIDIA GPUs:** untested. Explicit sync (`linux-drm-syncobj`), which NVIDIA drivers need, is implemented. Testers with NVIDIA hardware are welcome to report issues or contribute.
@@ -14,20 +70,20 @@ NeferTTY needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device t
1470
1571 Build: `make build`.
1672
17-Run: `nefertty --backend=headless --timeout 5s`
73+Run: `neferwl --backend=headless --timeout 5s`
1874
1975 ## Install (Arch Linux)
2076
2177 ```sh
22-make pkg # builds dist/nefertty-*.pkg.tar.zst from HEAD
23-sudo pacman -U dist/nefertty-*.pkg.tar.zst
78+make pkg # builds dist/neferwl-*.pkg.tar.zst from HEAD
79+sudo pacman -U dist/neferwl-*.pkg.tar.zst
2480 ```
2581
26-The package installs `nefertty` and a **NeferTTY** session for display managers (Ly, GDM, SDDM). The session runs `nefertty --session`, which shares `WAYLAND_DISPLAY` and `DISPLAY` with D-Bus and systemd user services, so portals and notification daemons reach it.
82+The package installs `neferwl` and a **NeferWL** session for display managers (Ly, GDM, SDDM). The session runs `neferwl --session`, which shares `WAYLAND_DISPLAY` and `DISPLAY` with D-Bus and systemd user services, so portals and notification daemons reach it.
2783
2884 ## Developing the bindings
2985
30-NeferTTY depends on tagged releases of [purego-libwayland](https://github.com/bnema/purego-libwayland) and [purego-vulkan](https://github.com/bnema/purego-vulkan). To change them together with NeferTTY, check them out next to it and use a Go workspace (not committed):
86+NeferWL depends on tagged releases of [purego-libwayland](https://github.com/bnema/purego-libwayland) and [purego-vulkan](https://github.com/bnema/purego-vulkan). To change them together with NeferWL, check them out next to it and use a Go workspace (not committed):
3187
3288 ```sh
3389 go work init . ../purego-libwayland ../purego-vulkan
@@ -37,7 +93,7 @@ go work init . ../purego-libwayland ../purego-vulkan
3793
3894 ## Configuration
3995
40-Configuration lives at `$XDG_CONFIG_HOME/nefertty/config` (or `~/.config/nefertty/config`). Use `nefertty --config path` to select another file; `nefertty validate-config [path]` checks it without starting the compositor.
96+Configuration lives at `$XDG_CONFIG_HOME/neferwl/config` (or `~/.config/neferwl/config`). Use `neferwl --config path` to select another file; `neferwl validate-config [path]` checks it without starting the compositor.
4197
4298 One `key = value` per line; `#` starts a comment:
4399
@@ -49,11 +105,11 @@ bind.ctrl+cmd+space = spawn fuzzel
49105 startup = wl-paste --watch cliphist store
50106 ```
51107
52-See `examples/config` for every key and its default. A missing file means defaults. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. Every key applies live when the file changes, including the keyboard layout; each reload logs the keys that changed.
108+Every key, value and default bind is listed in [docs/config.md](docs/config.md); `examples/config` is a commented copy of the defaults. A missing file means defaults. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. Every key applies live when the file changes, including the keyboard layout; each reload logs the keys that changed.
53109
54110 ## Running commands
55111
56-NeferTTY starts a program, not a shell line: `spawn` runs a binary or a script. Anything more than one command with arguments, such as pipes or variables, goes in a script that you write.
112+NeferWL starts a program, not a shell line: `spawn` runs a binary or a script. Anything more than one command with arguments, such as pipes or variables, goes in a script that you write.
57113
58114 `spawn <command>` binds, `startup = <command>` lines and `terminal = <command>` run one program directly, without a shell. The line is split on spaces: the first word is the program (looked up in `PATH`, or a path such as `/opt/tool/run`), the other words are its arguments.
59115
@@ -80,11 +136,11 @@ bind.cmd+shift+s = spawn screenshot-area
80136
81137 Make it executable (`chmod +x`) and put it in a directory of your `PATH`, such as `~/.local/bin`. The script can use any shell, including fish (`#!/usr/bin/env fish`).
82138
83-Programs started by NeferTTY get `WAYLAND_DISPLAY`, `DISPLAY` (see [X11 apps](#x11-apps)) and `NEFERTTY_STATE` (see below). `startup` commands run once when the session starts; editing them takes effect at the next start.
139+Programs started by NeferWL get `WAYLAND_DISPLAY`, `DISPLAY` (see [X11 apps](#x11-apps)) and `NEFERWL_STATE` (see below). `startup` commands run once when the session starts; editing them takes effect at the next start.
84140
85141 ## Clipboard
86142
87-NeferTTY supports the clipboard (`wl_data_device`), the primary selection (middle-click paste) and `ext_data_control_v1` for clipboard managers. With [cliphist](https://github.com/sentriz/cliphist), store every copy at startup and bind a picker script (see [Running commands](#running-commands)):
143+NeferWL supports the clipboard (`wl_data_device`), the primary selection (middle-click paste) and `ext_data_control_v1` for clipboard managers. With [cliphist](https://github.com/sentriz/cliphist), store every copy at startup and bind a picker script (see [Running commands](#running-commands)):
88144
89145 ```text
90146 startup = wl-paste --watch cliphist store
@@ -102,7 +158,7 @@ Drag and drop is not supported yet.
102158
103159 ## X11 apps
104160
105-X11 apps such as Steam and Wine run through [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite) 0.7 or later, found in `PATH`. NeferTTY opens an X11 display, sets `DISPLAY` for the programs it starts, and runs xwayland-satellite when the first X11 app connects. If xwayland-satellite exits, the next X11 app starts it again.
161+X11 apps such as Steam and Wine run through [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite) 0.7 or later, found in `PATH`. NeferWL opens an X11 display, sets `DISPLAY` for the programs it starts, and runs xwayland-satellite when the first X11 app connects. If xwayland-satellite exits, the next X11 app starts it again.
106162
107163 ```text
108164 xwayland = xwayland-satellite # the default; a path also works
@@ -113,19 +169,19 @@ Do not start xwayland-satellite yourself with `startup`. Changing `xwayland` tak
113169
114170 ## State for scripts
115171
116-While it runs, NeferTTY keeps its state in `$XDG_RUNTIME_DIR/nefertty/<wayland socket>.json` and passes that path to the programs it starts as `NEFERTTY_STATE`. The file lists every output (active numbered workspace, workspace count, name of the workspace on screen), the focused output and window, and every window with its app ID, PID, output and workspace.
172+While it runs, NeferWL keeps its state in `$XDG_RUNTIME_DIR/neferwl/<wayland socket>.json` and passes that path to the programs it starts as `NEFERWL_STATE`. The file lists every output (active numbered workspace, workspace count, name of the workspace on screen), the focused output and window, and every window with its app ID, PID, output and workspace.
117173
118174 ```sh
119-nefertty state # the whole state as JSON
120-nefertty state output-of "$PID" # the output of that process's window, or its nearest parent's
175+neferwl state # the whole state as JSON
176+neferwl state output-of "$PID" # the output of that process's window, or its nearest parent's
121177 ```
122178
123179 `output-of` finds application windows only; bars have no single output.
124180
125181 ## Try it (headless)
126182
127-Run `nefertty --backend=headless --screenshot /tmp/nefertty-shots`, then connect with
128-`WAYLAND_DISPLAY=<logged name> foot`. `/tmp/nefertty-shots/latest.png` shows the current frame.
183+Run `neferwl --backend=headless --screenshot /tmp/neferwl-shots`, then connect with
184+`WAYLAND_DISPLAY=<logged name> foot`. `/tmp/neferwl-shots/latest.png` shows the current frame.
129185 Use `--input path` (or `--input -` for stdin) to inject a headless script. Each line is
130186 `type text`, `key Super+Return` (also Shift, Ctrl, Alt or a bare key), `sleep 1s`, `move x y` (absolute output coordinates), `click [left|right|middle]`,
131187 `down button`, or `up button`. Cursor rendering is not implemented yet; pointer
@@ -133,13 +189,23 @@ focus after layout changes is updated on the next move.
133189
134190 ## Why not Rust?
135191
136-Most Wayland compositors are written in C (wlroots, Sway, Mutter), C++ (KWin, Hyprland, gamescope) or Rust (niri, COSMIC). NeferTTY is written in Go, by choice:
192+Most Wayland compositors are written in C (wlroots, Sway, Mutter), C++ (KWin, Hyprland, gamescope) or Rust (niri, COSMIC). NeferWL is written in Go, by choice:
137193
138194 - **Simple and readable.** Go is small and explicit. Goroutines and channels fit a compositor where each part (input, outputs, clients) owns its own state.
139195 - **Fast builds, easy tooling.** A full build takes seconds; tests, the race detector, profiling and formatting come with the language.
140-- **No cgo.** NeferTTY builds with `CGO_ENABLED=0`: libwayland, Vulkan and libinput are loaded at runtime through [purego](https://github.com/ebitengine/purego).
196+- **No cgo.** NeferWL builds with `CGO_ENABLED=0`: libwayland, Vulkan and libinput are loaded at runtime through [purego](https://github.com/ebitengine/purego).
141197 - **Fast enough.** With care for allocations and the garbage collector, the hot paths (input, rendering, buffer handling) perform close to native code.
142198
143-As a software engineer, my passion is bringing more tools to the Go ecosystem. NeferTTY grew its own libraries along the way: purego-libwayland, purego-vulkan and wlturbo, to be published for others to reuse. Building them is part of the fun.
199+As a software engineer, my passion is bringing more tools to the Go ecosystem. NeferWL grew its own libraries along the way: purego-libwayland, purego-vulkan and wlturbo, to be published for others to reuse. Building them is part of the fun.
200+
201+What Go does not give us is Rust's borrow checker: memory and concurrency mistakes are not caught at compile time. NeferWL makes up for it with strict ownership (one goroutine owns each piece of state), the race detector on every test run, and protocol tests against real Wayland clients.
202+
203+## Contributing
204+
205+Contributions are welcome. Open an issue first, for a bug fix or a feature, and wait until it is accepted before sending a pull request. Pull requests without an accepted issue will be closed.
206+
207+Before a pull request, `make check`, `make race`, `make mocks-check` and `staticcheck ./...` must pass. Repository rules are in [AGENTS.md](AGENTS.md).
208+
209+## License
144210
145-What Go does not give us is Rust's borrow checker: memory and concurrency mistakes are not caught at compile time. NeferTTY makes up for it with strict ownership (one goroutine owns each piece of state), the race detector on every test run, and protocol tests against real Wayland clients.
211+NeferWL is licensed under the [GNU General Public License v3.0](LICENSE).
@@ -1,12 +1,68 @@
1-# NeferTTY1+<h1 align="center">NeferWL</h1>
2 2
3-NeferTTY is a minimal Wayland compositor in Go with Niri-style scrollable columns. It runs on a TTY (DRM/KMS, libinput, Vulkan) or headless.3+<p align="center">
4+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-blue?style=flat-square" alt="License: GPLv3"></a>
5+ <a href="https://github.com/bnema/neferwl"><img src="https://img.shields.io/badge/platform-Linux-blue?style=flat-square" alt="Platform: Linux"></a>
6+ <a href="https://github.com/bnema/neferwl/commits/main"><img src="https://badgen.net/github/last-commit/bnema/neferwl/main?icon=github" alt="Last commit"></a>
7+ <a href="https://github.com/bnema/neferwl/stargazers"><img src="https://badgen.net/github/stars/bnema/neferwl?icon=github" alt="GitHub stars"></a>
8+</p>
9+
10+<p align="center">A Wayland compositor for people who live in a terminal and die in games.</p>
11+
12+> [!WARNING]
13+> **Early alpha.** NeferWL is developed and tested mostly on AMD CPUs and GPUs. NVIDIA support is incomplete and untested; expect bugs and breaking config changes.
14+
15+---
16+
17+## Why NeferWL
18+
19+NeferWL does a few things and does them fast. No animations, no themes, no built-in bar or wallpaper: those are choices, not missing features. Every frame budget goes to your apps.
20+
21+- **A terminal, then out of the way.** One workspace opens your terminal at startup. Bars, launchers and notifications are external clients (Waybar, fuzzel, mako…).
22+- **Columns between tiling and scrolling.** Up to `max-columns` windows share the screen like a classic tiling WM (Sway); past that, columns scroll to the right like Niri, or split in a spiral with `overflow = fixed`. Each workspace picks its own rules.
23+- **Workspaces you design.** Numbered workspaces are dynamic. Named workspaces can be hidden behind a bind, and **slots** declare their columns (width + command): NeferWL starts the apps in the background and puts each window in its place.
24+- **Multi-monitor done right.** Each monitor owns its workspaces. Unplug one and its workspaces move to another monitor; plug it back and they return home, without stealing your focus.
25+- **Built for games.** Fullscreen games skip composition entirely (details below), with tearing and VRR when the game asks.
26+- **Light.** A running session uses about 40–80 MB of RAM with two 4K monitors, and near-zero CPU when nothing changes on screen.
27+- **Live config.** One flat `key = value` file. Every key applies on save, keyboard layout included; windows stay open.
28+
29+A complete desktop in a few lines:
30+
31+```text
32+keyboard.layout = fr
33+terminal = foot
34+startup = waybar
35+
36+output.DP-1 = 3840x2160@144
37+output.DP-1.scale = 1.5
38+
39+layout.max-columns = 3
40+
41+# A hidden dev workspace: editor and terminal, started and placed for you.
42+workspace.dev.hidden = on
43+workspace.dev.column.1 = 67%, code --new-window
44+workspace.dev.column.2 = 33%, foot
45+bind.cmd+d = workspace dev
46+```
47+
48+### The performance path
49+
50+Every Wayland protocol NeferWL implements is there because it saves work or latency:
51+
52+- **Zero copy.** GPU clients (`zwp_linux_dmabuf_v1` v4) are sampled in place. Vulkan composes straight into exported scanout images, and the frame fence goes to KMS as `IN_FENCE_FD`: no CPU copy, no CPU wait before a flip.
53+- **Direct scanout.** A fullscreen window's buffer goes straight to the display plane; dmabuf feedback sends the game a scanout-ready format first. A lone opaque window can use an overlay plane.
54+- **Tearing and VRR.** `wp_tearing_control_v1` flips without waiting for vblank when the game requests it; variable refresh runs while a buffer is scanned out.
55+- **Explicit sync.** `wp_linux_drm_syncobj_v1` passes GPU fences end to end (needed by NVIDIA).
56+- **Frame pacing.** `wp_presentation` from kernel flip timestamps, `wp_fifo_v1`, `wp_commit_timing_v1` and `wp_content_type_v1`.
57+- **Only what changed.** Damage-limited redraws, occlusion culling of hidden surfaces, idle outputs never redraw. Atomic KMS: frame, cursor, overlay and VRR in one commit.
58+- **Input for games.** Relative pointer, pointer constraints, keyboard shortcuts inhibit, 1 kHz+ non-blocking input, hardware cursor plane.
59+- **X11 games.** Steam and Wine run through xwayland-satellite, started on the first X11 connection.
4 60
5 Requires Linux and Go 1.27.61 Requires Linux and Go 1.27.
6 62
7 ## Hardware support63 ## Hardware support
8 64
9-NeferTTY needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device that can export images as dmabufs; without them it stops at startup with an error. Frames are composed on the GPU only: no CPU copy and no CPU wait for the GPU before a page flip.65+NeferWL needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device that can export images as dmabufs; without them it stops at startup with an error. Frames are composed on the GPU only: no CPU copy and no CPU wait for the GPU before a page flip.
10 66
11 - **AMD GPUs:** developed and tested on AMD (radv).67 - **AMD GPUs:** developed and tested on AMD (radv).
12 - **NVIDIA GPUs:** untested. Explicit sync (`linux-drm-syncobj`), which NVIDIA drivers need, is implemented. Testers with NVIDIA hardware are welcome to report issues or contribute.68 - **NVIDIA GPUs:** untested. Explicit sync (`linux-drm-syncobj`), which NVIDIA drivers need, is implemented. Testers with NVIDIA hardware are welcome to report issues or contribute.
@@ -14,20 +70,20 @@ NeferTTY needs a GPU and kernel driver with atomic KMS and a Vulkan 1.3 device t
14 70
15 Build: `make build`.71 Build: `make build`.
16 72
17-Run: `nefertty --backend=headless --timeout 5s`73+Run: `neferwl --backend=headless --timeout 5s`
18 74
19 ## Install (Arch Linux)75 ## Install (Arch Linux)
20 76
21 ```sh77 ```sh
22-make pkg # builds dist/nefertty-*.pkg.tar.zst from HEAD78+make pkg # builds dist/neferwl-*.pkg.tar.zst from HEAD
23-sudo pacman -U dist/nefertty-*.pkg.tar.zst79+sudo pacman -U dist/neferwl-*.pkg.tar.zst
24 ```80 ```
25 81
26-The package installs `nefertty` and a **NeferTTY** session for display managers (Ly, GDM, SDDM). The session runs `nefertty --session`, which shares `WAYLAND_DISPLAY` and `DISPLAY` with D-Bus and systemd user services, so portals and notification daemons reach it.82+The package installs `neferwl` and a **NeferWL** session for display managers (Ly, GDM, SDDM). The session runs `neferwl --session`, which shares `WAYLAND_DISPLAY` and `DISPLAY` with D-Bus and systemd user services, so portals and notification daemons reach it.
27 83
28 ## Developing the bindings84 ## Developing the bindings
29 85
30-NeferTTY depends on tagged releases of [purego-libwayland](https://github.com/bnema/purego-libwayland) and [purego-vulkan](https://github.com/bnema/purego-vulkan). To change them together with NeferTTY, check them out next to it and use a Go workspace (not committed):86+NeferWL depends on tagged releases of [purego-libwayland](https://github.com/bnema/purego-libwayland) and [purego-vulkan](https://github.com/bnema/purego-vulkan). To change them together with NeferWL, check them out next to it and use a Go workspace (not committed):
31 87
32 ```sh88 ```sh
33 go work init . ../purego-libwayland ../purego-vulkan89 go work init . ../purego-libwayland ../purego-vulkan
@@ -37,7 +93,7 @@ go work init . ../purego-libwayland ../purego-vulkan
37 93
38 ## Configuration94 ## Configuration
39 95
40-Configuration lives at `$XDG_CONFIG_HOME/nefertty/config` (or `~/.config/nefertty/config`). Use `nefertty --config path` to select another file; `nefertty validate-config [path]` checks it without starting the compositor.96+Configuration lives at `$XDG_CONFIG_HOME/neferwl/config` (or `~/.config/neferwl/config`). Use `neferwl --config path` to select another file; `neferwl validate-config [path]` checks it without starting the compositor.
41 97
42 One `key = value` per line; `#` starts a comment:98 One `key = value` per line; `#` starts a comment:
43 99
@@ -49,11 +105,11 @@ bind.ctrl+cmd+space = spawn fuzzel
49 startup = wl-paste --watch cliphist store105 startup = wl-paste --watch cliphist store
50 ```106 ```
51 107
52-See `examples/config` for every key and its default. A missing file means defaults. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. Every key applies live when the file changes, including the keyboard layout; each reload logs the keys that changed.108+Every key, value and default bind is listed in [docs/config.md](docs/config.md); `examples/config` is a commented copy of the defaults. A missing file means defaults. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. Every key applies live when the file changes, including the keyboard layout; each reload logs the keys that changed.
53 109
54 ## Running commands110 ## Running commands
55 111
56-NeferTTY starts a program, not a shell line: `spawn` runs a binary or a script. Anything more than one command with arguments, such as pipes or variables, goes in a script that you write.112+NeferWL starts a program, not a shell line: `spawn` runs a binary or a script. Anything more than one command with arguments, such as pipes or variables, goes in a script that you write.
57 113
58 `spawn <command>` binds, `startup = <command>` lines and `terminal = <command>` run one program directly, without a shell. The line is split on spaces: the first word is the program (looked up in `PATH`, or a path such as `/opt/tool/run`), the other words are its arguments.114 `spawn <command>` binds, `startup = <command>` lines and `terminal = <command>` run one program directly, without a shell. The line is split on spaces: the first word is the program (looked up in `PATH`, or a path such as `/opt/tool/run`), the other words are its arguments.
59 115
@@ -80,11 +136,11 @@ bind.cmd+shift+s = spawn screenshot-area
80 136
81 Make it executable (`chmod +x`) and put it in a directory of your `PATH`, such as `~/.local/bin`. The script can use any shell, including fish (`#!/usr/bin/env fish`).137 Make it executable (`chmod +x`) and put it in a directory of your `PATH`, such as `~/.local/bin`. The script can use any shell, including fish (`#!/usr/bin/env fish`).
82 138
83-Programs started by NeferTTY get `WAYLAND_DISPLAY`, `DISPLAY` (see [X11 apps](#x11-apps)) and `NEFERTTY_STATE` (see below). `startup` commands run once when the session starts; editing them takes effect at the next start.139+Programs started by NeferWL get `WAYLAND_DISPLAY`, `DISPLAY` (see [X11 apps](#x11-apps)) and `NEFERWL_STATE` (see below). `startup` commands run once when the session starts; editing them takes effect at the next start.
84 140
85 ## Clipboard141 ## Clipboard
86 142
87-NeferTTY supports the clipboard (`wl_data_device`), the primary selection (middle-click paste) and `ext_data_control_v1` for clipboard managers. With [cliphist](https://github.com/sentriz/cliphist), store every copy at startup and bind a picker script (see [Running commands](#running-commands)):143+NeferWL supports the clipboard (`wl_data_device`), the primary selection (middle-click paste) and `ext_data_control_v1` for clipboard managers. With [cliphist](https://github.com/sentriz/cliphist), store every copy at startup and bind a picker script (see [Running commands](#running-commands)):
88 144
89 ```text145 ```text
90 startup = wl-paste --watch cliphist store146 startup = wl-paste --watch cliphist store
@@ -102,7 +158,7 @@ Drag and drop is not supported yet.
102 158
103 ## X11 apps159 ## X11 apps
104 160
105-X11 apps such as Steam and Wine run through [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite) 0.7 or later, found in `PATH`. NeferTTY opens an X11 display, sets `DISPLAY` for the programs it starts, and runs xwayland-satellite when the first X11 app connects. If xwayland-satellite exits, the next X11 app starts it again.161+X11 apps such as Steam and Wine run through [xwayland-satellite](https://github.com/Supreeeme/xwayland-satellite) 0.7 or later, found in `PATH`. NeferWL opens an X11 display, sets `DISPLAY` for the programs it starts, and runs xwayland-satellite when the first X11 app connects. If xwayland-satellite exits, the next X11 app starts it again.
106 162
107 ```text163 ```text
108 xwayland = xwayland-satellite # the default; a path also works164 xwayland = xwayland-satellite # the default; a path also works
@@ -113,19 +169,19 @@ Do not start xwayland-satellite yourself with `startup`. Changing `xwayland` tak
113 169
114 ## State for scripts170 ## State for scripts
115 171
116-While it runs, NeferTTY keeps its state in `$XDG_RUNTIME_DIR/nefertty/<wayland socket>.json` and passes that path to the programs it starts as `NEFERTTY_STATE`. The file lists every output (active numbered workspace, workspace count, name of the workspace on screen), the focused output and window, and every window with its app ID, PID, output and workspace.172+While it runs, NeferWL keeps its state in `$XDG_RUNTIME_DIR/neferwl/<wayland socket>.json` and passes that path to the programs it starts as `NEFERWL_STATE`. The file lists every output (active numbered workspace, workspace count, name of the workspace on screen), the focused output and window, and every window with its app ID, PID, output and workspace.
117 173
118 ```sh174 ```sh
119-nefertty state # the whole state as JSON175+neferwl state # the whole state as JSON
120-nefertty state output-of "$PID" # the output of that process's window, or its nearest parent's176+neferwl state output-of "$PID" # the output of that process's window, or its nearest parent's
121 ```177 ```
122 178
123 `output-of` finds application windows only; bars have no single output.179 `output-of` finds application windows only; bars have no single output.
124 180
125 ## Try it (headless)181 ## Try it (headless)
126 182
127-Run `nefertty --backend=headless --screenshot /tmp/nefertty-shots`, then connect with183+Run `neferwl --backend=headless --screenshot /tmp/neferwl-shots`, then connect with
128-`WAYLAND_DISPLAY=<logged name> foot`. `/tmp/nefertty-shots/latest.png` shows the current frame.184+`WAYLAND_DISPLAY=<logged name> foot`. `/tmp/neferwl-shots/latest.png` shows the current frame.
129 Use `--input path` (or `--input -` for stdin) to inject a headless script. Each line is185 Use `--input path` (or `--input -` for stdin) to inject a headless script. Each line is
130 `type text`, `key Super+Return` (also Shift, Ctrl, Alt or a bare key), `sleep 1s`, `move x y` (absolute output coordinates), `click [left|right|middle]`,186 `type text`, `key Super+Return` (also Shift, Ctrl, Alt or a bare key), `sleep 1s`, `move x y` (absolute output coordinates), `click [left|right|middle]`,
131 `down button`, or `up button`. Cursor rendering is not implemented yet; pointer187 `down button`, or `up button`. Cursor rendering is not implemented yet; pointer
@@ -133,13 +189,23 @@ focus after layout changes is updated on the next move.
133 189
134 ## Why not Rust?190 ## Why not Rust?
135 191
136-Most Wayland compositors are written in C (wlroots, Sway, Mutter), C++ (KWin, Hyprland, gamescope) or Rust (niri, COSMIC). NeferTTY is written in Go, by choice:192+Most Wayland compositors are written in C (wlroots, Sway, Mutter), C++ (KWin, Hyprland, gamescope) or Rust (niri, COSMIC). NeferWL is written in Go, by choice:
137 193
138 - **Simple and readable.** Go is small and explicit. Goroutines and channels fit a compositor where each part (input, outputs, clients) owns its own state.194 - **Simple and readable.** Go is small and explicit. Goroutines and channels fit a compositor where each part (input, outputs, clients) owns its own state.
139 - **Fast builds, easy tooling.** A full build takes seconds; tests, the race detector, profiling and formatting come with the language.195 - **Fast builds, easy tooling.** A full build takes seconds; tests, the race detector, profiling and formatting come with the language.
140-- **No cgo.** NeferTTY builds with `CGO_ENABLED=0`: libwayland, Vulkan and libinput are loaded at runtime through [purego](https://github.com/ebitengine/purego).196+- **No cgo.** NeferWL builds with `CGO_ENABLED=0`: libwayland, Vulkan and libinput are loaded at runtime through [purego](https://github.com/ebitengine/purego).
141 - **Fast enough.** With care for allocations and the garbage collector, the hot paths (input, rendering, buffer handling) perform close to native code.197 - **Fast enough.** With care for allocations and the garbage collector, the hot paths (input, rendering, buffer handling) perform close to native code.
142 198
143-As a software engineer, my passion is bringing more tools to the Go ecosystem. NeferTTY grew its own libraries along the way: purego-libwayland, purego-vulkan and wlturbo, to be published for others to reuse. Building them is part of the fun.199+As a software engineer, my passion is bringing more tools to the Go ecosystem. NeferWL grew its own libraries along the way: purego-libwayland, purego-vulkan and wlturbo, to be published for others to reuse. Building them is part of the fun.
200+
201+What Go does not give us is Rust's borrow checker: memory and concurrency mistakes are not caught at compile time. NeferWL makes up for it with strict ownership (one goroutine owns each piece of state), the race detector on every test run, and protocol tests against real Wayland clients.
202+
203+## Contributing
204+
205+Contributions are welcome. Open an issue first, for a bug fix or a feature, and wait until it is accepted before sending a pull request. Pull requests without an accepted issue will be closed.
206+
207+Before a pull request, `make check`, `make race`, `make mocks-check` and `staticcheck ./...` must pass. Repository rules are in [AGENTS.md](AGENTS.md).
208+
209+## License
144 210
145-What Go does not give us is Rust's borrow checker: memory and concurrency mistakes are not caught at compile time. NeferTTY makes up for it with strict ownership (one goroutine owns each piece of state), the race detector on every test run, and protocol tests against real Wayland clients.211+NeferWL is licensed under the [GNU General Public License v3.0](LICENSE).
R cmd/nefertty/main.go → cmd/neferwl/main.go +10 -10 renamed, 93% similar
@@ -14,11 +14,11 @@ import (
1414 "syscall"
1515 "time"
1616
17- "github.com/bnema/nefertty/internal/adapters/config"
18- "github.com/bnema/nefertty/internal/adapters/statefile"
19- "github.com/bnema/nefertty/internal/app"
20- "github.com/bnema/nefertty/internal/logging"
21- "github.com/bnema/nefertty/internal/ports"
17+ "github.com/bnema/neferwl/internal/adapters/config"
18+ "github.com/bnema/neferwl/internal/adapters/statefile"
19+ "github.com/bnema/neferwl/internal/app"
20+ "github.com/bnema/neferwl/internal/logging"
21+ "github.com/bnema/neferwl/internal/ports"
2222 )
2323
2424 type usageError struct{ error }
@@ -31,7 +31,7 @@ func main() {
3131 os.Exit(runCode())
3232 }
3333
34-// tuneGC keeps the heap close to what nefertty uses: a compositor runs for
34+// tuneGC keeps the heap close to what neferwl uses: a compositor runs for
3535 // days and its per-frame garbage is small, so the default GOGC=100 (heap
3636 // grows to twice the live data) mostly holds freed memory. A soft limit
3737 // makes the collector work harder before the process gets large. GOGC and
@@ -111,7 +111,7 @@ func run() error {
111111 fmt.Println(v)
112112 return nil
113113 }
114- flags := flag.NewFlagSet("nefertty", flag.ContinueOnError)
114+ flags := flag.NewFlagSet("neferwl", flag.ContinueOnError)
115115 backend := flags.String("backend", "drm", "drm or headless")
116116 screenshot := flags.String("screenshot", "", "write PNG frames to directory")
117117 size := flags.String("size", "1920x1080", "headless output sizes WxH, comma-separated for several outputs")
@@ -247,10 +247,10 @@ func run() error {
247247
248248 // runState prints the session state for scripts:
249249 //
250-// nefertty state the whole state
251-// nefertty state output-of <pid> the output showing that process's window
250+// neferwl state the whole state
251+// neferwl state output-of <pid> the output showing that process's window
252252 //
253-// The file is $NEFERTTY_STATE, else the one of $WAYLAND_DISPLAY.
253+// The file is $NEFERWL_STATE, else the one of $WAYLAND_DISPLAY.
254254 func runState(args []string) error {
255255 usage := usageError{fmt.Errorf("usage: state [output-of <pid>]")}
256256 pid := 0
@@ -14,11 +14,11 @@ import (
14 "syscall"14 "syscall"
15 "time"15 "time"
16 16
17- "github.com/bnema/nefertty/internal/adapters/config"17+ "github.com/bnema/neferwl/internal/adapters/config"
18- "github.com/bnema/nefertty/internal/adapters/statefile"18+ "github.com/bnema/neferwl/internal/adapters/statefile"
19- "github.com/bnema/nefertty/internal/app"19+ "github.com/bnema/neferwl/internal/app"
20- "github.com/bnema/nefertty/internal/logging"20+ "github.com/bnema/neferwl/internal/logging"
21- "github.com/bnema/nefertty/internal/ports"21+ "github.com/bnema/neferwl/internal/ports"
22 )22 )
23 23
24 type usageError struct{ error }24 type usageError struct{ error }
@@ -31,7 +31,7 @@ func main() {
31 os.Exit(runCode())31 os.Exit(runCode())
32 }32 }
33 33
34-// tuneGC keeps the heap close to what nefertty uses: a compositor runs for34+// tuneGC keeps the heap close to what neferwl uses: a compositor runs for
35 // days and its per-frame garbage is small, so the default GOGC=100 (heap35 // days and its per-frame garbage is small, so the default GOGC=100 (heap
36 // grows to twice the live data) mostly holds freed memory. A soft limit36 // grows to twice the live data) mostly holds freed memory. A soft limit
37 // makes the collector work harder before the process gets large. GOGC and37 // makes the collector work harder before the process gets large. GOGC and
@@ -111,7 +111,7 @@ func run() error {
111 fmt.Println(v)111 fmt.Println(v)
112 return nil112 return nil
113 }113 }
114- flags := flag.NewFlagSet("nefertty", flag.ContinueOnError)114+ flags := flag.NewFlagSet("neferwl", flag.ContinueOnError)
115 backend := flags.String("backend", "drm", "drm or headless")115 backend := flags.String("backend", "drm", "drm or headless")
116 screenshot := flags.String("screenshot", "", "write PNG frames to directory")116 screenshot := flags.String("screenshot", "", "write PNG frames to directory")
117 size := flags.String("size", "1920x1080", "headless output sizes WxH, comma-separated for several outputs")117 size := flags.String("size", "1920x1080", "headless output sizes WxH, comma-separated for several outputs")
@@ -247,10 +247,10 @@ func run() error {
247 247
248 // runState prints the session state for scripts:248 // runState prints the session state for scripts:
249 //249 //
250-// nefertty state the whole state250+// neferwl state the whole state
251-// nefertty state output-of <pid> the output showing that process's window251+// neferwl state output-of <pid> the output showing that process's window
252 //252 //
253-// The file is $NEFERTTY_STATE, else the one of $WAYLAND_DISPLAY.253+// The file is $NEFERWL_STATE, else the one of $WAYLAND_DISPLAY.
254 func runState(args []string) error {254 func runState(args []string) error {
255 usage := usageError{fmt.Errorf("usage: state [output-of <pid>]")}255 usage := usageError{fmt.Errorf("usage: state [output-of <pid>]")}
256 pid := 0256 pid := 0
R cmd/nefertty/main_test.go → cmd/neferwl/main_test.go +7 -7 renamed, 61% similar
@@ -19,13 +19,13 @@ func TestExitCodes(t *testing.T) {
1919 args []string
2020 code int
2121 }{
22- {[]string{"nefertty", "--help"}, 0},
23- {[]string{"nefertty", "--backend=invalid"}, 2},
24- {[]string{"nefertty", "--backend=drm", "--screenshot=/tmp/shots"}, 2},
25- {[]string{"nefertty", "--timeout=-1s"}, 2},
26- {[]string{"nefertty", "extra"}, 2},
27- {[]string{"nefertty", "--config=/nonexistent/nefertty.conf"}, 1},
28- {[]string{"nefertty", "validate-config", "/nonexistent/nefertty.conf"}, 1},
22+ {[]string{"neferwl", "--help"}, 0},
23+ {[]string{"neferwl", "--backend=invalid"}, 2},
24+ {[]string{"neferwl", "--backend=drm", "--screenshot=/tmp/shots"}, 2},
25+ {[]string{"neferwl", "--timeout=-1s"}, 2},
26+ {[]string{"neferwl", "extra"}, 2},
27+ {[]string{"neferwl", "--config=/nonexistent/neferwl.conf"}, 1},
28+ {[]string{"neferwl", "validate-config", "/nonexistent/neferwl.conf"}, 1},
2929 } {
3030 old := os.Args
3131 os.Args = tc.args
@@ -19,13 +19,13 @@ func TestExitCodes(t *testing.T) {
19 args []string19 args []string
20 code int20 code int
21 }{21 }{
22- {[]string{"nefertty", "--help"}, 0},22+ {[]string{"neferwl", "--help"}, 0},
23- {[]string{"nefertty", "--backend=invalid"}, 2},23+ {[]string{"neferwl", "--backend=invalid"}, 2},
24- {[]string{"nefertty", "--backend=drm", "--screenshot=/tmp/shots"}, 2},24+ {[]string{"neferwl", "--backend=drm", "--screenshot=/tmp/shots"}, 2},
25- {[]string{"nefertty", "--timeout=-1s"}, 2},25+ {[]string{"neferwl", "--timeout=-1s"}, 2},
26- {[]string{"nefertty", "extra"}, 2},26+ {[]string{"neferwl", "extra"}, 2},
27- {[]string{"nefertty", "--config=/nonexistent/nefertty.conf"}, 1},27+ {[]string{"neferwl", "--config=/nonexistent/neferwl.conf"}, 1},
28- {[]string{"nefertty", "validate-config", "/nonexistent/nefertty.conf"}, 1},28+ {[]string{"neferwl", "validate-config", "/nonexistent/neferwl.conf"}, 1},
29 } {29 } {
30 old := os.Args30 old := os.Args
31 os.Args = tc.args31 os.Args = tc.args
A docs/config.md +128 -0
@@ -0,0 +1,128 @@
1+# Configuration
2+
3+NeferWL reads `$XDG_CONFIG_HOME/neferwl/config` (or `~/.config/neferwl/config`). `neferwl --config <path>` selects another file; `neferwl validate-config [path]` checks one without starting the compositor.
4+
5+## Format
6+
7+- One `key = value` per line; `#` starts a comment.
8+- Lists are comma-separated; booleans are `on` / `off`.
9+- A missing file or key means the default. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. A duplicate key warns and the last one wins.
10+- Every key applies live when the file is saved; windows stay open. `startup` and `xwayland` take effect at the next start.
11+
12+## Keys
13+
14+| Key | Default | Meaning |
15+|---|---|---|
16+| `keyboard.layout`, `.variant`, `.options` | empty | xkb names, e.g. `fr`, `caps:escape` |
17+| `keyboard.repeat-rate` / `repeat-delay` | `25` / `600` | Key repeat per second / delay in ms |
18+| `keyboard.cmd` | `super` | Modifier that `cmd` means in binds: `super`, `alt` or `ctrl` |
19+| `terminal` | `foot` | Opened at startup and by `spawn-terminal` |
20+| `startup` | none | Command run once at session start; repeat the key for more |
21+| `xwayland` | `xwayland-satellite` | X11 support; `off` disables it |
22+| `background` | `#111111` | Solid background color |
23+| `border.width` | `2` | Separator lines between tiles, in logical pixels; `0` hides them |
24+| `border.active` / `border.inactive` | `#808080` / `#111111` | Separator colors around the focused / other windows |
25+| `layout.gaps` | `0` | Space between windows |
26+| `layout.max-columns` | `2` | Columns that share the screen before scrolling |
27+| `layout.overflow` | `scroll` | Past the max: `scroll` right, or `fixed` spiral split |
28+| `layout.presets` | `1/3, 1/2, 2/3, 1` | Widths for `cycle-column-width` |
29+| `focus.follow-move` | `off` | Follow a column moved to another workspace |
30+| `workspace.<name>.hidden` | `off` | Reachable only through its bind, which toggles it |
31+| `workspace.<name>.monitor` | focused | Home monitor: connector (`DP-2`) or monitor key |
32+| `workspace.<name>.max-columns`, `.overflow` | layout values | Per-workspace layout |
33+| `workspace.<name>.column.<N>` | none | Slot: `<width>, <command>` |
34+| `output.<name>` | preferred | `WxH`, `WxH@Hz`, `preferred` or `off` |
35+| `output.<name>.scale` | `1` | 1 to 4, e.g. `1.5` or `4/3` |
36+| `output.<name>.primary` | `off` | Gets focus and pointer at startup |
37+| `render.direct-scanout` | `on` | Fullscreen buffers straight to the display |
38+| `render.tearing` / `render.vrr` | `on` / `on` | For games in direct scanout |
39+| `log.level` / `log.debug` | `info` / empty | Log level / debug components or `all` |
40+| `bind.<keys>` | see below | Action for a key combo; `none` removes a default |
41+
42+## Binds
43+
44+`bind.<keys> = <action>`. Modifiers: `cmd` (see `keyboard.cmd`), `shift`, `ctrl`, `alt`, `super`.
45+
46+- Keys are what the active layout prints: `cmd+é` on AZERTY. Write `=`, `#` and space by name: `cmd+equal`, `cmd+numbersign`, `cmd+space`.
47+- `code:N` is a physical key (evdev code), the same on every layout: `code:2` to `code:10` are the digit row 1 to 9.
48+- `none` removes a default bind.
49+- `spawn <command>` runs a program without a shell; see [Running commands](../README.md#running-commands).
50+
51+### Actions
52+
53+| Action | Effect |
54+|---|---|
55+| `spawn <command>` | Run a program |
56+| `spawn-terminal` | Run `terminal` |
57+| `close-window` | Close the focused window |
58+| `toggle-fullscreen` | Fullscreen the focused window |
59+| `cycle-column-width` | Step through `layout.presets` |
60+| `focus-column-left/right` | Focus the neighbor column; at the edge, the neighbor monitor |
61+| `focus-window-up/down` | Focus in the column; past the edge, the next workspace |
62+| `move-column-left/right` | Move the focused column |
63+| `consume-or-expel-window-left/right` | A lone window joins the neighbor column; a stacked one leaves for a new column |
64+| `focus-workspace <N>` / `focus-workspace-up/down` | Show a numbered or neighbor workspace |
65+| `workspace <name>` | Toggle a named workspace |
66+| `move-column-to-workspace <N>` / `-up/-down` | Move the focused column |
67+| `move-window-to-workspace <N>` / `-up/-down` | Move only the focused window |
68+| `focus-monitor-left/right` | Focus the neighbor monitor |
69+| `move-workspace-to-monitor-left/right` | Move the workspace; it gets a new home |
70+| `scale-up` / `scale-down` | Zoom the whole display |
71+| `quit` | Exit NeferWL |
72+
73+### Default binds
74+
75+| Keys | Action |
76+|---|---|
77+| `cmd+return` | `spawn-terminal` |
78+| `cmd+left` | `focus-column-left` |
79+| `cmd+right` | `focus-column-right` |
80+| `cmd+up` | `focus-window-up` |
81+| `cmd+down` | `focus-window-down` |
82+| `cmd+shift+left` | `move-column-left` |
83+| `cmd+shift+right` | `move-column-right` |
84+| `cmd+h` | `focus-column-left` |
85+| `cmd+l` | `focus-column-right` |
86+| `cmd+k` | `focus-window-up` |
87+| `cmd+j` | `focus-window-down` |
88+| `cmd+shift+h` | `move-column-left` |
89+| `cmd+shift+l` | `move-column-right` |
90+| `cmd+bracketleft` | `consume-or-expel-window-left` |
91+| `cmd+bracketright` | `consume-or-expel-window-right` |
92+| `cmd+r` | `cycle-column-width` |
93+| `cmd+shift+f` | `toggle-fullscreen` |
94+| `cmd+q` | `close-window` |
95+| `ctrl+alt+backspace` | `quit` |
96+| `ctrl+cmd+space` | `spawn fuzzel` |
97+| `cmd+pageup` | `focus-workspace-up` |
98+| `cmd+pagedown` | `focus-workspace-down` |
99+| `cmd+shift+pageup` | `move-column-to-workspace-up` |
100+| `cmd+shift+pagedown` | `move-column-to-workspace-down` |
101+| `cmd+code:2` | `focus-workspace 1` |
102+| `cmd+code:3` | `focus-workspace 2` |
103+| `cmd+code:4` | `focus-workspace 3` |
104+| `cmd+code:5` | `focus-workspace 4` |
105+| `cmd+code:6` | `focus-workspace 5` |
106+| `cmd+code:7` | `focus-workspace 6` |
107+| `cmd+code:8` | `focus-workspace 7` |
108+| `cmd+code:9` | `focus-workspace 8` |
109+| `cmd+code:10` | `focus-workspace 9` |
110+| `cmd+shift+code:2` | `move-column-to-workspace 1` |
111+| `cmd+shift+code:3` | `move-column-to-workspace 2` |
112+| `cmd+shift+code:4` | `move-column-to-workspace 3` |
113+| `cmd+shift+code:5` | `move-column-to-workspace 4` |
114+| `cmd+shift+code:6` | `move-column-to-workspace 5` |
115+| `cmd+shift+code:7` | `move-column-to-workspace 6` |
116+| `cmd+shift+code:8` | `move-column-to-workspace 7` |
117+| `cmd+shift+code:9` | `move-column-to-workspace 8` |
118+| `cmd+shift+code:10` | `move-column-to-workspace 9` |
119+| `cmd+ctrl+left` | `focus-monitor-left` |
120+| `cmd+ctrl+right` | `focus-monitor-right` |
121+| `cmd+ctrl+h` | `focus-monitor-left` |
122+| `cmd+ctrl+l` | `focus-monitor-right` |
123+| `cmd+ctrl+shift+left` | `move-workspace-to-monitor-left` |
124+| `cmd+ctrl+shift+right` | `move-workspace-to-monitor-right` |
125+| `cmd+ctrl+shift+h` | `move-workspace-to-monitor-left` |
126+| `cmd+ctrl+shift+l` | `move-workspace-to-monitor-right` |
127+| `cmd+code:13` | `scale-up` |
128+| `cmd+code:12` | `scale-down` |
@@ -0,0 +1,128 @@
1+# Configuration
2+
3+NeferWL reads `$XDG_CONFIG_HOME/neferwl/config` (or `~/.config/neferwl/config`). `neferwl --config <path>` selects another file; `neferwl validate-config [path]` checks one without starting the compositor.
4+
5+## Format
6+
7+- One `key = value` per line; `#` starts a comment.
8+- Lists are comma-separated; booleans are `on` / `off`.
9+- A missing file or key means the default. An invalid line logs a warning and keeps that key's default; the rest of the file still applies. A duplicate key warns and the last one wins.
10+- Every key applies live when the file is saved; windows stay open. `startup` and `xwayland` take effect at the next start.
11+
12+## Keys
13+
14+| Key | Default | Meaning |
15+|---|---|---|
16+| `keyboard.layout`, `.variant`, `.options` | empty | xkb names, e.g. `fr`, `caps:escape` |
17+| `keyboard.repeat-rate` / `repeat-delay` | `25` / `600` | Key repeat per second / delay in ms |
18+| `keyboard.cmd` | `super` | Modifier that `cmd` means in binds: `super`, `alt` or `ctrl` |
19+| `terminal` | `foot` | Opened at startup and by `spawn-terminal` |
20+| `startup` | none | Command run once at session start; repeat the key for more |
21+| `xwayland` | `xwayland-satellite` | X11 support; `off` disables it |
22+| `background` | `#111111` | Solid background color |
23+| `border.width` | `2` | Separator lines between tiles, in logical pixels; `0` hides them |
24+| `border.active` / `border.inactive` | `#808080` / `#111111` | Separator colors around the focused / other windows |
25+| `layout.gaps` | `0` | Space between windows |
26+| `layout.max-columns` | `2` | Columns that share the screen before scrolling |
27+| `layout.overflow` | `scroll` | Past the max: `scroll` right, or `fixed` spiral split |
28+| `layout.presets` | `1/3, 1/2, 2/3, 1` | Widths for `cycle-column-width` |
29+| `focus.follow-move` | `off` | Follow a column moved to another workspace |
30+| `workspace.<name>.hidden` | `off` | Reachable only through its bind, which toggles it |
31+| `workspace.<name>.monitor` | focused | Home monitor: connector (`DP-2`) or monitor key |
32+| `workspace.<name>.max-columns`, `.overflow` | layout values | Per-workspace layout |
33+| `workspace.<name>.column.<N>` | none | Slot: `<width>, <command>` |
34+| `output.<name>` | preferred | `WxH`, `WxH@Hz`, `preferred` or `off` |
35+| `output.<name>.scale` | `1` | 1 to 4, e.g. `1.5` or `4/3` |
36+| `output.<name>.primary` | `off` | Gets focus and pointer at startup |
37+| `render.direct-scanout` | `on` | Fullscreen buffers straight to the display |
38+| `render.tearing` / `render.vrr` | `on` / `on` | For games in direct scanout |
39+| `log.level` / `log.debug` | `info` / empty | Log level / debug components or `all` |
40+| `bind.<keys>` | see below | Action for a key combo; `none` removes a default |
41+
42+## Binds
43+
44+`bind.<keys> = <action>`. Modifiers: `cmd` (see `keyboard.cmd`), `shift`, `ctrl`, `alt`, `super`.
45+
46+- Keys are what the active layout prints: `cmd+é` on AZERTY. Write `=`, `#` and space by name: `cmd+equal`, `cmd+numbersign`, `cmd+space`.
47+- `code:N` is a physical key (evdev code), the same on every layout: `code:2` to `code:10` are the digit row 1 to 9.
48+- `none` removes a default bind.
49+- `spawn <command>` runs a program without a shell; see [Running commands](../README.md#running-commands).
50+
51+### Actions
52+
53+| Action | Effect |
54+|---|---|
55+| `spawn <command>` | Run a program |
56+| `spawn-terminal` | Run `terminal` |
57+| `close-window` | Close the focused window |
58+| `toggle-fullscreen` | Fullscreen the focused window |
59+| `cycle-column-width` | Step through `layout.presets` |
60+| `focus-column-left/right` | Focus the neighbor column; at the edge, the neighbor monitor |
61+| `focus-window-up/down` | Focus in the column; past the edge, the next workspace |
62+| `move-column-left/right` | Move the focused column |
63+| `consume-or-expel-window-left/right` | A lone window joins the neighbor column; a stacked one leaves for a new column |
64+| `focus-workspace <N>` / `focus-workspace-up/down` | Show a numbered or neighbor workspace |
65+| `workspace <name>` | Toggle a named workspace |
66+| `move-column-to-workspace <N>` / `-up/-down` | Move the focused column |
67+| `move-window-to-workspace <N>` / `-up/-down` | Move only the focused window |
68+| `focus-monitor-left/right` | Focus the neighbor monitor |
69+| `move-workspace-to-monitor-left/right` | Move the workspace; it gets a new home |
70+| `scale-up` / `scale-down` | Zoom the whole display |
71+| `quit` | Exit NeferWL |
72+
73+### Default binds
74+
75+| Keys | Action |
76+|---|---|
77+| `cmd+return` | `spawn-terminal` |
78+| `cmd+left` | `focus-column-left` |
79+| `cmd+right` | `focus-column-right` |
80+| `cmd+up` | `focus-window-up` |
81+| `cmd+down` | `focus-window-down` |
82+| `cmd+shift+left` | `move-column-left` |
83+| `cmd+shift+right` | `move-column-right` |
84+| `cmd+h` | `focus-column-left` |
85+| `cmd+l` | `focus-column-right` |
86+| `cmd+k` | `focus-window-up` |
87+| `cmd+j` | `focus-window-down` |
88+| `cmd+shift+h` | `move-column-left` |
89+| `cmd+shift+l` | `move-column-right` |
90+| `cmd+bracketleft` | `consume-or-expel-window-left` |
91+| `cmd+bracketright` | `consume-or-expel-window-right` |
92+| `cmd+r` | `cycle-column-width` |
93+| `cmd+shift+f` | `toggle-fullscreen` |
94+| `cmd+q` | `close-window` |
95+| `ctrl+alt+backspace` | `quit` |
96+| `ctrl+cmd+space` | `spawn fuzzel` |
97+| `cmd+pageup` | `focus-workspace-up` |
98+| `cmd+pagedown` | `focus-workspace-down` |
99+| `cmd+shift+pageup` | `move-column-to-workspace-up` |
100+| `cmd+shift+pagedown` | `move-column-to-workspace-down` |
101+| `cmd+code:2` | `focus-workspace 1` |
102+| `cmd+code:3` | `focus-workspace 2` |
103+| `cmd+code:4` | `focus-workspace 3` |
104+| `cmd+code:5` | `focus-workspace 4` |
105+| `cmd+code:6` | `focus-workspace 5` |
106+| `cmd+code:7` | `focus-workspace 6` |
107+| `cmd+code:8` | `focus-workspace 7` |
108+| `cmd+code:9` | `focus-workspace 8` |
109+| `cmd+code:10` | `focus-workspace 9` |
110+| `cmd+shift+code:2` | `move-column-to-workspace 1` |
111+| `cmd+shift+code:3` | `move-column-to-workspace 2` |
112+| `cmd+shift+code:4` | `move-column-to-workspace 3` |
113+| `cmd+shift+code:5` | `move-column-to-workspace 4` |
114+| `cmd+shift+code:6` | `move-column-to-workspace 5` |
115+| `cmd+shift+code:7` | `move-column-to-workspace 6` |
116+| `cmd+shift+code:8` | `move-column-to-workspace 7` |
117+| `cmd+shift+code:9` | `move-column-to-workspace 8` |
118+| `cmd+shift+code:10` | `move-column-to-workspace 9` |
119+| `cmd+ctrl+left` | `focus-monitor-left` |
120+| `cmd+ctrl+right` | `focus-monitor-right` |
121+| `cmd+ctrl+h` | `focus-monitor-left` |
122+| `cmd+ctrl+l` | `focus-monitor-right` |
123+| `cmd+ctrl+shift+left` | `move-workspace-to-monitor-left` |
124+| `cmd+ctrl+shift+right` | `move-workspace-to-monitor-right` |
125+| `cmd+ctrl+shift+h` | `move-workspace-to-monitor-left` |
126+| `cmd+ctrl+shift+l` | `move-workspace-to-monitor-right` |
127+| `cmd+code:13` | `scale-up` |
128+| `cmd+code:12` | `scale-down` |
M examples/config +3 -3
@@ -1,4 +1,4 @@
1-# nefertty config: one `key = value` per line, # starts a comment.
1+# neferwl config: one `key = value` per line, # starts a comment.
22 # Every value below is the default; a missing file means defaults.
33 # Changes apply live. An invalid line logs a warning and keeps the default.
44
@@ -16,7 +16,7 @@ terminal = foot
1616
1717 # Commands run once when the session starts, one line each. Like spawn, a
1818 # command runs without a shell: see "Running commands" in the README.
19-# Programs get WAYLAND_DISPLAY and NEFERTTY_STATE.
19+# Programs get WAYLAND_DISPLAY and NEFERWL_STATE.
2020 # startup = waybar
2121 # startup = wl-paste --watch cliphist store
2222
@@ -49,7 +49,7 @@ focus.follow-move = off
4949 # workspace.web.max-columns = 3
5050 # workspace.web.overflow = fixed
5151 #
52-# Slots: column.N = <width>, <command>. nefertty starts each command in the
52+# Slots: column.N = <width>, <command>. neferwl starts each command in the
5353 # background and puts its first window in column N, without taking focus.
5454 # A closed slot stays empty until the workspace is shown again. Apps that
5555 # reuse a running instance need a new-instance flag. Widths need
@@ -1,4 +1,4 @@
1-# nefertty config: one `key = value` per line, # starts a comment.1+# neferwl config: one `key = value` per line, # starts a comment.
2 # Every value below is the default; a missing file means defaults.2 # Every value below is the default; a missing file means defaults.
3 # Changes apply live. An invalid line logs a warning and keeps the default.3 # Changes apply live. An invalid line logs a warning and keeps the default.
4 4
@@ -16,7 +16,7 @@ terminal = foot
16 16
17 # Commands run once when the session starts, one line each. Like spawn, a17 # Commands run once when the session starts, one line each. Like spawn, a
18 # command runs without a shell: see "Running commands" in the README.18 # command runs without a shell: see "Running commands" in the README.
19-# Programs get WAYLAND_DISPLAY and NEFERTTY_STATE.19+# Programs get WAYLAND_DISPLAY and NEFERWL_STATE.
20 # startup = waybar20 # startup = waybar
21 # startup = wl-paste --watch cliphist store21 # startup = wl-paste --watch cliphist store
22 22
@@ -49,7 +49,7 @@ focus.follow-move = off
49 # workspace.web.max-columns = 349 # workspace.web.max-columns = 3
50 # workspace.web.overflow = fixed50 # workspace.web.overflow = fixed
51 #51 #
52-# Slots: column.N = <width>, <command>. nefertty starts each command in the52+# Slots: column.N = <width>, <command>. neferwl starts each command in the
53 # background and puts its first window in column N, without taking focus.53 # background and puts its first window in column N, without taking focus.
54 # A closed slot stays empty until the workspace is shown again. Apps that54 # A closed slot stays empty until the workspace is shown again. Apps that
55 # reuse a running instance need a new-instance flag. Widths need55 # reuse a running instance need a new-instance flag. Widths need
M go.mod +1 -1
@@ -1,4 +1,4 @@
1-module github.com/bnema/nefertty
1+module github.com/bnema/neferwl
22
33 go 1.27
44
@@ -1,4 +1,4 @@
1-module github.com/bnema/nefertty1+module github.com/bnema/neferwl
2 2
3 go 1.273 go 1.27
4 4
M internal/adapters/config/config.go +2 -2
@@ -15,7 +15,7 @@ import (
1515 "strings"
1616 "unicode"
1717
18- "github.com/bnema/nefertty/internal/ports"
18+ "github.com/bnema/neferwl/internal/ports"
1919 )
2020
2121 // defaultBinds use the config syntax and go through the same parser as user binds.
@@ -71,7 +71,7 @@ func DefaultPath() string {
7171 base = filepath.Join(home, ".config")
7272 }
7373 }
74- return filepath.Join(base, "nefertty", "config")
74+ return filepath.Join(base, "neferwl", "config")
7575 }
7676
7777 func Defaults() ports.Config {
@@ -15,7 +15,7 @@ import (
15 "strings"15 "strings"
16 "unicode"16 "unicode"
17 17
18- "github.com/bnema/nefertty/internal/ports"18+ "github.com/bnema/neferwl/internal/ports"
19 )19 )
20 20
21 // defaultBinds use the config syntax and go through the same parser as user binds.21 // defaultBinds use the config syntax and go through the same parser as user binds.
@@ -71,7 +71,7 @@ func DefaultPath() string {
71 base = filepath.Join(home, ".config")71 base = filepath.Join(home, ".config")
72 }72 }
73 }73 }
74- return filepath.Join(base, "nefertty", "config")74+ return filepath.Join(base, "neferwl", "config")
75 }75 }
76 76
77 func Defaults() ports.Config {77 func Defaults() ports.Config {
M internal/adapters/config/config_test.go +2 -2
@@ -7,7 +7,7 @@ import (
77 "strings"
88 "testing"
99
10- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/ports"
1111 )
1212
1313 func parseString(t *testing.T, s string) (ports.Config, []Warning) {
@@ -34,7 +34,7 @@ func TestDefaultsAndLoad(t *testing.T) {
3434 t.Fatalf("explicit missing: %v", err)
3535 }
3636 t.Setenv("XDG_CONFIG_HOME", t.TempDir())
37- if DefaultPath() != filepath.Join(os.Getenv("XDG_CONFIG_HOME"), "nefertty", "config") {
37+ if DefaultPath() != filepath.Join(os.Getenv("XDG_CONFIG_HOME"), "neferwl", "config") {
3838 t.Fatal(DefaultPath())
3939 }
4040 got, w, err := LoadDefault()
@@ -7,7 +7,7 @@ import (
7 "strings"7 "strings"
8 "testing"8 "testing"
9 9
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 )11 )
12 12
13 func parseString(t *testing.T, s string) (ports.Config, []Warning) {13 func parseString(t *testing.T, s string) (ports.Config, []Warning) {
@@ -34,7 +34,7 @@ func TestDefaultsAndLoad(t *testing.T) {
34 t.Fatalf("explicit missing: %v", err)34 t.Fatalf("explicit missing: %v", err)
35 }35 }
36 t.Setenv("XDG_CONFIG_HOME", t.TempDir())36 t.Setenv("XDG_CONFIG_HOME", t.TempDir())
37- if DefaultPath() != filepath.Join(os.Getenv("XDG_CONFIG_HOME"), "nefertty", "config") {37+ if DefaultPath() != filepath.Join(os.Getenv("XDG_CONFIG_HOME"), "neferwl", "config") {
38 t.Fatal(DefaultPath())38 t.Fatal(DefaultPath())
39 }39 }
40 got, w, err := LoadDefault()40 got, w, err := LoadDefault()
M internal/adapters/config/watch.go +1 -1
@@ -9,7 +9,7 @@ import (
99 "time"
1010 "unsafe"
1111
12- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 "github.com/bnema/zerowrap"
1414 "golang.org/x/sys/unix"
1515 )
@@ -9,7 +9,7 @@ import (
9 "time"9 "time"
10 "unsafe"10 "unsafe"
11 11
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 "github.com/bnema/zerowrap"13 "github.com/bnema/zerowrap"
14 "golang.org/x/sys/unix"14 "golang.org/x/sys/unix"
15 )15 )
M internal/adapters/config/watch_test.go +2 -2
@@ -7,8 +7,8 @@ import (
77 "testing"
88 "time"
99
10- "github.com/bnema/nefertty/internal/logging"
11- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/logging"
11+ "github.com/bnema/neferwl/internal/ports"
1212 )
1313
1414 func TestWatch(t *testing.T) {
@@ -7,8 +7,8 @@ import (
7 "testing"7 "testing"
8 "time"8 "time"
9 9
10- "github.com/bnema/nefertty/internal/logging"10+ "github.com/bnema/neferwl/internal/logging"
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 )12 )
13 13
14 func TestWatch(t *testing.T) {14 func TestWatch(t *testing.T) {
M internal/adapters/drm/atomic.go +1 -1
@@ -9,7 +9,7 @@ import (
99 "time"
1010 "unsafe"
1111
12- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 )
1414
1515 // Atomic KMS (ADR 015): every change on screen is one atomic commit. A
@@ -9,7 +9,7 @@ import (
9 "time"9 "time"
10 "unsafe"10 "unsafe"
11 11
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 )13 )
14 14
15 // Atomic KMS (ADR 015): every change on screen is one atomic commit. A15 // Atomic KMS (ADR 015): every change on screen is one atomic commit. A
M internal/adapters/drm/card.go +1 -1
@@ -8,7 +8,7 @@ import (
88 "sync"
99 "sync/atomic"
1010
11- "github.com/bnema/nefertty/internal/ports"
11+ "github.com/bnema/neferwl/internal/ports"
1212 "github.com/bnema/zerowrap"
1313 "golang.org/x/sys/unix"
1414 )
@@ -8,7 +8,7 @@ import (
8 "sync"8 "sync"
9 "sync/atomic"9 "sync/atomic"
10 10
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 "github.com/bnema/zerowrap"12 "github.com/bnema/zerowrap"
13 "golang.org/x/sys/unix"13 "golang.org/x/sys/unix"
14 )14 )
M internal/adapters/drm/commit_test.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "testing"
77 "time"
88
9- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"
10- "github.com/bnema/nefertty/internal/ports"
9+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
10+ "github.com/bnema/neferwl/internal/ports"
1111 "github.com/stretchr/testify/mock"
1212 "golang.org/x/sys/unix"
1313 )
@@ -6,8 +6,8 @@ import (
6 "testing"6 "testing"
7 "time"7 "time"
8 8
9- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"9+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 "github.com/stretchr/testify/mock"11 "github.com/stretchr/testify/mock"
12 "golang.org/x/sys/unix"12 "golang.org/x/sys/unix"
13 )13 )
M internal/adapters/drm/cursor.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "slices"
66 "sync"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // Hardware cursor on the CRTC's cursor plane. Move and Hide come from the
@@ -5,7 +5,7 @@ import (
5 "slices"5 "slices"
6 "sync"6 "sync"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // Hardware cursor on the CRTC's cursor plane. Move and Hide come from the11 // Hardware cursor on the CRTC's cursor plane. Move and Hide come from the
M internal/adapters/drm/kms.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "math"
77 "unsafe"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "golang.org/x/sys/unix"
1111 )
1212
@@ -6,7 +6,7 @@ import (
6 "math"6 "math"
7 "unsafe"7 "unsafe"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
11 )11 )
12 12
M internal/adapters/drm/kms_mock_test.go +1 -1
@@ -5,7 +5,7 @@
55 package drm
66
77 import (
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 mock "github.com/stretchr/testify/mock"
1010 )
1111
@@ -5,7 +5,7 @@
5 package drm5 package drm
6 6
7 import (7 import (
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 mock "github.com/stretchr/testify/mock"9 mock "github.com/stretchr/testify/mock"
10 )10 )
11 11
M internal/adapters/drm/kms_test.go +1 -1
@@ -7,7 +7,7 @@ import (
77 "time"
88 "unsafe"
99
10- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/ports"
1111 )
1212
1313 func TestStructSizesMatchIoctls(t *testing.T) {
@@ -7,7 +7,7 @@ import (
7 "time"7 "time"
8 "unsafe"8 "unsafe"
9 9
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 )11 )
12 12
13 func TestStructSizesMatchIoctls(t *testing.T) {13 func TestStructSizesMatchIoctls(t *testing.T) {
M internal/adapters/drm/output.go +2 -2
@@ -11,8 +11,8 @@ import (
1111 "time"
1212 "unsafe"
1313
14- "github.com/bnema/nefertty/internal/adapters/syncfile"
15- "github.com/bnema/nefertty/internal/ports"
14+ "github.com/bnema/neferwl/internal/adapters/syncfile"
15+ "github.com/bnema/neferwl/internal/ports"
1616 "github.com/bnema/zerowrap"
1717 "golang.org/x/sys/unix"
1818 )
@@ -11,8 +11,8 @@ import (
11 "time"11 "time"
12 "unsafe"12 "unsafe"
13 13
14- "github.com/bnema/nefertty/internal/adapters/syncfile"14+ "github.com/bnema/neferwl/internal/adapters/syncfile"
15- "github.com/bnema/nefertty/internal/ports"15+ "github.com/bnema/neferwl/internal/ports"
16 "github.com/bnema/zerowrap"16 "github.com/bnema/zerowrap"
17 "golang.org/x/sys/unix"17 "golang.org/x/sys/unix"
18 )18 )
M internal/adapters/drm/output_test.go +2 -2
@@ -8,8 +8,8 @@ import (
88 "testing"
99 "time"
1010
11- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"
12- "github.com/bnema/nefertty/internal/ports"
11+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 "github.com/bnema/zerowrap"
1414 "github.com/stretchr/testify/mock"
1515 "golang.org/x/sys/unix"
@@ -8,8 +8,8 @@ import (
8 "testing"8 "testing"
9 "time"9 "time"
10 10
11- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"11+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 "github.com/bnema/zerowrap"13 "github.com/bnema/zerowrap"
14 "github.com/stretchr/testify/mock"14 "github.com/stretchr/testify/mock"
15 "golang.org/x/sys/unix"15 "golang.org/x/sys/unix"
M internal/adapters/drm/overlay.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "os"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "golang.org/x/sys/unix"
1010 )
1111
@@ -5,7 +5,7 @@ import (
5 "os"5 "os"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "golang.org/x/sys/unix"9 "golang.org/x/sys/unix"
10 )10 )
11 11
M internal/adapters/drm/overlay_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "github.com/stretchr/testify/mock"
1010 "golang.org/x/sys/unix"
1111 )
@@ -5,7 +5,7 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "github.com/stretchr/testify/mock"9 "github.com/stretchr/testify/mock"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
11 )11 )
M internal/adapters/drm/scanout.go +1 -1
@@ -7,7 +7,7 @@ import (
77 "time"
88 "unsafe"
99
10- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/ports"
1111 "golang.org/x/sys/unix"
1212 )
1313
@@ -7,7 +7,7 @@ import (
7 "time"7 "time"
8 "unsafe"8 "unsafe"
9 9
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 "golang.org/x/sys/unix"11 "golang.org/x/sys/unix"
12 )12 )
13 13
M internal/adapters/drm/scanout_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/stretchr/testify/mock"
99 )
1010
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/stretchr/testify/mock"8 "github.com/stretchr/testify/mock"
9 )9 )
10 10
M internal/adapters/drm/stuck_test.go +2 -2
@@ -8,8 +8,8 @@ import (
88 "testing"
99 "time"
1010
11- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"
12- "github.com/bnema/nefertty/internal/ports"
11+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 "github.com/stretchr/testify/mock"
1414 "golang.org/x/sys/unix"
1515 )
@@ -8,8 +8,8 @@ import (
8 "testing"8 "testing"
9 "time"9 "time"
10 10
11- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"11+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 "github.com/stretchr/testify/mock"13 "github.com/stretchr/testify/mock"
14 "golang.org/x/sys/unix"14 "golang.org/x/sys/unix"
15 )15 )
M internal/adapters/headless/cursor.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "image"
55 "sync"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // Cursor is the software cursor drawn into screenshots; it plays the role of
@@ -4,7 +4,7 @@ import (
4 "image"4 "image"
5 "sync"5 "sync"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // Cursor is the software cursor drawn into screenshots; it plays the role of10 // Cursor is the software cursor drawn into screenshots; it plays the role of
M internal/adapters/headless/cursor_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "image/color"
66 "testing"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 func TestCursorDraw(t *testing.T) {
@@ -5,7 +5,7 @@ import (
5 "image/color"5 "image/color"
6 "testing"6 "testing"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 func TestCursorDraw(t *testing.T) {11 func TestCursorDraw(t *testing.T) {
M internal/adapters/headless/output.go +2 -2
@@ -11,8 +11,8 @@ import (
1111 "path/filepath"
1212 "time"
1313
14- "github.com/bnema/nefertty/internal/adapters/syncfile"
15- "github.com/bnema/nefertty/internal/ports"
14+ "github.com/bnema/neferwl/internal/adapters/syncfile"
15+ "github.com/bnema/neferwl/internal/ports"
1616 "github.com/bnema/zerowrap"
1717 )
1818
@@ -11,8 +11,8 @@ import (
11 "path/filepath"11 "path/filepath"
12 "time"12 "time"
13 13
14- "github.com/bnema/nefertty/internal/adapters/syncfile"14+ "github.com/bnema/neferwl/internal/adapters/syncfile"
15- "github.com/bnema/nefertty/internal/ports"15+ "github.com/bnema/neferwl/internal/ports"
16 "github.com/bnema/zerowrap"16 "github.com/bnema/zerowrap"
17 )17 )
18 18
M internal/adapters/headless/output_test.go +2 -2
@@ -12,8 +12,8 @@ import (
1212 "testing"
1313 "time"
1414
15- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"
16- "github.com/bnema/nefertty/internal/ports"
15+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
16+ "github.com/bnema/neferwl/internal/ports"
1717 "github.com/stretchr/testify/mock"
1818 )
1919
@@ -12,8 +12,8 @@ import (
12 "testing"12 "testing"
13 "time"13 "time"
14 14
15- portsmocks "github.com/bnema/nefertty/internal/mocks/ports"15+ portsmocks "github.com/bnema/neferwl/internal/mocks/ports"
16- "github.com/bnema/nefertty/internal/ports"16+ "github.com/bnema/neferwl/internal/ports"
17 "github.com/stretchr/testify/mock"17 "github.com/stretchr/testify/mock"
18 )18 )
19 19
M internal/adapters/headlessinput/input.go +2 -2
@@ -9,8 +9,8 @@ import (
99 "time"
1010 "unicode"
1111
12- "github.com/bnema/nefertty/internal/adapters/xkb"
13- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/adapters/xkb"
13+ "github.com/bnema/neferwl/internal/ports"
1414 "github.com/bnema/zerowrap"
1515 )
1616
@@ -9,8 +9,8 @@ import (
9 "time"9 "time"
10 "unicode"10 "unicode"
11 11
12- "github.com/bnema/nefertty/internal/adapters/xkb"12+ "github.com/bnema/neferwl/internal/adapters/xkb"
13- "github.com/bnema/nefertty/internal/ports"13+ "github.com/bnema/neferwl/internal/ports"
14 "github.com/bnema/zerowrap"14 "github.com/bnema/zerowrap"
15 )15 )
16 16
M internal/adapters/headlessinput/input_test.go +3 -3
@@ -2,9 +2,9 @@ package headlessinput
22
33 import (
44 "context"
5- "github.com/bnema/nefertty/internal/adapters/xkb"
6- "github.com/bnema/nefertty/internal/logging"
7- "github.com/bnema/nefertty/internal/ports"
5+ "github.com/bnema/neferwl/internal/adapters/xkb"
6+ "github.com/bnema/neferwl/internal/logging"
7+ "github.com/bnema/neferwl/internal/ports"
88 "strings"
99 "testing"
1010 )
@@ -2,9 +2,9 @@ package headlessinput
2 2
3 import (3 import (
4 "context"4 "context"
5- "github.com/bnema/nefertty/internal/adapters/xkb"5+ "github.com/bnema/neferwl/internal/adapters/xkb"
6- "github.com/bnema/nefertty/internal/logging"6+ "github.com/bnema/neferwl/internal/logging"
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "strings"8 "strings"
9 "testing"9 "testing"
10 )10 )
M internal/adapters/launcher/launcher.go +2 -2
@@ -11,7 +11,7 @@ import (
1111 "strings"
1212 "syscall"
1313
14- "github.com/bnema/nefertty/internal/ports"
14+ "github.com/bnema/neferwl/internal/ports"
1515 "github.com/bnema/zerowrap"
1616 )
1717
@@ -38,7 +38,7 @@ func ChildEnv(base []string, waylandDisplay, runtimeDir string, cursorSize int)
3838 }
3939 values["WAYLAND_DISPLAY"] = waylandDisplay
4040 values["XDG_RUNTIME_DIR"] = runtimeDir
41- values["XDG_CURRENT_DESKTOP"] = "nefertty"
41+ values["XDG_CURRENT_DESKTOP"] = "neferwl"
4242 values["XDG_SESSION_TYPE"] = "wayland"
4343 // X11 apps (through Xwayland) and toolkits pick their own cursor size:
4444 // give them the compositor's.
@@ -11,7 +11,7 @@ import (
11 "strings"11 "strings"
12 "syscall"12 "syscall"
13 13
14- "github.com/bnema/nefertty/internal/ports"14+ "github.com/bnema/neferwl/internal/ports"
15 "github.com/bnema/zerowrap"15 "github.com/bnema/zerowrap"
16 )16 )
17 17
@@ -38,7 +38,7 @@ func ChildEnv(base []string, waylandDisplay, runtimeDir string, cursorSize int)
38 }38 }
39 values["WAYLAND_DISPLAY"] = waylandDisplay39 values["WAYLAND_DISPLAY"] = waylandDisplay
40 values["XDG_RUNTIME_DIR"] = runtimeDir40 values["XDG_RUNTIME_DIR"] = runtimeDir
41- values["XDG_CURRENT_DESKTOP"] = "nefertty"41+ values["XDG_CURRENT_DESKTOP"] = "neferwl"
42 values["XDG_SESSION_TYPE"] = "wayland"42 values["XDG_SESSION_TYPE"] = "wayland"
43 // X11 apps (through Xwayland) and toolkits pick their own cursor size:43 // X11 apps (through Xwayland) and toolkits pick their own cursor size:
44 // give them the compositor's.44 // give them the compositor's.
M internal/adapters/launcher/launcher_test.go +6 -6
@@ -9,13 +9,13 @@ import (
99 "testing"
1010 "time"
1111
12- "github.com/bnema/nefertty/internal/logging"
13- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/logging"
13+ "github.com/bnema/neferwl/internal/ports"
1414 )
1515
1616 func TestChildEnv(t *testing.T) {
1717 got := ChildEnv([]string{"TERM=x", "DISPLAY=:0", "WAYLAND_SOCKET=4", "WAYLAND_DISPLAY=old", "HOME=/home/me", "PATH=/bin", "LC_ALL=C", "XDG_RUNTIME_DIR=old", "XCURSOR_THEME=Adwaita", "XCURSOR_PATH=/icons", "SECRET=bad", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus"}, "wayland-7", "/run/me", 24)
18- want := []string{"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus", "HOME=/home/me", "LC_ALL=C", "PATH=/bin", "WAYLAND_DISPLAY=wayland-7", "XCURSOR_PATH=/icons", "XCURSOR_SIZE=24", "XCURSOR_THEME=Adwaita", "XDG_CURRENT_DESKTOP=nefertty", "XDG_RUNTIME_DIR=/run/me", "XDG_SESSION_TYPE=wayland"}
18+ want := []string{"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus", "HOME=/home/me", "LC_ALL=C", "PATH=/bin", "WAYLAND_DISPLAY=wayland-7", "XCURSOR_PATH=/icons", "XCURSOR_SIZE=24", "XCURSOR_THEME=Adwaita", "XDG_CURRENT_DESKTOP=neferwl", "XDG_RUNTIME_DIR=/run/me", "XDG_SESSION_TYPE=wayland"}
1919 if !reflect.DeepEqual(got, want) {
2020 t.Fatalf("got %v want %v", got, want)
2121 }
@@ -38,9 +38,9 @@ func TestRun(t *testing.T) {
3838 done <- New([]string{"PATH=/bin", "FILE=" + file}, logging.For(ctx, "launcher")).Run(ctx, reqs)
3939 }()
4040 reqs <- ports.SpawnRequest{}
41- reqs <- ports.SpawnRequest{Argv: []string{"nonexistent-nefertty-binary"}}
41+ reqs <- ports.SpawnRequest{Argv: []string{"nonexistent-neferwl-binary"}}
4242 // Env adds to the child environment (slot tokens).
43- reqs <- ports.SpawnRequest{Argv: []string{"sh", "-c", "echo ok$NEFERTTY_SLOT > $FILE"}, Env: []string{"NEFERTTY_SLOT=7"}}
43+ reqs <- ports.SpawnRequest{Argv: []string{"sh", "-c", "echo ok$NEFERWL_SLOT > $FILE"}, Env: []string{"NEFERWL_SLOT=7"}}
4444 deadline := time.After(3 * time.Second)
4545 for {
4646 data, err := os.ReadFile(file)
@@ -69,7 +69,7 @@ func TestRun(t *testing.T) {
6969
7070 func TestChildPath(t *testing.T) {
7171 dir := t.TempDir()
72- name := "nefertty-child-only-script"
72+ name := "neferwl-child-only-script"
7373 result := filepath.Join(dir, "result")
7474 if err := os.WriteFile(filepath.Join(dir, name), []byte("#!/bin/sh\nprintf ok > \"$1\"\n"), 0700); err != nil {
7575 t.Fatal(err)
@@ -9,13 +9,13 @@ import (
9 "testing"9 "testing"
10 "time"10 "time"
11 11
12- "github.com/bnema/nefertty/internal/logging"12+ "github.com/bnema/neferwl/internal/logging"
13- "github.com/bnema/nefertty/internal/ports"13+ "github.com/bnema/neferwl/internal/ports"
14 )14 )
15 15
16 func TestChildEnv(t *testing.T) {16 func TestChildEnv(t *testing.T) {
17 got := ChildEnv([]string{"TERM=x", "DISPLAY=:0", "WAYLAND_SOCKET=4", "WAYLAND_DISPLAY=old", "HOME=/home/me", "PATH=/bin", "LC_ALL=C", "XDG_RUNTIME_DIR=old", "XCURSOR_THEME=Adwaita", "XCURSOR_PATH=/icons", "SECRET=bad", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus"}, "wayland-7", "/run/me", 24)17 got := ChildEnv([]string{"TERM=x", "DISPLAY=:0", "WAYLAND_SOCKET=4", "WAYLAND_DISPLAY=old", "HOME=/home/me", "PATH=/bin", "LC_ALL=C", "XDG_RUNTIME_DIR=old", "XCURSOR_THEME=Adwaita", "XCURSOR_PATH=/icons", "SECRET=bad", "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus"}, "wayland-7", "/run/me", 24)
18- want := []string{"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus", "HOME=/home/me", "LC_ALL=C", "PATH=/bin", "WAYLAND_DISPLAY=wayland-7", "XCURSOR_PATH=/icons", "XCURSOR_SIZE=24", "XCURSOR_THEME=Adwaita", "XDG_CURRENT_DESKTOP=nefertty", "XDG_RUNTIME_DIR=/run/me", "XDG_SESSION_TYPE=wayland"}18+ want := []string{"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/me/bus", "HOME=/home/me", "LC_ALL=C", "PATH=/bin", "WAYLAND_DISPLAY=wayland-7", "XCURSOR_PATH=/icons", "XCURSOR_SIZE=24", "XCURSOR_THEME=Adwaita", "XDG_CURRENT_DESKTOP=neferwl", "XDG_RUNTIME_DIR=/run/me", "XDG_SESSION_TYPE=wayland"}
19 if !reflect.DeepEqual(got, want) {19 if !reflect.DeepEqual(got, want) {
20 t.Fatalf("got %v want %v", got, want)20 t.Fatalf("got %v want %v", got, want)
21 }21 }
@@ -38,9 +38,9 @@ func TestRun(t *testing.T) {
38 done <- New([]string{"PATH=/bin", "FILE=" + file}, logging.For(ctx, "launcher")).Run(ctx, reqs)38 done <- New([]string{"PATH=/bin", "FILE=" + file}, logging.For(ctx, "launcher")).Run(ctx, reqs)
39 }()39 }()
40 reqs <- ports.SpawnRequest{}40 reqs <- ports.SpawnRequest{}
41- reqs <- ports.SpawnRequest{Argv: []string{"nonexistent-nefertty-binary"}}41+ reqs <- ports.SpawnRequest{Argv: []string{"nonexistent-neferwl-binary"}}
42 // Env adds to the child environment (slot tokens).42 // Env adds to the child environment (slot tokens).
43- reqs <- ports.SpawnRequest{Argv: []string{"sh", "-c", "echo ok$NEFERTTY_SLOT > $FILE"}, Env: []string{"NEFERTTY_SLOT=7"}}43+ reqs <- ports.SpawnRequest{Argv: []string{"sh", "-c", "echo ok$NEFERWL_SLOT > $FILE"}, Env: []string{"NEFERWL_SLOT=7"}}
44 deadline := time.After(3 * time.Second)44 deadline := time.After(3 * time.Second)
45 for {45 for {
46 data, err := os.ReadFile(file)46 data, err := os.ReadFile(file)
@@ -69,7 +69,7 @@ func TestRun(t *testing.T) {
69 69
70 func TestChildPath(t *testing.T) {70 func TestChildPath(t *testing.T) {
71 dir := t.TempDir()71 dir := t.TempDir()
72- name := "nefertty-child-only-script"72+ name := "neferwl-child-only-script"
73 result := filepath.Join(dir, "result")73 result := filepath.Join(dir, "result")
74 if err := os.WriteFile(filepath.Join(dir, name), []byte("#!/bin/sh\nprintf ok > \"$1\"\n"), 0700); err != nil {74 if err := os.WriteFile(filepath.Join(dir, name), []byte("#!/bin/sh\nprintf ok > \"$1\"\n"), 0700); err != nil {
75 t.Fatal(err)75 t.Fatal(err)
M internal/adapters/launcher/session_test.go +1 -1
@@ -7,7 +7,7 @@ import (
77 "strings"
88 "testing"
99
10- "github.com/bnema/nefertty/internal/logging"
10+ "github.com/bnema/neferwl/internal/logging"
1111 )
1212
1313 // The session commands run with the child environment and the right
@@ -7,7 +7,7 @@ import (
7 "strings"7 "strings"
8 "testing"8 "testing"
9 9
10- "github.com/bnema/nefertty/internal/logging"10+ "github.com/bnema/neferwl/internal/logging"
11 )11 )
12 12
13 // The session commands run with the child environment and the right13 // The session commands run with the child environment and the right
M internal/adapters/libinput/forward.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "sync"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "github.com/bnema/zerowrap"
1010 )
1111
@@ -5,7 +5,7 @@ import (
5 "sync"5 "sync"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "github.com/bnema/zerowrap"9 "github.com/bnema/zerowrap"
10 )10 )
11 11
M internal/adapters/libinput/forward_test.go +1 -1
@@ -8,7 +8,7 @@ import (
88 "testing"
99 "time"
1010
11- "github.com/bnema/nefertty/internal/ports"
11+ "github.com/bnema/neferwl/internal/ports"
1212 "github.com/bnema/zerowrap"
1313 "github.com/rs/zerolog"
1414 )
@@ -8,7 +8,7 @@ import (
8 "testing"8 "testing"
9 "time"9 "time"
10 10
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 "github.com/bnema/zerowrap"12 "github.com/bnema/zerowrap"
13 "github.com/rs/zerolog"13 "github.com/rs/zerolog"
14 )14 )
M internal/adapters/libinput/libinput.go +2 -2
@@ -10,8 +10,8 @@ import (
1010 "time"
1111 "unsafe"
1212
13- "github.com/bnema/nefertty/internal/adapters/xkb"
14- "github.com/bnema/nefertty/internal/ports"
13+ "github.com/bnema/neferwl/internal/adapters/xkb"
14+ "github.com/bnema/neferwl/internal/ports"
1515 "github.com/bnema/purego"
1616 "github.com/bnema/zerowrap"
1717 "golang.org/x/sys/unix"
@@ -10,8 +10,8 @@ import (
10 "time"10 "time"
11 "unsafe"11 "unsafe"
12 12
13- "github.com/bnema/nefertty/internal/adapters/xkb"13+ "github.com/bnema/neferwl/internal/adapters/xkb"
14- "github.com/bnema/nefertty/internal/ports"14+ "github.com/bnema/neferwl/internal/ports"
15 "github.com/bnema/purego"15 "github.com/bnema/purego"
16 "github.com/bnema/zerowrap"16 "github.com/bnema/zerowrap"
17 "golang.org/x/sys/unix"17 "golang.org/x/sys/unix"
M internal/adapters/libinput/libinput_test.go +1 -1
@@ -3,7 +3,7 @@ package libinput
33 import (
44 "testing"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 func TestHotkey(t *testing.T) {
@@ -3,7 +3,7 @@ package libinput
3 import (3 import (
4 "testing"4 "testing"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 func TestHotkey(t *testing.T) {9 func TestHotkey(t *testing.T) {
M internal/adapters/statefile/statefile.go +5 -5
@@ -1,5 +1,5 @@
11 // Package statefile publishes core's state as JSON for scripts, and reads it
2-// back for the `nefertty state` command. The JSON format is defined here,
2+// back for the `neferwl state` command. The JSON format is defined here,
33 // not in ports: it is a public interface scripts depend on.
44 package statefile
55
@@ -13,12 +13,12 @@ import (
1313 "strconv"
1414 "strings"
1515
16- "github.com/bnema/nefertty/internal/ports"
16+ "github.com/bnema/neferwl/internal/ports"
1717 "github.com/bnema/zerowrap"
1818 )
1919
20-// Env names the state file in the environment of processes nefertty starts.
21-const Env = "NEFERTTY_STATE"
20+// Env names the state file in the environment of processes neferwl starts.
21+const Env = "NEFERWL_STATE"
2222
2323 // Path is the state file of the session on a wayland socket: one per
2424 // session, so nested or test instances never overwrite each other.
@@ -27,7 +27,7 @@ func Path(runtimeDir, socket string) (string, error) {
2727 if runtimeDir == "" || socket == "" || socket == "." || socket == "/" {
2828 return "", errors.New("XDG_RUNTIME_DIR and WAYLAND_DISPLAY must be set")
2929 }
30- return filepath.Join(runtimeDir, "nefertty", socket+".json"), nil
30+ return filepath.Join(runtimeDir, "neferwl", socket+".json"), nil
3131 }
3232
3333 // State is the file format.
@@ -1,5 +1,5 @@
1 // Package statefile publishes core's state as JSON for scripts, and reads it1 // Package statefile publishes core's state as JSON for scripts, and reads it
2-// back for the `nefertty state` command. The JSON format is defined here,2+// back for the `neferwl state` command. The JSON format is defined here,
3 // not in ports: it is a public interface scripts depend on.3 // not in ports: it is a public interface scripts depend on.
4 package statefile4 package statefile
5 5
@@ -13,12 +13,12 @@ import (
13 "strconv"13 "strconv"
14 "strings"14 "strings"
15 15
16- "github.com/bnema/nefertty/internal/ports"16+ "github.com/bnema/neferwl/internal/ports"
17 "github.com/bnema/zerowrap"17 "github.com/bnema/zerowrap"
18 )18 )
19 19
20-// Env names the state file in the environment of processes nefertty starts.20+// Env names the state file in the environment of processes neferwl starts.
21-const Env = "NEFERTTY_STATE"21+const Env = "NEFERWL_STATE"
22 22
23 // Path is the state file of the session on a wayland socket: one per23 // Path is the state file of the session on a wayland socket: one per
24 // session, so nested or test instances never overwrite each other.24 // session, so nested or test instances never overwrite each other.
@@ -27,7 +27,7 @@ func Path(runtimeDir, socket string) (string, error) {
27 if runtimeDir == "" || socket == "" || socket == "." || socket == "/" {27 if runtimeDir == "" || socket == "" || socket == "." || socket == "/" {
28 return "", errors.New("XDG_RUNTIME_DIR and WAYLAND_DISPLAY must be set")28 return "", errors.New("XDG_RUNTIME_DIR and WAYLAND_DISPLAY must be set")
29 }29 }
30- return filepath.Join(runtimeDir, "nefertty", socket+".json"), nil30+ return filepath.Join(runtimeDir, "neferwl", socket+".json"), nil
31 }31 }
32 32
33 // State is the file format.33 // State is the file format.
M internal/adapters/statefile/statefile_test.go +2 -2
@@ -9,7 +9,7 @@ import (
99 "testing"
1010 "time"
1111
12- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 "github.com/bnema/zerowrap"
1414 )
1515
@@ -62,7 +62,7 @@ func TestRunWritesAndRemoves(t *testing.T) {
6262 }
6363
6464 func TestPath(t *testing.T) {
65- if p, err := Path("/run/user/1", "/run/user/1/wayland-1"); err != nil || p != "/run/user/1/nefertty/wayland-1.json" {
65+ if p, err := Path("/run/user/1", "/run/user/1/wayland-1"); err != nil || p != "/run/user/1/neferwl/wayland-1.json" {
6666 t.Fatal(p, err)
6767 }
6868 for _, c := range [][2]string{{"", "wayland-1"}, {"/run/user/1", ""}} {
@@ -9,7 +9,7 @@ import (
9 "testing"9 "testing"
10 "time"10 "time"
11 11
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 "github.com/bnema/zerowrap"13 "github.com/bnema/zerowrap"
14 )14 )
15 15
@@ -62,7 +62,7 @@ func TestRunWritesAndRemoves(t *testing.T) {
62 }62 }
63 63
64 func TestPath(t *testing.T) {64 func TestPath(t *testing.T) {
65- if p, err := Path("/run/user/1", "/run/user/1/wayland-1"); err != nil || p != "/run/user/1/nefertty/wayland-1.json" {65+ if p, err := Path("/run/user/1", "/run/user/1/wayland-1"); err != nil || p != "/run/user/1/neferwl/wayland-1.json" {
66 t.Fatal(p, err)66 t.Fatal(p, err)
67 }67 }
68 for _, c := range [][2]string{{"", "wayland-1"}, {"/run/user/1", ""}} {68 for _, c := range [][2]string{{"", "wayland-1"}, {"/run/user/1", ""}} {
M internal/adapters/vulkan/compose_test.go +2 -2
@@ -8,8 +8,8 @@ import (
88 "testing"
99 "time"
1010
11- "github.com/bnema/nefertty/internal/adapters/syncfile"
12- "github.com/bnema/nefertty/internal/ports"
11+ "github.com/bnema/neferwl/internal/adapters/syncfile"
12+ "github.com/bnema/neferwl/internal/ports"
1313 )
1414
1515 // near reports whether two colors are within tol per channel.
@@ -8,8 +8,8 @@ import (
8 "testing"8 "testing"
9 "time"9 "time"
10 10
11- "github.com/bnema/nefertty/internal/adapters/syncfile"11+ "github.com/bnema/neferwl/internal/adapters/syncfile"
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 )13 )
14 14
15 // near reports whether two colors are within tol per channel.15 // near reports whether two colors are within tol per channel.
M internal/adapters/vulkan/cursor.go +2 -2
@@ -6,7 +6,7 @@ import (
66 "os"
77 "unsafe"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 vk "github.com/bnema/purego-vulkan/vulkan"
1111 )
1212
@@ -97,7 +97,7 @@ func (r *Renderer) cursorImage(size int) (*cursorImage, ports.DMABuf, error) {
9797 if err := checked("vkGetMemoryFdKHR(cursor)", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {
9898 return nil, ports.DMABuf{}, err
9999 }
100- f := os.NewFile(uintptr(fd), "nefertty-cursor")
100+ f := os.NewFile(uintptr(fd), "neferwl-cursor")
101101 if f == nil {
102102 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)
103103 }
@@ -6,7 +6,7 @@ import (
6 "os"6 "os"
7 "unsafe"7 "unsafe"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 vk "github.com/bnema/purego-vulkan/vulkan"10 vk "github.com/bnema/purego-vulkan/vulkan"
11 )11 )
12 12
@@ -97,7 +97,7 @@ func (r *Renderer) cursorImage(size int) (*cursorImage, ports.DMABuf, error) {
97 if err := checked("vkGetMemoryFdKHR(cursor)", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {97 if err := checked("vkGetMemoryFdKHR(cursor)", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {
98 return nil, ports.DMABuf{}, err98 return nil, ports.DMABuf{}, err
99 }99 }
100- f := os.NewFile(uintptr(fd), "nefertty-cursor")100+ f := os.NewFile(uintptr(fd), "neferwl-cursor")
101 if f == nil {101 if f == nil {
102 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)102 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)
103 }103 }
M internal/adapters/vulkan/damage.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "image"
55 "math"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // Damage: an output target keeps what it holds (scene Seq, each window's
@@ -4,7 +4,7 @@ import (
4 "image"4 "image"
5 "math"5 "math"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // Damage: an output target keeps what it holds (scene Seq, each window's10 // Damage: an output target keeps what it holds (scene Seq, each window's
M internal/adapters/vulkan/damage_test.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "os"
77 "testing"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 )
1111
1212 // damagedContent writes px into the content's pool (the client drawing
@@ -6,7 +6,7 @@ import (
6 "os"6 "os"
7 "testing"7 "testing"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 )10 )
11 11
12 // damagedContent writes px into the content's pool (the client drawing12 // damagedContent writes px into the content's pool (the client drawing
M internal/adapters/vulkan/dmabuf.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "slices"
77 "unsafe"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 vk "github.com/bnema/purego-vulkan/vulkan"
1111 "golang.org/x/sys/unix"
1212 )
@@ -6,7 +6,7 @@ import (
6 "slices"6 "slices"
7 "unsafe"7 "unsafe"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 vk "github.com/bnema/purego-vulkan/vulkan"10 vk "github.com/bnema/purego-vulkan/vulkan"
11 "golang.org/x/sys/unix"11 "golang.org/x/sys/unix"
12 )12 )
M internal/adapters/vulkan/dmabuf_test.go +1 -1
@@ -8,7 +8,7 @@ import (
88 "testing"
99 "unsafe"
1010
11- "github.com/bnema/nefertty/internal/ports"
11+ "github.com/bnema/neferwl/internal/ports"
1212 "golang.org/x/sys/unix"
1313 )
1414
@@ -8,7 +8,7 @@ import (
8 "testing"8 "testing"
9 "unsafe"9 "unsafe"
10 10
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 "golang.org/x/sys/unix"12 "golang.org/x/sys/unix"
13 )13 )
14 14
M internal/adapters/vulkan/frame.go +2 -2
@@ -9,7 +9,7 @@ import (
99 "slices"
1010 "unsafe"
1111
12- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313 vk "github.com/bnema/purego-vulkan/vulkan"
1414 )
1515
@@ -293,7 +293,7 @@ func (r *Renderer) Render(s ports.Scene, contents map[ports.WindowID]ports.Surfa
293293 // Already signalled: the driver may return -1.
294294 return nil, r.waitFrame(frame)
295295 }
296- f := os.NewFile(uintptr(fd), "nefertty-frame")
296+ f := os.NewFile(uintptr(fd), "neferwl-frame")
297297 if f == nil {
298298 return nil, fmt.Errorf("invalid frame sync file %d", fd)
299299 }
@@ -9,7 +9,7 @@ import (
9 "slices"9 "slices"
10 "unsafe"10 "unsafe"
11 11
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 vk "github.com/bnema/purego-vulkan/vulkan"13 vk "github.com/bnema/purego-vulkan/vulkan"
14 )14 )
15 15
@@ -293,7 +293,7 @@ func (r *Renderer) Render(s ports.Scene, contents map[ports.WindowID]ports.Surfa
293 // Already signalled: the driver may return -1.293 // Already signalled: the driver may return -1.
294 return nil, r.waitFrame(frame)294 return nil, r.waitFrame(frame)
295 }295 }
296- f := os.NewFile(uintptr(fd), "nefertty-frame")296+ f := os.NewFile(uintptr(fd), "neferwl-frame")
297 if f == nil {297 if f == nil {
298 return nil, fmt.Errorf("invalid frame sync file %d", fd)298 return nil, fmt.Errorf("invalid frame sync file %d", fd)
299 }299 }
M internal/adapters/vulkan/renderer.go +3 -3
@@ -9,7 +9,7 @@ import (
99 "strconv"
1010 "unsafe"
1111
12- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/ports"
1313
1414 vk "github.com/bnema/purego-vulkan/vulkan"
1515 )
@@ -111,10 +111,10 @@ func New(width, height int) (r *Renderer, err error) {
111111 return
112112 }
113113 index := -1
114- if value, ok := os.LookupEnv("NEFERTTY_VK_DEVICE"); ok {
114+ if value, ok := os.LookupEnv("NEFERWL_VK_DEVICE"); ok {
115115 index, err = strconv.Atoi(value)
116116 if err != nil || index < 0 || index >= int(count) {
117- err = fmt.Errorf("invalid NEFERTTY_VK_DEVICE index %q", value)
117+ err = fmt.Errorf("invalid NEFERWL_VK_DEVICE index %q", value)
118118 return
119119 }
120120 }
@@ -9,7 +9,7 @@ import (
9 "strconv"9 "strconv"
10 "unsafe"10 "unsafe"
11 11
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 13
14 vk "github.com/bnema/purego-vulkan/vulkan"14 vk "github.com/bnema/purego-vulkan/vulkan"
15 )15 )
@@ -111,10 +111,10 @@ func New(width, height int) (r *Renderer, err error) {
111 return111 return
112 }112 }
113 index := -1113 index := -1
114- if value, ok := os.LookupEnv("NEFERTTY_VK_DEVICE"); ok {114+ if value, ok := os.LookupEnv("NEFERWL_VK_DEVICE"); ok {
115 index, err = strconv.Atoi(value)115 index, err = strconv.Atoi(value)
116 if err != nil || index < 0 || index >= int(count) {116 if err != nil || index < 0 || index >= int(count) {
117- err = fmt.Errorf("invalid NEFERTTY_VK_DEVICE index %q", value)117+ err = fmt.Errorf("invalid NEFERWL_VK_DEVICE index %q", value)
118 return118 return
119 }119 }
120 }120 }
M internal/adapters/vulkan/renderer_test.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "os"
77 "testing"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "golang.org/x/sys/unix"
1111 )
1212
@@ -6,7 +6,7 @@ import (
6 "os"6 "os"
7 "testing"7 "testing"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
11 )11 )
12 12
M internal/adapters/vulkan/scene.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "math"
66 "strconv"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // sceneWalk turns one scene into quads in paint order, copying new wl_shm
@@ -5,7 +5,7 @@ import (
5 "math"5 "math"
6 "strconv"6 "strconv"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // sceneWalk turns one scene into quads in paint order, copying new wl_shm11 // sceneWalk turns one scene into quads in paint order, copying new wl_shm
M internal/adapters/vulkan/shm.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "runtime/debug"
66 "unsafe"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 vk "github.com/bnema/purego-vulkan/vulkan"
1010 "golang.org/x/sys/unix"
1111 )
@@ -5,7 +5,7 @@ import (
5 "runtime/debug"5 "runtime/debug"
6 "unsafe"6 "unsafe"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 vk "github.com/bnema/purego-vulkan/vulkan"9 vk "github.com/bnema/purego-vulkan/vulkan"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
11 )11 )
M internal/adapters/vulkan/targets.go +2 -2
@@ -7,7 +7,7 @@ import (
77 "slices"
88 "unsafe"
99
10- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/ports"
1111 vk "github.com/bnema/purego-vulkan/vulkan"
1212 )
1313
@@ -184,7 +184,7 @@ func (r *Renderer) exportTarget(mods []uint64) (*target, ports.DMABuf, error) {
184184 if err := checked("vkGetMemoryFdKHR", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {
185185 return nil, ports.DMABuf{}, err
186186 }
187- f := os.NewFile(uintptr(fd), "nefertty-target")
187+ f := os.NewFile(uintptr(fd), "neferwl-target")
188188 if f == nil {
189189 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)
190190 }
@@ -7,7 +7,7 @@ import (
7 "slices"7 "slices"
8 "unsafe"8 "unsafe"
9 9
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 vk "github.com/bnema/purego-vulkan/vulkan"11 vk "github.com/bnema/purego-vulkan/vulkan"
12 )12 )
13 13
@@ -184,7 +184,7 @@ func (r *Renderer) exportTarget(mods []uint64) (*target, ports.DMABuf, error) {
184 if err := checked("vkGetMemoryFdKHR", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {184 if err := checked("vkGetMemoryFdKHR", d.GetMemoryFdKHR(r.device, &get, &fd)); err != nil {
185 return nil, ports.DMABuf{}, err185 return nil, ports.DMABuf{}, err
186 }186 }
187- f := os.NewFile(uintptr(fd), "nefertty-target")187+ f := os.NewFile(uintptr(fd), "neferwl-target")
188 if f == nil {188 if f == nil {
189 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)189 return nil, ports.DMABuf{}, fmt.Errorf("invalid exported fd %d", fd)
190 }190 }
M internal/adapters/vulkan/targets_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "image/color"
55 "testing"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // Frames drawn into exported targets reach their dmabufs: another renderer
@@ -4,7 +4,7 @@ import (
4 "image/color"4 "image/color"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // Frames drawn into exported targets reach their dmabufs: another renderer10 // Frames drawn into exported targets reach their dmabufs: another renderer
M internal/adapters/wayland/activation.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "crypto/rand"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/protocol/xdgactivation"
1010 "github.com/bnema/purego-libwayland/server"
@@ -4,7 +4,7 @@ import (
4 "crypto/rand"4 "crypto/rand"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/protocol/xdgactivation"9 "github.com/bnema/purego-libwayland/protocol/xdgactivation"
10 "github.com/bnema/purego-libwayland/server"10 "github.com/bnema/purego-libwayland/server"
M internal/adapters/wayland/activation_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/xdgactivation"
99 "github.com/bnema/wlturbo"
1010 )
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/xdgactivation"8 "github.com/bnema/purego-libwayland/protocol/xdgactivation"
9 "github.com/bnema/wlturbo"9 "github.com/bnema/wlturbo"
10 )10 )
M internal/adapters/wayland/axis_test.go +1 -1
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "testing"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 // High-resolution wheels send fractions of a detent: pre-v8 clients get a
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "testing"4 "testing"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 // High-resolution wheels send fractions of a detent: pre-v8 clients get a9 // High-resolution wheels send fractions of a detent: pre-v8 clients get a
M internal/adapters/wayland/clipboard.go +1 -1
@@ -13,7 +13,7 @@ import (
1313 // keyboard focus may set them and sees them; clipboard managers such as
1414 // cliphist and wl-clipboard use ext_data_control_v1, which sees and sets
1515 // both without focus. Like wlroots, any client may bind it. Pasting hands the reader's pipe to the source client:
16-// the data never goes through nefertty. Drag and drop is not implemented.
16+// the data never goes through neferwl. Drag and drop is not implemented.
1717
1818 const (
1919 selClipboard = iota
@@ -13,7 +13,7 @@ import (
13 // keyboard focus may set them and sees them; clipboard managers such as13 // keyboard focus may set them and sees them; clipboard managers such as
14 // cliphist and wl-clipboard use ext_data_control_v1, which sees and sets14 // cliphist and wl-clipboard use ext_data_control_v1, which sees and sets
15 // both without focus. Like wlroots, any client may bind it. Pasting hands the reader's pipe to the source client:15 // both without focus. Like wlroots, any client may bind it. Pasting hands the reader's pipe to the source client:
16-// the data never goes through nefertty. Drag and drop is not implemented.16+// the data never goes through neferwl. Drag and drop is not implemented.
17 17
18 const (18 const (
19 selClipboard = iota19 selClipboard = iota
M internal/adapters/wayland/clipboard_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/extdatacontrol"
99 "github.com/bnema/purego-libwayland/protocol/primaryselection"
1010 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/extdatacontrol"8 "github.com/bnema/purego-libwayland/protocol/extdatacontrol"
9 "github.com/bnema/purego-libwayland/protocol/primaryselection"9 "github.com/bnema/purego-libwayland/protocol/primaryselection"
10 "github.com/bnema/purego-libwayland/protocol/wayland"10 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/commands_test.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "testing"
77 "time"
88
9- "github.com/bnema/nefertty/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/logging"
10+ "github.com/bnema/neferwl/internal/ports"
1111 )
1212
1313 func TestDrainCommandsCollapsesMotion(t *testing.T) {
@@ -6,8 +6,8 @@ import (
6 "testing"6 "testing"
7 "time"7 "time"
8 8
9- "github.com/bnema/nefertty/internal/logging"9+ "github.com/bnema/neferwl/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 )11 )
12 12
13 func TestDrainCommandsCollapsesMotion(t *testing.T) {13 func TestDrainCommandsCollapsesMotion(t *testing.T) {
M internal/adapters/wayland/constraints.go +1 -1
@@ -1,7 +1,7 @@
11 package wayland
22
33 import (
4- "github.com/bnema/nefertty/internal/ports"
4+ "github.com/bnema/neferwl/internal/ports"
55 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"
66 "github.com/bnema/purego-libwayland/protocol/relativepointer"
77 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -1,7 +1,7 @@
1 package wayland1 package wayland
2 2
3 import (3 import (
4- "github.com/bnema/nefertty/internal/ports"4+ "github.com/bnema/neferwl/internal/ports"
5 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"5 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"
6 "github.com/bnema/purego-libwayland/protocol/relativepointer"6 "github.com/bnema/purego-libwayland/protocol/relativepointer"
7 "github.com/bnema/purego-libwayland/protocol/wayland"7 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/constraints_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"
99 "github.com/bnema/purego-libwayland/protocol/relativepointer"
1010 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"8 "github.com/bnema/purego-libwayland/protocol/pointerconstraints"
9 "github.com/bnema/purego-libwayland/protocol/relativepointer"9 "github.com/bnema/purego-libwayland/protocol/relativepointer"
10 "github.com/bnema/purego-libwayland/protocol/wayland"10 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/cursor.go +2 -2
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "context"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 "github.com/bnema/purego-libwayland/protocol/cursorshape"
88 "github.com/bnema/purego-libwayland/protocol/tabletv2"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -42,7 +42,7 @@ func (m cursorShapeManager) GetPointer(r *cursorshape.WpCursorShapeManagerV1, id
4242 _, _ = cursorshape.NewWpCursorShapeDeviceV1(r.Client(), r.Version(), id, cursorShapeDevice(m))
4343 }
4444
45-// GetTabletToolV2 is unreachable: nefertty has no tablet global.
45+// GetTabletToolV2 is unreachable: neferwl has no tablet global.
4646 func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tabletv2.ZwpTabletToolV2) {
4747 }
4848
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "context"4 "context"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 "github.com/bnema/purego-libwayland/protocol/cursorshape"7 "github.com/bnema/purego-libwayland/protocol/cursorshape"
8 "github.com/bnema/purego-libwayland/protocol/tabletv2"8 "github.com/bnema/purego-libwayland/protocol/tabletv2"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -42,7 +42,7 @@ func (m cursorShapeManager) GetPointer(r *cursorshape.WpCursorShapeManagerV1, id
42 _, _ = cursorshape.NewWpCursorShapeDeviceV1(r.Client(), r.Version(), id, cursorShapeDevice(m))42 _, _ = cursorshape.NewWpCursorShapeDeviceV1(r.Client(), r.Version(), id, cursorShapeDevice(m))
43 }43 }
44 44
45-// GetTabletToolV2 is unreachable: nefertty has no tablet global.45+// GetTabletToolV2 is unreachable: neferwl has no tablet global.
46 func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tabletv2.ZwpTabletToolV2) {46 func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tabletv2.ZwpTabletToolV2) {
47 }47 }
48 48
M internal/adapters/wayland/cursor_test.go +2 -2
@@ -5,8 +5,8 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/logging"
9- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/logging"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "github.com/bnema/purego-libwayland/protocol/cursorshape"
1111 "github.com/bnema/purego-libwayland/protocol/wayland"
1212 "golang.org/x/sys/unix"
@@ -5,8 +5,8 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/logging"8+ "github.com/bnema/neferwl/internal/logging"
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "github.com/bnema/purego-libwayland/protocol/cursorshape"10 "github.com/bnema/purego-libwayland/protocol/cursorshape"
11 "github.com/bnema/purego-libwayland/protocol/wayland"11 "github.com/bnema/purego-libwayland/protocol/wayland"
12 "golang.org/x/sys/unix"12 "golang.org/x/sys/unix"
M internal/adapters/wayland/damage_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/protocol/xdgshell"
1010 "golang.org/x/sys/unix"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/protocol/xdgshell"9 "github.com/bnema/purego-libwayland/protocol/xdgshell"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
M internal/adapters/wayland/decoration.go +1 -1
@@ -8,7 +8,7 @@ import (
88 "github.com/bnema/purego-libwayland/server"
99 )
1010
11-// Server-side decorations: nefertty draws the border, so clients must not draw
11+// Server-side decorations: neferwl draws the border, so clients must not draw
1212 // their own title bar or shadow (which would shrink the visible content).
1313 type decorationManager struct{ s *Server }
1414
@@ -8,7 +8,7 @@ import (
8 "github.com/bnema/purego-libwayland/server"8 "github.com/bnema/purego-libwayland/server"
9 )9 )
10 10
11-// Server-side decorations: nefertty draws the border, so clients must not draw11+// Server-side decorations: neferwl draws the border, so clients must not draw
12 // their own title bar or shadow (which would shrink the visible content).12 // their own title bar or shadow (which would shrink the visible content).
13 type decorationManager struct{ s *Server }13 type decorationManager struct{ s *Server }
14 14
M internal/adapters/wayland/decoration_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/kdedecoration"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
1010 "github.com/bnema/wlturbo"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/kdedecoration"8 "github.com/bnema/purego-libwayland/protocol/kdedecoration"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
10 "github.com/bnema/wlturbo"10 "github.com/bnema/wlturbo"
M internal/adapters/wayland/dmabuf.go +2 -2
@@ -6,7 +6,7 @@ import (
66 "os"
77 "slices"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
1111 "github.com/bnema/purego-libwayland/protocol/wayland"
1212 "github.com/bnema/purego-libwayland/server"
@@ -59,7 +59,7 @@ func formatTable(formats []ports.DMABufFormat) (*os.File, error) {
5959 binary.NativeEndian.PutUint32(data[i*16:], f.Format)
6060 binary.NativeEndian.PutUint64(data[i*16+8:], f.Modifier)
6161 }
62- fd, err := unix.MemfdCreate("nefertty-dmabuf-formats", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
62+ fd, err := unix.MemfdCreate("neferwl-dmabuf-formats", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
6363 if err != nil {
6464 return nil, err
6565 }
@@ -6,7 +6,7 @@ import (
6 "os"6 "os"
7 "slices"7 "slices"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"10 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
11 "github.com/bnema/purego-libwayland/protocol/wayland"11 "github.com/bnema/purego-libwayland/protocol/wayland"
12 "github.com/bnema/purego-libwayland/server"12 "github.com/bnema/purego-libwayland/server"
@@ -59,7 +59,7 @@ func formatTable(formats []ports.DMABufFormat) (*os.File, error) {
59 binary.NativeEndian.PutUint32(data[i*16:], f.Format)59 binary.NativeEndian.PutUint32(data[i*16:], f.Format)
60 binary.NativeEndian.PutUint64(data[i*16+8:], f.Modifier)60 binary.NativeEndian.PutUint64(data[i*16+8:], f.Modifier)
61 }61 }
62- fd, err := unix.MemfdCreate("nefertty-dmabuf-formats", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)62+ fd, err := unix.MemfdCreate("neferwl-dmabuf-formats", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
63 if err != nil {63 if err != nil {
64 return nil, err64 return nil, err
65 }65 }
M internal/adapters/wayland/dmabuf_test.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "testing"
77 "time"
88
9- "github.com/bnema/nefertty/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/logging"
10+ "github.com/bnema/neferwl/internal/ports"
1111 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
1212 "github.com/bnema/wlturbo"
1313 "golang.org/x/sys/unix"
@@ -6,8 +6,8 @@ import (
6 "testing"6 "testing"
7 "time"7 "time"
8 8
9- "github.com/bnema/nefertty/internal/logging"9+ "github.com/bnema/neferwl/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"11 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
12 "github.com/bnema/wlturbo"12 "github.com/bnema/wlturbo"
13 "golang.org/x/sys/unix"13 "golang.org/x/sys/unix"
M internal/adapters/wayland/fifo.go +1 -1
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "time"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 "github.com/bnema/purego-libwayland/protocol/committiming"
88 "github.com/bnema/purego-libwayland/protocol/contenttype"
99 "github.com/bnema/purego-libwayland/protocol/fifo"
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "time"4 "time"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 "github.com/bnema/purego-libwayland/protocol/committiming"7 "github.com/bnema/purego-libwayland/protocol/committiming"
8 "github.com/bnema/purego-libwayland/protocol/contenttype"8 "github.com/bnema/purego-libwayland/protocol/contenttype"
9 "github.com/bnema/purego-libwayland/protocol/fifo"9 "github.com/bnema/purego-libwayland/protocol/fifo"
M internal/adapters/wayland/fifo_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/committiming"
99 "github.com/bnema/purego-libwayland/protocol/fifo"
1010 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/committiming"8 "github.com/bnema/purego-libwayland/protocol/committiming"
9 "github.com/bnema/purego-libwayland/protocol/fifo"9 "github.com/bnema/purego-libwayland/protocol/fifo"
10 "github.com/bnema/purego-libwayland/protocol/wayland"10 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/frames.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "slices"
77 "time"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010
1111 "github.com/bnema/purego-libwayland/protocol/wayland"
1212 )
@@ -6,7 +6,7 @@ import (
6 "slices"6 "slices"
7 "time"7 "time"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 10
11 "github.com/bnema/purego-libwayland/protocol/wayland"11 "github.com/bnema/purego-libwayland/protocol/wayland"
12 )12 )
M internal/adapters/wayland/frames_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
1010 )
1111
@@ -5,7 +5,7 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
10 )10 )
11 11
M internal/adapters/wayland/globals.go +2 -2
@@ -1,7 +1,7 @@
11 package wayland
22
33 import (
4- "github.com/bnema/nefertty/internal/ports"
4+ "github.com/bnema/neferwl/internal/ports"
55 "github.com/bnema/purego-libwayland/protocol/wayland"
66 "github.com/bnema/purego-libwayland/server"
77 "os"
@@ -256,7 +256,7 @@ func fileHolds(f *os.File, size int64) bool {
256256 return err == nil && st.Size() >= size
257257 }
258258
259-// pool is a wl_shm pool. nefertty never maps it: renderers map the file
259+// pool is a wl_shm pool. neferwl never maps it: renderers map the file
260260 // and read the pixels when they draw (ports.SHMBuffer).
261261 type pool struct {
262262 id uint64
@@ -1,7 +1,7 @@
1 package wayland1 package wayland
2 2
3 import (3 import (
4- "github.com/bnema/nefertty/internal/ports"4+ "github.com/bnema/neferwl/internal/ports"
5 "github.com/bnema/purego-libwayland/protocol/wayland"5 "github.com/bnema/purego-libwayland/protocol/wayland"
6 "github.com/bnema/purego-libwayland/server"6 "github.com/bnema/purego-libwayland/server"
7 "os"7 "os"
@@ -256,7 +256,7 @@ func fileHolds(f *os.File, size int64) bool {
256 return err == nil && st.Size() >= size256 return err == nil && st.Size() >= size
257 }257 }
258 258
259-// pool is a wl_shm pool. nefertty never maps it: renderers map the file259+// pool is a wl_shm pool. neferwl never maps it: renderers map the file
260 // and read the pixels when they draw (ports.SHMBuffer).260 // and read the pixels when they draw (ports.SHMBuffer).
261 type pool struct {261 type pool struct {
262 id uint64262 id uint64
M internal/adapters/wayland/inhibit.go +1 -1
@@ -1,7 +1,7 @@
11 package wayland
22
33 import (
4- "github.com/bnema/nefertty/internal/ports"
4+ "github.com/bnema/neferwl/internal/ports"
55 "github.com/bnema/purego-libwayland/protocol/idleinhibit"
66 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"
77 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -1,7 +1,7 @@
1 package wayland1 package wayland
2 2
3 import (3 import (
4- "github.com/bnema/nefertty/internal/ports"4+ "github.com/bnema/neferwl/internal/ports"
5 "github.com/bnema/purego-libwayland/protocol/idleinhibit"5 "github.com/bnema/purego-libwayland/protocol/idleinhibit"
6 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"6 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"
7 "github.com/bnema/purego-libwayland/protocol/wayland"7 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/inhibit_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/idleinhibit"
99 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"
1010 "github.com/bnema/wlturbo"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/idleinhibit"8 "github.com/bnema/purego-libwayland/protocol/idleinhibit"
9 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"9 "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit"
10 "github.com/bnema/wlturbo"10 "github.com/bnema/wlturbo"
M internal/adapters/wayland/keyboard_test.go +2 -2
@@ -10,8 +10,8 @@ import (
1010 "testing"
1111 "time"
1212
13- "github.com/bnema/nefertty/internal/logging"
14- "github.com/bnema/nefertty/internal/ports"
13+ "github.com/bnema/neferwl/internal/logging"
14+ "github.com/bnema/neferwl/internal/ports"
1515 "github.com/bnema/purego-libwayland/protocol/wayland"
1616 "github.com/bnema/wlturbo"
1717 "golang.org/x/sys/unix"
@@ -10,8 +10,8 @@ import (
10 "testing"10 "testing"
11 "time"11 "time"
12 12
13- "github.com/bnema/nefertty/internal/logging"13+ "github.com/bnema/neferwl/internal/logging"
14- "github.com/bnema/nefertty/internal/ports"14+ "github.com/bnema/neferwl/internal/ports"
15 "github.com/bnema/purego-libwayland/protocol/wayland"15 "github.com/bnema/purego-libwayland/protocol/wayland"
16 "github.com/bnema/wlturbo"16 "github.com/bnema/wlturbo"
17 "golang.org/x/sys/unix"17 "golang.org/x/sys/unix"
M internal/adapters/wayland/layer.go +1 -1
@@ -1,7 +1,7 @@
11 package wayland
22
33 import (
4- "github.com/bnema/nefertty/internal/ports"
4+ "github.com/bnema/neferwl/internal/ports"
55 "github.com/bnema/purego-libwayland/protocol/wayland"
66 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
77 "github.com/bnema/purego-libwayland/protocol/xdgshell"
@@ -1,7 +1,7 @@
1 package wayland1 package wayland
2 2
3 import (3 import (
4- "github.com/bnema/nefertty/internal/ports"4+ "github.com/bnema/neferwl/internal/ports"
5 "github.com/bnema/purego-libwayland/protocol/wayland"5 "github.com/bnema/purego-libwayland/protocol/wayland"
6 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"6 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
7 "github.com/bnema/purego-libwayland/protocol/xdgshell"7 "github.com/bnema/purego-libwayland/protocol/xdgshell"
M internal/adapters/wayland/layer_test.go +1 -1
@@ -2,7 +2,7 @@ package wayland
22
33 import (
44 "fmt"
5- "github.com/bnema/nefertty/internal/ports"
5+ "github.com/bnema/neferwl/internal/ports"
66 "github.com/bnema/purego-libwayland/protocol/wayland"
77 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
88 "github.com/bnema/purego-libwayland/protocol/xdgshell"
@@ -2,7 +2,7 @@ package wayland
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "github.com/bnema/nefertty/internal/ports"5+ "github.com/bnema/neferwl/internal/ports"
6 "github.com/bnema/purego-libwayland/protocol/wayland"6 "github.com/bnema/purego-libwayland/protocol/wayland"
7 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"7 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
8 "github.com/bnema/purego-libwayland/protocol/xdgshell"8 "github.com/bnema/purego-libwayland/protocol/xdgshell"
M internal/adapters/wayland/outputs.go +2 -2
@@ -4,7 +4,7 @@ import (
44 "math"
55 "strings"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/protocol/xdgoutput"
1010 "github.com/bnema/purego-libwayland/server"
@@ -41,7 +41,7 @@ func (o *output) sendAll(r *wayland.Output) {
4141 i := o.place.Info
4242 make, model := i.Make, i.Model
4343 if make == "" {
44- make, model = "nefertty", "headless"
44+ make, model = "neferwl", "headless"
4545 }
4646 refresh := i.RefreshMilli
4747 if refresh == 0 {
@@ -4,7 +4,7 @@ import (
4 "math"4 "math"
5 "strings"5 "strings"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/protocol/xdgoutput"9 "github.com/bnema/purego-libwayland/protocol/xdgoutput"
10 "github.com/bnema/purego-libwayland/server"10 "github.com/bnema/purego-libwayland/server"
@@ -41,7 +41,7 @@ func (o *output) sendAll(r *wayland.Output) {
41 i := o.place.Info41 i := o.place.Info
42 make, model := i.Make, i.Model42 make, model := i.Make, i.Model
43 if make == "" {43 if make == "" {
44- make, model = "nefertty", "headless"44+ make, model = "neferwl", "headless"
45 }45 }
46 refresh := i.RefreshMilli46 refresh := i.RefreshMilli
47 if refresh == 0 {47 if refresh == 0 {
M internal/adapters/wayland/outputs_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
1010 "github.com/bnema/wlturbo"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"9 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
10 "github.com/bnema/wlturbo"10 "github.com/bnema/wlturbo"
M internal/adapters/wayland/popup.go +1 -1
@@ -1,7 +1,7 @@
11 package wayland
22
33 import (
4- "github.com/bnema/nefertty/internal/ports"
4+ "github.com/bnema/neferwl/internal/ports"
55 "github.com/bnema/purego-libwayland/protocol/wayland"
66 "github.com/bnema/purego-libwayland/protocol/xdgshell"
77 "github.com/bnema/purego-libwayland/server"
@@ -1,7 +1,7 @@
1 package wayland1 package wayland
2 2
3 import (3 import (
4- "github.com/bnema/nefertty/internal/ports"4+ "github.com/bnema/neferwl/internal/ports"
5 "github.com/bnema/purego-libwayland/protocol/wayland"5 "github.com/bnema/purego-libwayland/protocol/wayland"
6 "github.com/bnema/purego-libwayland/protocol/xdgshell"6 "github.com/bnema/purego-libwayland/protocol/xdgshell"
7 "github.com/bnema/purego-libwayland/server"7 "github.com/bnema/purego-libwayland/server"
M internal/adapters/wayland/presentation.go +1 -1
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "time"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 "github.com/bnema/purego-libwayland/protocol/presentationtime"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/server"
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "time"4 "time"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 "github.com/bnema/purego-libwayland/protocol/presentationtime"7 "github.com/bnema/purego-libwayland/protocol/presentationtime"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/server"9 "github.com/bnema/purego-libwayland/server"
M internal/adapters/wayland/presentation_test.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "testing"
77 "time"
88
9- "github.com/bnema/nefertty/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/logging"
10+ "github.com/bnema/neferwl/internal/ports"
1111 "github.com/bnema/purego-libwayland/protocol/presentationtime"
1212 "github.com/bnema/purego-libwayland/protocol/wayland"
1313 "github.com/bnema/wlturbo"
@@ -6,8 +6,8 @@ import (
6 "testing"6 "testing"
7 "time"7 "time"
8 8
9- "github.com/bnema/nefertty/internal/logging"9+ "github.com/bnema/neferwl/internal/logging"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 "github.com/bnema/purego-libwayland/protocol/presentationtime"11 "github.com/bnema/purego-libwayland/protocol/presentationtime"
12 "github.com/bnema/purego-libwayland/protocol/wayland"12 "github.com/bnema/purego-libwayland/protocol/wayland"
13 "github.com/bnema/wlturbo"13 "github.com/bnema/wlturbo"
M internal/adapters/wayland/protocol_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "bytes"
55 "errors"
66 "fmt"
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "os"
99 "path/filepath"
1010 "testing"
@@ -4,7 +4,7 @@ import (
4 "bytes"4 "bytes"
5 "errors"5 "errors"
6 "fmt"6 "fmt"
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "os"8 "os"
9 "path/filepath"9 "path/filepath"
10 "testing"10 "testing"
M internal/adapters/wayland/release.go +1 -1
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "time"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 "github.com/bnema/purego-libwayland/protocol/wayland"
88 )
99
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "time"4 "time"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 "github.com/bnema/purego-libwayland/protocol/wayland"7 "github.com/bnema/purego-libwayland/protocol/wayland"
8 )8 )
9 9
M internal/adapters/wayland/release_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 func TestKeepHeld(t *testing.T) {
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 func TestKeepHeld(t *testing.T) {10 func TestKeepHeld(t *testing.T) {
M internal/adapters/wayland/scale_test.go +2 -2
@@ -5,8 +5,8 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/logging"
9- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/logging"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "github.com/bnema/purego-libwayland/protocol/fractionalscale"
1111 "github.com/bnema/purego-libwayland/protocol/viewporter"
1212 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -5,8 +5,8 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/logging"8+ "github.com/bnema/neferwl/internal/logging"
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "github.com/bnema/purego-libwayland/protocol/fractionalscale"10 "github.com/bnema/purego-libwayland/protocol/fractionalscale"
11 "github.com/bnema/purego-libwayland/protocol/viewporter"11 "github.com/bnema/purego-libwayland/protocol/viewporter"
12 "github.com/bnema/purego-libwayland/protocol/wayland"12 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/server.go +2 -2
@@ -10,7 +10,7 @@ import (
1010 "sync"
1111 "time"
1212
13- "github.com/bnema/nefertty/internal/ports"
13+ "github.com/bnema/neferwl/internal/ports"
1414 "github.com/bnema/purego-libwayland/protocol/fractionalscale"
1515 "github.com/bnema/purego-libwayland/protocol/wayland"
1616 "github.com/bnema/purego-libwayland/server"
@@ -668,7 +668,7 @@ func keymapFile(keymap string) (int, uint32, error) {
668668 if uint64(len(keymap))+1 > uint64(^uint32(0)) {
669669 return -1, 0, fmt.Errorf("keymap too large")
670670 }
671- fd, err := unix.MemfdCreate("nefertty-keymap", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
671+ fd, err := unix.MemfdCreate("neferwl-keymap", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
672672 if err != nil {
673673 return -1, 0, err
674674 }
@@ -10,7 +10,7 @@ import (
10 "sync"10 "sync"
11 "time"11 "time"
12 12
13- "github.com/bnema/nefertty/internal/ports"13+ "github.com/bnema/neferwl/internal/ports"
14 "github.com/bnema/purego-libwayland/protocol/fractionalscale"14 "github.com/bnema/purego-libwayland/protocol/fractionalscale"
15 "github.com/bnema/purego-libwayland/protocol/wayland"15 "github.com/bnema/purego-libwayland/protocol/wayland"
16 "github.com/bnema/purego-libwayland/server"16 "github.com/bnema/purego-libwayland/server"
@@ -668,7 +668,7 @@ func keymapFile(keymap string) (int, uint32, error) {
668 if uint64(len(keymap))+1 > uint64(^uint32(0)) {668 if uint64(len(keymap))+1 > uint64(^uint32(0)) {
669 return -1, 0, fmt.Errorf("keymap too large")669 return -1, 0, fmt.Errorf("keymap too large")
670 }670 }
671- fd, err := unix.MemfdCreate("nefertty-keymap", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)671+ fd, err := unix.MemfdCreate("neferwl-keymap", unix.MFD_CLOEXEC|unix.MFD_ALLOW_SEALING)
672 if err != nil {672 if err != nil {
673 return -1, 0, err673 return -1, 0, err
674 }674 }
M internal/adapters/wayland/server_test.go +2 -2
@@ -3,7 +3,7 @@ package wayland
33 import (
44 "bytes"
55 "context"
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 "os"
88 "os/exec"
99 "path/filepath"
@@ -13,7 +13,7 @@ import (
1313 "testing"
1414 "time"
1515
16- "github.com/bnema/nefertty/internal/logging"
16+ "github.com/bnema/neferwl/internal/logging"
1717 )
1818
1919 func TestWaylandInfo(t *testing.T) {
@@ -3,7 +3,7 @@ package wayland
3 import (3 import (
4 "bytes"4 "bytes"
5 "context"5 "context"
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 "os"7 "os"
8 "os/exec"8 "os/exec"
9 "path/filepath"9 "path/filepath"
@@ -13,7 +13,7 @@ import (
13 "testing"13 "testing"
14 "time"14 "time"
15 15
16- "github.com/bnema/nefertty/internal/logging"16+ "github.com/bnema/neferwl/internal/logging"
17 )17 )
18 18
19 func TestWaylandInfo(t *testing.T) {19 func TestWaylandInfo(t *testing.T) {
M internal/adapters/wayland/slot.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "os"
66 "strconv"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "github.com/bnema/purego-libwayland/server"
1010 )
1111
@@ -5,7 +5,7 @@ import (
5 "os"5 "os"
6 "strconv"6 "strconv"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "github.com/bnema/purego-libwayland/server"9 "github.com/bnema/purego-libwayland/server"
10 )10 )
11 11
M internal/adapters/wayland/slot_test.go +3 -3
@@ -4,7 +4,7 @@ import (
44 "os"
55 "testing"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // A mapped window carries the slot token of its client process.
@@ -25,8 +25,8 @@ func TestWindowMappedCarriesSlot(t *testing.T) {
2525 }
2626
2727 func TestLinuxProcEnv(t *testing.T) {
28- t.Setenv("NEFERTTY_TEST_KEY", "x") // not in /proc: environ is the start env
29- if _, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "NEFERTTY_TEST_KEY"); ok {
28+ t.Setenv("NEFERWL_TEST_KEY", "x") // not in /proc: environ is the start env
29+ if _, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "NEFERWL_TEST_KEY"); ok {
3030 t.Fatal("environ reflects later changes")
3131 }
3232 path, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "PATH")
@@ -4,7 +4,7 @@ import (
4 "os"4 "os"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // A mapped window carries the slot token of its client process.10 // A mapped window carries the slot token of its client process.
@@ -25,8 +25,8 @@ func TestWindowMappedCarriesSlot(t *testing.T) {
25 }25 }
26 26
27 func TestLinuxProcEnv(t *testing.T) {27 func TestLinuxProcEnv(t *testing.T) {
28- t.Setenv("NEFERTTY_TEST_KEY", "x") // not in /proc: environ is the start env28+ t.Setenv("NEFERWL_TEST_KEY", "x") // not in /proc: environ is the start env
29- if _, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "NEFERTTY_TEST_KEY"); ok {29+ if _, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "NEFERWL_TEST_KEY"); ok {
30 t.Fatal("environ reflects later changes")30 t.Fatal("environ reflects later changes")
31 }31 }
32 path, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "PATH")32 path, ok := (linuxProcEnv{}).Lookup(os.Getpid(), "PATH")
M internal/adapters/wayland/subsurface_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/wayland"
99 "github.com/bnema/purego-libwayland/protocol/xdgshell"
1010 "golang.org/x/sys/unix"
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/wayland"8 "github.com/bnema/purego-libwayland/protocol/wayland"
9 "github.com/bnema/purego-libwayland/protocol/xdgshell"9 "github.com/bnema/purego-libwayland/protocol/xdgshell"
10 "golang.org/x/sys/unix"10 "golang.org/x/sys/unix"
M internal/adapters/wayland/surface.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "image"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
1010 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
1111 "github.com/bnema/purego-libwayland/protocol/xdgshell"
@@ -5,7 +5,7 @@ import (
5 "image"5 "image"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
10 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"10 "github.com/bnema/purego-libwayland/protocol/wlrlayershell"
11 "github.com/bnema/purego-libwayland/protocol/xdgshell"11 "github.com/bnema/purego-libwayland/protocol/xdgshell"
M internal/adapters/wayland/syncobj_test.go +2 -2
@@ -9,8 +9,8 @@ import (
99 "time"
1010 "unsafe"
1111
12- "github.com/bnema/nefertty/internal/logging"
13- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/logging"
13+ "github.com/bnema/neferwl/internal/ports"
1414 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
1515 "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj"
1616 "github.com/bnema/purego-libwayland/protocol/wayland"
@@ -9,8 +9,8 @@ import (
9 "time"9 "time"
10 "unsafe"10 "unsafe"
11 11
12- "github.com/bnema/nefertty/internal/logging"12+ "github.com/bnema/neferwl/internal/logging"
13- "github.com/bnema/nefertty/internal/ports"13+ "github.com/bnema/neferwl/internal/ports"
14 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"14 "github.com/bnema/purego-libwayland/protocol/linuxdmabuf"
15 "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj"15 "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj"
16 "github.com/bnema/purego-libwayland/protocol/wayland"16 "github.com/bnema/purego-libwayland/protocol/wayland"
M internal/adapters/wayland/tearing_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "testing"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/tearingcontrol"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
1010 )
@@ -4,7 +4,7 @@ import (
4 "testing"4 "testing"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/tearingcontrol"8 "github.com/bnema/purego-libwayland/protocol/tearingcontrol"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
10 )10 )
M internal/adapters/wayland/virtualkeyboard.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "bytes"
55 "time"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"
99 "github.com/bnema/purego-libwayland/protocol/wayland"
1010 "github.com/bnema/purego-libwayland/server"
@@ -4,7 +4,7 @@ import (
4 "bytes"4 "bytes"
5 "time"5 "time"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"8 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"
9 "github.com/bnema/purego-libwayland/protocol/wayland"9 "github.com/bnema/purego-libwayland/protocol/wayland"
10 "github.com/bnema/purego-libwayland/server"10 "github.com/bnema/purego-libwayland/server"
M internal/adapters/wayland/virtualkeyboard_test.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "testing"
77 "time"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"
1111 "github.com/bnema/purego-libwayland/protocol/wayland"
1212 "github.com/bnema/wlturbo"
@@ -6,7 +6,7 @@ import (
6 "testing"6 "testing"
7 "time"7 "time"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"10 "github.com/bnema/purego-libwayland/protocol/virtualkeyboard"
11 "github.com/bnema/purego-libwayland/protocol/wayland"11 "github.com/bnema/purego-libwayland/protocol/wayland"
12 "github.com/bnema/wlturbo"12 "github.com/bnema/wlturbo"
M internal/adapters/wayland/xdg.go +1 -1
@@ -2,7 +2,7 @@ package wayland
22
33 import (
44 "encoding/binary"
5- "github.com/bnema/nefertty/internal/ports"
5+ "github.com/bnema/neferwl/internal/ports"
66 "github.com/bnema/purego-libwayland/protocol/wayland"
77 "github.com/bnema/purego-libwayland/protocol/xdgshell"
88 "github.com/bnema/purego-libwayland/server"
@@ -2,7 +2,7 @@ package wayland
2 2
3 import (3 import (
4 "encoding/binary"4 "encoding/binary"
5- "github.com/bnema/nefertty/internal/ports"5+ "github.com/bnema/neferwl/internal/ports"
6 "github.com/bnema/purego-libwayland/protocol/wayland"6 "github.com/bnema/purego-libwayland/protocol/wayland"
7 "github.com/bnema/purego-libwayland/protocol/xdgshell"7 "github.com/bnema/purego-libwayland/protocol/xdgshell"
8 "github.com/bnema/purego-libwayland/server"8 "github.com/bnema/purego-libwayland/server"
M internal/adapters/xkb/xkb.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "runtime"
77 "unsafe"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 "github.com/bnema/purego"
1111 )
1212
@@ -6,7 +6,7 @@ import (
6 "runtime"6 "runtime"
7 "unsafe"7 "unsafe"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 "github.com/bnema/purego"10 "github.com/bnema/purego"
11 )11 )
12 12
M internal/adapters/xkb/xkb_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "strings"
55 "testing"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 func newTest(t *testing.T, layout string) *Keymap {
@@ -4,7 +4,7 @@ import (
4 "strings"4 "strings"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 func newTest(t *testing.T, layout string) *Keymap {10 func newTest(t *testing.T, layout string) *Keymap {
M internal/adapters/xwayland/xwayland.go +1 -1
@@ -1,5 +1,5 @@
11 // Package xwayland runs X11 clients through xwayland-satellite, started on
2-// demand: nefertty owns the X11 display sockets and starts the satellite
2+// demand: neferwl owns the X11 display sockets and starts the satellite
33 // when the first X11 client connects, and again after it exits.
44 package xwayland
55
@@ -1,5 +1,5 @@
1 // Package xwayland runs X11 clients through xwayland-satellite, started on1 // Package xwayland runs X11 clients through xwayland-satellite, started on
2-// demand: nefertty owns the X11 display sockets and starts the satellite2+// demand: neferwl owns the X11 display sockets and starts the satellite
3 // when the first X11 client connects, and again after it exits.3 // when the first X11 client connects, and again after it exits.
4 package xwayland4 package xwayland
5 5
M internal/adapters/xwayland/xwayland_test.go +1 -1
@@ -10,7 +10,7 @@ import (
1010 "testing"
1111 "time"
1212
13- "github.com/bnema/nefertty/internal/logging"
13+ "github.com/bnema/neferwl/internal/logging"
1414 "golang.org/x/sys/unix"
1515 )
1616
@@ -10,7 +10,7 @@ import (
10 "testing"10 "testing"
11 "time"11 "time"
12 12
13- "github.com/bnema/nefertty/internal/logging"13+ "github.com/bnema/neferwl/internal/logging"
14 "golang.org/x/sys/unix"14 "golang.org/x/sys/unix"
15 )15 )
16 16
M internal/app/app.go +14 -14
@@ -11,19 +11,19 @@ import (
1111 "sync"
1212 "time"
1313
14- "github.com/bnema/nefertty/internal/adapters/config"
15- "github.com/bnema/nefertty/internal/adapters/drm"
16- "github.com/bnema/nefertty/internal/adapters/headlessinput"
17- "github.com/bnema/nefertty/internal/adapters/launcher"
18- "github.com/bnema/nefertty/internal/adapters/libinput"
19- "github.com/bnema/nefertty/internal/adapters/statefile"
20- "github.com/bnema/nefertty/internal/adapters/vulkan"
21- "github.com/bnema/nefertty/internal/adapters/wayland"
22- "github.com/bnema/nefertty/internal/adapters/xkb"
23- "github.com/bnema/nefertty/internal/adapters/xwayland"
24- "github.com/bnema/nefertty/internal/core"
25- "github.com/bnema/nefertty/internal/logging"
26- "github.com/bnema/nefertty/internal/ports"
14+ "github.com/bnema/neferwl/internal/adapters/config"
15+ "github.com/bnema/neferwl/internal/adapters/drm"
16+ "github.com/bnema/neferwl/internal/adapters/headlessinput"
17+ "github.com/bnema/neferwl/internal/adapters/launcher"
18+ "github.com/bnema/neferwl/internal/adapters/libinput"
19+ "github.com/bnema/neferwl/internal/adapters/statefile"
20+ "github.com/bnema/neferwl/internal/adapters/vulkan"
21+ "github.com/bnema/neferwl/internal/adapters/wayland"
22+ "github.com/bnema/neferwl/internal/adapters/xkb"
23+ "github.com/bnema/neferwl/internal/adapters/xwayland"
24+ "github.com/bnema/neferwl/internal/core"
25+ "github.com/bnema/neferwl/internal/logging"
26+ "github.com/bnema/neferwl/internal/ports"
2727 "github.com/bnema/zerowrap"
2828 "golang.org/x/sys/unix"
2929 )
@@ -53,7 +53,7 @@ func Run(ctx context.Context, opts Options) error { return run(ctx, opts, nil) }
5353
5454 func run(ctx context.Context, opts Options, inject func(chan<- ports.InputEvent)) error {
5555 log := logging.For(ctx, "app")
56- log.Info().Str("backend", opts.Backend).Msg("starting nefertty")
56+ log.Info().Str("backend", opts.Backend).Msg("starting neferwl")
5757 var cancel context.CancelFunc
5858 if opts.Timeout > 0 {
5959 ctx, cancel = context.WithTimeoutCause(ctx, opts.Timeout, errTimeout)
@@ -11,19 +11,19 @@ import (
11 "sync"11 "sync"
12 "time"12 "time"
13 13
14- "github.com/bnema/nefertty/internal/adapters/config"14+ "github.com/bnema/neferwl/internal/adapters/config"
15- "github.com/bnema/nefertty/internal/adapters/drm"15+ "github.com/bnema/neferwl/internal/adapters/drm"
16- "github.com/bnema/nefertty/internal/adapters/headlessinput"16+ "github.com/bnema/neferwl/internal/adapters/headlessinput"
17- "github.com/bnema/nefertty/internal/adapters/launcher"17+ "github.com/bnema/neferwl/internal/adapters/launcher"
18- "github.com/bnema/nefertty/internal/adapters/libinput"18+ "github.com/bnema/neferwl/internal/adapters/libinput"
19- "github.com/bnema/nefertty/internal/adapters/statefile"19+ "github.com/bnema/neferwl/internal/adapters/statefile"
20- "github.com/bnema/nefertty/internal/adapters/vulkan"20+ "github.com/bnema/neferwl/internal/adapters/vulkan"
21- "github.com/bnema/nefertty/internal/adapters/wayland"21+ "github.com/bnema/neferwl/internal/adapters/wayland"
22- "github.com/bnema/nefertty/internal/adapters/xkb"22+ "github.com/bnema/neferwl/internal/adapters/xkb"
23- "github.com/bnema/nefertty/internal/adapters/xwayland"23+ "github.com/bnema/neferwl/internal/adapters/xwayland"
24- "github.com/bnema/nefertty/internal/core"24+ "github.com/bnema/neferwl/internal/core"
25- "github.com/bnema/nefertty/internal/logging"25+ "github.com/bnema/neferwl/internal/logging"
26- "github.com/bnema/nefertty/internal/ports"26+ "github.com/bnema/neferwl/internal/ports"
27 "github.com/bnema/zerowrap"27 "github.com/bnema/zerowrap"
28 "golang.org/x/sys/unix"28 "golang.org/x/sys/unix"
29 )29 )
@@ -53,7 +53,7 @@ func Run(ctx context.Context, opts Options) error { return run(ctx, opts, nil) }
53 53
54 func run(ctx context.Context, opts Options, inject func(chan<- ports.InputEvent)) error {54 func run(ctx context.Context, opts Options, inject func(chan<- ports.InputEvent)) error {
55 log := logging.For(ctx, "app")55 log := logging.For(ctx, "app")
56- log.Info().Str("backend", opts.Backend).Msg("starting nefertty")56+ log.Info().Str("backend", opts.Backend).Msg("starting neferwl")
57 var cancel context.CancelFunc57 var cancel context.CancelFunc
58 if opts.Timeout > 0 {58 if opts.Timeout > 0 {
59 ctx, cancel = context.WithTimeoutCause(ctx, opts.Timeout, errTimeout)59 ctx, cancel = context.WithTimeoutCause(ctx, opts.Timeout, errTimeout)
M internal/app/app_test.go +7 -7
@@ -12,10 +12,10 @@ import (
1212 "testing"
1313 "time"
1414
15- "github.com/bnema/nefertty/internal/adapters/config"
16- "github.com/bnema/nefertty/internal/adapters/xkb"
17- "github.com/bnema/nefertty/internal/logging"
18- "github.com/bnema/nefertty/internal/ports"
15+ "github.com/bnema/neferwl/internal/adapters/config"
16+ "github.com/bnema/neferwl/internal/adapters/xkb"
17+ "github.com/bnema/neferwl/internal/logging"
18+ "github.com/bnema/neferwl/internal/ports"
1919 )
2020
2121 func TestHeadlessConfigReload(t *testing.T) {
@@ -171,7 +171,7 @@ func TestHeadlessTyping(t *testing.T) {
171171 cfg := config.Defaults()
172172 cfg.Terminal.Command = []string{"foot", "-c", "/dev/null", "sh"}
173173 dir := t.TempDir()
174- err := Run(context.Background(), Options{Backend: "headless", NoXwayland: true, Config: cfg, ScreenshotDir: dir, Script: io.NopCloser(strings.NewReader("sleep 1.5s\ntype echo nefertty-ok\nkey Return\nsleep 1s\n")), Timeout: 6 * time.Second})
174+ err := Run(context.Background(), Options{Backend: "headless", NoXwayland: true, Config: cfg, ScreenshotDir: dir, Script: io.NopCloser(strings.NewReader("sleep 1.5s\ntype echo neferwl-ok\nkey Return\nsleep 1s\n")), Timeout: 6 * time.Second})
175175 if err != nil {
176176 if strings.Contains(err.Error(), "Vulkan") || strings.Contains(err.Error(), "vulkan") {
177177 t.Skipf("Vulkan unavailable: %v", err)
@@ -202,12 +202,12 @@ func TestHeadlessTyping(t *testing.T) {
202202 if !varied {
203203 t.Fatal("window image is uniform")
204204 }
205- if os.Getenv("NEFERTTY_KEEP_SHOTS") == "1" {
205+ if os.Getenv("NEFERWL_KEEP_SHOTS") == "1" {
206206 data, err := os.ReadFile(path)
207207 if err != nil {
208208 t.Fatal(err)
209209 }
210- if err := os.WriteFile("/tmp/nefertty-typing.png", data, 0600); err != nil {
210+ if err := os.WriteFile("/tmp/neferwl-typing.png", data, 0600); err != nil {
211211 t.Fatal(err)
212212 }
213213 }
@@ -12,10 +12,10 @@ import (
12 "testing"12 "testing"
13 "time"13 "time"
14 14
15- "github.com/bnema/nefertty/internal/adapters/config"15+ "github.com/bnema/neferwl/internal/adapters/config"
16- "github.com/bnema/nefertty/internal/adapters/xkb"16+ "github.com/bnema/neferwl/internal/adapters/xkb"
17- "github.com/bnema/nefertty/internal/logging"17+ "github.com/bnema/neferwl/internal/logging"
18- "github.com/bnema/nefertty/internal/ports"18+ "github.com/bnema/neferwl/internal/ports"
19 )19 )
20 20
21 func TestHeadlessConfigReload(t *testing.T) {21 func TestHeadlessConfigReload(t *testing.T) {
@@ -171,7 +171,7 @@ func TestHeadlessTyping(t *testing.T) {
171 cfg := config.Defaults()171 cfg := config.Defaults()
172 cfg.Terminal.Command = []string{"foot", "-c", "/dev/null", "sh"}172 cfg.Terminal.Command = []string{"foot", "-c", "/dev/null", "sh"}
173 dir := t.TempDir()173 dir := t.TempDir()
174- err := Run(context.Background(), Options{Backend: "headless", NoXwayland: true, Config: cfg, ScreenshotDir: dir, Script: io.NopCloser(strings.NewReader("sleep 1.5s\ntype echo nefertty-ok\nkey Return\nsleep 1s\n")), Timeout: 6 * time.Second})174+ err := Run(context.Background(), Options{Backend: "headless", NoXwayland: true, Config: cfg, ScreenshotDir: dir, Script: io.NopCloser(strings.NewReader("sleep 1.5s\ntype echo neferwl-ok\nkey Return\nsleep 1s\n")), Timeout: 6 * time.Second})
175 if err != nil {175 if err != nil {
176 if strings.Contains(err.Error(), "Vulkan") || strings.Contains(err.Error(), "vulkan") {176 if strings.Contains(err.Error(), "Vulkan") || strings.Contains(err.Error(), "vulkan") {
177 t.Skipf("Vulkan unavailable: %v", err)177 t.Skipf("Vulkan unavailable: %v", err)
@@ -202,12 +202,12 @@ func TestHeadlessTyping(t *testing.T) {
202 if !varied {202 if !varied {
203 t.Fatal("window image is uniform")203 t.Fatal("window image is uniform")
204 }204 }
205- if os.Getenv("NEFERTTY_KEEP_SHOTS") == "1" {205+ if os.Getenv("NEFERWL_KEEP_SHOTS") == "1" {
206 data, err := os.ReadFile(path)206 data, err := os.ReadFile(path)
207 if err != nil {207 if err != nil {
208 t.Fatal(err)208 t.Fatal(err)
209 }209 }
210- if err := os.WriteFile("/tmp/nefertty-typing.png", data, 0600); err != nil {210+ if err := os.WriteFile("/tmp/neferwl-typing.png", data, 0600); err != nil {
211 t.Fatal(err)211 t.Fatal(err)
212 }212 }
213 }213 }
M internal/app/cursor.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "strconv"
77 "sync"
88
9- "github.com/bnema/nefertty/internal/adapters/xcursor"
10- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/adapters/xcursor"
10+ "github.com/bnema/neferwl/internal/ports"
1111 )
1212
1313 // cursorSize is XCURSOR_SIZE (logical pixels), 24 by default.
@@ -6,8 +6,8 @@ import (
6 "strconv"6 "strconv"
7 "sync"7 "sync"
8 8
9- "github.com/bnema/nefertty/internal/adapters/xcursor"9+ "github.com/bnema/neferwl/internal/adapters/xcursor"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 )11 )
12 12
13 // cursorSize is XCURSOR_SIZE (logical pixels), 24 by default.13 // cursorSize is XCURSOR_SIZE (logical pixels), 24 by default.
M internal/app/cursor_test.go +1 -1
@@ -6,7 +6,7 @@ import (
66 "path/filepath"
77 "testing"
88
9- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/ports"
1010 )
1111
1212 // themeCursor writes a one-image Xcursor file of side size under
@@ -6,7 +6,7 @@ import (
6 "path/filepath"6 "path/filepath"
7 "testing"7 "testing"
8 8
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 )10 )
11 11
12 // themeCursor writes a one-image Xcursor file of side size under12 // themeCursor writes a one-image Xcursor file of side size under
M internal/app/drm.go +5 -5
@@ -9,11 +9,11 @@ import (
99 "sort"
1010 "sync"
1111
12- "github.com/bnema/nefertty/internal/adapters/config"
13- "github.com/bnema/nefertty/internal/adapters/drm"
14- "github.com/bnema/nefertty/internal/adapters/seat"
15- "github.com/bnema/nefertty/internal/logging"
16- "github.com/bnema/nefertty/internal/ports"
12+ "github.com/bnema/neferwl/internal/adapters/config"
13+ "github.com/bnema/neferwl/internal/adapters/drm"
14+ "github.com/bnema/neferwl/internal/adapters/seat"
15+ "github.com/bnema/neferwl/internal/logging"
16+ "github.com/bnema/neferwl/internal/ports"
1717 "github.com/bnema/zerowrap"
1818 )
1919
@@ -9,11 +9,11 @@ import (
9 "sort"9 "sort"
10 "sync"10 "sync"
11 11
12- "github.com/bnema/nefertty/internal/adapters/config"12+ "github.com/bnema/neferwl/internal/adapters/config"
13- "github.com/bnema/nefertty/internal/adapters/drm"13+ "github.com/bnema/neferwl/internal/adapters/drm"
14- "github.com/bnema/nefertty/internal/adapters/seat"14+ "github.com/bnema/neferwl/internal/adapters/seat"
15- "github.com/bnema/nefertty/internal/logging"15+ "github.com/bnema/neferwl/internal/logging"
16- "github.com/bnema/nefertty/internal/ports"16+ "github.com/bnema/neferwl/internal/ports"
17 "github.com/bnema/zerowrap"17 "github.com/bnema/zerowrap"
18 )18 )
19 19
M internal/app/drm_test.go +1 -1
@@ -3,7 +3,7 @@ package app
33 import (
44 "testing"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 func TestWantFromConfig(t *testing.T) {
@@ -3,7 +3,7 @@ package app
3 import (3 import (
4 "testing"4 "testing"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 func TestWantFromConfig(t *testing.T) {9 func TestWantFromConfig(t *testing.T) {
M internal/app/headless.go +2 -2
@@ -6,8 +6,8 @@ import (
66 "os"
77 "path/filepath"
88
9- "github.com/bnema/nefertty/internal/adapters/headless"
10- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/adapters/headless"
10+ "github.com/bnema/neferwl/internal/ports"
1111 "github.com/bnema/zerowrap"
1212 )
1313
@@ -6,8 +6,8 @@ import (
6 "os"6 "os"
7 "path/filepath"7 "path/filepath"
8 8
9- "github.com/bnema/nefertty/internal/adapters/headless"9+ "github.com/bnema/neferwl/internal/adapters/headless"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 "github.com/bnema/zerowrap"11 "github.com/bnema/zerowrap"
12 )12 )
13 13
M internal/app/outputs.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "context"
55 "sync"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // outputRun drives one output until ctx ends: it renders the scenes and
@@ -4,7 +4,7 @@ import (
4 "context"4 "context"
5 "sync"5 "sync"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // outputRun drives one output until ctx ends: it renders the scenes and10 // outputRun drives one output until ctx ends: it renders the scenes and
M internal/app/outputs_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // Every output gets the latest cursor, and a new output starts with it.
@@ -5,7 +5,7 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // Every output gets the latest cursor, and a new output starts with it.11 // Every output gets the latest cursor, and a new output starts with it.
M internal/core/core.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "context"
55 "errors"
66 "fmt"
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 "maps"
99 "slices"
1010 "strconv"
@@ -4,7 +4,7 @@ import (
4 "context"4 "context"
5 "errors"5 "errors"
6 "fmt"6 "fmt"
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 "maps"8 "maps"
9 "slices"9 "slices"
10 "strconv"10 "strconv"
M internal/core/core_test.go +3 -3
@@ -3,9 +3,9 @@ package core_test
33 import (
44 "context"
55 "errors"
6- "github.com/bnema/nefertty/internal/adapters/config"
7- "github.com/bnema/nefertty/internal/core"
8- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/adapters/config"
7+ "github.com/bnema/neferwl/internal/core"
8+ "github.com/bnema/neferwl/internal/ports"
99 "testing"
1010 "time"
1111 )
@@ -3,9 +3,9 @@ package core_test
3 import (3 import (
4 "context"4 "context"
5 "errors"5 "errors"
6- "github.com/bnema/nefertty/internal/adapters/config"6+ "github.com/bnema/neferwl/internal/adapters/config"
7- "github.com/bnema/nefertty/internal/core"7+ "github.com/bnema/neferwl/internal/core"
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 "testing"9 "testing"
10 "time"10 "time"
11 )11 )
M internal/core/inhibit_test.go +3 -3
@@ -5,9 +5,9 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/adapters/config"
9- "github.com/bnema/nefertty/internal/core"
10- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/adapters/config"
9+ "github.com/bnema/neferwl/internal/core"
10+ "github.com/bnema/neferwl/internal/ports"
1111 )
1212
1313 // commandOf waits for the next command of type T, skipping others.
@@ -5,9 +5,9 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/adapters/config"8+ "github.com/bnema/neferwl/internal/adapters/config"
9- "github.com/bnema/nefertty/internal/core"9+ "github.com/bnema/neferwl/internal/core"
10- "github.com/bnema/nefertty/internal/ports"10+ "github.com/bnema/neferwl/internal/ports"
11 )11 )
12 12
13 // commandOf waits for the next command of type T, skipping others.13 // commandOf waits for the next command of type T, skipping others.
M internal/core/layer_input_test.go +3 -3
@@ -4,9 +4,9 @@ import (
44 "context"
55 "testing"
66
7- "github.com/bnema/nefertty/internal/adapters/config"
8- "github.com/bnema/nefertty/internal/core"
9- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/adapters/config"
8+ "github.com/bnema/neferwl/internal/core"
9+ "github.com/bnema/neferwl/internal/ports"
1010 )
1111
1212 // next returns the next command of type T matching ok, skipping others.
@@ -4,9 +4,9 @@ import (
4 "context"4 "context"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/nefertty/internal/adapters/config"7+ "github.com/bnema/neferwl/internal/adapters/config"
8- "github.com/bnema/nefertty/internal/core"8+ "github.com/bnema/neferwl/internal/core"
9- "github.com/bnema/nefertty/internal/ports"9+ "github.com/bnema/neferwl/internal/ports"
10 )10 )
11 11
12 // next returns the next command of type T matching ok, skipping others.12 // next returns the next command of type T matching ok, skipping others.
M internal/core/layers.go +1 -1
@@ -3,7 +3,7 @@ package core
33 import (
44 "sort"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 // arrangeLayers places exclusive surfaces first, then sorts the resulting scene by layer.
@@ -3,7 +3,7 @@ package core
3 import (3 import (
4 "sort"4 "sort"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 // arrangeLayers places exclusive surfaces first, then sorts the resulting scene by layer.9 // arrangeLayers places exclusive surfaces first, then sorts the resulting scene by layer.
M internal/core/layers_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "testing"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 func TestArrangeLayers(t *testing.T) {
@@ -5,7 +5,7 @@ import (
5 "testing"5 "testing"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 func TestArrangeLayers(t *testing.T) {11 func TestArrangeLayers(t *testing.T) {
M internal/core/layout.go +1 -1
@@ -2,7 +2,7 @@ package core
22
33 import (
44 "fmt"
5- "github.com/bnema/nefertty/internal/ports"
5+ "github.com/bnema/neferwl/internal/ports"
66 "math/bits"
77 "slices"
88 "strconv"
@@ -2,7 +2,7 @@ package core
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "github.com/bnema/nefertty/internal/ports"5+ "github.com/bnema/neferwl/internal/ports"
6 "math/bits"6 "math/bits"
7 "slices"7 "slices"
8 "strconv"8 "strconv"
M internal/core/layout_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "reflect"
66 "testing"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 func workspace() *Workspace {
@@ -5,7 +5,7 @@ import (
5 "reflect"5 "reflect"
6 "testing"6 "testing"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 func workspace() *Workspace {11 func workspace() *Workspace {
M internal/core/monitor_test.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "slices"
66 "testing"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 func monitor() *Monitor {
@@ -5,7 +5,7 @@ import (
5 "slices"5 "slices"
6 "testing"6 "testing"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 func monitor() *Monitor {11 func monitor() *Monitor {
M internal/core/popup.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "context"
55 "slices"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // popupState is a placed xdg_popup. Rect is relative to the parent's
@@ -4,7 +4,7 @@ import (
4 "context"4 "context"
5 "slices"5 "slices"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // popupState is a placed xdg_popup. Rect is relative to the parent's10 // popupState is a placed xdg_popup. Rect is relative to the parent's
M internal/core/popup_test.go +1 -1
@@ -3,7 +3,7 @@ package core
33 import (
44 "testing"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 func TestPlacePopup(t *testing.T) {
@@ -3,7 +3,7 @@ package core
3 import (3 import (
4 "testing"4 "testing"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 func TestPlacePopup(t *testing.T) {9 func TestPlacePopup(t *testing.T) {
M internal/core/screens.go +1 -1
@@ -3,7 +3,7 @@ package core
33 import (
44 "slices"
55
6- "github.com/bnema/nefertty/internal/ports"
6+ "github.com/bnema/neferwl/internal/ports"
77 )
88
99 // screen is one connected output: its monitor tree, scale, layer surfaces and
@@ -3,7 +3,7 @@ package core
3 import (3 import (
4 "slices"4 "slices"
5 5
6- "github.com/bnema/nefertty/internal/ports"6+ "github.com/bnema/neferwl/internal/ports"
7 )7 )
8 8
9 // screen is one connected output: its monitor tree, scale, layer surfaces and9 // screen is one connected output: its monitor tree, scale, layer surfaces and
M internal/core/screens_test.go +3 -3
@@ -6,9 +6,9 @@ import (
66 "slices"
77 "testing"
88
9- "github.com/bnema/nefertty/internal/adapters/config"
10- "github.com/bnema/nefertty/internal/core"
11- "github.com/bnema/nefertty/internal/ports"
9+ "github.com/bnema/neferwl/internal/adapters/config"
10+ "github.com/bnema/neferwl/internal/core"
11+ "github.com/bnema/neferwl/internal/ports"
1212 )
1313
1414 type multiRig struct {
@@ -6,9 +6,9 @@ import (
6 "slices"6 "slices"
7 "testing"7 "testing"
8 8
9- "github.com/bnema/nefertty/internal/adapters/config"9+ "github.com/bnema/neferwl/internal/adapters/config"
10- "github.com/bnema/nefertty/internal/core"10+ "github.com/bnema/neferwl/internal/core"
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 )12 )
13 13
14 type multiRig struct {14 type multiRig struct {
M internal/core/separators.go +1 -1
@@ -1,6 +1,6 @@
11 package core
22
3-import "github.com/bnema/nefertty/internal/ports"
3+import "github.com/bnema/neferwl/internal/ports"
44
55 // Separator lines follow tmux (screen-redraw.c): tiles share one line per
66 // side where they touch, owned by the left or top tile (Placement.Inset).
@@ -1,6 +1,6 @@
1 package core1 package core
2 2
3-import "github.com/bnema/nefertty/internal/ports"3+import "github.com/bnema/neferwl/internal/ports"
4 4
5 // Separator lines follow tmux (screen-redraw.c): tiles share one line per5 // Separator lines follow tmux (screen-redraw.c): tiles share one line per
6 // side where they touch, owned by the left or top tile (Placement.Inset).6 // side where they touch, owned by the left or top tile (Placement.Inset).
M internal/core/separators_test.go +1 -1
@@ -4,7 +4,7 @@ import (
44 "reflect"
55 "testing"
66
7- "github.com/bnema/nefertty/internal/ports"
7+ "github.com/bnema/neferwl/internal/ports"
88 )
99
1010 // tiles lays out rects edge to edge (no gap) with focus on index f.
@@ -4,7 +4,7 @@ import (
4 "reflect"4 "reflect"
5 "testing"5 "testing"
6 6
7- "github.com/bnema/nefertty/internal/ports"7+ "github.com/bnema/neferwl/internal/ports"
8 )8 )
9 9
10 // tiles lays out rects edge to edge (no gap) with focus on index f.10 // tiles lays out rects edge to edge (no gap) with focus on index f.
M internal/core/slots.go +2 -2
@@ -5,12 +5,12 @@ import (
55 "fmt"
66 "slices"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // Slots of declared workspaces (ADR 011): workspace.<name>.column.N reserves
1212 // column N for the window of one command. The slot, not the window, has the
13-// identity: nefertty spawns the command with SlotEnv set to a random token,
13+// identity: neferwl spawns the command with SlotEnv set to a random token,
1414 // and the first window of a client carrying that token fills the slot.
1515 //
1616 // Only the token of the pending spawn is accepted: once the slot is filled,
@@ -5,12 +5,12 @@ import (
5 "fmt"5 "fmt"
6 "slices"6 "slices"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // Slots of declared workspaces (ADR 011): workspace.<name>.column.N reserves11 // Slots of declared workspaces (ADR 011): workspace.<name>.column.N reserves
12 // column N for the window of one command. The slot, not the window, has the12 // column N for the window of one command. The slot, not the window, has the
13-// identity: nefertty spawns the command with SlotEnv set to a random token,13+// identity: neferwl spawns the command with SlotEnv set to a random token,
14 // and the first window of a client carrying that token fills the slot.14 // and the first window of a client carrying that token fills the slot.
15 //15 //
16 // Only the token of the pending spawn is accepted: once the slot is filled,16 // Only the token of the pending spawn is accepted: once the slot is filled,
M internal/core/slots_test.go +3 -3
@@ -7,9 +7,9 @@ import (
77 "testing"
88 "time"
99
10- "github.com/bnema/nefertty/internal/adapters/config"
11- "github.com/bnema/nefertty/internal/core"
12- "github.com/bnema/nefertty/internal/ports"
10+ "github.com/bnema/neferwl/internal/adapters/config"
11+ "github.com/bnema/neferwl/internal/core"
12+ "github.com/bnema/neferwl/internal/ports"
1313 )
1414
1515 type slotRig struct {
@@ -7,9 +7,9 @@ import (
7 "testing"7 "testing"
8 "time"8 "time"
9 9
10- "github.com/bnema/nefertty/internal/adapters/config"10+ "github.com/bnema/neferwl/internal/adapters/config"
11- "github.com/bnema/nefertty/internal/core"11+ "github.com/bnema/neferwl/internal/core"
12- "github.com/bnema/nefertty/internal/ports"12+ "github.com/bnema/neferwl/internal/ports"
13 )13 )
14 14
15 type slotRig struct {15 type slotRig struct {
M internal/core/state.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "reflect"
66 "slices"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // publishState sends the script-facing snapshot when it changed.
@@ -5,7 +5,7 @@ import (
5 "reflect"5 "reflect"
6 "slices"6 "slices"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // publishState sends the script-facing snapshot when it changed.11 // publishState sends the script-facing snapshot when it changed.
M internal/core/terminal.go +1 -1
@@ -5,7 +5,7 @@ import (
55 "slices"
66 "time"
77
8- "github.com/bnema/nefertty/internal/ports"
8+ "github.com/bnema/neferwl/internal/ports"
99 )
1010
1111 // The terminal is the desktop: a workspace on screen is never empty. When
@@ -5,7 +5,7 @@ import (
5 "slices"5 "slices"
6 "time"6 "time"
7 7
8- "github.com/bnema/nefertty/internal/ports"8+ "github.com/bnema/neferwl/internal/ports"
9 )9 )
10 10
11 // The terminal is the desktop: a workspace on screen is never empty. When11 // The terminal is the desktop: a workspace on screen is never empty. When
M internal/logging/logging.go +1 -1
@@ -66,7 +66,7 @@ func Open(ctx context.Context, level, debug string) (context.Context, func() err
6666 }
6767 state = filepath.Join(home, ".local", "state")
6868 }
69- dir := filepath.Join(state, "nefertty", "runs")
69+ dir := filepath.Join(state, "neferwl", "runs")
7070 if err := os.MkdirAll(dir, 0o700); err != nil {
7171 return nil, nil, err
7272 }
@@ -66,7 +66,7 @@ func Open(ctx context.Context, level, debug string) (context.Context, func() err
66 }66 }
67 state = filepath.Join(home, ".local", "state")67 state = filepath.Join(home, ".local", "state")
68 }68 }
69- dir := filepath.Join(state, "nefertty", "runs")69+ dir := filepath.Join(state, "neferwl", "runs")
70 if err := os.MkdirAll(dir, 0o700); err != nil {70 if err := os.MkdirAll(dir, 0o700); err != nil {
71 return nil, nil, err71 return nil, nil, err
72 }72 }
M internal/logging/logging_test.go +2 -2
@@ -34,7 +34,7 @@ func TestParseDebug(t *testing.T) {
3434
3535 func TestComponentLevelsAndRotation(t *testing.T) {
3636 t.Setenv("XDG_STATE_HOME", t.TempDir())
37- dir := filepath.Join(os.Getenv("XDG_STATE_HOME"), "nefertty", "runs")
37+ dir := filepath.Join(os.Getenv("XDG_STATE_HOME"), "neferwl", "runs")
3838 path := filepath.Join(dir, "latest.log")
3939 for run := 0; run < keepRuns+2; run++ {
4040 time.Sleep(2 * time.Millisecond) // distinct millisecond timestamps
@@ -97,7 +97,7 @@ func TestCategoryEnablesComponentDebug(t *testing.T) {
9797 if err := closeLog(); err != nil {
9898 t.Fatal(err)
9999 }
100- data, err := os.ReadFile(filepath.Join(os.Getenv("XDG_STATE_HOME"), "nefertty", "runs", "latest.log"))
100+ data, err := os.ReadFile(filepath.Join(os.Getenv("XDG_STATE_HOME"), "neferwl", "runs", "latest.log"))
101101 if err != nil {
102102 t.Fatal(err)
103103 }
@@ -34,7 +34,7 @@ func TestParseDebug(t *testing.T) {
34 34
35 func TestComponentLevelsAndRotation(t *testing.T) {35 func TestComponentLevelsAndRotation(t *testing.T) {
36 t.Setenv("XDG_STATE_HOME", t.TempDir())36 t.Setenv("XDG_STATE_HOME", t.TempDir())
37- dir := filepath.Join(os.Getenv("XDG_STATE_HOME"), "nefertty", "runs")37+ dir := filepath.Join(os.Getenv("XDG_STATE_HOME"), "neferwl", "runs")
38 path := filepath.Join(dir, "latest.log")38 path := filepath.Join(dir, "latest.log")
39 for run := 0; run < keepRuns+2; run++ {39 for run := 0; run < keepRuns+2; run++ {
40 time.Sleep(2 * time.Millisecond) // distinct millisecond timestamps40 time.Sleep(2 * time.Millisecond) // distinct millisecond timestamps
@@ -97,7 +97,7 @@ func TestCategoryEnablesComponentDebug(t *testing.T) {
97 if err := closeLog(); err != nil {97 if err := closeLog(); err != nil {
98 t.Fatal(err)98 t.Fatal(err)
99 }99 }
100- data, err := os.ReadFile(filepath.Join(os.Getenv("XDG_STATE_HOME"), "nefertty", "runs", "latest.log"))100+ data, err := os.ReadFile(filepath.Join(os.Getenv("XDG_STATE_HOME"), "neferwl", "runs", "latest.log"))
101 if err != nil {101 if err != nil {
102 t.Fatal(err)102 t.Fatal(err)
103 }103 }
M internal/mocks/ports/devices_mock.go +1 -1
@@ -8,7 +8,7 @@ import (
88 "image"
99 "os"
1010
11- "github.com/bnema/nefertty/internal/ports"
11+ "github.com/bnema/neferwl/internal/ports"
1212 mock "github.com/stretchr/testify/mock"
1313 )
1414
@@ -8,7 +8,7 @@ import (
8 "image"8 "image"
9 "os"9 "os"
10 10
11- "github.com/bnema/nefertty/internal/ports"11+ "github.com/bnema/neferwl/internal/ports"
12 mock "github.com/stretchr/testify/mock"12 mock "github.com/stretchr/testify/mock"
13 )13 )
14 14
M internal/ports/config.go +1 -1
@@ -86,7 +86,7 @@ type WorkspaceConfig struct {
8686 }
8787
8888 // SlotConfig reserves column N of a workspace for the window of one command.
89-// nefertty spawns the command at startup; the window it opens goes to the
89+// neferwl spawns the command at startup; the window it opens goes to the
9090 // slot. Width is a layout width (fraction, percentage or pixels).
9191 type SlotConfig struct {
9292 Index int
@@ -86,7 +86,7 @@ type WorkspaceConfig struct {
86 }86 }
87 87
88 // SlotConfig reserves column N of a workspace for the window of one command.88 // SlotConfig reserves column N of a workspace for the window of one command.
89-// nefertty spawns the command at startup; the window it opens goes to the89+// neferwl spawns the command at startup; the window it opens goes to the
90 // slot. Width is a layout width (fraction, percentage or pixels).90 // slot. Width is a layout width (fraction, percentage or pixels).
91 type SlotConfig struct {91 type SlotConfig struct {
92 Index int92 Index int
M internal/ports/messages.go +2 -2
@@ -23,9 +23,9 @@ type WindowMapped struct {
2323 Width, Height int
2424 }
2525
26-// SlotEnv is the environment variable nefertty sets on processes it spawns
26+// SlotEnv is the environment variable neferwl sets on processes it spawns
2727 // for a slot. The client's value maps its windows to the slot.
28-const SlotEnv = "NEFERTTY_SLOT"
28+const SlotEnv = "NEFERWL_SLOT"
2929
3030 func (WindowMapped) clientEvent() {}
3131
@@ -23,9 +23,9 @@ type WindowMapped struct {
23 Width, Height int23 Width, Height int
24 }24 }
25 25
26-// SlotEnv is the environment variable nefertty sets on processes it spawns26+// SlotEnv is the environment variable neferwl sets on processes it spawns
27 // for a slot. The client's value maps its windows to the slot.27 // for a slot. The client's value maps its windows to the slot.
28-const SlotEnv = "NEFERTTY_SLOT"28+const SlotEnv = "NEFERWL_SLOT"
29 29
30 func (WindowMapped) clientEvent() {}30 func (WindowMapped) clientEvent() {}
31 31
M packaging/arch/PKGBUILD +13 -13
@@ -1,11 +1,11 @@
11 # Built by `make pkg` at the repo root, from `git archive HEAD`.
2-pkgname=nefertty
2+pkgname=neferwl
33 pkgver=0.0.0
44 pkgrel=1
5-pkgdesc='Minimal Wayland compositor with scrollable columns, for the TTY'
5+pkgdesc='Minimal Wayland compositor with column tiling, for the TTY'
66 arch=('x86_64')
7-url='https://github.com/bnema/nefertty'
8-license=('MIT')
7+url='https://github.com/bnema/neferwl'
8+license=('GPL-3.0-only')
99 # Loaded at runtime (purego, no cgo): not seen by makepkg's library scan.
1010 depends=('glibc' 'libinput' 'libxkbcommon' 'seatd' 'systemd-libs' 'vulkan-icd-loader'
1111 'vulkan-driver' 'wayland' 'dbus')
@@ -27,21 +27,21 @@ prepare() {
2727 build() {
2828 cd "$pkgname-$pkgver"
2929 export CGO_ENABLED=0 GOFLAGS='-mod=vendor -trimpath -buildvcs=false -buildmode=pie' GOPROXY=off GOWORK=off GOTOOLCHAIN=local
30- go build -ldflags "-X main.version=$pkgver" -o nefertty ./cmd/nefertty
30+ go build -ldflags "-X main.version=$pkgver" -o neferwl ./cmd/neferwl
3131 }
3232
3333 check() {
3434 cd "$pkgname-$pkgver"
35- ./nefertty version
36- ./nefertty validate-config examples/config
35+ ./neferwl version
36+ ./neferwl validate-config examples/config
3737 }
3838
3939 package() {
4040 cd "$pkgname-$pkgver"
41- install -Dm755 nefertty "$pkgdir/usr/bin/nefertty"
42- install -Dm644 packaging/nefertty.desktop "$pkgdir/usr/share/wayland-sessions/nefertty.desktop"
43- install -Dm644 packaging/nefertty-portals.conf "$pkgdir/usr/share/xdg-desktop-portal/nefertty-portals.conf"
44- install -Dm644 examples/config "$pkgdir/usr/share/doc/nefertty/config.example"
45- install -Dm644 README.md "$pkgdir/usr/share/doc/nefertty/README.md"
46- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nefertty/LICENSE"
41+ install -Dm755 neferwl "$pkgdir/usr/bin/neferwl"
42+ install -Dm644 packaging/neferwl.desktop "$pkgdir/usr/share/wayland-sessions/neferwl.desktop"
43+ install -Dm644 packaging/neferwl-portals.conf "$pkgdir/usr/share/xdg-desktop-portal/neferwl-portals.conf"
44+ install -Dm644 examples/config "$pkgdir/usr/share/doc/neferwl/config.example"
45+ install -Dm644 README.md "$pkgdir/usr/share/doc/neferwl/README.md"
46+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/neferwl/LICENSE"
4747 }
@@ -1,11 +1,11 @@
1 # Built by `make pkg` at the repo root, from `git archive HEAD`.1 # Built by `make pkg` at the repo root, from `git archive HEAD`.
2-pkgname=nefertty2+pkgname=neferwl
3 pkgver=0.0.03 pkgver=0.0.0
4 pkgrel=14 pkgrel=1
5-pkgdesc='Minimal Wayland compositor with scrollable columns, for the TTY'5+pkgdesc='Minimal Wayland compositor with column tiling, for the TTY'
6 arch=('x86_64')6 arch=('x86_64')
7-url='https://github.com/bnema/nefertty'7+url='https://github.com/bnema/neferwl'
8-license=('MIT')8+license=('GPL-3.0-only')
9 # Loaded at runtime (purego, no cgo): not seen by makepkg's library scan.9 # Loaded at runtime (purego, no cgo): not seen by makepkg's library scan.
10 depends=('glibc' 'libinput' 'libxkbcommon' 'seatd' 'systemd-libs' 'vulkan-icd-loader'10 depends=('glibc' 'libinput' 'libxkbcommon' 'seatd' 'systemd-libs' 'vulkan-icd-loader'
11 'vulkan-driver' 'wayland' 'dbus')11 'vulkan-driver' 'wayland' 'dbus')
@@ -27,21 +27,21 @@ prepare() {
27 build() {27 build() {
28 cd "$pkgname-$pkgver"28 cd "$pkgname-$pkgver"
29 export CGO_ENABLED=0 GOFLAGS='-mod=vendor -trimpath -buildvcs=false -buildmode=pie' GOPROXY=off GOWORK=off GOTOOLCHAIN=local29 export CGO_ENABLED=0 GOFLAGS='-mod=vendor -trimpath -buildvcs=false -buildmode=pie' GOPROXY=off GOWORK=off GOTOOLCHAIN=local
30- go build -ldflags "-X main.version=$pkgver" -o nefertty ./cmd/nefertty30+ go build -ldflags "-X main.version=$pkgver" -o neferwl ./cmd/neferwl
31 }31 }
32 32
33 check() {33 check() {
34 cd "$pkgname-$pkgver"34 cd "$pkgname-$pkgver"
35- ./nefertty version35+ ./neferwl version
36- ./nefertty validate-config examples/config36+ ./neferwl validate-config examples/config
37 }37 }
38 38
39 package() {39 package() {
40 cd "$pkgname-$pkgver"40 cd "$pkgname-$pkgver"
41- install -Dm755 nefertty "$pkgdir/usr/bin/nefertty"41+ install -Dm755 neferwl "$pkgdir/usr/bin/neferwl"
42- install -Dm644 packaging/nefertty.desktop "$pkgdir/usr/share/wayland-sessions/nefertty.desktop"42+ install -Dm644 packaging/neferwl.desktop "$pkgdir/usr/share/wayland-sessions/neferwl.desktop"
43- install -Dm644 packaging/nefertty-portals.conf "$pkgdir/usr/share/xdg-desktop-portal/nefertty-portals.conf"43+ install -Dm644 packaging/neferwl-portals.conf "$pkgdir/usr/share/xdg-desktop-portal/neferwl-portals.conf"
44- install -Dm644 examples/config "$pkgdir/usr/share/doc/nefertty/config.example"44+ install -Dm644 examples/config "$pkgdir/usr/share/doc/neferwl/config.example"
45- install -Dm644 README.md "$pkgdir/usr/share/doc/nefertty/README.md"45+ install -Dm644 README.md "$pkgdir/usr/share/doc/neferwl/README.md"
46- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nefertty/LICENSE"46+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/neferwl/LICENSE"
47 }47 }
D packaging/nefertty.desktop +0 -6
@@ -1,6 +0,0 @@
1-[Desktop Entry]
2-Name=NeferTTY
3-Comment=Minimal Wayland compositor with scrollable columns
4-Exec=nefertty --session
5-Type=Application
6-DesktopNames=nefertty
@@ -1,6 +0,0 @@
1-[Desktop Entry]
2-Name=NeferTTY
3-Comment=Minimal Wayland compositor with scrollable columns
4-Exec=nefertty --session
5-Type=Application
6-DesktopNames=nefertty
R packaging/nefertty-portals.conf → packaging/neferwl-portals.conf +0 -0 renamed, 100% similar

renamed, 100% similar

A packaging/neferwl.desktop +6 -0
@@ -0,0 +1,6 @@
1+[Desktop Entry]
2+Name=NeferWL
3+Comment=Minimal Wayland compositor with column tiling
4+Exec=neferwl --session
5+Type=Application
6+DesktopNames=neferwl
@@ -0,0 +1,6 @@
1+[Desktop Entry]
2+Name=NeferWL
3+Comment=Minimal Wayland compositor with column tiling
4+Exec=neferwl --session
5+Type=Application
6+DesktopNames=neferwl

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 25

Tags 10

↑↓ moveenter openesc close