commit f7563fff8571dea84199ad48314c745222f70832 Author: Luis Guilherme Coelho Date: Fri Mar 8 14:32:05 2024 +0000 chore: init diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d41c0bd --- /dev/null +++ b/LICENSE @@ -0,0 +1,232 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee5a7ce --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# zero + +My personal repository for storing and sharing my manifests and declarative configuration files for my GNU Guix operating system and home environment. diff --git a/home-environments/radio.scm b/home-environments/radio.scm new file mode 100644 index 0000000..7c5fa76 --- /dev/null +++ b/home-environments/radio.scm @@ -0,0 +1,404 @@ +(define-module (home-environments radio) + #|Ice-9|# + #|M|# #:use-module (ice-9 match) + + #|GNU|# + #| |# #:use-module (gnu) + #|H|# #:use-module ((gnu home) #:select (this-home-environment)) + #|H|# #:use-module ((gnu home) #:hide (this-home-environment) + #:prefix user-) + + #|GNU packages|# + #|A|# #:use-module (gnu packages admin) + #|B|# #:use-module (gnu packages bittorrent) + #|C|# #:use-module (gnu packages c) + #:use-module (gnu packages calendar) + #:use-module (gnu packages curl) + #|D|# #:use-module (gnu packages disk) + #:use-module (gnu packages databases) + #|F|# #:use-module (gnu packages file) + #:use-module (gnu packages fonts) + #:use-module (gnu packages freedesktop) + #|G|# #:use-module (gnu packages games) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gnu-doc) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages guile-xyz) + #|I|# #:use-module (gnu packages image-viewers) + #|L|# #:use-module (gnu packages linux) + #|M|# #:use-module (gnu packages maths) + #:use-module (gnu packages minetest) + #|P|# #:use-module (gnu packages password-utils) + #:use-module (gnu packages pdf) + #:use-module (gnu packages pulseaudio) + #|S|# #:use-module (gnu packages scheme) + #:use-module (gnu packages shells) + #:use-module (gnu packages ssh) + #:use-module (gnu packages suckless) + #|T|# #:use-module (gnu packages telegram) + #:use-module (gnu packages text-editors) + #:use-module (gnu packages tor-browsers) + #:use-module (gnu packages toys) + #|V|# #:use-module (gnu packages version-control) + #:use-module (gnu packages video) + #|W|# #:use-module (gnu packages wm) + #|X|# #:use-module (gnu packages xdisorg) + #:use-module (gnu packages xorg) + + #|GNU home services|# + #| |# #:use-module (gnu home services) + #|D|# #:use-module (gnu home services desktop) + #:use-module (gnu home services dotfiles) + #|G|# #:use-module (gnu home services guix) + #|M|# #:use-module (gnu home services mcron) + #|S|# #:use-module (gnu home services ssh) + #:use-module (gnu home services shepherd) + #:use-module (gnu home services sound) + + #|Guix|# + #|C|# #:use-module (guix channels) + + #|Radix|# + #|C|# #:use-module (radix combinators) + #|U|# #:use-module (radix utils) + + #|Radix packages|# + #|I|# #:use-module (radix packages image-viewers) + #|F|# #:use-module (radix packages fonts) + #|P|# #:use-module (radix packages pdf) + #|S|# #:use-module (radix packages seninha) + #:use-module (radix packages syndication) + #|W|# #:use-module (radix packages wm) + + #|Radix home services|# + #| |# #:use-module (radix home services) + #|G|# #:use-module (radix home services gnupg) + #|S|# #:use-module (radix home services shells) + #|X|# #:use-module (radix home services xdg) + + #:export (home-environment)) + +(define home-environment + (user-home-environment + (packages + (list #|admin |# neofetch netcat-openbsd + #|bittorrent |# aria2 qbittorrent + #|c |# c-intro-and-ref + #|calendar |# remind + #|curl |# curl + #|disk |# lf + #|databases |# recutils + #|file |# file + #|fonts |# font-arabic-misc font-liberation font-meslo-lg-dz + font-misc-misc font-un font-wqy-zenhei + #|freedesktop |# xdg-utils + #|games |# minetest supertuxkart xonotic + #|gnome |# adwaita-icon-theme + #|gnu-doc |# gnu-standards + #|gnupg |# gnupg pinentry + #|guile-xyz |# haunt + #|image-viewers |# imv ueberzug++ + #|linux |# alsa-utils + #|math |# libqalculate + #|password-utils|# keepassxc + #|pdf |# sioyek + #|pulseaudio |# pamixer pavucontrol + #|scheme |# sicp + #|seninha |# fmutils + #|ssh |# openssh + #|suckless |# xst + #|syndication |# newsraft + #|telegram |# telegram-desktop + #|tor-browsers |# mullvadbrowser torbrowser + #|toys |# oneko + #|vesion-control|# git + #|video |# ffmpeg mpv yt-dlp + #|wm |# awesome-next + #|xdisorg |# maim wmctrl xbanish xclip xinit xsel + #|xorg |# setxkbmap xinput xf86-input-libinput xkill xmodmap + xorg-server xrdb xset)) + + (services + (list #|XDG services|# + (service home-xdg-user-directories-service-type + (home-xdg-user-directories-configuration + (desktop "$HOME/areas") + (documents "$HOME/areas/documents") + (download "$HOME/.local/share/downloads") + (music "$HOME/media/music") + (pictures "$HOME/media/pictures") + (videos "$HOME/media/videos") + (publicshare "") + (templates ""))) + + (service home-xdg-mime-applications-service-type + (home-xdg-mime-applications-configuration + (default (associate-right + ('mullvadbrowser.desktop + `("text/html" + "application/xhtml+xml" + "application/x-extension-htm" + "application/x-extension-xhtml" + "application/x-extension-xht" + "x-scheme-handler/http" + "x-scheme-handler/https")) + ('kak.desktop + `("text/plain" + "text/troff" + "text/xml" + "text/x-c" + "text/x-c++" + "text/x-diff" + "text/x-lisp" + "text/x-scheme" + "text/x-shellscript" + "text/x-tex")) + ('lf.desktop + `("inode/directory" + "x-scheme-handler/ftp" + "x-scheme-handler/nfs" + "x-scheme-handler/smb" + "x-scheme-handler/ssh" + "application/x-directory")) + ('mpv.desktop + `("image/gif" + "audio/mpeg" + "audio/ogg" + "audio/opus" + "audio/x-opus+ogg" + "video/mp4" + "video/x-matroska" + "video/webm")) + ('imv.desktop + `("image/avif" + "image/bmp" + "image/jpeg" + "image/png" + "image/svg+xml" + "image/webp")) + ('sioyek.desktop + `("image/vnd.djvu" + "application/pdf" + "application/epub+zip")))))) + + #|Dotfiles service|# + (service home-dotfiles-service-type + (home-dotfiles-configuration + (layout 'plain) + (directories `("radio/files")))) + + #|Guix service|# + (simple-service 'home-extra-channels + home-channels-service-type + (list (channel + (name 'radix) + (url "https://codeberg.org/anemofilia/radix.git") + (branch "main") + (introduction + (make-channel-introduction + "f9130e11e35d2c147c6764ef85542dc58dc09c4f" + (openpgp-fingerprint + (format #f "F164 709E 5FC7 B32B AEC7 ~ + 9F37 1F2E 76AC E3F5 31C8"))))))) + + #|Shepherd service|# + (service home-shepherd-service-type) + + #|Shell services|# + (service home-fish-service-type + (home-fish-configuration + (environment-variables + `(#|GNU Privacy Guard|# + ("GPG_TTY" . "(tty)") + + #|Remind|# + ("DOTREMINDERS" . "$XDG_DATA_HOME/reminders") + + #|GTK|# + ("GTK_RC_FILES" . "$XDG_CONFIG_HOME/gtk-2.0/gtkrc") + + #|Ncurses|# + ("TERMINFO" . "$XDG_DATA_HOME/terminfo"))) + (aliases + `(#|Common aliases|# + ("df" . "df -h") + ("du" . "du -h") + ("diff" . "diff --color=auto") + ("grep" . "grep --color=auto") + ("ip" . "ip --color=auto") + ("ls" . ,(format #f "ls --color=auto ~ + --group-directories-first ~ + --classify ~ + -hv")) + + #|Clear terminal screen without ncurses|# + ("clear" . "printf \"\\033c\"") + + #|Make ln idempotent|# + ("ln" . "ln -sfn") + + #|Kakoune bindings for info|# + ("info" . "info --init-file $XDG_CONFIG_HOME/info") + + #|Easy presentation setup with xrandr|# + ("present" . ,(format #f "xrandr --output LVDS-1 ~ + --mode 1366x768 ~ + --scale 1x1 ~ + --output VGA-1 ~ + --same-as LVDS-1 ~ + --mode 1920x1080 ~ + --scale 0.711x0.711")) + + #|Display images in lf using ueberzug|# + ("lf" . "$HOME/.local/bin/lf/lfrun") + + #|Listen to libre music on vern's radio|# + ("radio" . "https://radio.vern.cc") + + #|Kakoune aliases for the shell|# + ("':e'" . "kak") + ("':q'" . "exit"))) + (abbreviations + (let ((at (symbol-prefix-proc '@)) + (edit (partial string-append "$EDITOR "))) + (append + (map (match-lambda + ((x . y) (abbreviation + (name (at x)) + (position 'anywhere) + (expansion (y x))))) + (associate-right + #|P.A.R.A.|# + ((lambda (dir) + (if (equal? dir 'archive) + (symbol-append '~/. dir) + (symbol-append '~/ dir))) + '(areas projects resources resources/bookmarks archive)) + + #|XDG user directories|# + ((const (fish-function "xdg-user-directory")) + '(desktop documents download music pictures videos)) + + #|Code projects|# + ((symbol-prefix-proc '~/projects/code/) + '(c clj cpp hs html kak md pl scm sh tex zig)) + + #|Guix channels|# + ((symbol-prefix-proc '~/projects/code/scm/) + '(ajatt guix radix zero)) + + #|Configuration|# + ((symbol-prefix-proc + '~/areas/code/scm/radix/operating-system/) + (list (string->symbol (gethostname)))) + ((symbol-prefix-proc + '~/areas/code/scm/radix/home-environments/) + (list (string->symbol (getlogin)))))) + + (map (match-lambda + ((x . y) (abbreviation + (name x) + (expansion y)))) + `(#|Download/Upload|# + (a . "aria2c -j 10 '%'") + (i . "ipfs get %") + (m . "yt-dlp --prefer-free-formats -x '%'") + (v . "yt-dlp --prefer-free-formats '%'") + (z . "curl -F file=@% https://0x0.st | xsel -b"))) + + (map (match-lambda + ((x . y) (abbreviation + (name x) + (position 'anywhere) + (expansion y)))) + `(#|Shell history|# + (!! . ,(fish-function "bang-bang")) + (!$ . ,(fish-function "bang-dollar")) + (!* . ,(fish-function "bang-star")) + + #|Guix|# + (!dgen . "guix % delete-generations 2w") + (!repair . "doas guix build --repair") + (!pull . "guix pull") + (!home . "guix home reconfigure ~/.config/guix/home.scm") + (!system . "doas guix system reconfigure /etc/config.scm") + + #|Processes|# + (tf . "setsid -f %>/dev/null 2>&1 & disown") + + #|Quick edit|# + (:e . ,(edit)) + (:system . ,(edit "/etc/config.scm")) + (:home . ,(edit "~/.config/guix/home.scm")) + (:todo . ,(edit "~/areas/meta/todo"))))))))) + + #|Environment variables services|# + (simple-service 'shell-environment-variables + home-environment-variables-service-type + `(("PATH" . "$HOME/.local/bin:$PATH") + ("ENV" . "$XDG_CONFIG_HOME/dash/init.sh") + ("INPUTRC" . "$XDG_CONFIG_HOME/readline/inputrc") + ("XINITRC" . "$XDG_CONFIG_HOME/x11/xinitrc"))) + (simple-service 'guile-environment-variables + home-environment-variables-service-type + `(("GUILE_WARN_DEPRECATED" . "detailed") + ("GUILE_HISTORY" . "$XDG_CACHE_HOME/guile/history") + ("GUILE_LOAD_PATH" + . ,(format #f "~?~?" + "~@{:$HOME/areas/code/scm/~a~}" + '(ajatt radix zero) + "~@{:~a/share/guile/site/3.0~}" + '($HOME/.guix-home/profile + $XDG_CONFIG_HOME/guix/current + /run/current-system/profile))))) + (simple-service 'language-environment-variables + home-environment-variables-service-type + `(("LANG" . "en_US.UTF-8") + ("LANGUAGE" . "en_US.UTF-8") + ("LC_COLLATE" . "C"))) + (simple-service 'defaut-applications-environment-variables + home-environment-variables-service-type + `(("BROWSER" . "mullvadbrowser") + ("EDITOR" . "kak") + ("FCEDIT" . "kak") + ("PAGER" . "less") + ("READER" . "sioyek") + ("SHELL" . "fish") + ("TERMINAL" . "xst") + ("VISUAL" . "kak") + ("WM" . "awesome"))) + + #|SSH service|# + (service home-openssh-service-type + (home-openssh-configuration + (hosts (list (openssh-host + (name "codeberg.org") + (host-name "codeberg.org") + (user "git") + (identity-file "~/.ssh/codeberg")) + (openssh-host + (name "github.com") + (host-name "github.com") + (user "git") + (identity-file "~/.ssh/github")))) + (authorized-keys #f))) + + #|GPG agent service|# + (service home-gpg-agent-service-type + (home-gpg-agent-configuration + (gnupghome ".local/share/gnupg") + (pinentry-program + (file-append pinentry "/bin/pinentry-curses")))) + + #|Session services|# + (service home-dbus-service-type) + + #|Sound services|# + (service home-pipewire-service-type) + + #|Mcron service|# + (service home-mcron-service-type + (home-mcron-configuration + (jobs (list #~(job "30 5 * * *" + "mpv --shuffle ~/media/music"))))))))) +home-environment diff --git a/home-environments/radio/files/.config/awesome/rc.lua b/home-environments/radio/files/.config/awesome/rc.lua new file mode 100644 index 0000000..f3ee515 --- /dev/null +++ b/home-environments/radio/files/.config/awesome/rc.lua @@ -0,0 +1,900 @@ +-- awesome_mode: api-level=4:screen=on +-- If LuaRocks is installed, make sure that packages installed through it are +-- found (e.g. lgi). If LuaRocks is not installed, do nothing. +pcall(require, "luarocks.loader") + +-- @DOC_REQUIRE_SECTION@ +-- Standard awesome library +local gears = require("gears") +local awful = require("awful") + require("awful.autofocus") + require("collision")() + +-- Widget and layout library +local wibox = require("wibox") + +-- Theme handling library +local beautiful = require("beautiful") + +-- Notification library +local naughty = require("naughty") + +-- Declarative object management +local ruled = require("ruled") +local menubar = require("menubar") +local hotkeys_popup = require("awful.hotkeys_popup") + +-- Freedesktop +local freedesktop = require("freedesktop") + +-- Lain utils +local lain = require("lain") + +-- DPI +local dpi = require("beautiful.xresources").apply_dpi + +-- Table +local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility + +-- Enable hotkeys help widget for VIM and other apps +-- when client with a matching name is opened: +-- require("awful.hotkeys_popup.keys") + +-- {{{ Error handling +-- Check if awesome encountered an error during startup and fell back to +-- another config (This code will only ever execute for the fallback config) +-- @DOC_ERROR_HANDLING@ +naughty.connect_signal("request::display_error", function(message, startup) + naughty.notification { + urgency = "critical", + title = "Oops, an error happened"..(startup and " during startup!" or "!"), + message = message + } +end) +-- }}} + +-- {{{ Variable definitions +-- @DOC_LOAD_THEME@ +-- Themes define colours, icons, font and wallpapers. +beautiful.init(gears.filesystem.get_dir("config").."/themes/current.lua") +local theme = beautiful.get() + +-- @DOC_DEFAULT_APPLICATIONS@ +-- This is used later as the default terminal and editor to run. +terminal = os.getenv("TERMINAL") +editor = os.getenv("EDITOR") +browser = os.getenv("BROWSER") +editor_cmd = terminal.." -e "..editor +file_manager = terminal.." -g 137x31-320+16 -c Lf -e /home/radio/.local/bin/lf/lfrun" +irc_client = terminal.." -g 137x31-320+16 -c Weechat -e weechat" +rss_reader = terminal.." -g 137x31-320+16 -e newsraft" +music_player = terminal.." -g 137x31-320+16 -e ncmpcpp" +link_handler = "dmenu_link" + +-- Default modkey. +-- Usually, Mod4 is the key with a logo between Control and Alt. +-- If you do not like this or do not have such a key, +-- I suggest you to remap Mod4 to another key using xmodmap or other tools. +-- However, you can use another modifier like Mod1, but it may interact with others. +modkey = "Mod4" +altkey = "Mod1" +-- }}} + +-- {{{ Menu +-- @DOC_MENU@ +-- Create a launcher widget and a main menu +myawesomemenu = { + { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, + { "manual", terminal .. " -e man awesome" }, + { "edit config", editor_cmd .. " " .. awesome.conffile }, + { "restart", awesome.restart }, + { "quit", function() awesome.quit() end }, +} + +mymainmenu = freedesktop.menu.build { + before = { + { "awesome", myawesomemenu }, + -- other triads can be put here + }, + after = { + { "open terminal", terminal }, + -- other triads can be put here + } +} + +mylauncher = awful.widget.launcher({ + image = beautiful.awesome_icon, + menu = mymainmenu +}) + +-- Menubar configuration +menubar.utils.terminal = terminal +-- }}} + +-- {{{ Tag layout +-- @DOC_LAYOUT@ +-- Table of layouts to cover with awful.layout.inc, order matters. +tag.connect_signal("request::default_layouts", + function() + awful.layout.append_default_layouts({ + awful.layout.suit.tile, + awful.layout.suit.tile.bottom, + awful.layout.suit.max, + }) + end) +-- }}} + +-- {{{ Wallpaper +-- @DOC_WALLPAPER@ +screen.connect_signal("request::wallpaper", + function(s) + awful.wallpaper { + screen = s, + widget = { + { + image = beautiful.wallpaper, + upscale = true, + downscale = true, + widget = wibox.widget.imagebox, + }, + valign = "center", + halign = "center", + tiled = false, + widget = wibox.container.tile, + } + } + end) +-- }}} + +-- {{{ Wibar +local markup = lain.util.markup +local separators = lain.util.separators + +-- Keyboard map indicator and switcher +mykeyboardlayout = awful.widget.keyboardlayout() + +-- Create a textclock widget +mytextclock = wibox.widget.textclock() + +local clock = awful.widget.watch( + "date +'%a %d %b %R'", 60, + function(widget, stdout) + widget:set_markup(" " .. markup.font(beautiful.font, stdout)) + end +) + +-- Calendar +beautiful.cal = lain.widget.cal({ + icons = "", + attach_to = { clock }, + notification_preset = { + font = beautiful.font, + fg = beautiful.fg_normal, + bg = beautiful.bg_normal + } +}) + +-- MPD +local musicplr = terminal .. " -title Music -g 137x31-320+16 -e ncmpcpp" +local mpdicon = wibox.widget.imagebox(beautiful.widget_music) +mpdicon:buttons(my_table.join( + awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), + awful.button({ }, 1, function () + os.execute("mpc prev") + beautiful.mpd.update() + end), + awful.button({ }, 2, function () + os.execute("mpc toggle") + beautiful.mpd.update() + end), + awful.button({ }, 3, function () + os.execute("mpc next") + beautiful.mpd.update() + end))) +beautiful.mpd = lain.widget.mpd({ + settings = function() + if mpd_now.state == "play" then + artist = mpd_now.artist .. " " + title = mpd_now.title .. " " + mpdicon:set_image(beautiful.widget_music_on) + elseif mpd_now.state == "pause" then + artist = "mpd " + title = "paused " + else + artist = "" + title = "" + mpdicon:set_image(beautiful.widget_music) + end + + widget:set_markup(markup.font(beautiful.font, markup("#8581E0", artist) .. title)) + end +}) + +-- MEM +local memicon = wibox.widget.imagebox(beautiful.widget_mem) +local mem = lain.widget.mem({ + settings = function() + widget:set_markup(markup.font(beautiful.font, mem_now.used .. "MB ")) + end +}) + +-- CPU +local cpuicon = wibox.widget.imagebox(beautiful.widget_cpu) +local cpu = lain.widget.cpu({ + settings = function() + widget:set_markup(markup.font(beautiful.font, cpu_now.usage .. "% ")) + end +}) + +-- Coretemp +local tempicon = wibox.widget.imagebox(beautiful.widget_temp) +local temp = lain.widget.temp({ + settings = function() + widget:set_markup(markup.font(beautiful.font, math.ceil(coretemp_now) .. "°C ")) + end +}) + +-- Battery +local baticon = wibox.widget.imagebox(beautiful.widget_battery) +local bat = lain.widget.bat({ + settings = function() + if bat_now.status and bat_now.status ~= "N/A" then + if bat_now.ac_status == 1 then + baticon:set_image(beautiful.widget_ac) + elseif bat_now.perc and tonumber(bat_now.perc) < 25 then + baticon:set_image(beautiful.widget_battery_20) + elseif bat_now.perc and tonumber(bat_now.perc) < 45 then + baticon:set_image(beautiful.widget_battery_40) + elseif bat_now.perc and tonumber(bat_now.perc) < 65 then + baticon:set_image(beautiful.widget_battery_60) + elseif bat_now.perc and tonumber(bat_now.perc) < 85 then + baticon:set_image(beautiful.widget_battery_80) + else + baticon:set_image(beautiful.widget_battery_100) + end + widget:set_markup(markup.font(beautiful.font, bat_now.perc .. "% ")) + else + widget:set_markup(markup.font(beautiful.font, "AC ")) + baticon:set_image(beautiful.widget_ac) + end + end +}) + +-- ALSA volume +local volicon = wibox.widget.imagebox(beautiful.widget_vol) +beautiful.volume = lain.widget.alsa({ + settings = function() + if volume_now.status == "off" then + volicon:set_image(beautiful.widget_vol_mute) + elseif volume_now.level then + if tonumber(volume_now.level) == 0 then + volicon:set_image(beautiful.widget_vol_no) + elseif tonumber(volume_now.level) <= 50 then + volicon:set_image(beautiful.widget_vol_low) + else + volicon:set_image(beautiful.widget_vol) + end + end + + widget:set_markup(markup.font(beautiful.font, volume_now.level .. "% ")) + end +}) +beautiful.volume.widget:buttons( + awful.util.table.join( + awful.button({}, 4, function () + awful.util.spawn("amixer set Master 1%+") + beautiful.volume.update() + end), + awful.button({}, 5, function () + awful.util.spawn("amixer set Master 1%-") + beautiful.volume.update() + end) +)) + +-- Net +local netdownicon = wibox.widget.imagebox(beautiful.widget_netdown) +local netdowninfo = wibox.widget.textbox() +local netupicon = wibox.widget.imagebox(beautiful.widget_netup) +local netupinfo = lain.widget.net({ + settings = function() + widget:set_markup(markup.font(beautiful.font, net_now.sent .. " ")) + netdowninfo:set_markup(markup.font(beautiful.font, net_now.received .. " ")) + end +}) + +-- Separators +local spr = wibox.widget.textbox(' ') +local arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha") +local arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus) + +-- @DOC_FOR_EACH_SCREEN@ +screen.connect_signal("request::desktop_decoration", function(s) + -- Each screen has its own tag table. + awful.tag({ "α", "β", "γ", "δ", "ε", "ζ", "η" }, s, awful.layout.layouts[1]) + + -- Create a promptbox for each screen + s.mypromptbox = awful.widget.prompt() + + -- Create an imagebox widget which will contain an icon indicating which layout we're using. + -- We need one layoutbox per screen. + s.mylayoutbox = awful.widget.layoutbox { + screen = s, + buttons = { + awful.button({ }, 1, function () awful.layout.inc( 1) end), + awful.button({ }, 3, function () awful.layout.inc(-1) end), + awful.button({ }, 4, function () awful.layout.inc(-1) end), + awful.button({ }, 5, function () awful.layout.inc( 1) end), + } + } + + -- Create a taglist widget + s.mytaglist = awful.widget.taglist { + screen = s, + filter = awful.widget.taglist.filter.all, + buttons = { + awful.button({ }, 1, function(t) t:view_only() end), + awful.button({ modkey }, 1, function(t) + if client.focus then + client.focus:move_to_tag(t) + end + end), + awful.button({ }, 3, awful.tag.viewtoggle), + awful.button({ modkey }, 3, function(t) + if client.focus then + client.focus:toggle_tag(t) + end + end), + } + } + + -- @TASKLIST_BUTTON@ + -- Create a tasklist widget + s.mytasklist = awful.widget.tasklist { + screen = s, + filter = awful.widget.tasklist.filter.currenttags, + buttons = { + awful.button({ }, 1, function (c) + c:activate { context = "tasklist", action = "toggle_minimization" } + end), + awful.button({ }, 3, function() awful.menu.client_list { theme = { width = 250 } } end), + awful.button({ }, 4, function() awful.client.focus.byidx(-1) end), + awful.button({ }, 5, function() awful.client.focus.byidx( 1) end), + } + } + + -- @DOC_WIBAR@ + -- Create the wibox + s.mywibox = awful.wibar { + height = dpi(19), + position = "top", + screen = s, + -- @DOC_SETUP_WIDGETS@ + widget = { + layout = wibox.layout.align.horizontal, + { -- Left widgets + layout = wibox.layout.fixed.horizontal, + --mylauncher, + s.mytaglist, + s.mypromptbox, + }, + -- Middle widget + s.mytasklist, + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + --mykeyboardlayout, + --wibox.widget.systray(), + spr, + arrl_ld, + wibox.container.background(netdownicon, beautiful.bg_focus), + wibox.container.background(netdowninfo, beautiful.bg_focus), + wibox.container.background(netupicon, beautiful.bg_focus), + wibox.container.background(netupinfo.widget, beautiful.bg_focus), + arrl_dl, + wibox.container.background(memicon, beautiful.bg_normal), + wibox.container.background(mem.widget, beautiful.bg_normal), + arrl_ld, + wibox.container.background(cpuicon, beautiful.bg_focus), + wibox.container.background(cpu.widget, beautiful.bg_focus), + arrl_dl, + wibox.container.background(tempicon, beautiful.bg_normal), + wibox.container.background(temp.widget, beautiful.bg_normal), + arrl_ld, + wibox.container.background(volicon, beautiful.bg_focus), + wibox.container.background(beautiful.volume.widget, beautiful.bg_focus), + arrl_dl, + wibox.container.background(baticon, beautiful.bg_normal), + wibox.container.background(bat.widget, beautiful.bg_normal), + arrl_ld, + wibox.container.background(clock, beautiful.bg_focus), + wibox.container.background(spr, beautiful.bg_focus), + arrl_dl, + wibox.container.background(s.mylayoutbox, beautiful.bg_normal), + }, + } + } +end) + +-- }}} + +-- {{{ Mouse bindings +-- @DOC_ROOT_BUTTONS@ +awful.mouse.append_global_mousebindings({ + awful.button({ }, 2, function () mymainmenu:toggle() end), + --awful.button({ }, 4, awful.tag.viewprev), + --awful.button({ }, 5, awful.tag.viewnext), +}) +-- }}} + +-- {{{ Key bindings +-- @DOC_GLOBAL_KEYBINDINGS@ + +-- General Awesome keys +awful.keyboard.append_global_keybindings({ + awful.key({ modkey, }, "s", + function () hotkeys_popup.widget.new( + { width = 909, + height = 0.525*awful.screen.focused().workarea.height, + font = "Meslo LG M DZ 8", + description_font = "Meslo LG M DZ 8"}):show_help() end, + {description="show help", group="awesome"}), + awful.key({ modkey, "Control" }, "r", awesome.restart, + {description = "reload awesome", group = "awesome"}), + awful.key({ modkey, "Control" }, "q", awesome.quit, + {description = "quit awesome", group = "awesome"}), + awful.key({ altkey, }, "Print", function () + os.execute("screenshot activewindow") end, + {description = "print focused window", group = "launcher"}), + awful.key({ }, "Print", function () + os.execute("screenshot selectregion") end, + {description = "print selected region", group = "launcher"}), + awful.key({ }, "XF86WebCam", function () + os.execute("cam") end, + {description = "run cam", group = "launcher"}), + awful.key({ modkey, }, "c", function () + awful.spawn("keepassxc") end, + {description = "run keepassxc", group = "launcher"}), + awful.key({ modkey, }, "a", function () + awful.spawn("telegram-desktop") end, + {description = "run telegram-desktop", group = "launcher"}), + awful.key({ modkey, }, "r", function () + awful.spawn.with_shell("notify-send $(rem)") end, + {description = "run telegram-desktop", group = "launcher"}), + awful.key({ modkey, }, "w", function () + awful.spawn.raise_or_spawn(irc_client) end, + {description = "run irc client", group = "launcher"}), + awful.key({ modkey, }, "e", function () + awful.spawn(editor_cmd) end, + {description = "run editor", group = "launcher"}), + awful.key({ modkey, }, "Down", function () + awful.spawn(music_player) end, + {description = "run music player", group = "launcher"}), + awful.key({ modkey, }, "b", function () + awful.spawn(browser) end, + {description = "run browser", group = "launcher"}), + awful.key({ modkey, }, "d", function () + awful.spawn(file_manager) end, + {description = "run file manager", group = "launcher"}), + awful.key({ }, "XF86Launch1", function () + awful.spawn.raise_or_spawn(rss_reader) end, + {description = "run newsraft", group = "launcher"}), + awful.key({"Mod4" }, "x", function () + os.execute("xkill") end, + {description = "launch xkill", group = "launcher"}), + awful.key({"Mod4" }, "z", function () + os.execute("anna") end, + {description = "loot some ships", group = "launcher"}), + awful.key({"Mod4" }, "g", function () + awful.spawn(terminal.." -e guix repl") end, + {description = "run link handler", group = "launcher"}), + awful.key({ modkey, }, "Return", function () + awful.spawn(terminal) end, + {description = "run terminal", group = "launcher",}), + awful.key({ modkey, }, ":", function () + awful.screen.focused().mypromptbox:run() end, + {description = "run prompt", group = "launcher"}), +}) + +-- Tags related keybindings +awful.keyboard.append_global_keybindings({ + awful.key({ modkey, }, "h", awful.tag.viewprev, + {description = "focus previous tag", group = "tag"}), + awful.key({ modkey, }, "l", awful.tag.viewnext, + {description = "focus next tag", group = "tag"}), + awful.key({ modkey, }, "Escape", awful.tag.history.restore, + {description = "go back", group = "tag"}), +}) + +-- Focus related keybindings +awful.keyboard.append_global_keybindings({ + awful.key({ modkey, }, "j", function () + awful.client.focus.byidx( 1) end, + {description = "focus previous by index", group = "client"} + ), + awful.key({ modkey, }, "k", function () + awful.client.focus.byidx(-1) end, + {description = "focus next by index", group = "client"} + ), + awful.key({ modkey, }, "Tab", function () + awful.client.focus.history.previous() + if client.focus then + client.focus:raise() + end + end, + {description = "go back", group = "client"}), + awful.key({ modkey, "Control" }, "h", function () + awful.screen.focus_relative( 1) end, + {description = "focus the next screen", group = "screen"}), + awful.key({ modkey, "Control" }, "l", function () + awful.screen.focus_relative(-1) end, + {description = "focus the previous screen", group = "screen"}), + awful.key({ modkey, "Control" }, ".", function () + local c = awful.client.restore() + -- Focus restored client + if c then + c:activate { raise = true, context = "key.unminimize" } + end + end, + {description = "restore minimized", group = "client"}), +}) + +-- Layout related keybindings +awful.keyboard.append_global_keybindings({ + awful.key({ modkey, }, "u", awful.client.urgent.jumpto, + {description = "jump to urgent client", group = "client"}), + awful.key({ modkey, "Control" }, "h", function () + awful.tag.incnmaster( 1, nil, true) end, + {description = "increase the number of master clients", group = "layout"}), + awful.key({ modkey, "Control" }, "l", function () + awful.tag.incnmaster(-1, nil, true) end, + {description = "decrease the number of master clients", group = "layout"}), + awful.key({ modkey, }, "space", function () + awful.layout.inc( 1) end, + {description = "select next", group = "layout"}), + awful.key({ modkey, "Control" }, "space", function () + awful.layout.inc(-1) end, + {description = "select previous", group = "layout"}), +}) + +-- @DOC_NUMBER_KEYBINDINGS@ + +awful.keyboard.append_global_keybindings({ + awful.key { + modifiers = { modkey }, + keygroup = "numrow", + description = "only view tag", + group = "tag", + on_press = function (index) + local screen = awful.screen.focused() + local tag = screen.tags[index] + if tag then + tag:view_only() + end + end, + }, + awful.key { + modifiers = { modkey, "Control" }, + keygroup = "numrow", + description = "toggle tag", + group = "tag", + on_press = function (index) + local screen = awful.screen.focused() + local tag = screen.tags[index] + if tag then + awful.tag.viewtoggle(tag) + end + end, + }, + awful.key { + modifiers = { modkey, "Shift" }, + keygroup = "numrow", + description = "move focused client to tag", + group = "tag", + on_press = function (index) + if client.focus then + local tag = client.focus.screen.tags[index] + if tag then + client.focus:move_to_tag(tag) + end + end + end, + }, + awful.key { + modifiers = { modkey, "Control", "Shift" }, + keygroup = "numrow", + description = "toggle focused client on tag", + group = "tag", + on_press = function (index) + if client.focus then + local tag = client.focus.screen.tags[index] + if tag then + client.focus:toggle_tag(tag) + end + end + end, + }, +}) + +-- Audio related keybindings +awful.keyboard.append_global_keybindings({ + awful.key({ }, "XF86AudioRaiseVolume", function () + awful.util.spawn("amixer -q set Master 1%+", false) end, + {description = "volume up", group = "hotkeys"}), + awful.key({ }, "XF86AudioLowerVolume", function () + awful.util.spawn("amixer -q set Master 1%-", false) end, + {description = "volume down", group = "hotkeys"}), + awful.key({ }, "XF86AudioMute", function () + awful.util.spawn("amixer -D set Master 1+ toggle", false) end, + {description = "toggle mute", group = "hotkeys"}), +}) + +-- MPD related keybinds +awful.keyboard.append_global_keybindings({ + awful.key({ }, "XF86AudioPlay", function () + os.execute("mpc toggle") + end, + {description = "mpc toggle", group = "widgets"}), + awful.key({ }, "XF86AudioStop", function () + os.execute("mpc stop") + end, + {description = "mpc stop", group = "widgets"}), + awful.key({ }, "XF86AudioPrev", function () + os.execute("mpc prev") + end, + {description = "mpc prev", group = "widgets"}), + awful.key({ }, "XF86AudioNext", function () + os.execute("mpc next") + end, + {description = "mpc next", group = "widgets"}), +}) + +-- Generic hotkeys +awful.keyboard.append_global_keybindings({ + awful.key({ "Control", }, "space", function() + naughty.destroy_all_notifications() end, + {description = "destroy notifications", group = "hotkeys"}), + awful.key({ }, "XF86Sleep", function () + os.execute("doas zzz") end, + {description = "Sleep", group = "hotkeys"}), + awful.key({ }, "XF86Battery", function () + os.execute("i3lock -u -i /home/radio/Pictures/guix-artwork/backgrounds/guix-silver-checkered-16-9.svg") end, + {description = "lock screen", group = "hotkeys"}), +}) + +-- Show/hide wibox +awful.keyboard.append_global_keybindings({ + awful.key({ modkey }, "Up", function () + for s in screen do + s.mywibox.visible = not s.mywibox.visible + end + end, + {description = "toggle wibox", group = "awesome"}), +}) + +-- @DOC_CLIENT_BUTTONS@ +client.connect_signal("request::default_mousebindings", function() + awful.mouse.append_client_mousebindings({ + awful.button({ }, 1, function (c) + c:activate { context = "mouse_click" } end), + awful.button({ modkey, }, 1, function (c) + c:activate { context = "mouse_click", action = "mouse_move" } end), + awful.button({ modkey, }, 3, function (c) + c:activate { context = "mouse_click", action = "mouse_resize"} end), + }) +end) + +-- @DOC_CLIENT_KEYBINDINGS@ +client.connect_signal("request::default_keybindings", function() + awful.keyboard.append_client_keybindings({ + awful.key({ modkey, }, "f", function (c) + c.fullscreen = not c.fullscreen + c:raise() + end, + {description = "toggle fullscreen", group = "client"}), + awful.key({ modkey, }, "q", function (c) + c:kill() end, + {description = "close", group = "client"}), + awful.key({ modkey, "Shift" }, "Return", function (c) + c:swap(awful.client.getmaster()) end, + {description = "move to master", group = "client"}), + awful.key({ modkey, }, "o", function (c) + c:move_to_screen() end, + {description = "move to screen", group = "client"}), + awful.key({ modkey, }, "t", function (c) + c.ontop = not c.ontop end, + {description = "toggle keep on top", group = "client"}), + awful.key({ modkey, }, ".", function (c) + c.minimized = true end , + {description = "minimize", group = "client"}), + awful.key({ modkey, }, "m", lain.util.magnify_client, + {description = "toggle magnify", group = "client"})}) +end) + +-- }}} + +-- {{{ Rules +-- Rules to apply to new clients. +-- @DOC_RULES@ +ruled.client.connect_signal("request::rules", function() + -- @DOC_GLOBAL_RULE@ + -- All clients will match this rule. + ruled.client.append_rule { + id = "global", + rule = { }, + properties = { + focus = awful.client.focus.filter, + raise = true, + screen = awful.screen.preferred, + placement = awful.placement.no_overlap+awful.placement.no_offscreen + } + } + + -- @DOC_FLOATING_RULE@ + -- Floating clients. + ruled.client.append_rule { + id = "floating", + rule_any = { + instance = { + "copyq", + "pinentry" + }, + class = { + "Arandr", + "TelegramDesktop", + "KeePassXC", + "Gpick", + "Keepassxc", + "Tor Browser", + "Weechat", + "Wpa_gui", + "veromix", + "xtightvncviewer" + }, + -- Note that the name property shown in xprop might be set slightly after creation of the client + -- and the name shown there might not match defined rules here. + name = { + "Event Tester", -- xev. + }, + role = { + "AlarmWindow", -- Thunderbird's calendar. + "ConfigManager", -- Thunderbird's about:config. + "pop-up", -- e.g. Browser's (detached) Developer Tools. + } + }, + properties = { floating = true } + } + + -- Please st, respect my size hints :( + ruled.client.append_rule { + id = "respeitador de size hints", + rule_any = { + class = {"Emacs", "st-256color"}, + }, + properties = { size_hints_honor = false } + } + + -- @DOC_ONTOP_RULE@ + -- Ontop clients. + ruled.client.append_rule { + id = "ontop", + rule_any = { + name = { "Media viewer" }, + class = { "mpv" }, + }, + properties = { ontop = true }, + } + + -- Establish a default size and position for telegram + ruled.client.append_rule { + id = "TelegramDesktop", + rule_any = { + class = { "TelegramDesktop" }, + }, + except_any = { + name = { "Choose Files", "Media viewer" } + }, + properties = { + above = true, + placement = awful.placement.centered, + width = 380, + height = awful.screen.focused().workarea.height - 4 * beautiful.useless_gap - 2 + } + } + + -- @DOC_DIALOG_RULE@ + -- Add titlebars to normal clients and dialogs + ruled.client.append_rule { + -- @DOC_CSD_TITLEBARS@ + id = "titlebars", + rule_any = { type = { "normal", "dialog" } }, + properties = { titlebars_enabled = false } + } + +end) +-- }}} + +-- {{{ Titlebars +-- @DOC_TITLEBARS@ +-- Add a titlebar if titlebars_enabled is set to true in the rules. +client.connect_signal("request::titlebars", function(c) + -- buttons for the titlebar + local buttons = { + awful.button({ }, 1, function() + c:activate { context = "titlebar", action = "mouse_move" } + end), + awful.button({ }, 3, function() + c:activate { context = "titlebar", action = "mouse_resize"} + end), + } + + awful.titlebar(c).widget = { + { -- Left + awful.titlebar.widget.iconwidget(c), + buttons = buttons, + layout = wibox.layout.fixed.horizontal + }, + { -- Middle + { -- Title + halign = "center", + widget = awful.titlebar.widget.titlewidget(c) + }, + buttons = buttons, + layout = wibox.layout.flex.horizontal + }, + { -- Right + awful.titlebar.widget.floatingbutton (c), + awful.titlebar.widget.maximizedbutton(c), + awful.titlebar.widget.stickybutton (c), + awful.titlebar.widget.ontopbutton (c), + awful.titlebar.widget.closebutton (c), + layout = wibox.layout.fixed.horizontal() + }, + layout = wibox.layout.align.horizontal + } +end) +-- }}} + +--{{{ Autorun programs +autorun = true +autorunApps = { + "xrdb -load /home/radio/.config/x11/xresources", + "keepassxc", + "/home/radio/.profile", + "setxkbmap -layout 'us,br' -option 'grp:menu_switch,parens:swap_brackets,caps:swapescape'", + "xmodmap /home/radio/.config/x11/xmodmap", + "xset r rate 160 35", + "xset b off", + "xbanish", + "oneko -tofocus -speed 20 -fg '#101010' -bg '#606060'", + "oneko -tofocus -speed 22 -position 0x0+25+0", + } +if autorun then + for app = 1, #autorunApps do + awful.util.spawn(autorunApps[app]) + end +end +---}}} + + +-- {{{ Notifications + +ruled.notification.connect_signal('request::rules', function() + -- All notifications will match this rule. + ruled.notification.append_rule { + rule = { }, + properties = { + screen = awful.screen.preferred, + implicit_timeout = 5, + } + } +end) + +naughty.connect_signal("request::display", function(n) + naughty.layout.box { notification = n } +end) + +-- }}} + +-- Enable sloppy focus, so that focus follows mouse. +client.connect_signal("mouse::enter", function(c) + c:activate { context = "mouse_enter", raise = false } +end) diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png new file mode 100755 index 0000000..92c74fd Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png~ new file mode 100755 index 0000000..1298817 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/ac.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_100.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_100.png new file mode 100644 index 0000000..428b4ed Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_100.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_20.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_20.png new file mode 100644 index 0000000..8e4305f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_20.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_40.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_40.png new file mode 100644 index 0000000..ad6fc38 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_40.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_60.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_60.png new file mode 100644 index 0000000..f7c6d78 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_60.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_80.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_80.png new file mode 100644 index 0000000..7f31597 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_80.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png new file mode 100755 index 0000000..b841ace Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png~ new file mode 100755 index 0000000..84645aa Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_empty.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_low.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_low.png~ new file mode 100755 index 0000000..8d44edf Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/battery_low.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerwork.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerwork.png new file mode 100755 index 0000000..9071516 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerwork.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerworkh.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerworkh.png new file mode 100755 index 0000000..b1d1379 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/centerworkh.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png new file mode 100755 index 0000000..e493262 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png~ new file mode 100755 index 0000000..985eb65 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/cpu.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/dwindle.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/dwindle.png new file mode 100755 index 0000000..649ea99 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/dwindle.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairh.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairh.png new file mode 100755 index 0000000..66b7125 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairh.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairv.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairv.png new file mode 100755 index 0000000..13c4836 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/fairv.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/floating1.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/floating1.png new file mode 100644 index 0000000..05cca28 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/floating1.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/hdd.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/hdd.png new file mode 100755 index 0000000..0fb6833 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/hdd.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/keyboardicon.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/keyboardicon.png new file mode 100644 index 0000000..13e2a24 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/keyboardicon.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/magnifier.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/magnifier.png new file mode 100755 index 0000000..60d3e0d Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/magnifier.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail.png new file mode 100755 index 0000000..75a02fb Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail_on.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail_on.png new file mode 100755 index 0000000..d5a15b2 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mail_on.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png new file mode 100755 index 0000000..0cba687 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png~ new file mode 100755 index 0000000..bea6b55 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/max.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mem.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mem.png new file mode 100755 index 0000000..5b2910e Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/mem.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net.png new file mode 100755 index 0000000..bc42fdc Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png new file mode 100755 index 0000000..a7e76ae Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png~ new file mode 100755 index 0000000..09433b1 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_down.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png new file mode 100755 index 0000000..827db64 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png~ new file mode 100755 index 0000000..395d014 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_up.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_wired.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_wired.png new file mode 100755 index 0000000..e8cc2bd Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/net_wired.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note.png new file mode 100755 index 0000000..4cadb42 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note_on.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note_on.png new file mode 100755 index 0000000..ac4c19e Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/note_on.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/scissors.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/scissors.png new file mode 100755 index 0000000..f8c700d Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/scissors.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/spiral.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/spiral.png new file mode 100755 index 0000000..d9ee0f6 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/spiral.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/submenu.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/submenu.png new file mode 100755 index 0000000..b55ebce Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/submenu.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/task.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/task.png new file mode 100755 index 0000000..9701b68 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/task.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/temp.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/temp.png new file mode 100755 index 0000000..a0cf39f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/temp.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tile1.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tile1.png new file mode 100644 index 0000000..3f1b72f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tile1.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tilebottom1.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tilebottom1.png new file mode 100644 index 0000000..03120f0 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tilebottom1.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tileleft1.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tileleft1.png new file mode 100644 index 0000000..16b12ce Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tileleft1.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tiletop1.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tiletop1.png new file mode 100644 index 0000000..f16a015 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/tiletop1.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png new file mode 100755 index 0000000..b2051b0 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_focus.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png new file mode 100755 index 0000000..da6028c Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/close_normal.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png new file mode 100755 index 0000000..5fe84c0 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png new file mode 100755 index 0000000..47f19f6 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_focus_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png new file mode 100755 index 0000000..576fa36 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png new file mode 100755 index 0000000..4adc5e9 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/floating_normal_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png new file mode 100755 index 0000000..7d9a11a Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png new file mode 100755 index 0000000..bce1d00 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_focus_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png new file mode 100755 index 0000000..9f24945 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png new file mode 100755 index 0000000..2e56d32 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/maximized_normal_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png new file mode 100755 index 0000000..41a69e2 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png new file mode 100755 index 0000000..2f3a2be Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_focus_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png new file mode 100755 index 0000000..0f937b7 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png new file mode 100755 index 0000000..a9a3206 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/ontop_normal_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png new file mode 100755 index 0000000..a9bc8a2 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png new file mode 100755 index 0000000..5493d8e Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_focus_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png new file mode 100755 index 0000000..1e150f5 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_active.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png new file mode 100755 index 0000000..7e6c99b Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/titlebar/sticky_normal_inactive.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png new file mode 100644 index 0000000..17335e7 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png~ new file mode 100644 index 0000000..7c3be43 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png new file mode 100644 index 0000000..2c78312 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png~ new file mode 100644 index 0000000..c85a146 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_low.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png new file mode 100644 index 0000000..bb6e4cb Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png~ new file mode 100644 index 0000000..8f3b431 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_mute.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png new file mode 100644 index 0000000..8576456 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png~ new file mode 100644 index 0000000..0649889 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/icons/vol_no.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/theme.lua b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/theme.lua new file mode 100644 index 0000000..e10956c --- /dev/null +++ b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/theme.lua @@ -0,0 +1,380 @@ +--[[ + _ __ _ _ _ _ _ + / \ _ __ ___ _ __ ___ ___ / _(_| (_) __ _ | |_| |__ ___ _ __ ___ ___ + / _ \ | '_ \ / _ | '_ ` _ \ / _ \| |_| | | |/ _` | | __| '_ \ / _ | '_ ` _ \ / _ \ + / ___ \| | | | __| | | | | | (_) | _| | | | (_| | | |_| | | | __| | | | | | __/ +/_/ \_|_| |_|\___|_| |_| |_|\___/|_| |_|_|_|\__,_| \__|_| |_|\___|_| |_| |_|\___| + + +--]] +local gears = require("gears") +local lain = require("lain") +local awful = require("awful") +local wibox = require("wibox") +local dpi = require("beautiful.xresources").apply_dpi + +local os = os +local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility + +local theme = {} +theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/anemofilia" +theme.wallpaper = os.getenv("HOME") .. "Pictures/Wallpapers/\wall" --theme.dir .. "/wall.png" +theme.font = "Meslo LG M DZ 9" +theme.fg_normal = "#DDDDDD" +theme.fg_focus = "#8581E0"--"#EA6F81" +theme.fg_urgent = "#DCE081"--"#CC9393" +theme.bg_normal = "#1A1A1A" +theme.bg_focus = "#313131" +theme.bg_urgent = "#1A1A1A" +theme.border_width = dpi(1) +theme.border_normal = "#3F3F3F" +theme.border_focus = "#8581E0"--"#7F7F7F" +theme.border_marked = "#CC9393" +theme.tasklist_bg_focus = "#1A1A1A" +theme.titlebar_bg_focus = theme.bg_focus +theme.titlebar_bg_normal = theme.bg_normal +theme.titlebar_fg_focus = theme.fg_focus +theme.menu_height = dpi(20) +theme.menu_width = dpi(140) +theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png" +theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png" +theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png" +theme.layout_tile = theme.dir .. "/icons/tile1.png" +theme.layout_tileleft = theme.dir .. "/icons/tileleft1.png" +theme.layout_tilebottom = theme.dir .. "/icons/tilebottom1.png" +theme.layout_tiletop = theme.dir .. "/icons/tiletop1.png" +theme.layout_fairv = theme.dir .. "/icons/fairv.png" +theme.layout_fairh = theme.dir .. "/icons/fairh.png" +theme.layout_spiral = theme.dir .. "/icons/spiral.png" +theme.layout_dwindle = theme.dir .. "/icons/dwindle.png" +theme.layout_max = theme.dir .. "/icons/max.png" +theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png" +theme.layout_magnifier = theme.dir .. "/icons/magnifier.png" +theme.layout_floating = theme.dir .. "/icons/floating1.png" +theme.widget_ac = theme.dir .. "/icons/ac.png" +theme.widget_battery_100 = theme.dir .. "/icons/battery_100.png" +theme.widget_battery_80 = theme.dir .. "/icons/battery_80.png" +theme.widget_battery_60 = theme.dir .. "/icons/battery_60.png" +theme.widget_battery_40 = theme.dir .. "/icons/battery_40.png" +theme.widget_battery_20 = theme.dir .. "/icons/battery_20.png" +theme.widget_mem = theme.dir .. "/icons/mem.png" +theme.widget_cpu = theme.dir .. "/icons/cpu.png" +theme.widget_temp = theme.dir .. "/icons/temp.png" +theme.widget_netdown = theme.dir .. "/icons/net_down.png" +theme.widget_netup = theme.dir .. "/icons/net_up.png" +theme.widget_hdd = theme.dir .. "/icons/hdd.png" +theme.widget_music = theme.dir .. "/icons/note.png" +theme.widget_music_on = theme.dir .. "/icons/note_on.png" +theme.widget_vol = theme.dir .. "/icons/vol.png" +theme.widget_vol_low = theme.dir .. "/icons/vol_low.png" +theme.widget_vol_no = theme.dir .. "/icons/vol_no.png" +theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png" +theme.widget_mail = theme.dir .. "/icons/mail.png" +theme.widget_mail_on = theme.dir .. "/icons/mail_on.png" +theme.tasklist_plain_task_name = false +theme.tasklist_disable_icon = true +theme.gap_single_client = true +theme.useless_gap = dpi(4) +theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" +theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" +theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" +theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png" +theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png" +theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png" +theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png" +theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png" +theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png" +theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png" +theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png" +theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png" +theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png" +theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png" +theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png" +theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png" +theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png" +theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png" + +local markup = lain.util.markup +local separators = lain.util.separators + +local mykeyboardlayout = awful.widget.keyboardlayout:new() + +-- Textclock +local clockicon = wibox.widget.imagebox(theme.widget_clock) +local clock = awful.widget.watch( + "date +'%a %d %b %R'", 60, + function(widget, stdout) + widget:set_markup(" " .. markup.font(theme.font, stdout)) + end +) + +-- Calendar +theme.cal = lain.widget.cal({ + icons = "", + attach_to = { clock }, + notification_preset = { + font = theme.font, + fg = theme.fg_normal, + bg = theme.bg_normal + } +}) +--]]-- + +-- Mail IMAP check +local mailicon = wibox.widget.imagebox(theme.widget_mail) +--[[ commented because it needs to be set before use +mailicon:buttons(my_table.join(awful.button({ }, 1, function () awful.spawn(mail) end))) +theme.mail = lain.widget.imap({ + timeout = 180, + server = "server", + mail = "luisguilhermecoelho@usp.br", + password = "ZeugmaTau-6,283Anemofilia", + settings = function() + if mailcount > 0 then + widget:set_markup(markup.font(theme.font, " " .. mailcount .. " ")) + mailicon:set_image(theme.widget_mail_on) + else + widget:set_text("") + mailicon:set_image(theme.widget_mail) + end + end +}) +--]] + +-- MPD +local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp" +local mpdicon = wibox.widget.imagebox(theme.widget_music) +mpdicon:buttons(my_table.join( + awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end), + awful.button({ }, 1, function () + os.execute("mpc prev") + theme.mpd.update() + end), + awful.button({ }, 2, function () + os.execute("mpc toggle") + theme.mpd.update() + end), + awful.button({ }, 3, function () + os.execute("mpc next") + theme.mpd.update() + end))) +theme.mpd = lain.widget.mpd({ + settings = function() + if mpd_now.state == "play" then + artist = mpd_now.artist .. " " + title = mpd_now.title .. " " + mpdicon:set_image(theme.widget_music_on) + elseif mpd_now.state == "pause" then + artist = "mpd " + title = "paused " + else + artist = "" + title = "" + mpdicon:set_image(theme.widget_music) + end + + widget:set_markup(markup.font(theme.font, markup("#EA6F81", artist) .. title)) + end +}) + +-- MEM +local memicon = wibox.widget.imagebox(theme.widget_mem) +local mem = lain.widget.mem({ + settings = function() + widget:set_markup(markup.font(theme.font, mem_now.used .. "MB ")) + end +}) + +-- CPU +local cpuicon = wibox.widget.imagebox(theme.widget_cpu) +local cpu = lain.widget.cpu({ + settings = function() + widget:set_markup(markup.font(theme.font, cpu_now.usage .. "% ")) + end +}) + +-- Coretemp +local tempicon = wibox.widget.imagebox(theme.widget_temp) +local temp = lain.widget.temp({ + settings = function() + widget:set_markup(markup.font(theme.font, math.ceil(coretemp_now) .. "°C ")) + end +}) + +-- / fs +local fsicon = wibox.widget.imagebox(theme.widget_hdd) +--[[ commented because it needs Gio/Glib >= 2.54 +theme.fs = lain.widget.fs({ + notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10" }, + settings = function() + widget:set_markup(markup.font(theme.font, " " .. fs_now["/"].percentage .. "% ")) + end +}) +--]] + +-- Battery +local baticon = wibox.widget.imagebox(theme.widget_battery) +local bat = lain.widget.bat({ + settings = function() + if bat_now.status and bat_now.status ~= "N/A" then + if bat_now.ac_status == 1 then + baticon:set_image(theme.widget_ac) + elseif bat_now.perc and tonumber(bat_now.perc) < 25 then + baticon:set_image(theme.widget_battery_20) + elseif bat_now.perc and tonumber(bat_now.perc) < 45 then + baticon:set_image(theme.widget_battery_40) + elseif bat_now.perc and tonumber(bat_now.perc) < 65 then + baticon:set_image(theme.widget_battery_60) + elseif bat_now.perc and tonumber(bat_now.perc) < 85 then + baticon:set_image(theme.widget_battery_80) + else + baticon:set_image(theme.widget_battery_100) + end + widget:set_markup(markup.font(theme.font, bat_now.perc .. "% ")) + else + widget:set_markup(markup.font(theme.font, "AC ")) + baticon:set_image(theme.widget_ac) + end + end +}) + +-- ALSA volume +local volicon = wibox.widget.imagebox(theme.widget_vol) +theme.volume = lain.widget.alsa({ + settings = function() + if volume_now.status == "off" then + volicon:set_image(theme.widget_vol_mute) + elseif tonumber(volume_now.level) == 0 then + volicon:set_image(theme.widget_vol_no) + elseif tonumber(volume_now.level) <= 50 then + volicon:set_image(theme.widget_vol_low) + else + volicon:set_image(theme.widget_vol) + end + + widget:set_markup(markup.font(theme.font, volume_now.level .. "% ")) + end +}) +theme.volume.widget:buttons(awful.util.table.join( + awful.button({}, 4, function () + awful.util.spawn("amixer set Master 1%+") + theme.volume.update() + end), + awful.button({}, 5, function () + awful.util.spawn("amixer set Master 1%-") + theme.volume.update() + end) +)) + +-- Net +local netdownicon = wibox.widget.imagebox(theme.widget_netdown) +local netdowninfo = wibox.widget.textbox() +local netupicon = wibox.widget.imagebox(theme.widget_netup) +local netupinfo = lain.widget.net({ + settings = function() + widget:set_markup(markup.font(theme.font, net_now.sent .. " ")) + netdowninfo:set_markup(markup.font(theme.font, net_now.received .. " ")) + end +}) + +-- System tray +local systray = wibox.widget.systray() +systray:set_base_size(20) +systray:set_reverse(true) + +-- Separators +local spr = wibox.widget.textbox(' ') +local arrl_dl = separators.arrow_left(theme.bg_focus, "alpha") +local arrl_ld = separators.arrow_left("alpha", theme.bg_focus) + +function theme.at_screen_connect(s) + -- Quake application + s.quake = lain.util.quake({ app = awful.util.terminal }) + + -- If wallpaper is a function, call it with the screen + local wallpaper = theme.wallpaper + if type(wallpaper) == "function" then + wallpaper = wallpaper(s) + end + gears.wallpaper.maximized(wallpaper, s, true) + + -- Tags + awful.tag(awful.util.tagnames, s, awful.layout.layouts) + + -- Create a promptbox for each screen + s.mypromptbox = awful.widget.prompt() + -- Create an imagebox widget which will contains an icon indicating which layout we're using. + -- We need one layoutbox per screen. + s.mylayoutbox = awful.widget.layoutbox(s) + s.mylayoutbox:buttons(my_table.join( + awful.button({}, 1, function () awful.layout.inc( 1) end), + awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end), + awful.button({}, 3, function () awful.layout.inc(-1) end), + awful.button({}, 4, function () awful.layout.inc( 1) end), + awful.button({}, 5, function () awful.layout.inc(-1) end))) + -- Create a taglist widget + s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons) + + -- Create a tasklist widget + s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons) + + -- Create the wibox + s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(19), bg = theme.bg_normal, fg = theme.fg_normal }) + + -- Add widgets to the wibox + s.mywibox:setup { + layout = wibox.layout.align.horizontal, + { -- Left widgets + layout = wibox.layout.fixed.horizontal, + --spr, + s.mytaglist, + s.mypromptbox, + spr, + }, + s.mytasklist, -- Middle widget + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + --systray, + spr, + --arrl_dl, + --wibox.container.background(mpdicon, theme.bg_focus), + --wibox.container.background(theme.mpd.widget, theme.bg_focus), + arrl_ld, + --wibox.container.background(mailicon, theme.bg_focus), + --wibox.container.background(theme.mail.widget, theme.bg_focus), + wibox.container.background(netdownicon, theme.bg_focus), + wibox.container.background(netdowninfo, theme.bg_focus), + wibox.container.background(netupicon, theme.bg_focus), + wibox.container.background(netupinfo.widget, theme.bg_focus), + arrl_dl, + wibox.container.background(memicon, theme.bg_normal), + wibox.container.background(mem.widget, theme.bg_normal), + arrl_ld, + wibox.container.background(cpuicon, theme.bg_focus), + wibox.container.background(cpu.widget, theme.bg_focus), + arrl_dl, + wibox.container.background(tempicon, theme.bg_normal), + wibox.container.background(temp.widget, theme.bg_normal), + arrl_ld, + --wibox.container.background(fsicon, theme.bg_focus), + --wibox.container.background(theme.fs.widget, theme.bg_focus), + --arrl_dl, + wibox.container.background(volicon, theme.bg_focus), + wibox.container.background(theme.volume.widget, theme.bg_focus), + arrl_dl, + wibox.container.background(baticon, theme.bg_normal), + wibox.container.background(bat.widget, theme.bg_normal), + arrl_ld, + --wibox.container.background(neticon, theme.bg_focus), + --wibox.container.background(net.widget, theme.bg_focus), + --arrl_dl, + wibox.container.background(clock, theme.bg_focus), + wibox.container.background(spr, theme.bg_focus), + arrl_dl, + wibox.container.background(s.mylayoutbox, theme.bg_normal), + + }, + } +end + +return theme diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia-old/wall.png b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/wall.png new file mode 100644 index 0000000..3d4d2e0 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia-old/wall.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/anemofilia-background.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/anemofilia-background.png new file mode 100644 index 0000000..7ab8fd3 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/anemofilia-background.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/awesome-icon.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/awesome-icon.png new file mode 100644 index 0000000..70978d3 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/awesome-icon.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/ac.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/ac.png new file mode 100755 index 0000000..92c74fd Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/ac.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_100.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_100.png new file mode 100644 index 0000000..428b4ed Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_100.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_20.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_20.png new file mode 100644 index 0000000..8e4305f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_20.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_40.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_40.png new file mode 100644 index 0000000..ad6fc38 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_40.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_60.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_60.png new file mode 100644 index 0000000..f7c6d78 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_60.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_80.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_80.png new file mode 100644 index 0000000..7f31597 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_80.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_empty.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_empty.png new file mode 100755 index 0000000..b841ace Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/battery_empty.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/cpu.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/cpu.png new file mode 100755 index 0000000..e493262 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/cpu.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail.png new file mode 100755 index 0000000..75a02fb Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png new file mode 100755 index 0000000..168c289 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png~ new file mode 100755 index 0000000..d5a15b2 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mail_on.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mem.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mem.png new file mode 100755 index 0000000..5b2910e Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/mem.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_down.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_down.png new file mode 100755 index 0000000..a7e76ae Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_down.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_up.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_up.png new file mode 100755 index 0000000..827db64 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_up.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_wired.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_wired.png new file mode 100755 index 0000000..e8cc2bd Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/net_wired.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note.png new file mode 100755 index 0000000..4cadb42 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png new file mode 100755 index 0000000..0013fd9 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png~ b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png~ new file mode 100755 index 0000000..ac4c19e Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/note_on.png~ differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/screenlog.0 b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/screenlog.0 new file mode 100644 index 0000000..e69de29 diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/temp.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/temp.png new file mode 100755 index 0000000..a0cf39f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/temp.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol.png new file mode 100644 index 0000000..a22a620 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_low.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_low.png new file mode 100644 index 0000000..2c78312 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_low.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_mute.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_mute.png new file mode 100644 index 0000000..bb6e4cb Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_mute.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_no.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_no.png new file mode 100644 index 0000000..8576456 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/icons/vol_no.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/fairv.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/fairv.png new file mode 100755 index 0000000..13c4836 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/fairv.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/farih.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/farih.png new file mode 100644 index 0000000..66b7125 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/farih.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/floating.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/floating.png new file mode 100644 index 0000000..05cca28 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/floating.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/max.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/max.png new file mode 100755 index 0000000..0cba687 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/max.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tile.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tile.png new file mode 100644 index 0000000..3f1b72f Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tile.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tilebottom.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tilebottom.png new file mode 100644 index 0000000..03120f0 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tilebottom.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tileleft.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tileleft.png new file mode 100644 index 0000000..16b12ce Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tileleft.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tiletop.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tiletop.png new file mode 100644 index 0000000..f16a015 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/layouts/tiletop.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_sel.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_sel.png new file mode 100644 index 0000000..2ebe2bb Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_sel.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_unsel.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_unsel.png new file mode 100644 index 0000000..4e9ef5d Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/square_unsel.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarefz.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarefz.png new file mode 100644 index 0000000..0927720 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarefz.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarez.png b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarez.png new file mode 100644 index 0000000..9b41c26 Binary files /dev/null and b/home-environments/radio/files/.config/awesome/themes/anemofilia/taglist/squarez.png differ diff --git a/home-environments/radio/files/.config/awesome/themes/anemofilia/theme.lua b/home-environments/radio/files/.config/awesome/themes/anemofilia/theme.lua new file mode 100644 index 0000000..b6cf648 --- /dev/null +++ b/home-environments/radio/files/.config/awesome/themes/anemofilia/theme.lua @@ -0,0 +1,105 @@ +--[[ +░█████╗░███╗░░██╗███████╗███╗░░░███╗░█████╗░███████╗██╗██╗░░░░░██╗░█████╗░ +██╔══██╗████╗░██║██╔════╝████╗░████║██╔══██╗██╔════╝██║██║░░░░░██║██╔══██╗ +███████║██╔██╗██║█████╗░░██╔████╔██║██║░░██║█████╗░░██║██║░░░░░██║███████║ +██╔══██║██║╚████║██╔══╝░░██║╚██╔╝██║██║░░██║██╔══╝░░██║██║░░░░░██║██╔══██║ +██║░░██║██║░╚███║███████╗██║░╚═╝░██║╚█████╔╝██║░░░░░██║███████╗██║██║░░██║ +╚═╝░░╚═╝╚═╝░░╚══╝╚══════╝╚═╝░░░░░╚═╝░╚════╝░╚═╝░░░░░╚═╝╚══════╝╚═╝╚═╝░░╚═╝ +▀▀█▀▀ █░░█ █▀▀ █▀▄▀█ █▀▀ +░░█░░ █▀▀█ █▀▀ █░▀░█ █▀▀ +░░▀░░ ▀░░▀ ▀▀▀ ▀░░░▀ ▀▀▀ +-]] + +local themes_path = require("gears.filesystem").get_dir("config").."/themes/" +local rnotification = require("ruled.notification") +local dpi = require("beautiful.xresources").apply_dpi + +-- Main +local theme = {} +theme.dir = themes_path .. "anemofilia" +theme.wallpaper = theme.dir .. "/anemofilia-background.png" + +-- Styles +theme.font = "Meslo LG M DZ 9" +theme.notification_font = theme.font + +-- Colors +theme.fg_normal = "#DDDDDD" +theme.fg_focus = "#8581E0" +theme.fg_urgent = "#DCE081" +theme.bg_normal = "#1A1A1A" +theme.bg_focus = "#313131" +theme.bg_urgent = "#1A1A1A" +theme.bg_systray = theme.bg_normal +theme.tasklist_bg_focus = theme.bg_normal + +-- Tasklist +theme.tasklist_disable_icon = true + +-- {{{ Borders +theme.useless_gap = dpi(4) +theme.border_width = dpi(1) +theme.border_color_normal = "#3F3F3F" +theme.border_color_active = "#8581E0" +theme.border_color_marked = "#CC9393" + +-- Titlebars +theme.titlebar_bg_focus = "#3F3F3F" +theme.titlebar_bg_normal = "#3F3F3F" + +-- Wibox icons + theme.widget_ac = theme.dir .. "/icons/ac.png" + theme.widget_battery_100 = theme.dir .. "/icons/battery_100.png" + theme.widget_battery_80 = theme.dir .. "/icons/battery_80.png" + theme.widget_battery_60 = theme.dir .. "/icons/battery_60.png" + theme.widget_battery_40 = theme.dir .. "/icons/battery_40.png" + theme.widget_battery_20 = theme.dir .. "/icons/battery_20.png" + theme.widget_mem = theme.dir .. "/icons/mem.png" + theme.widget_cpu = theme.dir .. "/icons/cpu.png" + theme.widget_temp = theme.dir .. "/icons/temp.png" + theme.widget_netdown = theme.dir .. "/icons/net_down.png" + theme.widget_netup = theme.dir .. "/icons/net_up.png" + theme.widget_hdd = theme.dir .. "/icons/hdd.png" + theme.widget_music = theme.dir .. "/icons/note.png" + theme.widget_music_on = theme.dir .. "/icons/note_on.png" + theme.widget_vol = theme.dir .. "/icons/vol.png" + theme.widget_vol_low = theme.dir .. "/icons/vol_low.png" + theme.widget_vol_no = theme.dir .. "/icons/vol_no.png" + theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png" + +-- Menu +theme.menu_height = dpi(20) +theme.menu_width = dpi(140) + +-- Taglist +theme.taglist_squares_sel = theme.dir .. "/taglist/square_sel.png" +theme.taglist_squares_unsel = theme.dir .. "/taglist/square_unsel.png" + +-- Misc +theme.awesome_icon = theme.dir .. "/awesome-icon.png" + +-- Layout +theme.layout_tile = theme.dir .. "/layouts/tile.png" +theme.layout_tileleft = theme.dir .. "/layouts/tileleft.png" +theme.layout_tilebottom = theme.dir .. "/layouts/tilebottom.png" +theme.layout_tiletop = theme.dir .. "/layouts/tiletop.png" +theme.layout_fairv = theme.dir .. "/layouts/fairv.png" +theme.layout_fairh = theme.dir .. "/layouts/fairh.png" +theme.layout_max = theme.dir .. "/layouts/max.png" +theme.layout_fullscreen = theme.dir .. "/layouts/fullscreen.png" +theme.layout_magnifier = theme.dir .. "/layouts/magnifier.png" +theme.layout_floating = theme.dir .. "/layouts/floating.png" +-- }}} + +-- Set different colors for urgent notifications. +rnotification.connect_signal('request::rules', function() + rnotification.append_rule { + rule = { urgency = 'critical' }, + properties = { + bg = '#ff0000', + fg = '#ffffff' + } + } +end) + +return theme diff --git a/home-environments/radio/files/.config/emacs/init.el b/home-environments/radio/files/.config/emacs/init.el new file mode 100644 index 0000000..c53f0d7 --- /dev/null +++ b/home-environments/radio/files/.config/emacs/init.el @@ -0,0 +1,229 @@ +;; Who am I? +(setq user-full-name "Luis Guilherme Coelho" + user-email-address "lgcoelho@disroot.org" + copyright-names-regexp (format "%s <%s>" + user-full-name + user-mail-address)) +(load-file "~/projects/code/scm/guix/etc/copyright.el") + +;; Emacs directories +(setq user-emacs-directory "~/.config/emacs") + +;; Organizing backups +(setq backup-directory-alist + '(("." . "~/.local/share/emacs/saves"))) + +;; Emacs load path +(add-to-list 'load-path + "~/.guix-home/profile/share/emacs/site-lisp") +(setq-default buffer-file-coding-system + 'utf-8-unix) + +;; Garbage collection +(setq gc-cons-threshold (* 50 1000 1000)) + +;; No more tabs +(setq-default indent-line-function 'insert-tab + indent-tabs-mode nil) + +;; Profile emacs startup +(add-hook 'emacs-startup-hook + (lambda () (message + "*:** Emacs loaded in %s seconds with %d garbage collections." + (emacs-init-time "%.2f") + gcs-done))) + +;; Disable compiler and large file warnings + (setq native-comp-async-report-warnings-errors nil + large-file-warning-threshold nil) + +;; Remove start message and scratch message +(setq inhibit-startup-message t + initial-scratch-message nil) + +;; Enable some minor modes globally +(dolist (mode '(server-mode ; Emacs server + savehist-mode ; Command history + column-number-mode ; Cursor column number + global-prettify-symbols-mode ; Pretty symbols + delete-selection-mode)) ; Normal selection behavior + (funcall mode 1)) + +;; Disable some minor modes globally +(dolist (mode '(tool-bar-mode menu-bar-mode ; Menus + scroll-bar-mode ; Scroll-bar + tooltip-mode ; Tooltip + indent-tabs-mode ; Tabs + blink-cursor-mode ; Cursor + fringe-mode)) ; Fringe + (funcall mode 0)) + +;; Line numbers settings +(setq display-line-numbers-type 'relative + display-line-numbers-current-absolute t + display-line-numbers-grow-only t + display-line-numbers-width-start t) + +;; Display whitespaces +(setq-default fill-column 80) +(setq whitespace-display-mappings + '((space-mark ?\ [?⋅] [?.]) + (space-mark ?\xA0 [?⋅] [?_]) + (newline-mark ?\n [?¬ ?\n] [?$ ?\n]) + (tab-mark ?\t [?» ?\t] [?\\ ?\t]))) +(dolist (mode '(text-mode-hook + prog-mode-hook + conf-mode-hook)) + (add-hook mode (lambda () + (setq display-line-numbers-witdth + (length (format "%s" (count-lines (point-max) + (point-min))))) + (dolist (mode '(display-line-numbers-mode + rainbow-delimiters-mode + display-fill-column-indicator-mode + whitespace-mode)) + (funcall mode 1))))) +(add-hook 'org-mode-hook + (lambda () + (dolist (mode '(whitespace-mode + display-fill-column-indicator-mode)) + (funcall mode 0)) + (setq org-pretty-entities t))) + +;; Aesthetics +(load-theme 'meimuna t) +(setq cursor-type 'box) + +;; Smooth scroll +(setq scroll-step 1) + +;; Please never show me a dialog box again +(setq use-dialog-box nil) + +;; IRC +(setq circe-nick "anemofilia") +(setq circe-channels '("#emacs" + "#gnu" + "#guile" + "#guix" + "#libreboot")) + +;; EMMS +(setq emms-player-list '(emms-player-mpv)) + +;(require 'setup) +;(setup-define :pkg +; (lambda (feature-or-package) +; `(unless (locate-file ,(symbol-name feature-or-package) +; load-path +; (get-load-suffixes)) +; (:package ',feature-or-package))) +; :documentation "Install PACKAGE if it is not available locally. +;This macro can be used as NAME, and it will replace itself with +;the first PACKAGE." +; :repeatable t +; :shorthand #'cadr) +; +;(setup-define :disabled +; (lambda () `,(setup-quit)) +; :documentation "Always stop evaluating the body.") +; +;(setup-define :load-after +; (lambda (features &rest body) +; (let ((body `(progn +; (require ',(setup-get 'feature)) +; ,@body))) +; (dolist (feature (if (listp features) +; (nreverse features) +; (list features))) +; (setq body `(with-eval-after-load ',feature ,body))) +; body)) +; :documentation "Load the current feature after FEATURES." +; :indent 1) +; +;(setup-define :file-match +; (lambda (regexp) +; `(add-to-list 'auto-mode-alist (cons ,regexp ',(setup-get 'mode)))) +; :documentation "Associate the current mode with files that match REGEXP." +; :debug '(form) +; :repeatable t) +; +;(setup-define :leader +; (lambda (&rest args) +; `(with-eval-after-load 'general +; (general-define-key ,@args +; :states 'normal +; :keymaps 'override +; :prefix "SPC" +; :global-prefix "C-SPC"))) +; :documentation "Define a leader keybind" +; :debug '(form) +; :indent 0) +; +;(setup-define :local-leader +; (lambda (&rest args) +; `(with-eval-after-load 'general +; (let ((map ',(setup-get 'map))) +; (general-define-key ,@args +; :states 'normal +; :keymaps map +; :prefix "SPC m" +; :global-prefix "C-SPC m")))) +; :documentation "Define a local leader keybind" +; :debug '(form) +; :indent 0) +; +;(setup-define :ignore-buffers +; (lambda (&rest buffers) +; `(setq ignored-buffers (append ignored-buffers ',buffers))) +; :documentation "Ignore buffers") +; +;(setup-define :display-rule +; (lambda (condition &rest actions) +; `(add-to-list 'display-buffer-alist '(,condition . ,actions))) +; :documentation "Add to display buffer alist") +; +;(setup (:pkg kakoune) +; (:option ryo-modal-cursor-type 'box +; ryo-modal-cursor-color "#8581E0") +; (:global "" +; (lambda () +; (interactive) +; (if (minibufferp) +; (keyboard-escape-quit) +; (ryo-modal-mode)))) +; (kakoune-setup-keybinds) +; (ryo-modal-keys +; ("M-s" mc/split-region))) +;: +;;; Use a real file manager +;(setup (:pkg dirvish) +; (:hook hl-line-mode) +; (:option dirvish-attributes nil +; dirvish-listing-switches '(--group-directories-first --classify)) +; ;'(vc-state subtree-state all-the-icons collapse git-msg file-time file-size)) +; (dirvish-override-dired-mode)) +; +;(setup (:pkg org-bullets org-present org-roam org-modern)) +;(setup (:pkg elfeed elfeed-org)) +;(setup (:pkg geiser geiser-guile macrostep-geiser)) +;(setup (:pkg cape corfu corfu-doc consult-lsp vertico orderless)) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(custom-enabled-themes '(meimuna)) + '(custom-safe-themes + '("5df271e8c563dcd5b7be07ab5b5a615567b20a36b7c748475df0bb512332f0e1" "c202b7618764218b8ecb21a13c5dc9b318f0879f54105847fa5e1868afb19369" "044d60490c760e63bd39232445702271257a47ab384a3871649ea03a3d2b430a" "322a73057be183963dcd4fbfaa859e636fc8aa5f76f2a24f32a8ee5cc73be484" "671f76d55e2917bcae38168c2363fc21a335683583543b3fe49018cf5542908d" "f2db82bef0fb3e3922053605326d82b3e6494aed5c938440358710e9b78da7d9" "47263df55a6df473a5b9ba13107523f285db25dbbfd793ed5beaf47b7ec11c8e" "452da09d018e5f7bffa1e293c224c8711aa37dc9e7dd1dce24c9be6a0f6067c3" "f2c28b88fc49c9577269afcfdbf4630135c2bc2a4813f379c9a8a3979953e706" "38d107472028475f6d47938a91abf170587b718f4ca84f258ea8d72babe25201" "12bd9d840d3e0f54c607ca63acca59b083eca3cb18b9e5c7b34dfb6a400eaf4b" default)) + '(package-selected-packages + '(eat mines setup kakoune magit-popup edit-indirect bui geiser-guile auctex)) + '(whitespace-style + '(face trailing tabs spaces lines lines-tail lines-char newline missing-newline-at-eof empty indentation::tab indentation::space indentation big-indent space-after-tab::tab space-after-tab::space space-after-tab space-before-tab::tab space-before-tab::space space-before-tab space-mark tab-mark newline-mark))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(whitespace-line ((t nil)))) diff --git a/home-environments/radio/files/.config/emacs/meimuna-theme.el b/home-environments/radio/files/.config/emacs/meimuna-theme.el new file mode 100644 index 0000000..d02f596 --- /dev/null +++ b/home-environments/radio/files/.config/emacs/meimuna-theme.el @@ -0,0 +1,131 @@ +(deftheme meimuna + "Created 2022-01-11.") + +(custom-theme-set-faces + 'meimuna + '(cursor ((t (:background "#8581e0" :foreground "#ffffff")))) + '(fixed-pitch ((t (:family "Monospace")))) + '(variable-pitch ((((type w32)) (:foundry "outline" :family "Arial")) (t (:family "Sans Serif")))) + '(escape-glyph ((t (:background "#211d3c" :foreground "khaki")))) + '(homoglyph ((t (:foreground "khaki")))) + '(minibuffer-prompt ((t (:foreground "#8581e0")))) + '(highlight ((t (:background "#8581e0" :foreground "black")))) + '(region ((t (:extend t :background "#1F102f")))) + '(shadow ((t (:foreground "#999999")))) + '(secondary-selection ((t (:extend t :background "#9a9a9a")))) + '(font-lock-builtin-face ((t (:foreground "#ffd17a")))) + '(font-lock-comment-delimiter-face ((t (:foreground "#86adff")))) + '(font-lock-comment-face ((t (:foreground "#86adff")))) + '(font-lock-constant-face ((t (:foreground "#df6760")))) + '(font-lock-doc-face ((t (:foreground "#9a99e7" :inherit font-lock-string-face)))) + '(font-lock-function-name-face ((t (:foreground "#86adff")))) + '(font-lock-keyword-face ((t (:foreground "#8681e0")))) + '(font-lock-negation-char-face ((t nil))) + '(font-lock-preprocessor-face ((t (:inherit font-lock-builtin-face)))) + '(font-lock-regexp-grouping-backslash ((t (:inherit (bold))))) + '(font-lock-regexp-grouping-construct ((t (:inherit bold)))) + '(font-lock-string-face ((t (:foreground "#fc97ff")))) + '(font-lock-type-face ((t (:foreground "#ffd17a")))) + '(font-lock-variable-name-face ((t nil))) + '(font-lock-warning-face ((t (:foreground "#dce081" :weight bold)))) + '(button ((t (:inherit (link))))) + '(link ((t (:foreground "#8c86e4" :underline (:color foreground-color :style line))))) + '(link-visited ((t (:foreground "#999999" :inherit link)))) + '(fringe ((t (:foreground "#506080" :background "#111111")))) + '(header-line ((default (:inherit (mode-line))) (((type tty)) (:underline (:color foreground-color :style line) :inverse-video nil)) (((class color grayscale) (background light)) (:box nil :foreground "grey20" :background "grey90")) (((class color grayscale) (background dark)) (:box nil :foreground "grey90" :background "grey20")) (((class mono) (background light)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "black" :background "white")) (((class mono) (background dark)) (:underline (:color foreground-color :style line) :box nil :inverse-video nil :foreground "white" :background "black")))) + '(tooltip ((t (:foreground "#FFFFFF" :background "#5f5e8a")))) + '(mode-line ((t (:background "#303030" :foreground "#9688d9")))) + '(mode-line-buffer-id ((t (:weight bold :box nil)))) + '(mode-line-emphasis ((t (:weight bold)))) + '(mode-line-highlight ((t (:box nil)))) + '(mode-line-inactive ((t (:background "#111111" :foreground "dim gray")))) + '(isearch ((t (:foreground "white" :background "#5533AA")))) + '(isearch-fail ((t (:foreground "#999")))) + '(lazy-highlight ((t (:inherit default :background "#8581e0")))) + '(match ((t (:background "#8581e0" :foreground "white")))) + '(next-error ((t (:inherit (region))))) + '(query-replace ((t (:inherit isearch :background "khaki" :foreground "#101010")))) + '(line-number-current-line ((t (:inherit line-number :background "#313131" :foreground "#8581e0")))) + '(line-number ((t (:inherit (shadow default))))) + '(line-number-major-tick ((((class color grayscale) (background light)) (:bold t :background "grey85")) (((class color grayscale) (background dark)) (:bold t :background "grey75")) (t (:inherit (line-number))))) + '(org-document-title ((t (:height 1.2 :underline nil :inherit org-level-1)))) + '(org-level-1 ((t (:inherit default :extend t :foreground "#f6f3e8" :height 1.1 :family "Sans Serif")))) + '(org-level-2 ((t (:family "Sans Serif" :height 1.0 :foreground "#f6f3e8" :extend t :inherit default)))) + '(org-level-3 ((t (:foreground "#f6f3e8" :extend t :inherit default)))) + '(org-level-4 ((t (:inherit default :extend t :foreground "#f6f3e8")))) + '(org-level-5 ((t (:inherit default :extend t :foreground "#f6f3e8")))) + '(org-level-6 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) + '(org-level-7 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) + '(org-level-8 ((t (:extend t :foreground "#f6f3e8" :inherit (default))))) + '(org-todo ((t (:foreground "#00ff00" :weight bold)))) + '(org-done ((t (:foreground "#ff0000" :weight bold)))) + '(org-table ((t (:foreground "#999999")))) + '(org-ellipsis ((t (:foreground "#fff")))) + '(org-block-begin-line ((t (:background "#606590" :extend t :inherit \#fff)))) + '(org-block-end-line ((t (:inherit \#fff :extend t :background "#606590")))) + '(org-scheduled ((t (:foreground "#606590" :weight bold)))) + '(org-date ((t (:underline (:color foreground-color :style line) :foreground "#8c86e4")))) + '(org-tag ((t (:bold t)))) + '(org-warning ((t (:inherit font-lock-warning-face)))) + '(org-headline-todo ((t (:foreground "#fff")))) + '(org-sexp-date ((t (:foreground "#999999")))) + '(org-agenda-date ((t (:foreground "#999999")))) + '(org-date-selected ((t (:foreground "#999999" :inverse-video t)))) + '(org-footnote ((t (:underline (:color foreground-color :style line) :style ni :foreground "#8c86e4")))) + '(org-agenda-date-today ((t (:inherit org-agenda-date :foreground "#444083" :weight bold)))) + '(org-agenda-date-weekend ((t (:inherit org-agenda-date :foreground "#444083" :weight bold)))) + '(org-formula ((t (:foreground "khaki")))) + '(org-scheduled-previously ((t (:foreground "khaki")))) + '(org-upcoming-deadline ((t (:foreground "khaki" :weight bold)))) + '(org-document-info ((t (:foreground "#fff")))) + '(org-drawer ((t (:foreground "#999999")))) + '(org-latex-and-related ((t (:foreground "#fff")))) + '(org-scheduled-today ((t (:foreground "khaki" :weight ultra-bold)))) + '(org-time-grid ((t (:foreground "#8c86e4")))) + '(whitespace-space ((t (:inherit default :foreground "#606060")))) + '(whitespace-hspace ((t (:inherit whitespace-space)))) + '(whitespace-tab ((t (:inherit whitespace-space)))) + '(whitespace-newline ((t (:inherit whitespace-space)))) + '(whitespace-trailing ((t (:inherit whitespace-space)))) + '(whitespace-space-before-tab ((t (:inherit whitespace-space)))) + '(whitespace-indentation ((t (:inherit whitespace-space)))) + '(whitespace-big-indent ((t (:inherit whitespace-space)))) + '(whitespace-empty ((t (:extend t :inherit whitespace-space)))) + '(whitespace-space-after-tab ((t (:inherit whitespace-space)))) + '(whitespace-missing-newline-at-eof ((t (:inherit whitespace-space)))) + '(whitespace-line ((t nil))) + '(fill-column-indicator ((t (:foreground "#303030" :background "#303030" :inherit shadow)))) + '(rainbow-delimiters-depth-1-face ((t (:inherit rainbow-delimiters-base-face :foreground "#a790d3")))) + '(rainbow-delimiters-depth-2-face ((t (:inherit rainbow-delimiters-base-face :foreground "#6cdae0")))) + '(rainbow-delimiters-depth-3-face ((t (:inherit rainbow-delimiters-base-face :foreground "#ff7f50")))) + '(rainbow-delimiters-depth-4-face ((t (:inherit rainbow-delimiters-base-face :foreground "#ffea8c")))) + '(rainbow-delimiters-depth-5-face ((t (:inherit rainbow-delimiters-base-face :foreground "#83dcaf")))) + '(rainbow-delimiters-depth-6-face ((t (:inherit rainbow-delimiters-base-face :foreground "#eba4d4")))) + '(rainbow-delimiters-depth-7-face ((t (:inherit rainbow-delimiters-base-face :foreground "#8b5be7")))) + '(rainbow-delimiters-unmatched-face ((t (:inherit default)))) + '(rainbow-delimiters-mismatched-face ((t (:inherit default)))) + '(rainbow-delimiters-base-error-face ((default (:inherit (rainbow-delimiters-base-face))) (t (:foreground "#88090B")))) + '(trailing-whitespace ((t (:inherit whitespace-space)))) + '(hl-line ((t (:inherit highlight :extend t)))) + '(dired-broken-symlink ((t (:foreground "red1" :weight bold)))) + '(eros-result-overlay-face ((t (:foreground "#808080")))) + '(eat-term-color-1 ((t (:background "#df6760" :foreground "#df6760")))) + '(eat-term-color-0 ((t (:inherit (ansi-color-black))))) + '(eat-term-color-2 ((t (:background "#8be760" :foreground "#8be760")))) + '(eat-term-color-3 ((t (:background "#ffd17a" :foreground "#ffd17a")))) + '(eat-term-color-4 ((t (:background "#9688d9" :foreground "#9688d9")))) + '(eat-term-color-5 ((t (:background "#fc97ff" :foreground "#fc97ff")))) + '(eat-term-color-6 ((t (:background "#86adff" :foreground "#86adff")))) + '(eat-term-color-7 ((t (:background "#f1f1f1" :foreground "#f1f1f1")))) + '(eat-term-color-8 ((t (:background "#808080" :foreground "#808080")))) + '(eat-term-color-9 ((t (:inherit eat-term-color-1)))) + '(eat-term-color-10 ((t (:inherit eat-term-color-2)))) + '(eat-term-color-11 ((t (:inherit eat-term-color-3)))) + '(eat-term-color-12 ((t (:inherit eat-term-color-4)))) + '(eat-term-color-13 ((t (:inherit eat-term-color-5)))) + '(eat-term-color-14 ((t (:inherit eat-term-color-6)))) + '(eat-term-color-15 ((t (:background "#f1f1f1" :foreground "#f1f1f1")))) + '(default ((t (:inherit nil :extend nil :stipple nil :background "#101010" :foreground "#f0f0f0" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 90 :width normal :foundry "PfEd" :family "Meslo LG M DZ")))) + '(geiser-font-lock-repl-output ((t (:foreground "#d0d0d0"))))) + +(provide-theme 'meimuna) diff --git a/home-environments/radio/files/.config/fish/completions/config.fish b/home-environments/radio/files/.config/fish/completions/config.fish new file mode 100644 index 0000000..d714361 --- /dev/null +++ b/home-environments/radio/files/.config/fish/completions/config.fish @@ -0,0 +1,3 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end diff --git a/home-environments/radio/files/.config/fish/completions/fish_variables b/home-environments/radio/files/.config/fish/completions/fish_variables new file mode 100644 index 0000000..1a82b8a --- /dev/null +++ b/home-environments/radio/files/.config/fish/completions/fish_variables @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/home-environments/radio/files/.config/fish/conf.d/key-bindings.fish b/home-environments/radio/files/.config/fish/conf.d/key-bindings.fish new file mode 100644 index 0000000..9c2605c --- /dev/null +++ b/home-environments/radio/files/.config/fish/conf.d/key-bindings.fish @@ -0,0 +1,144 @@ +set -l init_mode insert + +if contains -- $argv[1] insert default visual + set init_mode $argv[1] +else if set -q argv[1] + # We should still go on so the bindings still get set. + echo "Unknown argument $argv" >&2 +end + +# Inherit shared key bindings. +# Do this first so vi-bindings win over default. +for mode in insert default visual + __fish_shared_key_bindings -s -M $mode +end + +# Add a way to switch from insert to normal (command) mode. +# Note if we are paging, we want to stay in insert mode +# See #2871 +bind -s --user -M insert \e "if commandline -P; commandline -f cancel; else; set fish_bind_mode default; commandline -f backward-char repaint-mode; end" + +# Default (command) mode +bind -s --user :q exit +bind -s --user -m insert \cc cancel-commandline repaint-mode +bind -s --user -M default h backward-char +bind -s --user -M default l forward-char +bind -s --user -M visual h begin-selection backward-char +bind -s --user -M visual l begin-selection forward-char +bind -s --user -m insert \n execute +bind -s --user -m insert \r execute +bind -s --user -m insert o insert-line-under repaint-mode +bind -s --user -m insert O insert-line-over repaint-mode +bind -s --user -m insert i repaint-mode +bind -s --user -m insert I beginning-of-line repaint-mode +bind -s --user -m insert a forward-single-char repaint-mode +bind -s --user -m insert A end-of-line repaint-mode + +# Selection keys (if in default mode) +bind -s --user -M default -m visual H begin-selection backward-char +bind -s --user -M default -m visual L begin-selection forward-char +bind -s --user -M default -m visual J begin-selection down-or-search +bind -s --user -M default -m visual K begin-selection up-or-search +bind -s --user -M default -m visual x beginning-of-line begin-selection end-of-line +# TODO: Implement x when already in visual mode +# (if already in visual mode) +bind -s --user -M visual H backward-char +bind -s --user -M visual L forward-char +bind -s --user -M visual J backward-char +bind -s --user -M visual K backward-char + +# Goto keys +bind -s --user gh end-selection beginning-of-line +bind -s --user gj end-selection end-of-buffer +bind -s --user gk end-selection beginning-of-buffer +bind -s --user gl end-selection end-of-line +bind -s --user gg end-selection beginning-of-buffer + +# (Goto+Selection) keys +bind -s --user -M default -m visual gH begin-selection beginning-of-line +bind -s --user -M default -m visual gJ begin-selection end-of-buffer +bind -s --user -M default -m visual gK begin-selection beginning-of-buffer +bind -s --user -M default -m visual gL begin-selection end-of-line +bind -s --user -M visual gH beginning-of-line +bind -s --user -M visual gJ end-of-buffer +bind -s --user -M visual gK beginning-of-buffer +bind -s --user -M visual gL end-of-line + +# Undo keys +bind -s --user u undo +bind -s --user U redo + +# History navigation +bind -s --user / history-pager --sets-mode insert repaint + +bind -s --user k up-or-search +bind -s --user j down-or-search +bind -s --user b -m visual backward-word +bind -s --user B -m visual backward-bigword +bind -s --user w -m visual forward-word forward-single-char +bind -s --user W -m visual forward-bigword forward-single-char + +# Backspace deletes a char in insert mode +bind -s --user -M insert -k backspace backward-delete-char +bind -s --user -M insert \ch backward-delete-char +bind -s --user -M insert \x7f backward-delete-char + +bind -s --user -M visual d kill-selection + +bind -s --user '~' togglecase-char forward-single-char +bind -s --user gu downcase-word +bind -s --user gU upcase-word + +bind -s --user J end-of-line delete-char +bind -s --user K 'man (commandline -t) 2>/dev/null; or echo -n \a' + +bind -s --user y yank-selection + +bind -s --user -m normal -M visual f forward-jump +bind -s --user -m normal -M visual t forward-jump-till +bind -s --user -m normal -M visual F backward-jump +bind -s --user -m normal -M visual T backward-jump-till + +bind -s --user p forward-char yank +bind -s --user P yank +bind -s --user gp yank-pop + +# same vim 'pasting' note as upper +bind -s --user '"*p' forward-char "commandline -i ( xsel -p; echo )[1]" +bind -s --user '"*P' "commandline -i ( xsel -p; echo )[1]" + +# +# Lowercase r, enters replace_one mode +# +bind -s --user -m replace_one r repaint-mode +bind -s --user -M replace_one -m default '' delete-char self-insert backward-char repaint-mode +bind -s --user -M replace_one -m default \r 'commandline -f delete-char; commandline -i \n; commandline -f backward-char; commandline -f repaint-mode' +bind -s --user -M replace_one -m default \e cancel repaint-mode + +# +# Uppercase R, enters replace mode +# +bind -s --user -m replace R repaint-mode +bind -s --user -M replace '' delete-char self-insert +bind -s --user -M replace -m insert \r execute repaint-mode +bind -s --user -M replace -m default \e cancel repaint-mode + +bind -s --user -M visual -m insert c kill-selection end-selection repaint-mode +bind -s --user -M visual -m default '~' togglecase-selection end-selection repaint-mode + +bind -s --user -M visual -m default \cc end-selection repaint-mode +bind -s --user -M visual -m default \e end-selection repaint-mode + +# Make it easy to turn an unexecuted command into a comment in the shell history. Also, remove +# the commenting chars so the command can be further edited then executed. +bind -s --user -M default \# __fish_toggle_comment_commandline +bind -s --user -M visual \# __fish_toggle_comment_commandline +bind -s --user -M replace \# __fish_toggle_comment_commandline + +# Set the cursor shape +# After executing once, this will have defined functions listening for the variable. +# Therefore it needs to be before setting fish_bind_mode. +set -g fish_vi_cursor inclusive +set -g fish_cursor_selection_mode inclusive + +set fish_bind_mode $init_mode diff --git a/home-environments/radio/files/.config/fish/functions/fish_custom_functions.fish b/home-environments/radio/files/.config/fish/functions/fish_custom_functions.fish new file mode 100644 index 0000000..9724080 --- /dev/null +++ b/home-environments/radio/files/.config/fish/functions/fish_custom_functions.fish @@ -0,0 +1,25 @@ +function xdg-user-directory + eval (string join '' 'echo $XDG_' \ + (string replace '@' '' (string upper $argv[1])) \ + '_DIR') +end + +function bang-bang + echo "$history[1]" +end + +function bang-bang-k + set -l k (string replace '!!:' '' $argv[1]) + set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) + echo $arr[$k] +end + +function bang-dollar + set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) + echo $arr[-1] +end + +function bang-star + set -l arr (string replace -ra '([^\\\ ])( |\n)+' '$1\n' $history[1]) + echo $arr[..-2] +end diff --git a/home-environments/radio/files/.config/fish/functions/fish_greeting.fish b/home-environments/radio/files/.config/fish/functions/fish_greeting.fish new file mode 100644 index 0000000..018520b --- /dev/null +++ b/home-environments/radio/files/.config/fish/functions/fish_greeting.fish @@ -0,0 +1,2 @@ +function fish_greeting +end diff --git a/home-environments/radio/files/.config/fish/functions/fish_prompt.fish b/home-environments/radio/files/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..0bb7dea --- /dev/null +++ b/home-environments/radio/files/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,77 @@ +# Utilities + +function blue + set_color blue; printf $argv; set_color normal +end +function normal + set_color normal; printf $argv; set_color normal +end + +function displayed_string_length + string replace -ra -- '\x1b.*?[mGKH]' '' "$argv" | string length +end + +function padding + printf "%-"$argv[1]"s%s" " " "$output" +end + +# Current working directory prompt +function fish_cwd_prompt + set -l cwd (pwd) + switch "$cwd" + case "$HOME" + printf "~" + case "/" + printf "/" + case "*" + set -l parent_dir (dirname $cwd) + switch "$parent_dir" + case "$HOME" + printf "~/%s" (basename $cwd) + case "/" + printf "/%s" (basename $cwd) + case "*" + printf "%s/%s" (basename $parent_dir) (basename $cwd) + end + end +end + +# Guix environment prompt +function fish_environment_prompt + normal "(env "; blue "%s" (basename $GUIX_ENVIRONMENT); normal ")" +end + +# Actual prompt +function fish_prompt + if test -n "$GUIX_ENVIRONMENT" + set -l fish_environment_prompt_length \ + (displayed_string_length (fish_environment_prompt)) + set -l fish_git_prompt_length \ + (displayed_string_length (fish_git_prompt)) + + fish_environment_prompt + printf (padding (math $COLUMNS - $fish_environment_prompt_length \ + - $fish_git_prompt_length)) + fish_git_prompt | string replace -ra ' ' '' + printf '\n' + else + function fish_right_prompt + fish_git_prompt + end + end + + set -g fish_key_bindings fish_vi_key_bindings + switch "$fish_key_bindings" + case fish_vi_key_bindings fish_hybrid_key_bindings + test $fish_bind_mode = 'default' && normal ':' || normal '+' + end + + blue (whoami); normal ' at '; blue (prompt_hostname) + normal ' in '; blue (fish_cwd_prompt) + normal ' > ' +end + +function fish_default_mode_prompt -d "Display vi prompt mode" + # Do nothing +end + diff --git a/home-environments/radio/files/.config/fish/variables.fish b/home-environments/radio/files/.config/fish/variables.fish new file mode 100644 index 0000000..1a82b8a --- /dev/null +++ b/home-environments/radio/files/.config/fish/variables.fish @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/home-environments/radio/files/.config/git/config b/home-environments/radio/files/.config/git/config new file mode 100644 index 0000000..6b7db66 --- /dev/null +++ b/home-environments/radio/files/.config/git/config @@ -0,0 +1,27 @@ +[user] + email = lgcoelho@disroot.org + name = Luis Guilherme Coelho + signingkey = F164709E5FC7B32BAEC79F371F2E76ACE3F531C8 +[color] + ui = true +[core] + editor = kak +[filter "lfs"] + required = true + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process +[init] + defaultBranch = main +[usern] + name = anemofilia +[alias] + see = log --graph --oneline + see-all = log --graph --all --oneline + last = log -1 HEAD + unstage = reset HEAD + root = rev-parse --show-toplevel +[credential] + helper = cache +[commit] + gpgsign = true diff --git a/home-environments/radio/files/.config/info b/home-environments/radio/files/.config/info new file mode 100644 index 0000000..2c1edb3 --- /dev/null +++ b/home-environments/radio/files/.config/info @@ -0,0 +1,51 @@ +#info +gk first-node +gj last-node +\mb beginning-of-node +\me end-of-node +j next-line +k prev-line +f scroll-forward-page-only +^f scroll-forward-page-only +\m\ scroll-forward-page-only +z scroll-forward-page-only-set-window +b scroll-backward-page-only +^b scroll-backward-page-only +w scroll-backward-page-only-set-window +\kd select-reference-this-line +^j down-line +^k up-line +d scroll-half-screen-down +^d scroll-half-screen-down +u scroll-half-screen-up +^u scroll-half-screen-up +K next-node +J prev-node +TAB up-node +' last-node +\mt top-node +\md dir-node +^xg goto-node +I goto-invocation-node +n search-next +N search-previous +\mf xref-item +^xr xref-item +\mg select-reference-this-line +^x^j select-reference-this-line +^x^m select-reference-this-line +^c abort-key +\mh get-info-help-node +:q quit +ZZ quit + +#echo-area +\mh echo-area-backward +\ml echo-area-forward +\m0 echo-area-beg-of-line +\m$ echo-area-end-of-line +\mw echo-area-forward-word +\mx echo-area-delete +\mu echo-area-abort +^v echo-area-quoted-insert +\mX echo-area-kill-word diff --git a/home-environments/radio/files/.config/kak/autoload/colorscheme.kak b/home-environments/radio/files/.config/kak/autoload/colorscheme.kak new file mode 100644 index 0000000..dbdad10 --- /dev/null +++ b/home-environments/radio/files/.config/kak/autoload/colorscheme.kak @@ -0,0 +1,52 @@ +# Kakoune default color scheme + +# For Code +face global value red +face global type yellow +face global variable green +face global module green +face global function cyan +face global string magenta +face global keyword blue +face global operator yellow +face global attribute green +face global comment cyan +face global documentation comment +face global meta magenta +face global builtin default+b + +# For markup +face global title blue +face global header cyan +face global mono green +face global block magenta +face global link cyan +face global bullet blue +face global list yellow + +# builtin faces +face global Default default,default +face global PrimarySelection black,blue+fg +face global SecondarySelection black,rgb:9a9a9a +face global PrimaryCursor black,blue+fg +face global SecondaryCursor black,rgb:9a9a9a +face global PrimaryCursorEol black,blue+fg +face global SecondaryCursorEol black,rgb:9a9a9a +face global LineNumbers default,default +face global LineNumberCursor rgb:8581e0,rgb:313131 +face global MenuForeground rgb:151515,blue +face global MenuBackground blue,rgb:151515 +face global MenuInfo blue,rgb:151515 ## was cyan +face global Information blue,rgb:232323 +face global Error default +face global DiagnosticError red +face global DiagnosticWarning yellow +face global StatusLine blue,rgb:313131 +face global StatusLineMode rgb:313131,blue +face global StatusLineInfo blue,rgb:313131 +face global StatusLineValue blue,rgb:313131 +face global StatusCursor default+r +face global Prompt white,default +face global MatchingChar default,default+b +face global Whitespace default,default+fd +face global BufferPadding blue,default diff --git a/home-environments/radio/files/.config/kak/kakrc b/home-environments/radio/files/.config/kak/kakrc new file mode 100644 index 0000000..42ecb7b --- /dev/null +++ b/home-environments/radio/files/.config/kak/kakrc @@ -0,0 +1,477 @@ +#________ Options ___________ +# Keep status bar in the default place +set-option -add global ui_options terminal_status_on_top=false + +# Set an invisible padding char +set-option -add global ui_options terminal_padding_char= + +# Always keep two lines and two columns displayed around the cursor +set-option global scrolloff 2,2 + +# No assistant +set-option -add global ui_options terminal_assistant=cat + +hook global ModuleLoaded x11 %{ + set-option global termcmd "%sh{echo $TERMINAL} -e " +} # Set termcmd + +# __________ Commands __________ +define-command -override lf-open \ + -docstring 'pick a file with lf' %{ + terminal dash -c %{ + # Local variables + kak_buffile=$1 kak_session=$2 kak_client=$3 + + # Create temporary file for selection + lf_tmp=$(mktemp "${TMPDIR:-/tmp}"/lf-open.XXXXXXXXXX) + + # Get working directory of current buffer + kak_pwd=$(dirname "${kak_buffile}") + + # Pick a file with lf + $(lf -selection-path "${lf_tmp}" "${kak_pwd}") + + # Get first line of selection file (ignoring multiple selections) + filename=$(head -n 1 "${lf_tmp}") + + # Only echo a command back if there was a selection + if [ -n "$filename" ]; then + # Construct the command to pass to kakoune + kak_cmd="evaluate-commands -client $kak_client edit $filename" + + # Echo the command back to the parent session + echo $kak_cmd | kak -p $kak_session + fi + } -- %val{buffile} %val{session} %val{client} +} + +define-command -override cron \ + -docstring 'edit cron services' %{ + execute-keys ': e ~/.config/cron/' +} + +define-command -override todo \ + -docstring 'edit todo list' %{ + edit '~/areas/meta/todo' +} + +define-command -override guix-todo \ + -docstring 'edit todo list' %{ + edit '~/projects/code/org/guix-todo/todo.org' +} + +declare-option str radix '~/projects/code/scm/radix' +define-command -override radix \ + -docstring 'edit files in the radix git repository' %{ + execute-keys ":e %opt{radix}/" +} + +define-command -override home \ + -docstring 'edit home declaration' %{ + edit "%opt{radix}/home-environments/%sh{whoami}.scm" +} + +define-command -override system \ + -docstring 'edit system declaration' %{ + edit "%opt{radix}/operating-systems/%sh{hostname}.scm" +} + +declare-option str radix_files "%opt{radix}/files" +define-command -override files \ + -docstring 'edit dotfiles' %{ + execute-keys ":e %opt{radix_files}/" +} + +declare-option str radix_modules "%opt{radix}/modules/radix" +define-command -override modules \ + -docstring 'edit radix modules' %{ + execute-keys ":e %opt{radix_modules}/" +} + +declare-option str radix_services "%opt{radix_modules}/services" +define-command -override services \ + -docstring 'edit radix services' %{ + execute-keys ":e %opt{radix_services}/" +} + +declare-option str radix_packages "%opt{radix_modules}/packages" +define-command -override packages \ + -docstring 'edit radix packages' %{ + execute-keys ":e %opt{radix_packages}/" +} + +declare-option str radix_home_services "%opt{radix_modules}/home/services" +define-command -override home-services \ + -docstring 'edit radix home services' %{ + execute-keys ":e %opt{radix_home_services}/" +} + +define-command -override colorscheme-config \ + -docstring 'edit colorscheme configuration file' %{ + edit "%opt{radix_files}/kak/autoload/colorscheme.kak" +} + +define-command -override config \ + -docstring 'edit kakoune main configuration file' %{ + edit "%opt{radix_files}/kak/kakrc" +} + +define-command -override rss \ + -docstring 'edit rss feeds file' %{ + edit "%opt{radix_files}/newsraft/feeds" +} + +define-command -override remind \ + -docstring 'edit reminders' %{ + execute-keys ': e /home/radio/.local/share/reminders/' +} + +define-command -params 1 -override tex-project \ + -docstring 'edit or create a new tex-project' %{ + evaluate-commands 'cd ~/Projects/latex/' + nop %sh{ mkdir -p "$1" } + evaluate-commands 'cd "%arg{1}"' + nop %sh{ + [ -s $1.tex ] || cat ../example/example.tex \ + | sed "s/example/$1/" > "$1.tex"; + } + edit "%arg{1}.tex" + execute-keys '16gA' +} +define-command -override open-buffer-picker \ + -docstring 'open-buffer-picker: Opens buffer picker.' %{ + prompt buffer: -buffer-completion %{ buffer %val{text} } +} + +define-command -override toggle-readonly \ + -docstring 'changes buffer readonly option current state' %{ + set-option buffer readonly %sh{ "$kak_opt_readonly" && echo false || echo true } +} + +define-command -override qalc \ + -params .. %{echo %sh{qalc ${@}}} \ + -docstring 'compute equation with Qalculate!' +complete-command qalc shell-script-candidates %{ + { echo $(qalc --list-functions | head -n -3) + echo $(qalc --list-variables | head -n -3) } | tr ' ' '\n' | sort | uniq +} + +define-command diff-buffers -override -params 2 \ + -docstring 'show the diff of two buffers'%{ + evaluate-commands %sh{ + file1=$(mktemp) + file2=$(mktemp) + echo " + evaluate-commands -buffer '$1' write -force $file1 + evaluate-commands -buffer '$2' write -force $file2 + edit! -scratch *diff-buffers* + set buffer filetype diff + set-register | 'diff -u $file1 $file2; rm $file1 $file2' + execute-keys !gg + " +}} +complete-command diff-buffers buffer + +# __________ Hidden commands __________ +define-command -override -hidden edit-from-file %{ + execute-keys ":edit %sh{dirname $kak_buffile}/" +} + +define-command -override -hidden spawn-terminal-from-file %{ + set-register b "%sh{pwd}" + change-directory "%sh{dirname $kak_buffile}" + evaluate-commands "terminal %sh{echo $SHELL} -c" + change-directory "%reg{b}" +} # Spawn a terminal in the current buffer's file directory + +# __________ Mappings __________ +map global normal ': buffer-previous' +map global normal Y ': yank-helperu' \ + -docstring 'yank non-selections' + +map global normal D '"ad%d"a' \ + -docstring 'yank and delete non-selections' + +map global normal '"ad%"a' \ + -docstring 'delete non-selections (not yanking)' + +map global user ': spawn-terminal-from-file' \ + -docstring "open a new terminal within the current file's directory" + +map global user c ': comment-line' \ + -docstring 'comment-line' + +map global user ': comment-block' \ + -docstring 'comment-block' + +map global user D '| date +"%d %b %Y %a" -f -' \ + -docstring 'parse date to 01 Feb 2001 Tue format' + +map global user d ': lf-open' \ + -docstring 'pick a file with lf' + +map global user e ":edit-from-file" \ + -docstring "edit a file, searching from current file's directory" + +map global user l ': enter-user-mode lsp' \ + -docstring 'enter lsp user mode' + +try %{ declare-user-mode open-sel } +map global user o ': enter-user-mode open-sel' \ + -docstring 'enter open-sel user mode' + +map global user r ': remind' \ + -docstring 'edit reminders' + +map global user s ': enter-user-mode surround' \ + -docstring 'enter surround user mode' + +map global user u ': echo -markup "{Information}U+%sh{printf ''%04x'' ""$kak_cursor_char_value""}"' \ + -docstring 'show the value of the selected unicode char' + +map global user q ': delete-buffer' \ + -docstring 'delete current buffer' + +map global user Q ': delete-buffer!' \ + -docstring 'delete current buffer' + +map global open-sel b '$ icecat $kak_reg_dot & disown' \ + -docstring 'on browser' + +map global open-sel m '$ mpv $kak_reg_dot & disown' \ + -docstring 'on mpv' + +map global goto b ': open-buffer-picker' \ + -docstring 'buffer' + +map global normal = ': prompt math: %{exec "a %val{text}esc>|qalc -t +u8 -f -ret>"}' \ + -docstring 'Replace selection by the result of some operation over it' + +map global object 'c,'\ + -docstring 'whitespaces' + +try %{ declare-user-mode git } +map global git l ': git log' -docstring 'log' +map global git c ': git commit' -docstring 'commit' +map global git d ': git diff' -docstring 'diff' +map global git s ': git status' -docstring 'status' +map global git h ': git show-diff' -docstring 'show diff' +map global git H ': git-hide-diff' -docstring 'hide diff' + +# __________ Hooks __________ +hook -group config global BufCreate 'kakrc' %{ + set-option buffer filetype kak +} # Set kakrc's filetype to kak + +hook -group config global BufCreate '.*\.(bash_profile|profile|bashrc|bash_aliases)' %{ + set-option buffer filetype sh +} # Set filetype of bash configuration files to sh + +hook global BufCreate '\*scratch\*' %{ + execute-keys '%' +} # Remove the *scratch* message + +hook global BufCreate .* %{ + add-highlighter buffer/ number-lines -relative -hlcursor +} # Set relative line numbers and visual line break + +hook global BufWritePost ".*/kakrc" %{ + source "%val{buffile}" +} # Source kakrc on save + +hook global BufOpenFile '.*\.clj' %{ + terminal dash -c "cd $(dirname $kak_buffile); lein repl" +} # Set defaults for clojure coding + +hook global BufWritePost "%val{config}/autoload/colorscheme.kak" %{ + source "%val{config}/autoload/colorscheme.kak" + evaluate-commands palette-gutter +} # Automatically source colorscheme.kak on save + +hook global BufOpenFile "%val{config}/autoload/colorscheme.kak" %{ + evaluate-commands palette-gutter +} # Display faces in the colorscheme file + +hook global BufOpenFile .* %{ + add-highlighter buffer/ wrap -indent -word -marker '↩' + add-highlighter buffer/ show-whitespaces -tab '→' +} # Set highlighters for file buffers + +hook global BufCreate '\*scratch\*' %{ + add-highlighter buffer/ wrap -indent -word -marker '↩' + add-highlighter buffer/ show-whitespaces -tab '→' +} # Set highlighters for scratch buffers + +hook global InsertCompletionShow .* %{ + map window insert + map window insert +} +hook global InsertCompletionHide .* %{ + map window insert + map window insert +} # Use tab for completion movement + +hook -group config global BufSetOption filetype=kak %{ + set-option buffer indentwidth 2 + set-option buffer line_comment_token '#' +} # Kakscript comment tokens + +hook -group config global BufSetOption filetype=scheme %{ + #map buffer normal '' ': echo %sh{ guile -c "(display $kak_reg_dot)" }' + set-option buffer indentwidth 2 + set-option buffer line_comment_token ';;' + set-option buffer block_comment_tokens '#|' '|#' + evaluate-commands 'rainbow-enable' +} # Guile Scheme + +hook -group config global BufSetOption filetype=clojure %{ + set-option buffer indentwidth 2 + set-option window formatcmd 'zprint' + set-option window lintcmd 'clj-kondo' + set-option buffer line_comment_t + set-option buffer block_comment_tokens '(comment' ')' + evaluate-commands 'rainbow-enable' +} # Clojure comment tokens + +hook -group config global BufSetOption filetype=scheme %{ + set-option buffer indentwidth 2 + set-option window formatcmd 'guix style --whole-file' + set-option buffer line_comment_t ';;' + set-option buffer block_comment_tokens '#|' '|#' +} # Scheme comment tokens + +hook -group config global BufSetOption filetype=(c|cpp) %{ + set-option window formatcmd 'clazy' + set-option buffer line_comment_token '//' + set-option buffer block_comment_tokens '/*' '*/' +} # C and C++ comment tokens + +hook -group config global BufSetOption filetype=python %{ + set-option buffer line_comment_token '#' + set-option buffer block_comment_tokens '"""' '"""' +} # Python comment token tokens + +hook -group config global BufSetOption filetype=lua %{ + set-option buffer line_comment_token '--' + set-option buffer block_comment_tokens '[[--' '--]]' +} # Lua comment tokens + +hook -group config global BufSetOption filetype=(sh|dash) %{ + set-option window formatcmd 'shfmt' + set-option window lintcmd 'shellharden' + set-option buffer line_comment_token '#' + set-option buffer block_comment_tokens "<<'####'" '###' +} # Shell comment tokens + +hook -group config global BufSetOption filetype=zig %{ + set-option buffer line_comment_token '//' +} # Zig comment tokens + +hook global WinSetOption filetype=kak %{ + hook global NormalIdle .* %{ + evaluate-commands -save-regs 'a' %{ + try %{ + execute-keys -draft w"ay + evaluate-commands %sh{ ( + color="${kak_reg_a}" + inverted_color=$(echo "${color}" | perl -pe 'tr/0123456789abcdefABCDEF/fedcba9876543210543210/') + printf "%s\n" "evaluate-commands -client $kak_client %{ try %{ + echo -markup %{{rgb:${inverted_color},rgb:${color}+b} #${color} } + }}" | kak -p $kak_session + ) >/dev/null 2>&1 /dev/null 2>&1 & +}} + +cmd __cd :cd "$1" + +# cd +cmd cd ${{ + kill $pid + eval "inotifywait -me MODIFY $1 | \ + while read LINE; do send $id :reload; done &" + pid=$! + send $id :__cd +}} + +# Share on telegram +cmd send ${{ + wmctrl -x -a TelegramDesktop + telegram-desktop -sendpath \ + $(for f in $fx; do readlink -f $f; done) +}} + +# Open lf config +cmd config $$EDITOR "~/projects/code/scm/radix/files/lf/lfrc" + +# mkdir with :mkdir +cmd mkdir %mkdir -- "$@" + +# rename file +cmd rename %mv "$f" $(echo "$@" | sed 's/ /\ /g') + +# Open editor +cmd edit ${{ + setsid -f "$TERMINAL -e $EDITOR $f" & +}} + +# Change file mode bits +cmd chmod %chmod "$@" && echo "Mode bits changed" & lf -remote reload + +# Copy filename without extension +cmd yank-basename $basename -a -- $fx | head -c-1 | xclip --clipboard + +# Upload selected files to 0x0 and yank it's path and link +cmd share %printf "$fx\n $(curl -F file="@$fx" http://0x0.st)" | xsel -b && echo "File shared" + +# Rotate file +cmd rotate-file %{{ + case "$1" in + right) direction=1;; + left) direction=-1;; + *) direction=0;; + esac + case $(file --mime-type "$f" -bL) in + image/*) convert "$f" -rotate $((90*direction)) "$f";; + application/pdf) pdftk "$f" cat 1-end"$1" output "rotated-${f##*/}" \ + && rm "$f" \ + && mv "rotated-${f##*/}" "$f";; + video/*) ffmpeg -i "$f" -vf "transpose=$((direction+1))" "rotated-${f##*/}" \ + && rm "$f" \ + && mv "rotated-${f##*/}" "$f";; + inode/directory) for file in $(ls "$f"); do rotate "$1" "$file"; done;; + esac + echo "File rotated" +}} + +# Rotate selected files +cmd rotate %{{ + case "$1" in + right) direction=1;; + left) direction=-1;; + *) direction=0;; + esac + for file in "$fx"; do + case $(file --mime-type "${file}" -bL) in + image/*) convert "${file}" -rotate $((90*direction)) "${file}";; + application/pdf) pdftk "${file}" cat 1-end"$1" output "rotated-${file##*/}" \ + && rm "${file}" \ + && mv "rotated-${file##*/}" "$file";; + video/*) ffmpeg -i "${file}" -vf "transpose=$((direction+1))" "rotated-${file##*/}" \ + && rm "${file}" \ + && mv "rotated-${file##*/}" "${file}";; + esac + done + echo "File rotated!" +}} + +cmd extract ${{ + set -f + case $f in + *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; + *.tar.gz|*.tgz) tar xzvf $f;; + *.tar.xz|*.txz) tar xJvf $f;; + *.zip) unzip $f;; + *.rar) unrar x $f;; + *.7z) 7z x $f;; + esac +}} + +cmd compress ${{ + set -f + mkdir $1 + cp -r $fx $1 + tar czf $1.tar.gz $1 + rm -rf $1 +}} + +cmd newfold %{{ + set -f + mkdir -- "$1" + mv -- $fx "$1" +}} + +cmd term &{{ + setsid -f $TERMINAL >/dev/null 2>&1 & disown +}} + +cmd e :edit +cmd q :quit + +# Bindings +# Remove some defaults +map n +map e +map r +map dd + +# File openers +map ee $$EDITOR "$f" +map e! $doas $EDITOR "$f" +map b &setsid -f $BROWSER "$f" + +# Basic functions +mao l cd "$f" +map c copy && echo "$fx" | xsel -b +map d delete +map x cut +map open +map delete +map rc push :rename +map re $lf -remote "send $id :rename$(printf '%q' ${f##*/})" +map set hidden! +map push $ +map push :newfold +map :rotate right +map :rotate left +map :term + +# Movement +map gk top +map gj bottom +map gD cd ~/desktop +map gc cd ~/.config +map gd cd ~/documents +map gl cd ~/.local/share/downloads +map gm cd ~/music +map gp cd ~/pictures +map gv cd ~/videos + +# run on startup +cmd on-cd &{{ + # '&' commands run silently in background (which is what we want here), + # but are not connected to stdout. + # To make sure our escape sequence still reaches stdout we pipe it to /dev/tty + printf "\033]0; $(pwd | sed "s|$HOME|~|;s|.*/||g") - lf\007" > /dev/tty +}} + +# also run at startup +on-cd + +%[ $LF_LEVEL -eq 1 ] || echo "Warning: You're in a nested lf instance of depth $LF_LEVEL!" diff --git a/home-environments/radio/files/.config/mpv/input.conf b/home-environments/radio/files/.config/mpv/input.conf new file mode 100644 index 0000000..9cb8e78 --- /dev/null +++ b/home-environments/radio/files/.config/mpv/input.conf @@ -0,0 +1,105 @@ +# mpv keybindings +# +# Location of user-defined bindings: ~/.config/mpv/input.conf +# +# List of commands and further details: DOCS/man/input.rst +# List of special keys: --input-keylist +# Keybindings testing mode: mpv --input-test --force-window --idle +# +# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore'). +# +# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with +# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal). +# +# The default keybindings are hardcoded into the mpv binary. +# You can disable them completely with: --no-input-default-bindings + +h no-osd seek -5 # seek 5 seconds backward +l no-osd seek 5 # seek 5 seconds forward +Ctrl+h no-osd sub-seek -1 # seek to the previous subtitle +Ctrl+l no-osd sub-seek 1 # seek to the next subtitle +Ctrl+ESC revert-seek # undo the previous (or marked) seek + +j add sub-pos +1 # move subtitles down +k add sub-pos -1 # move subtitles up + +Shift+l add chapter -1 # seek to the previous chapter +Shift+h add chapter 1 # seek to the next chapter + +Ctrl+Shift+h sub-step -1 # change subtitle timing such that the previous subtitle is displayed +Ctrl+Shift+l sub-step 1 # change subtitle timing such that the next subtitle is displayed + +Alt+h add video-pan-x 0.1 # move the video right +Alt+l add video-pan-x -0.1 # move the video left +Alt+k add video-pan-y 0.1 # move the video down +Alt+j add video-pan-y -0.1 # move the video up + +Alt++ add video-zoom 0.1 # zoom in +Alt+- add video-zoom -0.1 # zoom out +Alt+ESC set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings + +[ add speed 0.25 # decrease the playback speed +] add speed 0.25 # increase the playback speed +ESC set speed 1.0 # reset the speed to normal + +#XF86_PLAY cycle pause # toggle pause/playback mode +#XF86_PAUSE cycle pause # toggle pause/playback mode +#Xf86_NEXT playlist-next # skip to the next file +#Xf86_PREV playlist-prev # skip to the previous file + +VOLUME_UP add volume 1 +VOLUME_DOWN add volume -1 +m cycle mute # toggle mute + +1 add contrast -1 +2 add contrast 1 +3 add brightness -1 +4 add brightness 1 +5 add gamma -1 +6 add gamma 1 +7 add saturation -1 +8 add saturation 1 + +SPACE cycle pause # toggle pause/playback mode +q quit # Are u kidding me? +Q quit-watch-later # exit and remember the playback position + +. frame-step # advance one frame and pause +, frame-back-step # go back by one frame and pause + +ENTER script-binding console/enable # open the console + +i script-binding stats/display-stats-toggle # toggle displaying information and statistics + +> add sub-delay -0.1 # shift subtitles 100 ms earlier +< add sub-delay +0.1 # delay subtitles by 100 ms +Ctrl+Shift++ add sub-scale +0.1 # increase the subtitle font size +Ctrl+Shift+- add sub-scale -0.1 # decrease the subtitle font size +#j cycle sub # switch subtitle track +#J cycle sub down # switch subtitle track backwards +#v cycle sub-visibility # hide or show the subtitles +#Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles + +#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio +#ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier + +s screenshot # take a screenshot of the video in its original resolution with subtitles +S screenshot window # take a screenshot of the window with OSD and subtitles +Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots + +#d cycle deinterlace # toggle the deinterlacing filter +#V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer +#u cycle-values sub-ass-override "force" "no" # toggle overriding SSA/ASS subtitle styles with the normal styles + +#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect) +a vf toggle hflip # Flip video like a mirror + + +#E cycle edition # switch edition +#l ab-loop # set/clear A-B loop points +#L cycle-values loop-file "inf" "no" # toggle infinite looping +#ctrl+h cycle-values hwdec "auto" "no" # toggle hardware decoding + +F8 show-text ${playlist} # show the playlist +F9 show-text ${track-list} # show the list of video, audio and sub tracks + diff --git a/home-environments/radio/files/.config/mpv/lua-settings/torque-progressbar.conf b/home-environments/radio/files/.config/mpv/lua-settings/torque-progressbar.conf new file mode 100644 index 0000000..bc98770 --- /dev/null +++ b/home-environments/radio/files/.config/mpv/lua-settings/torque-progressbar.conf @@ -0,0 +1,108 @@ +#[=[ mouse zone settings ]=]# +# Height of area at the bottom of the screen that expands the bar and +# shows times when mouse is hovered over it. Pixels. +hover-zone-height=40 +# The height of the area at the top of the screen that shows the file +# name when the mouse is hovered over it. Pixels. +top-hover-zone-height=40 + +#[=[ default color settings ]=]-- +# Default foreground and background colors. Will be used for all color +# settings (except chapter-marker-before) unless set explicitly. +# Format is BGR hex because ASS is dumb. +foreground=FC799E +background=2D2D2D + +#[=[ progress bar options ]=]# +# whether or not to draw the progress bar at all. +enable-bar=yes +# [[ bar size options ]] # +# Inactive bar height. Pixels. Bar is invisible when inactive if 0. +bar-height-inactive=0 +# Active (i.e. hovered) bar height. Pixels. +bar-height-active=18 +# [[ bar color options ]] # +# Progress bar foreground color. BGR hex. +bar-foreground=FC799E +bar-background=2D2D2D + +#[=[ elapsed time options ]=]# +enable-elapsed-time=yes +# Elapsed time foreground and background colors. BGR hex. +elapsed-foreground=FC799E +elapsed-background=2D2D2D + +#[=[ remaining time options ]=]# +enable-remaining-time=yes +# Remaining time foreground and background colors. BGR hex. +remaining-foreground=FC799E +remaining-background=2D2D2D + +#[=[ hover time options ]=]# +enable-hover-time=yes +# Hover time foreground and background colors. BGR hex. +hover-time-foreground=FC799E +hover-time-background=2D2D2D + +#[=[ title display options ]=]# +enable-title=yes +# Font size for the title. Integer. +title-font-size=12 +# Title/playlist foreground and background colors. BGR hex. +title-foreground=FC799E +title-background=2D2D2D + +#[=[ pause indicator options ]=]# +# Flash an icon in the center of the screen when pausing/unpausing. +pause-indicator=yes +# Pause indicator foreground and background colors. BGR hex. +pause-indicator-foreground=FC799E +pause-indicator-background=2D2D2D + +#[=[ chapter marker options ]=]# +# Enable or disable chapter position markers on the progress bar +# entirely. +enable-chapter-markers=yes +# [[ chapter marker size options ]] # +# Width of chapter markers in pixels. Probably want an even number. +chapter-marker-width=2 +# Width of chapter markers in pixels when the seek bar is active. +# Still probably want an even number. +chapter-marker-width-active=4 +# Fraction of the height of the active progress bar that chapter +# markers. 0 is 0, 1 is the height of the active progress bar. +chapter-marker-active-height-fraction=1 +# [[ chapter marker color options ]] # +# color of chapter marker before/after it has been passed. BGR hex. +chapter-marker-before=7A77F2 +chapter-marker-after=2D2D2D + +#[=[ timing options ]=]# +# Amount of time (in seconds) to display OSD when button is pressed. +request-display-duration=2 +# How often the display is redrawn, in seconds. Affects smoothness of +# animations, but lower values may use more CPU (the default is +# negligible on my old C2D, and looks okay to me) +redraw-period=0.03 + +#[=[ /!\ FONT SIZE/METRICS STUFF. CHANGE AT YOUR OWN RISK /!\ ]=]# +# Font for displaying the title and times. Changing this may warrant +# modifying some of the font metrics numbers below for proper +# display. Not recommended. +font=Source Sans Pro Semibold +# Font size for time elapsed and remaining. +time-font-size=30 +# Font size for hover time. +hover-time-font-size=26 +# Manually calculated collision/placement metrics based on font +# sizes. Probably want to change these if you change the font or +# sizes. Unfortunately, my automated solution isnt easy to set up. +# Pixels. +hover-time-left-margin=120 +hover-time-right-margin=130 +# These primarily affect animations. If the script thinks the items +# are off screen, they wont be drawn. Positive numbers will look +# goofy. +elapsed-offscreen-pos=-100 +remaining-offscreen-pos=-100 +title-offscreen-pos=-40 diff --git a/home-environments/radio/files/.config/mpv/mpv.conf b/home-environments/radio/files/.config/mpv/mpv.conf new file mode 100644 index 0000000..b2bb20c --- /dev/null +++ b/home-environments/radio/files/.config/mpv/mpv.conf @@ -0,0 +1,78 @@ +cover-art-auto = no +no-keepaspect-window +no-terminal + +## GIF +[extension.webm] +loop-file = inf +[extension.gif] +loop-file = inf +osc = no + +## Music +[extension.opus] +no-video +[extension.mp3] +no-video +[extension.flac] +no-video +[extension.ogg] +no-video + +## Screenshot +screenshot-format=png +screenshot-tag-colorspace=yes +screenshot-high-bit-depth=yes +screenshot-sw=yes +screenshot-png-compression=0 +screenshot-png-filter=0 +screenshot-template='%F%wM%wS' + +## Image +# classic opengl-hq parameter, change at will +scale=spline36 +cscale=spline36 +dscale=mitchell +dither-depth=auto +correct-downscaling +sigmoid-upscaling +# debanding seems rarely useful with images +#deband +# dark grey background instead of pure black +background=0.2 + +## MISC +mute=yes +# the osc is mostly useful for videos +osc=no +# don't try to autoload subtitles or audio files +sub-auto=no +audio-file-auto=no +# get rid of the useless V: 00:00:00 / 00:00:00 line +term-status-msg= + +# replace mpv with mvi in the window title +title="${?media-title:${media-title}}${!media-title:No file} - mvi" + +# don't slideshow by default +image-display-duration=inf +# loop files in case of webms or gifs +loop-file=inf +# and loop the whole playlist +loop-playlist=inf + +# you need this if you plan to use drag-to-pan or pan-follows-cursor with MOUSE_LEFT +window-dragging=no + +#according to haasn, aspect ratio info for PNG and JPG is "universally bust" +[extension.png] +video-aspect-override=no + +[extension.jpg] +video-aspect-override=no + +[extension.jpeg] +profile=extension.jpg + +[silent] +msg-level=all=no diff --git a/home-environments/radio/files/.config/newsraft/config b/home-environments/radio/files/.config/newsraft/config new file mode 100644 index 0000000..18f4466 --- /dev/null +++ b/home-environments/radio/files/.config/newsraft/config @@ -0,0 +1,28 @@ +# Set some settings +set global-section-name All +set color-list-item-important-fg black +set color-list-item-important-bg red + +set color-list-item-unread-fg blue +set color-list-feed-unread-fg blue +set color-list-section-unread-fg blue + +set scrolloff 2 + +# Remove some binds +unbind g +unbind y +unbind v + +bind s status-history-menu + +# Bind some binds +bind y exec echo %l | xsel -b +bind b exec setsid -f icecat %l >/dev/null 2>&1 & disown +bind m exec setsid -f mpv %l >/dev/null 2>&1 & disown +bind v exec setsid -f nsxiv-url %l >/dev/null 2>&1 & disown +bind c exec kak ~/.config/newsraft/config +bind gk select-first +bind gj select-last +bind R reload-all +bind z exec ~/bin/bookmark %l diff --git a/home-environments/radio/files/.config/newsraft/feeds b/home-environments/radio/files/.config/newsraft/feeds new file mode 100644 index 0000000..44d2374 --- /dev/null +++ b/home-environments/radio/files/.config/newsraft/feeds @@ -0,0 +1,120 @@ +@ Articles +https://bt.ht/atom.xml "Brad Taunt" +https://rss.app/feeds/k6IcXeqAm5sNQXth.xml "Cem Keylan" +https://cyber.dabamos.de/blog/feed.rss "Cyber Dabamos" +https://drewdevault.com/blog/index.xml "Drew Devault" +https://edwardsnowden.substack.com/feed "Edward Snowden" {60} +https://feeds.twit.tv/floss.xml "Floss Weekly" +https://forums.freebsd.org/forums/howtos-and-faqs-moderated.39/index.rss "FreeBSD Forum Hacks and FAQ's" +https://forums.freebsd.org/forums/-/index.rss "FreeBSD Forum Index" +https://m7.rs/feed.xml "Gabriel Fontes (Based)" +https://gsthnz.com/posts/index.xml "Gustavo Heinz" +https://lukesmith.xyz/rss.xml "Luke Smith" {60} +https://www.privacytools.io/guides/rss.xml "Privacy Tools" +https://ohhelloana.blog/feed.xml "Oh Hello Ana" +https://stallman.org/rss/rss.xml "Richard Stallman" +https://simonsafar.com/index.xml "Simon Safar" +https://www.thedroneely.com/posts/rss.xml "Thedro Neely" +https://wilw.dev/rss.xml "Will Webberley's blog" + +@ Chess +https://yewtu.be/feed/channel/UCQHX6ViZmPsWiYSFAyS0a3Q "Gotham Chess" +https://yewtu.be/feed/channel/UCwWm-fABiYbcL7ro8qONd6Q "GM Krikor" +https://yewtu.be/feed/channel/UCweCc7bSMX5J4jEH7HFImng "GMHikaru" +https://yewtu.be/feed/channel/UCSAo4zvM1oAJ_i4C6q6ejBA "Raffael Chess" +https://yewtu.be/feed/channel/UC5K-TQsItHnNLjqYf8A3CTw "Xadrez Brasil" + +@ Politics {60} +https://yewtu.be/feed/channel/UCkSjy-IOEq-eMtarZl2uH1Q "Arthur do Val" +https://yewtu.be/feed/channel/UC7-Pp09PJX_SYP9oyMzUAtg "Assim disse o João" +https://odysee.com/$/rss/@Fhoer:f "Fhoer" +https://yewtu.be/feed/channel/UCqbz_4hrf2D58UFBOleuFnQ "História Cabeluda" +https://yewtu.be/feed/channel/UCAMExYqcweM7PUebKfmLdFA "História Pública" +https://odysee.com/$/rss/@ideiasradicais:a4 "Ideias Radicais" +https://yewtu.be/feed/channel/UCpHQyEuBXwYBvXC1_NResCg "Kim Kataguiri" +https://yewtu.be/feed/channel/UCCmh3nJayT-7jEM6hg2vP9Q "Laura Sabino" +https://www.yewtu.be/feed/channel/UCk5BcU1rOy6hepflk7_q_Pw "Meteoro Brasil" +https://yewtu.be/feed/channel/UCZdJE8KpuFm6NRafHTEIC-g "Tempero Drag" +https://yewtu.be/feed/channel/UC0fGGprihDIlQ3ykWvcb9hg "Tese Onze" + +@ Hacker Videos {60} +https://odysee.com/$/rss/@blenderdumbass:f "Blender Dumbass" +https://odysee.com/$/rss/@BrodieRobertson:5 "Brodie Robertson" +https://odysee.com/$/rss/@debxp:9 "Debxp" +https://odysee.com/$/rss/@DistroTube:2 "Distrotube" +https://yewtu.be/feed/channel/UCAXxhRve_scJJdJI4cwRSLg "Eriberto Mota" +https://fossandcrafts.org/rss-feed-ogg.rss "Foss && Crafts" +https://odysee.com/$/rss/@rossmanngroup:a "Louis Rossman" +https://odysee.com/$/rss/@Luke:7 "Luke Smith" +https://odysee.com/$/rss/@AlphaNerd:8 "Mental Outlaw" +https://odysee.com/$/rss/@monerocommunityworkgroup:8 "Monero Community Workgroup" +https://odysee.com/$/rss/@Mythologos:3 "Mythologos" +https://odysee.com/$/rss/@kretcheu2001:8 "Paulo Kretcheu" +https://odysee.com/$/rss/@slackjeff:1 "Slackjeff" +https://yewtu.be/feed/channel/UCjr2bPAyPV7t35MvcgT3W8Q "The Hated One" +https://odysee.com/$/rss/@TheLinuxExperiment:e "The Linux Experiment" + +@ Enviromental News {720} +https://www.greenpeace.org/brasil/feed/ "Greenpeace - Brasil" +https://www.greenpeace.org/international/feed/ "Greenpeace - International" +https://revistaforum.com.br/rss/feed.html?r=5 "Revista Fórum - Meio Ambiente" + +@ Free Software Projects {86400} +https://guix.gnu.org/feeds/blog.atom "Guix System" +https://hpc.guix.info/blog/feed.xml "Guix High Performance Computing" +https://www.hyperbola.info/feeds/news/ "HyperbolaBSD News" + +@ Social Media {180} +https://rsshub.app/acm/amturingaward "A.M. Turing Award" +https://www.reddit.com/r/bash/.rss "r/bash" +https://www.reddit.com/r/commandline/.rss "r/commandline" +https://rsshub.app/twitter/user/CppCon "Twitter: CppCon" +https://rsshub.app/twitter/user/CppStack "Twitter: C++ StackOverflow" +https://rsshub.app/twitter/user/cppnow "Twitter: C++ Now" +https://rsshub.app/twitter/user/meetingcpp "Twitter: Meeting C++" +https://rsshub.app/twitter/user/CppLibHunt "Twitter: C++ LibHunt" +https://rsshub.app/atcoder/contest/en/upcoming "Upcoming Contests - At Coder" + +@ Mathematics and Computer Science {60} +https://yewtu.be/feed/channel/UCYO_jab_esuFRV4b17AJtAw "3Blue1Brown" +https://yewtu.be/feed/channel/UCzBjutX2PmitNF4avysL-vg "Aleph 0" +https://yewtu.be/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "Computerphile" +https://yewtu.be/feed/channel/UCq7UdlqyyZA7Bi-OB5xIU5Q "James Boyer" +https://yewtu.be/feed/channel/UC0-gvTKzYKQcjzKcSPfeIkA "Kinertia" +https://yewtu.be/feed/channel/UC1_uAIS3r8Vu6JjXWvastJg "Mathologer" +https://yewtu.be/feed/channel/UC6jM0RFkr4eSkzT5Gx0HOAw "Michael Penn" +https://yewtu.be/feed/channel/UCoxcjq-8xIDTYp3uz647V5A "Numberphile" + +@ News {60} +https://agencia.fapesp.br/rss/ "Agência Fapesp" +https://baixacultura.org/feed/ "Baixa Cultura" +https://www.brasildefato.com.br/rss2.xml "Brasil de Fato" +https://static.fsf.org/fsforg/rss/news.xml "Free Software Foundation" +https://hnrss.org/newest?q=C%2B%2B+OR+mesh+OR+GNU+OR+Free+Software+OR+P2P "Hacker News" +https://theintercept.com/feed/?lang=pt "Intercept - Brasil" +https://theintercept.com/feed/?lang=en "Intercept - International" +https://morss.it/https://jornal.usp.br/ "Jornal USP" +https://www.nexojornal.com.br/rss.xml "Nexo Jornalismo" +https://nucleo.jor.br/rss/ "Núcleo Jornalismo" +https://www.phoronix.com/rss.php "Phoronix" +https://revistaforum.com.br/rss/feed.html?r=96 "Revista Fórum - Brasil" +https://revistaforum.com.br/rss/feed.html?r=4 "Revista Fórum - Internacional" +https://revistaforum.com.br/rss/feed.html?r=1 "Revista Fórum - Política" +https://revistaforum.com.br/rss/feed.html?r=735 "Revista Fórum - Tecnologia" +http://rss.slashdot.org/Slashdot/slashdotMain "Slashdot" + +@ Vegan {10} +https://yewtu.be/feed/channel/UCYamjJAo9qHUIN1jLYEDN4w "Eduardo Corassa" +https://yewtu.be/feed/channel/UCZ6JHFBaDUJ9wfo41HSII_w "Fábio Chaves" + +@ Nutrition {600} +https://yewtu.be/feed/channel/UCvyxOb6wDUGmMZFbV3cJeXg "Giancarlo Eidler" +https://yewtu.be/feed/channel/UCptCWTO2uq6jXcJLEvRhr8g "Dr Eric Slywitch" + +@ Calisthenics {600} +https://yewtu.be/feed/channel/UCjnHUDK6r4N56E6TfXEl2UQ "Minus The Gym" +https://yewtu.be/feed/channel/UCZpudmBAy0s4_cU9Ms4zCyA "Pinho Calistenia" +https://yewtu.be/feed/channel/UCb7LDXHmRPW1rk5Ld_DyhPA "Ricardo Calistenia" +https://yewtu.be/feed/channel/UCdoHSpmoR4XwmGMDZ4ZpYvw "Scott Burnhard" +https://yewtu.be/feed/channel/UCpyhJZhJQWKDdJCR07jPY-Q "Simnett Nutrition" +https://yewtu.be/feed/channel/UC41yTzQIzrCr7Edij7Ha4wA "The Jacked Vegan" diff --git a/manifests/clojure.scm b/manifests/clojure.scm new file mode 100644 index 0000000..f50ad06 --- /dev/null +++ b/manifests/clojure.scm @@ -0,0 +1,11 @@ +(use-modules (gnu packages clojure) + (gnu packages java) + (gnu packages node)) + +(packages->manifest + (list clojure + clojure-core-match + clojure-instaparse + clojure-tools + node + openjdk21)) diff --git a/manifests/emacs.scm b/manifests/emacs.scm new file mode 100644 index 0000000..82cbe26 --- /dev/null +++ b/manifests/emacs.scm @@ -0,0 +1,32 @@ +(use-modules (guix profiles) + (gnu packages emacs) + (gnu packages emacs-xyz) + (gnu packages guile-xyz)) + +(packages->manifest + (list #|emacs |# emacs + #|emacs-xyz |# + #| • completion |# emacs-cape emacs-corfu emacs-corfu-doc + emacs-consult-lsp emacs-vertico + #| • centering |# emacs-olivetti + #| • file manager |# emacs-dirvish + #| • fuzzy-finder |# emacs-orderless + #| • guile |# emacs-arei guile-ares-rs + emacs-macrostep-geiser emacs-geiser-eros + #| • guix |# emacs-guix emacs-direnv + #| • haunt |# emacs-ox-haunt + #| • icons |# emacs-all-the-icons + #| • irc |# emacs-circe + #| • kakoune |# emacs-kakoune emacs-phi-search-mc emacs-ryo-modal + #| • latex |# emacs-auctex emacs-latex-preview-pane + #| • linter |# emacs-flycheck emacs-flycheck-guile + #| • maps |# emacs-osm + #| • music player |# emacs-emms + #| • org |# emacs-org-bullets emacs-org-fragtog + emacs-org-present emacs-org-roam emacs-org-modern + #| • pulsar |# emacs-pulsar + #| • rss |# emacs-elfeed emacs-elfeed-org + #| • s-exps |# emacs-lispy emacs-rainbow-delimiters + #| • ease config |# emacs-setup + #| • typing |# emacs-typing + #| • terminal |# emacs-eat)) diff --git a/manifests/guile.scm b/manifests/guile.scm new file mode 100644 index 0000000..5a05121 --- /dev/null +++ b/manifests/guile.scm @@ -0,0 +1,14 @@ +(use-modules (guix profiles) + (gnu packages scheme) + (gnu packages guile) + (gnu packages guile-xyz) + (radix packages guile-xyz)) + +(packages->manifest + (list guile-machine-code + guile-srfi-197 + guile-srfi-232 + guile-quickcheck + guile-reader + guile-smc + slib)) diff --git a/manifests/idris.scm b/manifests/idris.scm new file mode 100644 index 0000000..7fe0a8e --- /dev/null +++ b/manifests/idris.scm @@ -0,0 +1,9 @@ +(use-modules (guix profiles) + (gnu packages idris) + (gnu packages emacs-xyz)) + +(packages->manifest + (list idris + idris-lightyear + idris-bifunctors + idris-lens)) diff --git a/manifests/tex.scm b/manifests/tex.scm new file mode 100644 index 0000000..924cee4 --- /dev/null +++ b/manifests/tex.scm @@ -0,0 +1,17 @@ +(use-modules (guix profiles) + (gnu packages tex)) + +(packages->manifest + (list texlive-collection-basic + texlive-collection-fontsextra + texlive-collection-fontsrecommended + texlive-collection-latex + texlive-collection-latexextra + texlive-collection-latexrecommended + texlive-collection-luatex + texlive-collection-langportuguese + texlive-collection-langenglish + texlive-collection-langfrench + texlive-collection-mathscience + texlive-collection-pictures + texlive-scheme-minimal)) diff --git a/manifests/theorem-proving.scm b/manifests/theorem-proving.scm new file mode 100644 index 0000000..7d6e42a --- /dev/null +++ b/manifests/theorem-proving.scm @@ -0,0 +1,9 @@ +(use-modules (guix profiles) + (gnu packages agda) + (gnu packages cedille) + (gnu packages coq)) + +(packages->manifest + (list #|agda |# agda agda-ial agda-stdlib agda-categories + #|cedille|# ;cedille <- currently broken + #|coq |# coq coq-interval coq-equations coq-semantics)) diff --git a/operating-systems/buer.scm b/operating-systems/buer.scm new file mode 100644 index 0000000..082337f --- /dev/null +++ b/operating-systems/buer.scm @@ -0,0 +1,359 @@ +(define-module (operating-systems buer) + #|GNU|# + #:use-module (gnu) + #:use-module ((gnu system) #:select (operating-system) + #:prefix gnu:) + + #|GNU packages|# + #|A|# #:use-module (gnu packages admin) + #:use-module (gnu packages android) + #|B|# #:use-module (gnu packages base) + #|C|# #:use-module (gnu packages certs) + #:use-module (gnu packages compression) + #|G|# #:use-module (gnu packages gawk) + #:use-module (gnu packages guile) + #:use-module (gnu packages guile-xyz) + #|L|# #:use-module (gnu packages less) + #:use-module (gnu packages linux) + #|M|# #:use-module (gnu packages man) + #|T|# #:use-module (gnu packages texinfo) + #:use-module (gnu packages text-editors) + #|V|# #:use-module (gnu packages vpn) + + #|GNU services|# + #|A|# #:use-module (gnu services admin) + #:use-module (gnu services avahi) + #|D|# #:use-module (gnu services dbus) + #:use-module (gnu services desktop) + #|M|# #:use-module (gnu services mcron) + #|N|# #:use-module (gnu services linux) + #:use-module (gnu services networking) + #|P|# #:use-module (gnu services pm) + #|S|# #:use-module (gnu services sound) + #:use-module (gnu services sysctl) + + #|Guix|# + #:use-module (guix) + + #|Radix|# + #|A|# #:use-module (radix artwork) + #|C|# #:use-module (radix combinators) + #|S|# #:use-module (radix secrets) + #|U|# #:use-module (radix utils) + + #|Radix packages|# + #|A|# #:use-module (radix packages admin) + #|L|# #:use-module (radix packages linux) + #|S|# #:use-module (radix packages shells) + + #|Radix services|# + #|A|# #:use-module (radix services admin) + #|P|# #:use-module (radix services pm) + + #|Radix system|# + #|S|# #:use-module (radix system security) + #:use-module (radix system setuid) + + #|M|# #:use-module (radix system monitoring) + + #|Buer files|# + #|S|# #:use-module ((buer files substitute-keys) #:prefix substitute-key:) + #:use-module ((buer files ssh-keys) #:prefix ssh-key:) + #|T|# #:use-module ((buer files thinkfan) #:prefix file:thinkfan-) + + #|SRFIs|# + #:use-module (srfi srfi-1) + + #:export (operating-system)) + +(define operating-system + (gnu:operating-system + (host-name "buer") + (timezone "America/Sao_Paulo") + (locale "en_US.utf8") + + (keyboard-layout + (keyboard-layout "us,br" + #:options `("grp:menu_switch" + "parens:swap_brackets" + "caps:swapescape"))) + + (bootloader + (bootloader-configuration + (bootloader grub-bootloader) + (targets `("/dev/sda")) + (timeout 1) + (theme (grub-theme + (color-normal + '((fg . light-gray) (bg . black))) + (color-highlight + '((fg . black) (bg . light-gray))) + (image (file-append %artwork-repository + "/backgrounds/guix-silver-16-9.svg")) + (gfxmode `("1280x720x32")))))) + + (kernel linux-libre-6.7) + (kernel-arguments + (cons* "modprobe.blacklist=usbmouse,usbkbd,pcspkr" + "thinkpad_acpi.fan_control=1" + (filter (negate (partial string-prefix? "debugfs")) + %kicksecure-kernel-arguments))) + + (file-systems + (cons* (file-system + (device (file-system-label "guix-root")) + (mount-point "/") + (type "ext4")) + (file-system + (device (file-system-label "home")) + (mount-point "/home") + (type "ext4")) + %base-file-systems)) + + (users + (cons* (user-account + (name "radio") + (password %radio-password) + (home-directory "/home/radio") + (shell (file-append dash-next "/bin/dash")) + (uid 1000) + (group "users") + (supplementary-groups `("audio" "adbusers" "video" "wheel"))) + (user-account + (name "root") + (password %root-password) + (system? #t) + (home-directory "/root") + (uid 0) + (group "root") + (shell (file-append dash-next "/bin/dash"))) + %base-user-accounts)) + + (groups + (cons* (user-group + (name "adbusers")) + %base-groups)) + + #|System level packages|# + (packages + (list #|admin |# btop inetutils isc-dhcp opendoas shadow zzz + #|base |# coreutils diffutils findutils grep patch sed tar which + #|certs |# nss-certs + #|compression |# gzip xz zstd + #|gawk |# gawk + #|guile |# guile-next guile-colorized guile-readline + #|less |# less + #|linux |# e2fsprogs iproute kmod procps psmisc util-linux + #|man |# man-db man-pages + #|shells |# dash-next + #|texinfo |# info-reader + #|text-editors|# kakoune + #|vpn |# wireguard-tools)) + + #|Do not generate a sudoers file|# + (sudoers-file #f) + + #|Run some programs from each package with file owner privileges|# + (setuid-programs + (map-setuid-programs + (shadow `("passwd" "chfn" "sg" "su" "newgrp" "newuidmap" "newgidmap")) + (inetutils `("ping" "ping6")) + (opendoas `("doas")) + (fuse-2 `("fusermount")) + (fuse `("fusermount3")) + (util-linux `("mount" "umount")))) + + #|Allow resolution of '.local' host names with mDNS|# + (name-service-switch %mdns-host-lookup-nss) + + #|System services|# + (services + (list #|TTY services|# + (service virtual-terminal-service-type) + (service console-font-service-type + (associate-right + (%default-console-font `("tty1" "tty2")))) + (service agetty-service-type + (agetty-configuration + (extra-options `("-L")) + (term "vt100") + (tty #f))) + (service mingetty-service-type + (mingetty-configuration (tty "tty1"))) + (service mingetty-service-type + (mingetty-configuration (tty "tty2"))) + + #|Login services|# + (service login-service-type) + (service elogind-service-type) + + #|Log services|# + (service rottlog-service-type) + (service syslog-service-type + (syslog-configuration + (syslogd (file-append inetutils "/libexec/syslogd")) + (config-file %default-syslog.conf))) + (service log-cleanup-service-type + (log-cleanup-configuration + (directory "/var/log/guix/drvs") + (expiry (* 3 30 24 3600)))) + + #|IPC services|# + (service dbus-root-service-type) + + #|Avahi service|# + (service avahi-service-type + (avahi-configuration + (wide-area? #t))) + + #|Guix services|# + (service guix-service-type + (guix-configuration + (discover? #t) + (build-accounts 16) + (build-machines + (list #~(build-machine + (name "yumiko") + (systems (list "x86_64-linux")) + (host-key #$(plain-file-content + ssh-key:yumiko.pub)) + (private-key "/root/.ssh/id_ed25519") + (user "radio") + (port 2222)))) + (authorized-keys + (cons* substitute-key:yuria.pub + substitute-key:yumiko.pub + %default-authorized-guix-keys)) + (extra-options `("--max-jobs=8" "--cores=4")))) + (service guix-publish-service-type + (guix-publish-configuration + (port 8080) + (host "0.0.0.0") + (advertise? #t) + (compression `(("zstd" 3))))) + + #|Mcron service|# + (service mcron-service-type + (mcron-configuration + (jobs (list #~(job "5 0 * * *" + "guix gc --optimize --free-space=5G"))))) + + #|Device management services|# + (service udev-service-type + (udev-configuration + (udev eudev) + (rules (list alsa-utils + android-udev-rules + crda + fuse + lvm2)))) + + #|Network services|# + (service static-networking-service-type + (list (static-networking + (addresses + (list (network-address + (device "lo") + (value "127.0.0.1/8")))) + (provision '(loopback))))) + (service ntp-service-type) + (service wpa-supplicant-service-type + (wpa-supplicant-configuration + (config-file "/etc/wpa_supplicant.conf") + (interface "wlp2s0") + (extra-options `("-B")))) + (service dhcp-client-service-type + (dhcp-client-configuration + (interfaces 'all))) + (service tor-service-type) + (simple-service 'extra-hosts + hosts-service-type + (list (host "192.168.100.33" "yumiko.local" + `("yumiko" "substitutes.yumiko")))) + + #|Power management services|# + (service tlp-service-type + (tlp-configuration + (cpu-scaling-governor-on-ac `("performance")) + (cpu-scaling-governor-on-bat `("powersave")) + (cpu-scaling-min-freq-on-ac 1500000) + (cpu-scaling-max-freq-on-ac 3500000) + (cpu-scaling-min-freq-on-bat 1000000) + (cpu-scaling-max-freq-on-bat 3000000) + (cpu-min-perf-on-ac 0) + (cpu-max-perf-on-ac 100) + (cpu-min-perf-on-bat 0) + (cpu-max-perf-on-bat 40) + (cpu-boost-on-ac? #t) + (cpu-boost-on-bat? #f) + (nmi-watchdog? #t) + (start-charge-thresh-bat0 70) + (stop-charge-thresh-bat0 90))) + (service thinkfan-service-type + (thinkfan-configuration + (thinkfan thinkfan-next) + (config-file file:thinkfan-config))) + (service thermald-service-type) + + #|Memory management services|# + (service zram-device-service-type + (zram-device-configuration + (size (round/ (ram-total) 4)) + (compression-algorithm 'lz4))) + + #|Doas configuration services|# + (simple-service 'miscellaneous-permissions doas-service-type + (list (permit (identity ":wheel") + (setenv `(("GUILE_LOAD_PATH" . #t)))) + (permit (identity ":wheel") + (nopass? #t) + (command "guix") + (args `("pull"))))) + (simple-service 'text-editors-permissions doas-service-type + (map (lambda (cmd) + (permit (identity ":wheel") + (keepenv? #t) + (command cmd))) + `("kak" "emacsclient"))) + (simple-service 'power-management-permissions doas-service-type + (map (lambda (cmd) + (permit (identity ":wheel") + (nopass? #t) + (command cmd) + (args '()))) + `("zzz" "halt" "reboot"))) + (simple-service 'shepherd-status-permissions doas-service-type + (map (lambda (action) + (permit (identity ":wheel") + (nopass? #t) + (command "herd") + (args (list action)))) + `("status" "detailed-status"))) + (simple-service 'service-management-permissions doas-service-type + (flat-map (lambda (service action) + (permit (identity ":wheel") + (nopass? #t) + (command "herd") + (args (map symbol->string + (list action service))))) + '(tor networking wpa-supplicant) + '(doc stop start enable status restart disable))) + #|Special file services|# + (service special-files-service-type + `(("/bin/sh" ,(file-append dash-next "/bin/dash")) + ("/usr/bin/env" ,(file-append coreutils "/bin/env")))) + + (simple-service 'extra-sysctl-settings sysctl-service-type + `(("vm.swappiness" . "180") + ("vm.watermark_boost_factor" . "0") + ("vm.watermark_scale_factor" . "125") + ("vm.page-cluster" . "0"))) + (simple-service 'security-syctl-settings sysctl-service-type + (alist-delete "net.core.bpf_jit_harden" + %kicksecure-sysctl-rules)) + + #|Base services|# + (service urandom-seed-service-type) + (service nscd-service-type))))) + +operating-system diff --git a/operating-systems/buer/files/ssh-keys.scm b/operating-systems/buer/files/ssh-keys.scm new file mode 100644 index 0000000..8257859 --- /dev/null +++ b/operating-systems/buer/files/ssh-keys.scm @@ -0,0 +1,10 @@ +(define-module (buer files ssh-keys) + #:use-module (gnu) + #:export (yumiko.pub)) + +(define yumiko.pub + (plain-file "yumiko.pub" + (format #f + "ssh-ed25519 ~ + AAAAC3NzaC1lZDI1NTE5AAAAIPaMmUA71F2BJPkVvArx6VGP21QMuJq4+mD7DHUPWcg9 ~ + guix@yumiko"))) diff --git a/operating-systems/buer/files/substitute-keys.scm b/operating-systems/buer/files/substitute-keys.scm new file mode 100644 index 0000000..f941c11 --- /dev/null +++ b/operating-systems/buer/files/substitute-keys.scm @@ -0,0 +1,22 @@ +(define-module (buer files substitute-keys) + #:use-module (gnu) + #:export (yuria.pub + yumiko.pub)) + +(define yuria.pub + (plain-file "yuria.pub" + "(public-key + (ecc + (curve Ed25519) + (q #D5D0C1203D294B410DA106DDC1713B74CBB27353D53F4EE3D9D26972E8687424#) + ) + )")) + +(define yumiko.pub + (plain-file "yumiko.pub" + "(public-key + (ecc + (curve Ed25519) + (q #EBD4DD318A84F9F0AD13300D8A2ACF022F16088DA59B57E539F6DC3BD9C33A52#) + ) + )")) diff --git a/operating-systems/buer/files/thinkfan.scm b/operating-systems/buer/files/thinkfan.scm new file mode 100644 index 0000000..dbb5816 --- /dev/null +++ b/operating-systems/buer/files/thinkfan.scm @@ -0,0 +1,22 @@ +(define-module (buer files thinkfan) + #:use-module (gnu) + #:export (config)) + +(define config + (plain-file "thinkfan.conf" +"\ +fans: +- tpacpi: /proc/acpi/ibm/fan +sensors: + - hwmon: /sys/devices/platform/coretemp.0/hwmon + indices: [1,2,3] +levels: + - [0, 0, 35] + - [1, 30, 40] + - [2, 35, 45] + - [3, 40, 50] + - [4, 45, 55] + - [5, 50, 60] + - [6, 55, 65] + - [7, 60, 70] + - [\"level full-speed\", 65, 260]")) diff --git a/operating-systems/buer/secrets.scm b/operating-systems/buer/secrets.scm new file mode 100644 index 0000000..71ca214 --- /dev/null +++ b/operating-systems/buer/secrets.scm @@ -0,0 +1,11 @@ +(define-module (buer secrets) + #:use-module (gnu) + #:export (%radio-password %root-password)) + +(define %radio-password + (string-append "$6$abc$YPieZeEBpa7oUo62ytkieOKzTNso/iGRSeB.GvH" + "9A3qM78WRGWIiQlK9gImWrLJw0ll18pjVgDNNamGeUV44G/")) + +(define %root-password + (string-append "$6$adsfc$51FzeGnMnVnyYiVotX8siJKUPFj8Na4aQRI7Ri" + "LXfttd5CrX8Ut1M5iteLWlEtNNDMlmFIuKTEegoR5L9avOA1")) diff --git a/screenshots/awesome-1.jpg b/screenshots/awesome-1.jpg new file mode 100644 index 0000000..44a9359 Binary files /dev/null and b/screenshots/awesome-1.jpg differ diff --git a/screenshots/awesome-2.jpg b/screenshots/awesome-2.jpg new file mode 100644 index 0000000..2270036 Binary files /dev/null and b/screenshots/awesome-2.jpg differ