├── .github
├── FUNDING.yml
└── ISSUE_TEMPLATE
│ └── bug_report.md
├── .gitignore
├── LICENSE
├── README.md
├── packages
├── linuxtoys-2.1.6-1.amd64.rpm
├── linuxtoys-2.1.6-1.src.rpm
└── linuxtoys_2.1.6-1_amd64.deb
└── src
├── buildfiles
├── deb
│ ├── linuxtoys-2.1.6
│ │ └── debian
│ │ │ ├── changelog
│ │ │ ├── control
│ │ │ ├── copyright
│ │ │ ├── files
│ │ │ ├── install
│ │ │ ├── postinst
│ │ │ ├── rules
│ │ │ ├── source
│ │ │ ├── format
│ │ │ └── include-binaries
│ │ │ └── usr
│ │ │ └── share
│ │ │ └── applications
│ │ │ └── LinuxToys.desktop
│ ├── linuxtoys_2.1.6-1.debian.tar.xz
│ └── linuxtoys_2.1.6.orig.tar.xz
├── pkgbuild
│ ├── PKGBUILD
│ ├── linuxtoys-2.1.6.tar.xz
│ ├── linuxtoys-2.1.6
│ │ └── share
│ │ │ └── applications
│ │ │ └── LinuxToys.desktop
│ └── linuxtoys.install
└── rpm
│ ├── linuxtoys-2.1.6.tar.xz
│ ├── linuxtoys-2.1.6
│ └── LinuxToys.desktop
│ └── rpmbuild
│ └── SPECS
│ └── linuxtoys.spec
├── lang
├── en
└── pt
├── linuxtoys.lib
├── linuxtoys.png
├── linuxtoys.sh
├── psy-krn
├── resources
├── other
│ ├── davinci
│ │ ├── free
│ │ │ ├── PKGBUILD
│ │ │ └── davinci-resolve.install
│ │ └── studio
│ │ │ ├── PKGBUILD
│ │ │ └── davinci-resolve.install
│ ├── godot.desktop
│ ├── godot.png
│ ├── godotsharp.desktop
│ └── jetbrains
│ │ ├── clion.desktop
│ │ ├── datagrip.desktop
│ │ ├── goland.desktop
│ │ ├── intellij.desktop
│ │ ├── intellijce.desktop
│ │ ├── jetbrains-toolbox.desktop
│ │ ├── phpstorm.desktop
│ │ ├── pycharm.desktop
│ │ ├── rider.desktop
│ │ ├── rubymine.desktop
│ │ ├── rustrover.desktop
│ │ └── webstorm.desktop
├── subscripts
│ ├── docker-installer.sh
│ ├── grub-btrfs-installer.sh
│ ├── jetbrainsmenu.lib
│ ├── pipewire-obs.sh
│ ├── runners.sh
│ ├── rusticl-amd
│ ├── rusticl-intel
│ ├── script.sed
│ ├── swapper.sh
│ └── waydroid-suse.sh
└── supermenus
│ ├── dsupermenu.sh
│ ├── esupermenu.sh
│ ├── gsupermenu.sh
│ ├── osupermenu.sh
│ └── usupermenu.sh
├── scrnshot.png
└── ver
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: psygreg
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12 | polar: # Replace with a single Polar username
13 | buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14 | thanks_dev: # Replace with a single thanks.dev username
15 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
16 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: "[BUG]"
5 | labels: bug
6 | assignees: psygreg
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **Logfile**
14 | Copy and paste your logfile here. It is found in `~/.local/linuxtoys-log.txt`.
15 |
16 | **Desktop (please complete the following information):**
17 | - OS: [e.g. openSUSE]
18 | - Version [e.g. Tumbleweed]
19 |
20 | **Additional context**
21 | Add any other context about the problem here.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.build
2 | *.buildinfo
3 | *.changes
4 | *.upload
5 | *.dsc
6 | src/buildfiles/deb/linuxtoys-*/debian/.debhelper
7 | *.substvars
8 | debhelper-build-stamp
9 | src/buildfiles/deb/linuxtoys-*/debian/linuxtoys
10 | src/buildfiles/deb/*.deb
11 | src/buildfiles/rpm/rpmbuild/x86_64/linuxtoys*
12 | src/buildfiles/deb/linuxtoys-*/debian/opt/linuxtoys/*
13 | src/buildfiles/rpm/linuxtoys-*/x86_64/linuxtoys*
14 | src/buildfiles/pkgbuild/linuxtoys-*/bin/*
15 | src/buildfiles/rpm/linuxtoys-*/linuxtoys.sh
16 | src/buildfiles/rpm/linuxtoys-*/linuxtoys.png
17 |
18 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LinuxToys
2 | A collection of tools for Linux in a user-friendly way.
3 |
4 | 
5 |
6 | ## Usage
7 | - Install the proper package for your operating system from [Releases](https://github.com/psygreg/linuxtoys/releases) and run it from the applications menu.
8 |
9 | ### Ubuntu (latest and latest LTS releases)
10 | There's a PPA available for LinuxToys. To use it:
11 | `sudo add-apt-repository ppa:psygreg/linuxtoys &&
12 | sudo apt update`
13 |
14 | ### Fedora, OpenSUSE, AlmaLinux and RHEL
15 | You may obtain it and keep it up-to-date from the COPR repository: `sudo dnf copr enable psygreg/linuxtoys`
16 |
17 | ### Arch Linux
18 | Get it from the [Arch User Repository](https://aur.archlinux.org/packages/linuxtoys-bin) using `aura -A linuxtoys-bin`; or
19 |
20 | - Download the PKGBUILD and `.install` files from [Releases](https://github.com/psygreg/linuxtoys/releases)
21 | - Run `makepkg -si` on the folder you downloaded the file to install.
22 |
23 | ## Limitations
24 | - **Shader Booster** only works in systems using the `bash` or `zsh` shells as default.
25 | - **GRUB-btrfs**, besides its obvious requirements, depends on `systemd-init` to enable boot snapshots and cleanup.
26 | - **Lucidglyph** is only confirmed to work on **Gnome** and **Plasma** desktops. With all others, your mileage may vary.
27 | - The **linux-cachyos** kernel port to Debian/Ubuntu-based systems may require its **LTO** setting changed to 'Full' or 'None' to work in some systems. *ThinLTO is only known to work in the standard Ubuntu-Gnome flavour and in Debian Testing, so far, although it is the optimal setting if it works for your system.*
28 | - **LACT** is an overclocking tool. Use with caution.
29 | - **PyEnv** only supports running in `bash` or `zsh` shells.
30 | - **Godot 4 .NET** a.k.a. *GodotSharp* is not compatible with Arch-based operating systems, as there isn't a .NET SDK available from Microsoft officially for those.
31 | - **Unity Hub** only supports **Debian**, **Ubuntu** and **Red Hat Enterprise Linux**, so its installer will only work on these systems.
32 |
33 | ## Building from source
34 | ### .deb package
35 | This will require `debuild`, obtained from the `devscripts` package..
36 |
37 | - Clone the repo.
38 | - Open terminal on `src/buildfiles/deb/linuxtoys*`
39 | - Run `debuild -S` for .changes file or `debuild -us -uc` for a .deb package.
40 |
41 | ### .rpm package
42 | Requires `rpmbuild`.
43 |
44 | - Clone the repo.
45 | - Open terminal on the `src/buildfiles/rpm/rpmbuild` subdirectory.
46 | - `rpmbuild -bb SPECS/linuxtoys.spec`
47 |
48 | ## Contributing
49 |
50 | To contribute with translations, you can fork this repo, add a new language file to the `resources/lang` folder and send a Pull Request. I can make the necessary adjustments to the program's code myself to accomodate new languages.
51 |
52 | Other contributions can be made by forking, adding your changes and sending a Pull Request as well.
53 |
54 | **All Pull Requests will be manually checked before approval.**
55 |
56 | ## Credits
57 |
58 | - [Lucidglyph](https://github.com/maximilionus/lucidglyph/tree/v0.11.0) by **Maximilionus**
59 | - [GRUB-btrfs](https://github.com/Antynea/grub-btrfs) by **Antynea**
60 | - [Pipewire Audio Capture plugin for OBS Studio](https://github.com/dimtpap/obs-pipewire-audio-capture) by **Dimitris Papaioanou**
61 | - [LACT](https://github.com/ilya-zlobintsev/LACT) by **Ilya Zlobintsev**
62 | - [Easy Effects](https://github.com/wwmm/easyeffects) by **Wellington Wallace**
63 | - [StreamController](https://github.com/StreamController/StreamController) by **'Core447'**
64 | - [MakeResolveDeb](https://www.danieltufvesson.com/makeresolvedeb) by **Daniel Tufvesson**
65 | - [Darktable](https://www.darktable.org)
66 | - [Foliate](https://johnfactotum.github.io/foliate) by **John Factotum**
67 | - [Custom Wine Builds](https://github.com/NelloKudo/WineBuilder) by **'NelloKudo'**
68 | - [auto-cpufreq](https://github.com/AdnanHodzic/auto-cpufreq) by **Adnan Hodzic**
69 | - [Chaotic AUR](https://aur.chaotic.cx/)
70 | - [The CachyOS Team](https://github.com/CachyOS/linux-cachyos)
71 | - [Pyenv](https://github.com/pyenv)
72 | - [NVM-sh](https://github.com/nvm-sh)
73 | - [WiVRn](https://github.com/WiVRn)
74 | - [Oversteer](https://github.com/berarma/oversteer) by **Bernat**
75 | - And the Linux Community
76 |
--------------------------------------------------------------------------------
/packages/linuxtoys-2.1.6-1.amd64.rpm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/packages/linuxtoys-2.1.6-1.amd64.rpm
--------------------------------------------------------------------------------
/packages/linuxtoys-2.1.6-1.src.rpm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/packages/linuxtoys-2.1.6-1.src.rpm
--------------------------------------------------------------------------------
/packages/linuxtoys_2.1.6-1_amd64.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/packages/linuxtoys_2.1.6-1_amd64.deb
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/changelog:
--------------------------------------------------------------------------------
1 | linuxtoys (2.1.6-1) plucky; urgency=medium
2 |
3 | * updater removed, now replaced by an update prompter
4 | * alacritty is no longer a dependency
5 |
6 | -- Victor Gregory Fri, 6 Jun 2025 3:00:47 -0300
7 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/control:
--------------------------------------------------------------------------------
1 | Source: linuxtoys
2 | Section: utils
3 | Priority: optional
4 | Maintainer: Victor Gregory
5 | Rules-Requires-Root: no
6 | Build-Depends:
7 | debhelper-compat (= 13),
8 | Standards-Version: 4.7.2
9 | Homepage: https://github.com/psygreg/linuxtoys
10 | #Vcs-Browser: https://salsa.debian.org/debian/linuxtoys
11 | #Vcs-Git: https://salsa.debian.org/debian/linuxtoys.git
12 |
13 | Package: linuxtoys
14 | Architecture: amd64
15 | Depends: bash, git, curl, wget, whiptail
16 | Description: A set of tools for Linux presented in a user-friendly way.
17 | .
18 | A menu with various handy tools for Linux gaming, optimization and other tweaks.
19 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/copyright:
--------------------------------------------------------------------------------
1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2 | Source: https://github.com/psygreg/linuxtoys
3 | Upstream-Name: linuxtoys
4 | Upstream-Contact:
5 |
6 | Files:
7 | *
8 | Copyright:
9 | 2025 Victor Gregory
10 | License: GPL-3.0+
11 |
12 | Files:
13 | debian/*
14 | Copyright:
15 | 2025 Victor Gregory
16 | License: GPL-3.0+
17 |
18 | License: GPL-3.0+
19 | This package is free software: you can redistribute it and/or modify
20 | it under the terms of the GNU General Public License as published by
21 | the Free Software Foundation, either version 3 of the License, or
22 | (at your option) any later version.
23 | .
24 | This package is distributed in the hope that it will be useful,
25 | but WITHOUT ANY WARRANTY; without even the implied warranty of
26 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 | GNU General Public License for more details.
28 | .
29 | You should have received a copy of the GNU General Public License
30 | along with this package. If not, see .
31 | Comment:
32 | On Debian systems, the complete text of the GNU General
33 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
34 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/files:
--------------------------------------------------------------------------------
1 | linuxtoys_2.1.6-1_amd64.buildinfo utils optional
2 | linuxtoys_2.1.6-1_amd64.deb utils optional
3 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/install:
--------------------------------------------------------------------------------
1 | debian/opt/linuxtoys/linuxtoys.png /opt/linuxtoys
2 | debian/opt/linuxtoys/linuxtoys.sh /opt/linuxtoys
3 | debian/usr/share/applications/LinuxToys.desktop /usr/share/applications
4 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/postinst:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | alias_name="linuxtoys"
3 | alias_command="/opt/linuxtoys/linuxtoys.sh"
4 |
5 | # Check if the alias already exists
6 | if ! alias "$alias_name" 2>/dev/null; then
7 | # If it doesn't exist, add it to the appropriate file
8 | echo "alias $alias_name='$alias_command'" >> /etc/bash.bashrc
9 | echo "Alias '$alias_name' created."
10 | else
11 | echo "Alias '$alias_name' already exists."
12 | fi
13 | exit 0
14 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/rules:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 |
3 | # See debhelper(7) (uncomment to enable).
4 | # Output every command that modifies files on the build system.
5 | #export DH_VERBOSE = 1
6 |
7 |
8 | # See FEATURE AREAS in dpkg-buildflags(1).
9 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10 |
11 | # See ENVIRONMENT in dpkg-buildflags(1).
12 | # Package maintainers to append CFLAGS.
13 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
14 | # Package maintainers to append LDFLAGS.
15 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
16 |
17 |
18 | %:
19 | dh $@
20 |
21 |
22 | # dh_make generated override targets.
23 | # This is an example for Cmake (see ).
24 | #override_dh_auto_configure:
25 | # dh_auto_configure -- \
26 | # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
27 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/source/format:
--------------------------------------------------------------------------------
1 | 3.0 (quilt)
2 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/source/include-binaries:
--------------------------------------------------------------------------------
1 | debian/opt/linuxtoys/linuxtoys.png
2 | debian/opt/linuxtoys/linuxtoys.sh
3 |
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys-2.1.6/debian/usr/share/applications/LinuxToys.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=LinuxToys
3 | Type=Application
4 | Exec=/opt/linuxtoys/linuxtoys.sh
5 | Terminal=true
6 | Icon=/opt/linuxtoys/linuxtoys.png
7 | Comment=A set of tools for Linux presented in a user-friendly way
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys_2.1.6-1.debian.tar.xz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/buildfiles/deb/linuxtoys_2.1.6-1.debian.tar.xz
--------------------------------------------------------------------------------
/src/buildfiles/deb/linuxtoys_2.1.6.orig.tar.xz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/buildfiles/deb/linuxtoys_2.1.6.orig.tar.xz
--------------------------------------------------------------------------------
/src/buildfiles/pkgbuild/PKGBUILD:
--------------------------------------------------------------------------------
1 | pkgname='linuxtoys'
2 | pkgver='2.1.6'
3 | pkgrel=1
4 | arch=('x86_64')
5 | depends=(bash curl wget libnewt base-devel git)
6 | makedepends=()
7 | conflicts=(linuxtoys)
8 | provides=("linuxtoys=$pkgver")
9 | install=linuxtoys.install
10 | source=("https://github.com/psygreg/linuxtoys/releases/download/${pkgver}/linuxtoys-${pkgver}.tar.xz")
11 | sha256sums=('8ea514018097474ac17dfc96985cbe04145a4389dc4888c30c491d2e09d1ed9c')
12 |
13 | package() {
14 |
15 | mkdir -p ${pkgdir}/usr
16 | cp -rf ${srcdir}/linuxtoys-${pkgver}/{bin,share} ${pkgdir}/usr
17 | chmod +x "${pkgdir}/usr/bin/linuxtoys.sh"
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/buildfiles/pkgbuild/linuxtoys-2.1.6.tar.xz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/buildfiles/pkgbuild/linuxtoys-2.1.6.tar.xz
--------------------------------------------------------------------------------
/src/buildfiles/pkgbuild/linuxtoys-2.1.6/share/applications/LinuxToys.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=LinuxToys
3 | Type=Application
4 | Exec=/usr/bin/linuxtoys.sh
5 | Terminal=true
6 | Icon=/usr/bin/linuxtoys.png
7 | Comment=A set of tools for Linux presented in a user-friendly way
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/buildfiles/pkgbuild/linuxtoys.install:
--------------------------------------------------------------------------------
1 | post_install() {
2 | alias_name="linuxtoys"
3 | alias_command="/usr/bin/linuxtoys.sh"
4 | target_file="/etc/bash.bashrc"
5 | if ! grep -q "alias $alias_name=" "$target_file"; then
6 | echo "alias $alias_name='$alias_command'" >> "$target_file"
7 | echo "Alias '$alias_name' created."
8 | else
9 | echo "Alias '$alias_name' already exists."
10 | fi
11 | }
--------------------------------------------------------------------------------
/src/buildfiles/rpm/linuxtoys-2.1.6.tar.xz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/buildfiles/rpm/linuxtoys-2.1.6.tar.xz
--------------------------------------------------------------------------------
/src/buildfiles/rpm/linuxtoys-2.1.6/LinuxToys.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=LinuxToys
3 | Type=Application
4 | Exec=/usr/bin/linuxtoys.sh
5 | Terminal=true
6 | Icon=/usr/share/icons/hicolor/scalable/apps/linuxtoys.png
7 | Comment=A set of tools for Linux presented in a user-friendly way
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/buildfiles/rpm/rpmbuild/SPECS/linuxtoys.spec:
--------------------------------------------------------------------------------
1 | Name: linuxtoys
2 | Version: 2.1.6
3 | Release: 1
4 | Summary: A set of tools for Linux presented in a user-friendly way
5 | BuildArch: x86_64
6 |
7 | License: GPL3
8 | Source0: linuxtoys-%{version}.tar.xz
9 |
10 | Requires: bash newt curl wget git
11 | BuildRequires: desktop-file-utils
12 |
13 | %description
14 | A menu with various handy tools for Linux gaming, optimization and other tweaks.
15 |
16 | %global debug_package %{nil}
17 |
18 | %prep
19 | %setup -q
20 |
21 | %install
22 | mkdir -p %{buildroot}/usr/bin
23 | install -m 755 linuxtoys.sh %{buildroot}/usr/bin/
24 | mkdir -p %{buildroot}/usr/share/applications
25 | desktop-file-install --dir=%{buildroot}/usr/share/applications LinuxToys.desktop
26 | mkdir -p %{buildroot}/usr/share/icons/hicolor/scalable/apps
27 | install -m 644 linuxtoys.png %{buildroot}/usr/share/icons/hicolor/scalable/apps/
28 |
29 | %post
30 | alias_name="linuxtoys"
31 | alias_command="/usr/bin/linuxtoys.sh"
32 | target_file="/etc/bash.bashrc"
33 | if ! grep -q "alias $alias_name=" "$target_file"; then
34 | echo "alias $alias_name='$alias_command'" >> "$target_file"
35 | echo "Alias '$alias_name' created."
36 | else
37 | echo "Alias '$alias_name' already exists."
38 | fi
39 |
40 | %clean
41 | rm -rf $RPM_BUILD_ROOT
42 |
43 | %files
44 | %defattr(-, root, root, -)
45 | /usr/bin/linuxtoys.sh
46 | /usr/share/applications/LinuxToys.desktop
47 | /usr/share/icons/hicolor/scalable/apps/linuxtoys.png
48 |
49 | %changelog
50 | * Thu Jun 5 2025 Victor Gregory - 2.1.6
51 | - updater removed, replaced by an update prompter
52 | - alacritty is no longer a dependency
--------------------------------------------------------------------------------
/src/lang/en:
--------------------------------------------------------------------------------
1 | msg001="Update available"
2 | msg002="Do you wish to download and install the new version?"
3 | msg003="Updater"
4 | msg004="Close LinuxToys now to continue."
5 | msg005="Update complete."
6 | msg006="Installer"
7 | msg007="This will install and enable a basic firewall setup for your safety. Proceed?"
8 | msg008="Setup completed. You can change settings with the Firewall Settings app."
9 | msg009="Swapfile Setup"
10 | msg010="This creates a swapfile, that can be used to deal with memory pressure. Proceed?"
11 | msg011="Enabling Flatpaks"
12 | msg012="This will enable Flatpaks and add the Flathub source to your system. Proceed?"
13 | msg013="Flatpaks Enabled"
14 | msg014="Reboot to add it to PATH and show apps in the menu."
15 | msg015="Flatpaks already enabled in your system."
16 | msg016="Gnome Software"
17 | msg017="This will install the Software app as a flatpak front-end. Proceed?"
18 | msg018="Operations completed."
19 | msg019="LucidGlyph"
20 | msg020="This will set up improved font aliasing configuration, similar to Windows' ClearType. Proceed?"
21 | msg021="Setup Complete"
22 | msg022="Reboot to take effect."
23 | msg023="Chaotic AUR"
24 | msg024="Repository enabled successfully."
25 | msg025="Shader Booster"
26 | msg026="This will patch your shader cache size, fixing stutters in many games. Proceed?"
27 | msg027="This will install gamemode and gamescope. Gamemode triggers a series of CPU usage optimizations for games, while Gamescope effectively does what Lossless Scaling can do on Windows. Proceed?"
28 | msg028="This allows you to monitor game performance, similarly to RivaTuner on Windows. Proceed?"
29 | msg029="Configure your in-game overlay using GOverlay."
30 | msg030="Cancelled"
31 | msg031="Your root filesystem is not BTRFS."
32 | msg032="This will install LACT, an overclocking and fan control utility on your system. Proceed?"
33 | msg033="This will download and install Resolve (either Free or Studio). Proceed?"
34 | msg034="REMINDER: you will need a license key or dongle to use the Studio version, which should be purchased from Blackmagic Design."
35 | msg035="This requires having installed the Chaotic-AUR repository first. Proceed?"
36 | msg036="Installation complete. Reboot for changes to take effect."
37 | msg037="This will install ROCm and its OpenCL runtime in your system."
38 | msg038="This may not work outside Ubuntu and its flavours or Debian. Proceed?"
39 | msg039="Incompatible Card"
40 | msg040="No Radeon GPU found in your system."
41 | msg041="Disable Split Lock Mitigate"
42 | msg042="Mitigating split locks can cause performance losses in games and older applications. This will disable that behaviour, and fix such performance losses. Proceed?"
43 | msg043="Your system has already disabled Split Lock Mitigation."
44 | msg044="Set up a basic Firewall"
45 | msg045="Configure a Swapfile"
46 | msg046="Set up Flathub"
47 | msg047="Set up Gnome Software"
48 | msg048="Set up Lucidglyph - 'ClearType' for Linux"
49 | msg049="Apply Shader Booster"
50 | msg050="Install Gamemode and Gamescope"
51 | msg051="Install Mangohud and GOverlay"
52 | msg052="Install LACT Overclock & Fan Control"
53 | msg053="Add Chaotic-AUR repository"
54 | msg054="Install or update DaVinci Resolve"
55 | msg055="Set up GRUB-Btrfs"
56 | msg056="Set up Docker + Portainer CE"
57 | msg057="Install linux-cachyos Kernel"
58 | msg058="Install ROCm for AMD GPUs"
59 | msg059="Exit"
60 | msg060="This will install the Software app (and necessary plugins) as apt and flatpak front-end. Proceed?"
61 | msg061="This requires flatpak in your system. You may install it from the previous menu."
62 | msg062="This will install FireAlpaca from a deb package created from the original AppImage. Proceed?"
63 | msg063="This will open the menu to set up a custom kernel from linux-cachyos patches. Proceed?"
64 | msg064="Install or update FireAlpaca"
65 | msg065="Compile and install/update linux-cachyos Kernel"
66 | msg066="You may toggle and adjust settings on Lutris. You can also use gamemode on Steam games by setting 'gamemoderun %command%' in the launch options."
67 | msg067="Choose your version:"
68 | msg068="Current cards (GeForce 900 series or newer)"
69 | msg069="Older cards (GeForce 600 and 700 series)"
70 | msg070="Cancel"
71 | msg071="No Nvidia GPUs were found in your system."
72 | msg072="SELinux Fixer"
73 | msg073="Invalid Operating System. This should only be executed in openSUSE."
74 | msg074="CachyOS Kernel Installation"
75 | msg075="Install GCC kernel (compatibility)"
76 | msg076="Install ThinLTO kernel (performance)"
77 | msg077="Your operating system is not compatible."
78 | msg078="Install Nvidia drivers"
79 | msg079="Fix SELinux policies for WINE/Proton"
80 | msg080="This will install media codecs for OpenSUSE, which doesn't come with them by default. Proceed?"
81 | msg081="Media codecs for OpenSUSE"
82 | msg082="This will install the Pipewire Audio Capture plugin on OBS Studio, fixing audio crackling problems. Proceed?"
83 | msg083="Pipewire not found."
84 | msg084="Install Pipewire Audio Capture for OBS Studio"
85 | msg085="Flatpaks not available. Do you wish to install?"
86 | msg086="Shadowplay for all GPUs"
87 | msg087="Video transcoding made easy"
88 | msg088="Logitech Options/G Hub replacement"
89 | msg089="Synapse replacement for Linux"
90 | msg090="Choose packages to install"
91 | msg091="Open source software for RGB control"
92 | msg092="Create and manage btrfs snapshots"
93 | msg093="Overclocking and Fan Control"
94 | msg094="Android apps and games on Linux"
95 | msg095="lightweight setup with Portainer"
96 | msg096="Radeon Open Compute libraries"
97 | msg097="The installation process for Waydroid on OpenSUSE is complex and requires a kernel replacement. For that reason, LinuxToys will not install it."
98 | msg098="Choose 'Flatpak' on the following menu."
99 | msg099="Free, yet compatible with MS Office"
100 | msg100="Linux community port"
101 | msg101="Remote desktop access"
102 | msg102="Team management app"
103 | msg103="Notion for Linux"
104 | msg104="Image Manipulation Program"
105 | msg105="Vector drawing software"
106 | msg106="Open-source CAD software"
107 | msg107="Professional Video Editor"
108 | msg108="Debianized package for Debian/Ubuntu"
109 | msg109="Steam game store and launcher"
110 | msg110="Lutris game and emulator launcher"
111 | msg111="For Epic, Amazon and GOG Games"
112 | msg112="Custom-tailored runners into your launchers"
113 | msg113="A runner for Steam to allow modding"
114 | msg114="Roblox for Linux"
115 | msg115="Toggle system optimizations"
116 | msg116="Lossless Scaling for Linux"
117 | msg117="In-game stats overlay"
118 | msg118="Adjusting Mangohud made simple"
119 | msg119="Fix stutters and FPS dips"
120 | msg120="Utilities"
121 | msg121="Office & Work"
122 | msg122="Gaming"
123 | msg123="Extras"
124 | msg124="About LinuxToys"
125 | msg125="Made with <3 by psygreg -- GNU GPLv3 license"
126 | msg126="Kernel update available!"
127 | msg127="Update now?"
128 | msg128="Optimized, clean take on Firefox"
129 | msg129="browser from Google"
130 | msg130="Voice chat and social network"
131 | msg131="Press SPACE to select desired options:"
132 | msg132="Cannot install selected flatpak packages."
133 | msg133="Manage flatpak permissions"
134 | msg134="Manage versions and virtual environments with Pyenv"
135 | msg135="Instructions for usage of Pyenv will be opened in your web browser."
136 | msg136="Instructions for usage of NVM will be opened in your web browser."
137 | msg137="for the Unity Engine"
138 | msg138="for Java and Kotlin developers"
139 | msg139="Open source game engine"
140 | msg140="Classic keyboard-focused IDE"
141 | msg141="Microsoft's flexible IDE"
142 | msg142="Open source VS Code"
143 | msg143="Developers"
144 | msg144="VR for Linux"
145 | msg145="Set up your steering wheel"
146 | msg146="Some additional modules might be required for your hardware. A webpage will be opened with instructions."
147 | msg147="Effects, filters and spatial audio"
148 | msg148="Organize and develop RAW images"
149 | msg149="friendly E-Book reader"
150 | msg150="Do you want to quick-install with optimized defaults?"
151 | msg151="Elgato Stream Deck controls"
152 | msg152="official cloud gaming app"
153 | msg153="for Hoyoverse Games"
154 | msg154="for that fast clicking game"
155 | msg155="You need to have Lutris installed through flatpak for this. You can install it in the Gaming menu."
156 | msg156="Additional runners for specific games"
157 | msg157="LinuxToys will open its latest release page in your browser now."
158 | msg158="Modernized OpenCL for AMD and Intel"
159 | msg159="Open source 3D creation suite"
160 | msg160="Minecraft Bedrock Edition for Linux"
161 | msg161="REMINDER: Minecraft Bedrock Launcher requires having purchased the game in the Google Play Store."
162 | msg162="menu for all their IDEs"
163 | msg163="Python and data science"
164 | msg164="JavaScript and TypeScript"
165 | msg165=".NET and game developers"
166 | msg166="C and C++"
167 | msg167="Rust"
168 | msg168="Ruby and Rails"
169 | msg169="tool for multiple databases"
170 | msg170="PHP"
171 | msg171="Go"
172 | msg172="all-in-one manager for Jetbrains apps"
173 | msg173="This will override all other chosen apps, since Toolbox manager installs the packages differently, incompatibly with LinuxToys. Proceed?"
174 | msg174="Toolbox is an AppImage and requires FUSE to work. Proceed with installation?"
175 | msg175="Operation cancelled by the user."
176 | msg176="This will enable optimized defaults for battery usage management. This is ONLY meant for laptops. Proceed?"
177 | msg177="TLP Power Usage Optimizer"
178 | msg178="Java project management build tool"
--------------------------------------------------------------------------------
/src/lang/pt:
--------------------------------------------------------------------------------
1 | msg001="Atualização Disponível"
2 | msg002="Deseja baixar e instalar a nova versão?"
3 | msg003="Atualizador"
4 | msg004="Feche a janela do LinuxToys agora para continuar."
5 | msg005="Atualização concluída."
6 | msg006="Instalador"
7 | msg007="Isto irá instalar e habilitar um firewall básico para sua segurança. Prosseguir?"
8 | msg008="Instalação concluída. Você pode refinar os ajustes no aplicativo Configurações do Firewall."
9 | msg009="Configurando arquivo Swap"
10 | msg010="Isto criará um arquivo Swap, para lidar com eventos de pressão de memória. Prosseguir?"
11 | msg011="Habilitando Flatpaks"
12 | msg012="Isto habilitará flatpaks e adicionará a Flathub às suas fontes de aplicativo. Prosseguir?"
13 | msg013="Flatpaks Habilitados"
14 | msg014="Reinicie o computador para adicioná-los ao PATH e exibí-los no menu de aplicativos."
15 | msg015="Flatpaks já habilitados no seu sistema."
16 | msg016="Programas do Gnome"
17 | msg017="Isto irá instalar o Programas do Gnome como interface para instalação de flatpaks. Prosseguir?"
18 | msg018="Operações concluídas."
19 | msg019="LucidGlyph"
20 | msg020="Isto irá configurar uma renderização melhorada de fontes, similar ao ClearType do Windows. Prosseguir?"
21 | msg021="Configuração Concluída"
22 | msg022="Reinicie para aplicar."
23 | msg023="Chaotic AUR"
24 | msg024="Repositório habilitado com sucesso."
25 | msg025="Shader Booster"
26 | msg026="Isto irá aumentar o cache de shaders, reduzindo quedas de FPS em jogos. Prosseguir?"
27 | msg027="Isto irá instalar Gamemode e Gamescope. Gamemode habilita uma série de melhorias no uso de CPU para jogos, enquanto Gamescope é o equivalente ao Lossless Scaling do Windows. Prosseguir?"
28 | msg028="Isto permitirá que você monitore o uso da sua máquina por um overlay similar ao RivaTuner. Prosseguir?"
29 | msg029="Configure seu overlay através do aplicativo GOverlay."
30 | msg030="Cancelado"
31 | msg031="Seu sistema de arquivos da raíz não é BTRFS."
32 | msg032="Isto irá instalar o LACT, uma ferramenta de overclock e controle de ventiladores no seu sistema. Prosseguir?"
33 | msg033="Isto irá baixar e instalar DaVinci Resolve na versão free ou Studio. Prosseguir?"
34 | msg034="LEMBRETE: você precisa de um dongle ou chave de licença para utilizar a versão Studio, que devem ser adquiridos com a BlackMagic Design."
35 | msg035="Isto requer ter instalado o repositório Chaotic-AUR anteriormente. Prosseguir?"
36 | msg036="Instalação concluída. Reinicie para aplicar alterações."
37 | msg037="Isto irá instalar ROCm e seu tempo de execução para OpenCL."
38 | msg038="Isto pode não funcionar fora do Ubuntu e suas flavours ou Debian. Prosseguir?"
39 | msg039="Placa Incompatível"
40 | msg040="Nenhuma placa Radeon encontrada no sistema."
41 | msg041="Desativar mitigação de Split-locks"
42 | msg042="A mitigação de split-locks pode causar perda de desempenho em aplicações mais antigas e alguns jogos. Isto irá desabilitá-la, melhorando o desempenho nestes casos. Prosseguir?"
43 | msg043="Seu sistema já está com a mitigação de split-locks desabilitada."
44 | msg044="Configurar um Firewall básico"
45 | msg045="Configurar um Arquivo Swap"
46 | msg046="Configurar Flathub"
47 | msg047="Instalar Gnome Software"
48 | msg048="Configurar Lucidglyph - 'ClearType' para Linux"
49 | msg049="Aplicar Shader Booster"
50 | msg050="Instalar Gamemode e Gamescope"
51 | msg051="Instalar Mangohud e GOverlay"
52 | msg052="Instalar LACT Overclock e Fan Control"
53 | msg053="Adicionar o repositório Chaotic-AUR"
54 | msg054="Instalar ou atualizar DaVinci Resolve"
55 | msg055="Configurar GRUB-Btrfs"
56 | msg056="Configurar Docker + Portainer CE"
57 | msg057="Instalar o kernel linux-cachyos"
58 | msg058="Instalar ROCm para GPUs AMD"
59 | msg059="Sair"
60 | msg060="Isto irá instalar o Programas do Gnome (e plugins necessários) como interface para o apt e flatpaks. Prosseguir?"
61 | msg061="Isto requer flatpaks no seu sistema. Você pode instalar isso a partir do menu anterior."
62 | msg062="Isto irá instalar o FireAlpaca de um pacote deb criado a partir da AppImage original. Prosseguir?"
63 | msg063="Isto abrirá um menu de configuração para compilar um kernel modificado com patches do linux-cachyos. Prosseguir?"
64 | msg064="Instalar ou atualizar FireAlpaca"
65 | msg065="Compilar e instalar/atualizar o Kernel linux-cachyos"
66 | msg066="Você pode ativar e ajustar configurações no Lutris. Você também pode usar gamemode em jogos da Steam colocando 'gamemoderun %command%' nas opções de inicialização."
67 | msg067="Escolha a versão:"
68 | msg068="Placas atuais (série GeForce 900 ou mais recente)"
69 | msg069="Placas Kepler (séries GeForce 600 and 700)"
70 | msg070="Cancelar"
71 | msg071="Nenhuma placa gráfica Nvidia foi encontrada no seu sistema."
72 | msg072="Configurador SELinux"
73 | msg073="Sistema Operacional Inválido. Este configurador só deve ser executado no openSUSE."
74 | msg074="Instalação do Kernel CachyOS"
75 | msg075="Instalar kernel GCC (compatibilidade)"
76 | msg076="Instalar kernel ThinLTO (performance)"
77 | msg077="Seu sistema operacional não é compatível."
78 | msg078="Instalar drivers Nvidia"
79 | msg079="Ajustar políticas do SELinux para WINE/Proton"
80 | msg080="Isto instalará codecs de mídia para o OpenSUSE, que não vem com eles por padrão. Prosseguir?"
81 | msg081="Codecs de mídia para OpenSUSE"
82 | msg082="Isto irá instalar o plugin de captura de áudio Pipewire no OBS Studio, resolvendo problemas de gravação. Prosseguir?"
83 | msg083="Pipewire não encontrado."
84 | msg084="Instalar captura de áudio Pipewire para OBS Studio"
85 | msg085="Flatpaks não disponíveis. Deseja habilitar?"
86 | msg086="Shadowplay para todas GPUs"
87 | msg087="Transcodifique mídia com simplicidade"
88 | msg088="substituto do Logitech Options/G Hub"
89 | msg089="substituto do Synapse para Linux"
90 | msg090="Escolha pacotes para instalar"
91 | msg091="Software open source para controle RGB"
92 | msg092="Crie e gerencie snapshots btrfs"
93 | msg093="Overclocking e controle de Fan"
94 | msg094="Apps e jogos de Android no Linux"
95 | msg095="configuração leve com Portainer"
96 | msg096="bibliotecas do Radeon Open Compute"
97 | msg097="O processo de instalação do Waydroid no OpenSUSE é complexo e requer uma substituição de kernel. Por este motivo, LinuxToys não irá instalá-lo."
98 | msg098="Escolha 'Flatpak' no menu seguinte."
99 | msg099="Gratuito e compatível com MS Office"
100 | msg100="port da comunidade Linux"
101 | msg101="Acesso remoto a desktop"
102 | msg102="App de gerenciamento de equipes"
103 | msg103="Notion para Linux"
104 | msg104="Programa de Manipulação de Imagens"
105 | msg105="Software livre de desenho vetorial"
106 | msg106="Software CAD open-source"
107 | msg107="Editor de vídeo profissional"
108 | msg108="Pacote debianizado para Debian/Ubuntu"
109 | msg109="Launcher e loja de jogos Steam"
110 | msg110="launcher de emuladores e jogos"
111 | msg111="Para Epic, Amazon e GOG Games"
112 | msg112="Runners personalizados nos seus launchers"
113 | msg113="Um runner para Steam que permite mods"
114 | msg114="Roblox para Linux"
115 | msg115="Otimizações do sistema para jogos"
116 | msg116="Lossless Scaling para Linux"
117 | msg117="Overlay de estatísticas in-game"
118 | msg118="configuração simplificada do Mangohud"
119 | msg119="corrija quedas de FPS"
120 | msg120="Utilidades"
121 | msg121="Trabalho & Produtividade"
122 | msg122="Jogos"
123 | msg123="Extras"
124 | msg124="Sobre o LinuxToys"
125 | msg125="Feito com <3 por psygreg -- licença GNU GPLv3"
126 | msg126="Atualização do kernel disponível!"
127 | msg127="Atualizar agora?"
128 | msg128="Navegador otimizado baseado em Firefox"
129 | msg129="navegador da Google"
130 | msg130="Chat de voz e rede social"
131 | msg131="Pressione ESPAÇO para selecionar opções desejadas:"
132 | msg132="Não foi possível instalar pacotes flatpak selecionados."
133 | msg133="Gerencie permissões de flatpaks"
134 | msg134="Gerencie versões e ambientes virtuais com Pyenv"
135 | msg135="Instruções de uso do Pyenv serão abertas em seu navegador."
136 | msg136="Instruções de uso do NVM serão abertas em seu navegador."
137 | msg137="para a Unity Engine"
138 | msg138="para desenvolvedores Java e Kotlin"
139 | msg139="Engine open source para jogos"
140 | msg140="IDE clássica focada no teclado"
141 | msg141="IDE flexível da Microsoft"
142 | msg142="VS Code open source"
143 | msg143="Desenvolvedores"
144 | msg144="VR para Linux"
145 | msg145="Configure seu volante"
146 | msg146="Módulos adicionais podem ser necessários para seu hardware. Um website será aberto com instruções."
147 | msg147="Efeitos, filtros e áudio espacial"
148 | msg148="Organize e gerencie imagens RAW"
149 | msg149="leitor de E-Books amigável"
150 | msg150="Gostaria de fazer uma instalação rápida com padrões otimizados?"
151 | msg151="controles Elgato Stream Deck"
152 | msg152="aplicativo oficial cloud gaming"
153 | msg153="para jogos da Hoyoverse"
154 | msg154="para o jogo de cliques rápidos"
155 | msg155="Você precisa ter Lutris instalado via flatpak para isso. Você pode instalá-lo no menu de jogos."
156 | msg156="Runners adicionais para jogos específicos"
157 | msg157="LinuxToys vai abrir a página da sua release mais recente em seu navegador agora."
158 | msg158="OpenCL modernizado para AMD e Intel"
159 | msg159="Sofware open source de criação 3D"
160 | msg160="Minecraft Bedrock Edition para Linux"
161 | msg161="AVISO: Minecraft Bedrock Launcher requer ter comprado o jogo na Google Play Store."
162 | msg162="menu para todas as IDEs"
163 | msg163="Python e ciência de dados"
164 | msg164="JavaScript e TypeScript"
165 | msg165=".NET e de jogos"
166 | msg166="C e C++"
167 | msg167="Rust"
168 | msg168="Ruby e Rails"
169 | msg169="ferramenta para múltiplos bancos de dados"
170 | msg170="PHP"
171 | msg171="Go"
172 | msg172="gerenciador de aplicativos da Jetbrains"
173 | msg173="Isto irá ignorar outros aplicativos selecionados, já que o Toolbox os instala de forma diferente, incompatível com o LinuxToys. Prosseguir?"
174 | msg174="Toolbox é um AppImage e requer FUSE para funcionar. Prosseguir com a instalação?"
175 | msg175="Operação cancelada pelo usuário."
176 | msg176="Isto habilitará padrões otimizados para uso de bateria. Isto só deve ser usado em laptops. Prosseguir?"
177 | msg177="Otimizador de energia TLP"
178 | msg178="ferramenta de build e gerenciamento Java"
--------------------------------------------------------------------------------
/src/linuxtoys.lib:
--------------------------------------------------------------------------------
1 | ## fastbash library
2 | . /etc/os-release
3 |
4 | # whiptail color palette
5 | export NEWT_COLORS='
6 | root=white,blue
7 | border=black,lightgray
8 | window=black,lightgray
9 | shadow=black,gray
10 | title=black,lightgray
11 | button=black,cyan
12 | actbutton=white,blue
13 | checkbox=black,lightgray
14 | actcheckbox=black,cyan
15 | entry=black,lightgray
16 | label=black,lightgray
17 | listbox=black,lightgray
18 | actlistbox=black,cyan
19 | textbox=black,lightgray
20 | acttextbox=black,cyan
21 | helpline=white,blue
22 | roottext=black,lightgray
23 | '
24 |
25 | # logger -- define variable 'logfile' as the full path to log file
26 | _log_ () {
27 |
28 | exec 2> >(tee "$logfile" >&2)
29 |
30 | }
31 |
32 | # native package installation
33 | _install_ () {
34 |
35 | if [[ -n "$_packages" ]]; then
36 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
37 | for pak in "${_packages[@]}"; do
38 | if [[ "$pak" =~ ^(steam|yes|code|pyenv)$ ]]; then
39 | continue
40 | fi
41 | if dpkg -s "$pak" 2>/dev/null 1>&2; then
42 | continue
43 | else
44 | sudo apt install -y $pak
45 | fi
46 | done
47 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
48 | for pak in "${_packages[@]}"; do
49 | if [[ "$pak" =~ ^(yes|openrazer|code|pyenv|unityhub|dotnet-sdk-9.0)$ ]]; then
50 | continue
51 | fi
52 | if pacman -Qi "$pak" 2>/dev/null 1>&2; then
53 | continue
54 | else
55 | sudo pacman -S --noconfirm $pak
56 | fi
57 | done
58 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
59 | for pak in "${_packages[@]}"; do
60 | if [[ "$pak" =~ ^(yes|openrazer|code|pyenv)$ ]]; then
61 | continue
62 | fi
63 | if rpm -qi "$pak" 2>/dev/null 1>&2; then
64 | continue
65 | else
66 | sudo dnf in $pak -y
67 | fi
68 | done
69 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
70 | for pak in "${_packages[@]}"; do
71 | if [[ "$pak" =~ ^(yes|openrazer|waydroid|code|pyenv|dotnet-sdk-9.0)$ ]]; then
72 | continue
73 | fi
74 | if rpm -qi "$pak" 2>/dev/null 1>&2; then
75 | continue
76 | else
77 | sudo zypper in $pak -y
78 | fi
79 | done
80 | fi
81 | fi
82 |
83 | }
84 |
85 | # INSTAnt install
86 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
87 | insta () {
88 | if [ "$#" -eq 0 ]; then
89 | return 1
90 | fi
91 | sudo apt install -y "$@"
92 | }
93 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
94 | insta () {
95 | if [ "$#" -eq 0 ]; then
96 | return 1
97 | fi
98 | sudo pacman -S --noconfirm "$@"
99 | }
100 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [ "$ID" == "fedora" ]; then
101 | insta () {
102 | if [ "$#" -eq 0 ]; then
103 | return 1
104 | fi
105 | sudo dnf in "$@" -y
106 | }
107 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
108 | insta () {
109 | if [ "$#" -eq 0 ]; then
110 | return 1
111 | fi
112 | sudo zypper in "$@" -y
113 | }
114 | fi
115 |
116 | # flatpak installation
117 | _flatpak_ () {
118 |
119 | if [[ -n "$_flatpaks" ]]; then
120 | for flat in "${_flatpaks[@]}"; do
121 | flatpak install --or-update -u -y $flat
122 | done
123 | fi
124 |
125 | }
126 |
127 | # language detect -- add elif for each language in the last if statement
128 | _lang_ () {
129 |
130 | local lang="${LANG:0:2}"
131 | local available=("pt")
132 | local ulang=""
133 | langfile=""
134 |
135 | if [[ " ${available[*]} " == *"$lang"* ]]; then
136 | ulang="$lang"
137 | else
138 | ulang="en"
139 | fi
140 | if [ $ulang == "pt" ]; then
141 | langfile="pt"
142 | else
143 | langfile="en"
144 | fi
145 |
146 | }
147 |
148 | # subscript invoker ## TODO REWORK
149 | _invoke_ () {
150 |
151 | if [[ -n "$supmenu" ]]; then
152 | bash <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/supermenus/${supmenu}.sh)
153 | elif [[ -n "$subscript" ]]; then
154 | bash <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/subscripts/${subscript}.sh)
155 | fi
156 |
157 | }
158 |
159 | # wraps all commands in a function in sudo -- usage: _root_ function_name
160 | _root_ () {
161 |
162 | if [ $# -eq 0 ]; then
163 | return 1
164 | fi
165 |
166 | local cmd=("$@")
167 |
168 | # Check if already root
169 | if [ "$(id -u)" -eq 0 ]; then
170 | "${cmd[@]}"
171 | else
172 | sudo bash -c "$(declare -f "${cmd[0]}") ; ${cmd[*]}"
173 | fi
174 |
175 | }
176 |
177 | # whiptail messagebox
178 | _msgbox_ () {
179 |
180 | whiptail --title "$title" --msgbox "$msg" 12 78
181 |
182 | }
183 |
184 | ## non-fastbash functions can be added HERE
185 |
186 | # add chaotic aur to arch repos
187 | chaotic_aur_lib () {
188 |
189 | if [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
190 | cd $HOME
191 | sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
192 | sudo pacman-key --lsign-key 3056513887B78AEB
193 | sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
194 | sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
195 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/subscripts/script.sed
196 | sudo sed -i -f script.sed /etc/pacman.conf
197 | sudo pacman -Sy
198 | whiptail --title "$msg023" --msgbox "$msg024" 8 78
199 | rm script.sed
200 | else
201 | whiptail --title "$msg030" --msgbox "$msg077" 8 78
202 | fi
203 |
204 | }
205 |
206 | # flatpak enabler
207 | flatpak_in_lib () {
208 |
209 | if command -v flatpak &> /dev/null; then
210 | whiptail --title "$msg013" --msgbox "$msg015" 8 78
211 | else
212 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
213 | sudo apt install -y flatpak
214 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
215 | sudo pacman -S --noconfirm flatpak
216 | fi
217 | flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
218 | flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo --system
219 | fi
220 |
221 | }
--------------------------------------------------------------------------------
/src/linuxtoys.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/linuxtoys.png
--------------------------------------------------------------------------------
/src/linuxtoys.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # updater
5 | current_ltver="2.1.6"
6 | ver_upd () {
7 | local ver
8 | ver=$(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/ver)
9 | if [[ "$ver" != "$current_ltver" ]]; then
10 | if whiptail --title "$msg001" --yesno "$msg002" 8 78; then
11 | local title="$msg001"
12 | local msg="$msg157"
13 | _msgbox_
14 | xdg-open https://github.com/psygreg/linuxtoys/releases/latest
15 | fi
16 | fi
17 | }
18 |
19 | # kernel update checker for debian/ubuntu
20 | krn_chk () {
21 |
22 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
23 | source $HOME/.local/kernelsetting
24 | if [ ${_psygreg_krn} == "yes" ]; then
25 | if [ $(uname -r) != $(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/psy-krn) ]; then
26 | if whiptail --title "$msg126" --yesno "$msg127" 8 78; then
27 | bash <(curl -s https://raw.githubusercontent.com/psygreg/linux-cachyos-deb/refs/heads/master/linuxtoys/cachyos-deb.sh) -s
28 | # clean old kernels
29 | dpkg --list | grep -v $(uname -r) | grep -E 'linux-image-[0-9]|linux-headers-[0-9]' | awk '{print $2" "$3}' | sort -k2,2 | head -n -2 | awk '{print $1}' | xargs sudo apt purge
30 | dpkg --list | grep -v $(uname -r) | grep -E 'custom-kernel-[0-9]|custom-kernel-headers-[0-9]' | awk '{print $2" "$3}' | sort -k2,2 | head -n -2 | awk '{print $1}' | xargs sudo apt purge
31 | fi
32 | fi
33 | fi
34 | fi
35 |
36 | }
37 |
38 | # runtime
39 | # check internet connection
40 | # ping google
41 | . /etc/os-release
42 | ping -c 1 -W 2 8.8.8.8 > /dev/null 2>&1
43 | if [ $? -ne 0 ]; then
44 | whiptail --title "Disconnected" --msgbox "LinuxToys requires an internet connection to proceed." 8 78
45 | exit 1
46 | fi
47 | # call linuxtoys fastbash lib
48 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
49 | # logger
50 | logfile="$HOME/.local/linuxtoys-log.txt"
51 | _log_
52 | # language and upd checks
53 | _lang_
54 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
55 | ver_upd
56 | krn_chk
57 |
58 | # main menu
59 | while :; do
60 |
61 | CHOICE=$(whiptail --title "LinuxToys" --menu "LinuxToys ${current_ltver}" 25 78 16 \
62 | "0" "$msg120" \
63 | "1" "$msg121" \
64 | "2" "$msg122" \
65 | "3" "$msg123" \
66 | "4" "$msg143" \
67 | "" "" \
68 | "" "" \
69 | "5" "$msg124" \
70 | "6" "GitHub" \
71 | "7" "$msg059" 3>&1 1>&2 2>&3)
72 |
73 | exitstatus=$?
74 | if [ $exitstatus != 0 ]; then
75 | # Exit the script if the user presses Esc
76 | find "$HOME" -maxdepth 1 -type f -name '*supermenu.sh' -exec rm -f {} + && break
77 | fi
78 |
79 | case $CHOICE in
80 | 0) supmenu="usupermenu" && _invoke_ ;;
81 | 1) supmenu="osupermenu" && _invoke_ ;;
82 | 2) supmenu="gsupermenu" && _invoke_ ;;
83 | 3) supmenu="esupermenu" && _invoke_ ;;
84 | 4) supmenu="dsupermenu" && _invoke_ ;;
85 | 5) whiptail --title "LinuxToys v${current_ltver}" --msgbox "$msg125" 8 78 ;;
86 | 6) xdg-open https://github.com/psygreg/linuxtoys ;;
87 | 7 | q) break ;;
88 | *) echo "Invalid Option" ;;
89 | esac
90 | done
91 |
--------------------------------------------------------------------------------
/src/psy-krn:
--------------------------------------------------------------------------------
1 | 6.14.9
--------------------------------------------------------------------------------
/src/resources/other/davinci/free/PKGBUILD:
--------------------------------------------------------------------------------
1 | # Maintainer: Psygreg https://github.com/psygreg
2 | # Contributor: Alex S.
3 | # Contributor: Jonathon Fernyhough
4 |
5 | # Hardware support is limited. Nvidia cards should work fine.
6 | # If you're running a hybrid setup, try with primusrun/optirun.
7 |
8 | # This was originally written by Daniel Bermond in blackmagic-decklink-sdk pkgbuild
9 | # It is sufficient to just replace _downloadid to correspond new release version
10 | # It can be obtained from chromium -> Developer Tools -> Network -> XHR -> click latest-version and copy downloadId
11 |
12 | pkgname=davinci-resolve
13 | pkgver=20.0.0
14 | runver=20.0
15 | pkgrel=1
16 |
17 | _product="DaVinci Resolve"
18 | _referid='ee1da4f13df74d72b6da783ead2ed875'
19 | _siteurl="https://www.blackmagicdesign.com/api/support/latest-stable-version/davinci-resolve/linux"
20 | sha256sums=('76edc0664ce3a7be7eb74cc6a213f6e91c81c1774a4bfcdfc8604f2fb7262b64')
21 | pkgdesc='Professional A/V post-production software suite from Blackmagic Design'
22 | _archive_name=DaVinci_Resolve_${pkgver}_Linux
23 | _archive_run_name=DaVinci_Resolve_${runver}_Linux
24 | conflicts=('davinci-resolve-studio' 'davinci-resolve-beta' 'davinci-resolve-studio-beta')
25 |
26 | _useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) \
27 | AppleWebKit/537.36 (KHTML, like Gecko) \
28 | Chrome/77.0.3865.75 \
29 | Safari/537.36"
30 | _releaseinfo=$(curl -Ls "$_siteurl")
31 |
32 | _downloadId=$(printf "%s" $_releaseinfo | sed -n 's/.*"downloadId":"\([^"]*\).*/\1/p')
33 | _pkgver=$(printf "%s" $_releaseinfo | awk -F'[,:]' '{for(i=1;i<=NF;i++){if($i~/"major"/){print $(i+1)} if($i~/"minor"/){print $(i+1)} if($i~/"releaseNum"/){print $(i+1)}}}' | sed 'N;s/\n/./;N;s/\n/./')
34 |
35 | _reqjson="{ \
36 | \"firstname\": \"Arch\", \
37 | \"lastname\": \"Linux\", \
38 | \"email\": \"someone@archlinux.org\", \
39 | \"phone\": \"202-555-0194\", \
40 | \"country\": \"us\", \
41 | \"street\": \"Bowery 146\", \
42 | \"state\": \"New York\", \
43 | \"city\": \"AUR\", \
44 | \"product\": \"$_product\" \
45 | }"
46 |
47 | _reqjson="$( printf '%s' "$_reqjson" | sed 's/[[:space:]]\+/ /g')"
48 | _useragent="$(printf '%s' "$_useragent" | sed 's/[[:space:]]\+/ /g')"
49 | _useragent_escaped="${_useragent// /\\ }"
50 |
51 | _siteurl="https://www.blackmagicdesign.com/api/register/us/download/${_downloadId}"
52 | _srcurl="$(curl \
53 | -s \
54 | -H 'Host: www.blackmagicdesign.com' \
55 | -H 'Accept: application/json, text/plain, */*' \
56 | -H 'Origin: https://www.blackmagicdesign.com' \
57 | -H "$_useragent" \
58 | -H 'Content-Type: application/json;charset=UTF-8' \
59 | -H "Referer: https://www.blackmagicdesign.com/support/download/${_referid}/Linux" \
60 | -H 'Accept-Encoding: gzip, deflate, br' \
61 | -H 'Accept-Language: en-US,en;q=0.9' \
62 | -H 'Authority: www.blackmagicdesign.com' \
63 | -H 'Cookie: _ga=GA1.2.1849503966.1518103294; _gid=GA1.2.953840595.1518103294' \
64 | --data-ascii "$_reqjson" \
65 | --compressed \
66 | "$_siteurl")"
67 |
68 | DLAGENTS=("https::/usr/bin/curl \
69 | -gqb '' -C - --retry 3 --retry-delay 3 \
70 | -H Upgrade-Insecure-Requests:\ 1 \
71 | -H ${_useragent_escaped} \
72 | -H Accept:\ text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 \
73 | -H Accept-Language:\ en-US,en;q=0.9 \
74 | -o %o \
75 | --compressed \
76 | %u")
77 |
78 | _pkgname=resolve
79 | resolve_app_name=com.blackmagicdesign.resolve
80 | arch=('x86_64')
81 | url="https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion"
82 | license=('Commercial')
83 | depends=('glu' 'gtk2' 'libpng12' 'fuse2' 'opencl-driver' 'qt5-x11extras' 'qt5-svg' 'qt5-webengine' 'qt5-websockets'
84 | 'qt5-quickcontrols2' 'qt5-multimedia' 'libxcrypt-compat' 'xmlsec' 'java-runtime' 'ffmpeg4.4' 'gst-plugins-bad-libs' 'python-numpy'
85 | 'tbb' 'apr-util' 'luajit' 'libc++' 'libc++abi' 'qt5-base')
86 | makedepends=('libarchive' 'xdg-user-dirs' 'patchelf')
87 | options=('!strip')
88 |
89 | _archive=${_archive_name}.zip
90 | _installer_binary=${_archive_run_name}.run
91 | source=("${_archive}"::"$_srcurl")
92 |
93 | install='davinci-resolve.install'
94 |
95 | prepare()
96 | {
97 | pushd "${srcdir}"
98 | chmod u+x "${srcdir}/${_installer_binary}"
99 | "${srcdir}/${_installer_binary}" --appimage-extract
100 | popd
101 |
102 | # Fix permission to all files and dirs
103 | chmod -R u+rwX,go+rX,go-w "${srcdir}/squashfs-root"
104 |
105 | pushd "${srcdir}/squashfs-root/share/panels"
106 | tar -zxvf dvpanel-framework-linux-x86_64.tgz
107 | chmod -R u+rwX,go+rX,go-w "${srcdir}/squashfs-root/share/panels/lib"
108 | mv *.so "${srcdir}/squashfs-root/libs"
109 | mv lib/* "${srcdir}/squashfs-root/libs"
110 | popd
111 |
112 | rm -rf "${srcdir}"/squashfs-root/installer "${srcdir}"/squashfs-root/installer* "${srcdir}"/squashfs-root/AppRun "${srcdir}"/squashfs-root/AppRun*
113 |
114 | while IFS= read -r -d '' i; do
115 | chmod 0755 "${i}"
116 | done < <(find "${srcdir}/squashfs-root" -type d -print0)
117 |
118 | while IFS= read -r -d '' i; do
119 | [[ -f "${i}" && $(od -t x1 -N 4 "${i}") == *"7f 45 4c 46"* ]] || continue
120 | chmod 0755 "${i}"
121 | done < <(find "${srcdir}/squashfs-root" -type f -print0)
122 |
123 | while IFS= read -r -d '' i; do
124 | [[ -f "${i}" && $(od -t x1 -N 4 "${i}") == *"7f 45 4c 46"* ]] || continue
125 | patchelf --set-rpath \
126 | '/opt/'"${_pkgname}"'/libs:'\
127 | '/opt/'"${_pkgname}"'/libs/plugins/sqldrivers:'\
128 | '/opt/'"${_pkgname}"'/libs/plugins/xcbglintegrations:'\
129 | '/opt/'"${_pkgname}"'/libs/plugins/imageformats:'\
130 | '/opt/'"${_pkgname}"'/libs/plugins/platforms:'\
131 | '/opt/'"${_pkgname}"'/libs/Fusion:'\
132 | '/opt/'"${_pkgname}"'/plugins:'\
133 | '/opt/'"${_pkgname}"'/bin:'\
134 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/BlackmagicRawAPI:'\
135 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/platforms:'\
136 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/imageformats:'\
137 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/mediaservice:'\
138 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/audio:'\
139 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/xcbglintegrations:'\
140 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/bearer:'\
141 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/BlackmagicRawAPI:'\
142 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/mediaservice:'\
143 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/imageformats:'\
144 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/audio:'\
145 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/platforms:'\
146 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/xcbglintegrations:'\
147 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/bearer:'\
148 | '/opt/'"${_pkgname}"'/Onboarding/plugins/xcbglintegrations:'\
149 | '/opt/'"${_pkgname}"'/Onboarding/plugins/qtwebengine:'\
150 | '/opt/'"${_pkgname}"'/Onboarding/plugins/platforms:'\
151 | '/opt/'"${_pkgname}"'/Onboarding/plugins/imageformats:'\
152 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/platforms:'\
153 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/imageformats:'\
154 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/bearer:'\
155 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/AdminUtility/PlugIns/DaVinciKeyboards:'\
156 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/AdminUtility/PlugIns/DaVinciPanels:'\
157 | '$ORIGIN' "${i}"
158 | done < <(find "${srcdir}/squashfs-root" -type f -size -32M -print0)
159 |
160 | while IFS= read -r -d '' i; do
161 | sed -i "s|RESOLVE_INSTALL_LOCATION|/opt/${_pkgname}|g" "${i}"
162 | done < <(find . -type f '(' -name "*.desktop" -o -name "*.directory" -o -name "*.directory" -o -name "*.menu" ')' -print0)
163 |
164 | ln -s "${srcdir}/squashfs-root/BlackmagicRAWPlayer/BlackmagicRawAPI" "${srcdir}/squashfs-root/bin/"
165 |
166 | mv "${srcdir}/squashfs-root/libs/libc++.so.1" "${srcdir}/squashfs-root/libs/libc++.so.1.orig"
167 |
168 | ln -s /usr/lib/libc++.so.1.0 "${srcdir}/squashfs-root/libs/libc++.so.1"
169 |
170 | mv "${srcdir}/squashfs-root/libs/libglib-2.0.so.0" "${srcdir}/squashfs-root/libs/libglib-2.0.so.0.orig"
171 |
172 | ln -s /usr/lib/libglib-2.0.so.0 "${srcdir}/squashfs-root/libs/libglib-2.0.so.0"
173 |
174 | mv "${srcdir}/squashfs-root/libs/libgio-2.0.so.0" "${srcdir}/squashfs-root/libs/libgio-2.0.so.0.orig"
175 |
176 | ln -s /usr/lib/libgio-2.0.so.0 "${srcdir}/squashfs-root/libs/libgio-2.0.so.0"
177 |
178 | mv "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0" "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0.orig"
179 |
180 | ln -s /usr/lib/libgmodule-2.0.so.0 "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0"
181 |
182 | ln -s /usr/lib/libgdk_pixbuf-2.0.so.0 "${srcdir}/squashfs-root/libs/libgdk_pixbuf-2.0.so.0"
183 |
184 | echo "StartupWMClass=resolve" >> "${srcdir}/squashfs-root/share/DaVinciResolve.desktop"
185 |
186 | echo 'SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="096e", MODE="0666"' > "${srcdir}/squashfs-root/share/etc/udev/rules.d/99-DavinciPanel.rules"
187 | }
188 |
189 | package()
190 | {
191 | mkdir -p -m 0755 "${pkgdir}/opt/${_pkgname}/"{configs,DolbyVision,easyDCP,Fairlight,GPUCache,logs,Media,"Resolve Disk Database",.crashreport,.license,.LUT}
192 |
193 | # Install the squashfs-root
194 | cp -rf "${srcdir}"/squashfs-root/* "${pkgdir}/opt/${_pkgname}"
195 |
196 | # Distribute files into other directories
197 | pushd "${pkgdir}/opt/${_pkgname}/"
198 | install -Dm0644 share/default-config.dat -t "${pkgdir}/opt/${_pkgname}/configs"
199 | install -Dm0644 share/log-conf.xml -t "${pkgdir}/opt/${_pkgname}/configs"
200 | install -Dm0644 share/default_cm_config.bin -t "${pkgdir}/opt/${_pkgname}/DolbyVision"
201 |
202 | install -Dm0644 share/DaVinciResolve.desktop -t "${pkgdir}/usr/share/applications"
203 | install -Dm0644 share/DaVinciControlPanelsSetup.desktop -t "${pkgdir}/usr/share/applications"
204 | install -Dm0644 share/DaVinciResolveInstaller.desktop -t "${pkgdir}/usr/share/applications"
205 | install -Dm0644 share/DaVinciResolveCaptureLogs.desktop -t "${pkgdir}/usr/share/applications"
206 | install -Dm0644 share/blackmagicraw-player.desktop -t "${pkgdir}/usr/share/applications"
207 | install -Dm0644 share/blackmagicraw-speedtest.desktop -t "${pkgdir}/usr/share/applications"
208 |
209 | install -Dm0644 share/DaVinciResolve.directory -t "${pkgdir}/usr/share/desktop-directories"
210 | install -Dm0644 share/DaVinciResolve.menu -t "${pkgdir}/etc/xdg/menus"
211 | install -Dm0644 graphics/DV_Resolve.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps"
212 | install -Dm0644 graphics/DV_ResolveProj.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps"
213 | install -Dm0644 share/resolve.xml -t "${pkgdir}/usr/share/mime/packages"
214 |
215 | install -Dm0644 share/etc/udev/rules.d/99-BlackmagicDevices.rules -t "${pkgdir}/usr/lib/udev/rules.d"
216 | install -Dm0644 share/etc/udev/rules.d/99-ResolveKeyboardHID.rules -t "${pkgdir}/usr/lib/udev/rules.d"
217 | install -Dm0644 share/etc/udev/rules.d/99-DavinciPanel.rules -t "${pkgdir}/usr/lib/udev/rules.d"
218 | popd
219 | }
220 |
221 |
--------------------------------------------------------------------------------
/src/resources/other/davinci/free/davinci-resolve.install:
--------------------------------------------------------------------------------
1 | post_install()
2 | {
3 | if [[ -f /usr/bin/xdg-desktop-menu ]]; then
4 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolve.desktop
5 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/blackmagicraw-player.desktop
6 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/blackmagicraw-speedtest.desktop
7 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciControlPanelsSetup.desktop
8 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolveCaptureLogs.desktop
9 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolveInstaller.desktop
10 | xdg-desktop-menu forceupdate
11 | fi
12 | }
--------------------------------------------------------------------------------
/src/resources/other/davinci/studio/PKGBUILD:
--------------------------------------------------------------------------------
1 | # Maintainer: Psygreg https://github.com/psygreg
2 | # Contributor: Alex S.
3 | # Contributor: Jonathon Fernyhough
4 |
5 | # Hardware support is limited. Nvidia cards should work fine.
6 | # If you're running a hybrid setup, try with primusrun/optirun.
7 |
8 | # This was originally written by Daniel Bermond in blackmagic-decklink-sdk pkgbuild
9 | # It is sufficient to just replace _downloadid to correspond new release version
10 | # It can be obtained from chromium -> Developer Tools -> Network -> XHR -> click latest-version and copy downloadId
11 |
12 | pkgname=davinci-resolve-studio
13 | pkgver=20.0.0
14 | runver=20.0
15 | pkgrel=1
16 |
17 | _product="DaVinci Resolve Studio"
18 | _referid='86463718c6d1491d8d95f8b49f75c4db'
19 | _siteurl="https://www.blackmagicdesign.com/api/support/latest-stable-version/davinci-resolve-studio/linux"
20 | sha256sums=('932f6fe372293baa148aab0d60a963417e713600fd37ea6c6cd09a37e63c7e09')
21 | pkgdesc='Professional A/V post-production software suite from Blackmagic Design. Studio edition, requires license key or license dongle.'
22 | _archive_name=DaVinci_Resolve_Studio_${pkgver}_Linux
23 | _archive_run_name=DaVinci_Resolve_Studio_${runver}_Linux
24 | conflicts=('davinci-resolve' 'davinci-resolve-beta' 'davinci-resolve-studio-beta')
25 |
26 | _useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) \
27 | AppleWebKit/537.36 (KHTML, like Gecko) \
28 | Chrome/77.0.3865.75 \
29 | Safari/537.36"
30 | _releaseinfo=$(curl -Ls "$_siteurl")
31 |
32 | _downloadId=$(printf "%s" $_releaseinfo | sed -n 's/.*"downloadId":"\([^"]*\).*/\1/p')
33 | _pkgver=$(printf "%s" $_releaseinfo | awk -F'[,:]' '{for(i=1;i<=NF;i++){if($i~/"major"/){print $(i+1)} if($i~/"minor"/){print $(i+1)} if($i~/"releaseNum"/){print $(i+1)}}}' | sed 'N;s/\n/./;N;s/\n/./')
34 |
35 | _reqjson="{ \
36 | \"firstname\": \"Arch\", \
37 | \"lastname\": \"Linux\", \
38 | \"email\": \"someone@archlinux.org\", \
39 | \"phone\": \"202-555-0194\", \
40 | \"country\": \"us\", \
41 | \"street\": \"Bowery 146\", \
42 | \"state\": \"New York\", \
43 | \"city\": \"AUR\", \
44 | \"product\": \"$_product\" \
45 | }"
46 |
47 | _reqjson="$( printf '%s' "$_reqjson" | sed 's/[[:space:]]\+/ /g')"
48 | _useragent="$(printf '%s' "$_useragent" | sed 's/[[:space:]]\+/ /g')"
49 | _useragent_escaped="${_useragent// /\\ }"
50 |
51 | _siteurl="https://www.blackmagicdesign.com/api/register/us/download/${_downloadId}"
52 | _srcurl="$(curl \
53 | -s \
54 | -H 'Host: www.blackmagicdesign.com' \
55 | -H 'Accept: application/json, text/plain, */*' \
56 | -H 'Origin: https://www.blackmagicdesign.com' \
57 | -H "$_useragent" \
58 | -H 'Content-Type: application/json;charset=UTF-8' \
59 | -H "Referer: https://www.blackmagicdesign.com/support/download/${_referid}/Linux" \
60 | -H 'Accept-Encoding: gzip, deflate, br' \
61 | -H 'Accept-Language: en-US,en;q=0.9' \
62 | -H 'Authority: www.blackmagicdesign.com' \
63 | -H 'Cookie: _ga=GA1.2.1849503966.1518103294; _gid=GA1.2.953840595.1518103294' \
64 | --data-ascii "$_reqjson" \
65 | --compressed \
66 | "$_siteurl")"
67 |
68 | DLAGENTS=("https::/usr/bin/curl \
69 | -gqb '' -C - --retry 3 --retry-delay 3 \
70 | -H Upgrade-Insecure-Requests:\ 1 \
71 | -H ${_useragent_escaped} \
72 | -H Accept:\ text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 \
73 | -H Accept-Language:\ en-US,en;q=0.9 \
74 | -o %o \
75 | --compressed \
76 | %u")
77 |
78 | _pkgname=resolve
79 | resolve_app_name=com.blackmagicdesign.resolve
80 | arch=('x86_64')
81 | url="https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion"
82 | license=('Commercial')
83 | depends=('glu' 'gtk2' 'libpng12' 'fuse2' 'opencl-driver' 'qt5-x11extras' 'qt5-svg' 'qt5-webengine' 'qt5-websockets'
84 | 'qt5-quickcontrols2' 'qt5-multimedia' 'libxcrypt-compat' 'xmlsec' 'java-runtime' 'ffmpeg4.4' 'gst-plugins-bad-libs' 'python-numpy'
85 | 'tbb' 'apr-util' 'luajit' 'libc++' 'libc++abi' 'qt5-base')
86 | makedepends=('libarchive' 'xdg-user-dirs' 'patchelf')
87 | options=('!strip')
88 |
89 | _archive=${_archive_name}.zip
90 | _installer_binary=${_archive_run_name}.run
91 | source=("${_archive}"::"$_srcurl")
92 |
93 | install='davinci-resolve.install'
94 |
95 | prepare()
96 | {
97 | pushd "${srcdir}"
98 | chmod u+x "${srcdir}/${_installer_binary}"
99 | "${srcdir}/${_installer_binary}" --appimage-extract
100 | popd
101 |
102 | # Fix permission to all files and dirs
103 | chmod -R u+rwX,go+rX,go-w "${srcdir}/squashfs-root"
104 |
105 | pushd "${srcdir}/squashfs-root/share/panels"
106 | tar -zxvf dvpanel-framework-linux-x86_64.tgz
107 | chmod -R u+rwX,go+rX,go-w "${srcdir}/squashfs-root/share/panels/lib"
108 | mv *.so "${srcdir}/squashfs-root/libs"
109 | mv lib/* "${srcdir}/squashfs-root/libs"
110 | popd
111 |
112 | rm -rf "${srcdir}"/squashfs-root/installer "${srcdir}"/squashfs-root/installer* "${srcdir}"/squashfs-root/AppRun "${srcdir}"/squashfs-root/AppRun*
113 |
114 | while IFS= read -r -d '' i; do
115 | chmod 0755 "${i}"
116 | done < <(find "${srcdir}/squashfs-root" -type d -print0)
117 |
118 | while IFS= read -r -d '' i; do
119 | [[ -f "${i}" && $(od -t x1 -N 4 "${i}") == *"7f 45 4c 46"* ]] || continue
120 | chmod 0755 "${i}"
121 | done < <(find "${srcdir}/squashfs-root" -type f -print0)
122 |
123 | while IFS= read -r -d '' i; do
124 | [[ -f "${i}" && $(od -t x1 -N 4 "${i}") == *"7f 45 4c 46"* ]] || continue
125 | patchelf --set-rpath \
126 | '/opt/'"${_pkgname}"'/libs:'\
127 | '/opt/'"${_pkgname}"'/libs/plugins/sqldrivers:'\
128 | '/opt/'"${_pkgname}"'/libs/plugins/xcbglintegrations:'\
129 | '/opt/'"${_pkgname}"'/libs/plugins/imageformats:'\
130 | '/opt/'"${_pkgname}"'/libs/plugins/platforms:'\
131 | '/opt/'"${_pkgname}"'/libs/Fusion:'\
132 | '/opt/'"${_pkgname}"'/plugins:'\
133 | '/opt/'"${_pkgname}"'/bin:'\
134 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/BlackmagicRawAPI:'\
135 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/platforms:'\
136 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/imageformats:'\
137 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/mediaservice:'\
138 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/audio:'\
139 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/xcbglintegrations:'\
140 | '/opt/'"${_pkgname}"'/BlackmagicRAWSpeedTest/plugins/bearer:'\
141 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/BlackmagicRawAPI:'\
142 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/mediaservice:'\
143 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/imageformats:'\
144 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/audio:'\
145 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/platforms:'\
146 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/xcbglintegrations:'\
147 | '/opt/'"${_pkgname}"'/BlackmagicRAWPlayer/plugins/bearer:'\
148 | '/opt/'"${_pkgname}"'/Onboarding/plugins/xcbglintegrations:'\
149 | '/opt/'"${_pkgname}"'/Onboarding/plugins/qtwebengine:'\
150 | '/opt/'"${_pkgname}"'/Onboarding/plugins/platforms:'\
151 | '/opt/'"${_pkgname}"'/Onboarding/plugins/imageformats:'\
152 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/platforms:'\
153 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/imageformats:'\
154 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/plugins/bearer:'\
155 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/AdminUtility/PlugIns/DaVinciKeyboards:'\
156 | '/opt/'"${_pkgname}"'/DaVinci Control Panels Setup/AdminUtility/PlugIns/DaVinciPanels:'\
157 | '$ORIGIN' "${i}"
158 | done < <(find "${srcdir}/squashfs-root" -type f -size -32M -print0)
159 |
160 | while IFS= read -r -d '' i; do
161 | sed -i "s|RESOLVE_INSTALL_LOCATION|/opt/${_pkgname}|g" "${i}"
162 | done < <(find . -type f '(' -name "*.desktop" -o -name "*.directory" -o -name "*.directory" -o -name "*.menu" ')' -print0)
163 |
164 | ln -s "${srcdir}/squashfs-root/BlackmagicRAWPlayer/BlackmagicRawAPI" "${srcdir}/squashfs-root/bin/"
165 |
166 | mv "${srcdir}/squashfs-root/libs/libc++.so.1" "${srcdir}/squashfs-root/libs/libc++.so.1.orig"
167 |
168 | ln -s /usr/lib/libc++.so.1.0 "${srcdir}/squashfs-root/libs/libc++.so.1"
169 |
170 | mv "${srcdir}/squashfs-root/libs/libglib-2.0.so.0" "${srcdir}/squashfs-root/libs/libglib-2.0.so.0.orig"
171 |
172 | ln -s /usr/lib/libglib-2.0.so.0 "${srcdir}/squashfs-root/libs/libglib-2.0.so.0"
173 |
174 | mv "${srcdir}/squashfs-root/libs/libgio-2.0.so.0" "${srcdir}/squashfs-root/libs/libgio-2.0.so.0.orig"
175 |
176 | ln -s /usr/lib/libgio-2.0.so.0 "${srcdir}/squashfs-root/libs/libgio-2.0.so.0"
177 |
178 | mv "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0" "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0.orig"
179 |
180 | ln -s /usr/lib/libgmodule-2.0.so.0 "${srcdir}/squashfs-root/libs/libgmodule-2.0.so.0"
181 |
182 | ln -s /usr/lib/libgdk_pixbuf-2.0.so.0 "${srcdir}/squashfs-root/libs/libgdk_pixbuf-2.0.so.0"
183 |
184 | echo "StartupWMClass=resolve" >> "${srcdir}/squashfs-root/share/DaVinciResolve.desktop"
185 |
186 | echo 'SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="096e", MODE="0666"' > "${srcdir}/squashfs-root/share/etc/udev/rules.d/99-DavinciPanel.rules"
187 | }
188 |
189 | package()
190 | {
191 | mkdir -p -m 0755 "${pkgdir}/opt/${_pkgname}/"{configs,DolbyVision,easyDCP,Fairlight,GPUCache,logs,Media,"Resolve Disk Database",.crashreport,.license,.LUT}
192 |
193 | # Install the squashfs-root
194 | cp -rf "${srcdir}"/squashfs-root/* "${pkgdir}/opt/${_pkgname}"
195 |
196 | # Distribute files into other directories
197 | pushd "${pkgdir}/opt/${_pkgname}/"
198 | install -Dm0644 share/default-config.dat -t "${pkgdir}/opt/${_pkgname}/configs"
199 | install -Dm0644 share/log-conf.xml -t "${pkgdir}/opt/${_pkgname}/configs"
200 | install -Dm0644 share/default_cm_config.bin -t "${pkgdir}/opt/${_pkgname}/DolbyVision"
201 |
202 | install -Dm0644 share/DaVinciResolve.desktop -t "${pkgdir}/usr/share/applications"
203 | install -Dm0644 share/DaVinciControlPanelsSetup.desktop -t "${pkgdir}/usr/share/applications"
204 | install -Dm0644 share/DaVinciResolveInstaller.desktop -t "${pkgdir}/usr/share/applications"
205 | install -Dm0644 share/DaVinciResolveCaptureLogs.desktop -t "${pkgdir}/usr/share/applications"
206 | install -Dm0644 share/blackmagicraw-player.desktop -t "${pkgdir}/usr/share/applications"
207 | install -Dm0644 share/blackmagicraw-speedtest.desktop -t "${pkgdir}/usr/share/applications"
208 |
209 | install -Dm0644 share/DaVinciResolve.directory -t "${pkgdir}/usr/share/desktop-directories"
210 | install -Dm0644 share/DaVinciResolve.menu -t "${pkgdir}/etc/xdg/menus"
211 | install -Dm0644 graphics/DV_Resolve.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps"
212 | install -Dm0644 graphics/DV_ResolveProj.png -t "${pkgdir}/usr/share/icons/hicolor/64x64/apps"
213 | install -Dm0644 share/resolve.xml -t "${pkgdir}/usr/share/mime/packages"
214 |
215 | install -Dm0644 share/etc/udev/rules.d/99-BlackmagicDevices.rules -t "${pkgdir}/usr/lib/udev/rules.d"
216 | install -Dm0644 share/etc/udev/rules.d/99-ResolveKeyboardHID.rules -t "${pkgdir}/usr/lib/udev/rules.d"
217 | install -Dm0644 share/etc/udev/rules.d/99-DavinciPanel.rules -t "${pkgdir}/usr/lib/udev/rules.d"
218 | popd
219 | }
220 |
221 |
--------------------------------------------------------------------------------
/src/resources/other/davinci/studio/davinci-resolve.install:
--------------------------------------------------------------------------------
1 | post_install()
2 | {
3 | if [[ -f /usr/bin/xdg-desktop-menu ]]; then
4 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolve.desktop
5 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/blackmagicraw-player.desktop
6 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/blackmagicraw-speedtest.desktop
7 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciControlPanelsSetup.desktop
8 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolveCaptureLogs.desktop
9 | xdg-desktop-menu install --novendor /usr/share/desktop-directories/DaVinciResolve.directory /usr/share/applications/DaVinciResolveInstaller.desktop
10 | xdg-desktop-menu forceupdate
11 | fi
12 | }
--------------------------------------------------------------------------------
/src/resources/other/godot.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Godot Engine
3 | Type=Application
4 | Exec=/opt/godot/Godot
5 | Terminal=false
6 | Icon=/opt/godot/godot.png
7 | Comment=Open source game engine
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/godot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/resources/other/godot.png
--------------------------------------------------------------------------------
/src/resources/other/godotsharp.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Godot Engine (.NET)
3 | Type=Application
4 | Exec=/opt/godot/Godot_v4.4.1-stable_mono_linux.x86_64
5 | Terminal=false
6 | Icon=/opt/godot/godot.png
7 | Comment=Open source game engine with C# support (.NET)
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/clion.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=CLion
3 | Type=Application
4 | Exec=/opt/clion/bin/clion
5 | Terminal=false
6 | Icon=/opt/clion/bin/clion.png
7 | Comment=Jetbrains IDE for C and C++
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/datagrip.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=DataGrip
3 | Type=Application
4 | Exec=/opt/datagrip/bin/datagrip
5 | Terminal=false
6 | Icon=/opt/datagrip/bin/datagrip.png
7 | Comment=Jetbrains tool for multiple databases
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/goland.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=GoLand
3 | Type=Application
4 | Exec=/opt/goland/bin/goland
5 | Terminal=false
6 | Icon=/opt/goland/bin/goland.png
7 | Comment=Jetbrains IDE for Go
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/intellij.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=IntelliJ IDEA
3 | Type=Application
4 | Exec=/opt/idea-IU/bin/idea
5 | Terminal=false
6 | Icon=/opt/idea-IU/bin/idea.png
7 | Comment=Jetbrains IDE for Java/Kotlin
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/intellijce.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=IntelliJ IDEA CE
3 | Type=Application
4 | Exec=/opt/idea-IC/bin/idea
5 | Terminal=false
6 | Icon=/opt/idea-IC/bin/idea.png
7 | Comment=Jetbrains IDE for Java/Kotlin
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/jetbrains-toolbox.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Type=Application
3 | Name=JetBrains Toolbox
4 | Exec=/opt/toolbox/jetbrains-toolbox
5 | Icon=jetbrains-toolbox
6 | StartupNotify=false
7 | Terminal=false
8 | MimeType=x-scheme-handler/jetbrains;
9 | X-AppImage-Integrate=false
10 |
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/phpstorm.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=PhpStorm
3 | Type=Application
4 | Exec=/opt/phpstorm/bin/phpstorm
5 | Terminal=false
6 | Icon=/opt/phpstorm/bin/phpstorm.png
7 | Comment=Jetbrains IDE for PHP
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/pycharm.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=PyCharm
3 | Type=Application
4 | Exec=/opt/pycharm/bin/pycharm
5 | Terminal=false
6 | Icon=/opt/pycharm/bin/pycharm.png
7 | Comment=Jetbrains IDE for Python and data scientists
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/rider.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Rider
3 | Type=Application
4 | Exec=/opt/rider/bin/rider
5 | Terminal=false
6 | Icon=/opt/rider/bin/rider.png
7 | Comment=Jetbrains IDE for .NET and game developers
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/rubymine.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=RubyMine
3 | Type=Application
4 | Exec=/opt/rubymine/bin/rubymine
5 | Terminal=false
6 | Icon=/opt/rubymine/bin/rubymine.png
7 | Comment=Jetbrains IDE for Ruby and Rails
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/rustrover.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=RustRover
3 | Type=Application
4 | Exec=/opt/rustrover/bin/rustrover
5 | Terminal=false
6 | Icon=/opt/rustrover/bin/rustrover.png
7 | Comment=Jetbrains IDE for Rust
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/other/jetbrains/webstorm.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=WebStorm
3 | Type=Application
4 | Exec=/opt/WebStorm/bin/webstorm
5 | Terminal=false
6 | Icon=/opt/WebStorm/bin/webstorm.png
7 | Comment=Jetbrains IDE for JavaScript and TypeScript
8 | NoDisplay=false
9 | Categories=Development
--------------------------------------------------------------------------------
/src/resources/subscripts/docker-installer.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # check dependencies
5 | dep_check () {
6 |
7 | local _packages=()
8 | if [[ "$ID_LIKE" =~ (suse|rhel|fedora) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
9 | _packages=(newt)
10 | elif [[ "$ID" =~ (arch|cachyos) ]] || [[ "$ID_LIKE" =~ (arch) ]]; then
11 | _packages=(libnewt)
12 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
13 | _packages=(whiptail)
14 | fi
15 | _install_
16 |
17 | }
18 |
19 | # install docker and portainer CE
20 | docker_in () {
21 |
22 | if [[ "$ID_LIKE" =~ (suse|rhel|fedora) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
23 | if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
24 | insta docker
25 | else
26 | insta docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
27 | fi
28 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
29 | insta docker
30 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
31 | insta docker.io
32 | fi
33 | sudo systemctl enable docker
34 | sudo systemctl start docker
35 | sudo docker volume create portainer_data
36 | sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:lts
37 |
38 | }
39 |
40 | # runtime
41 | . /etc/os-release
42 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
43 | dep_check
44 | if whiptail --title "Docker + Portainer CE Setup" --yesno "This will install Docker Engine and Portainer CE to manage it through a web UI. Proceed?" 8 78; then
45 | docker_in
46 | title="Docker + Portainer CE Setup"
47 | msg="Setup complete. Your Portainer dashboard will open in your web browser now."
48 | _msgbox_
49 | xdg-open https://localhost:9443
50 | exit 0
51 | fi
--------------------------------------------------------------------------------
/src/resources/subscripts/grub-btrfs-installer.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # check dependencies
5 | dep_check () {
6 |
7 | if ! dpkg -l | grep -q grub-efi; then
8 | local title="Cancelled"
9 | local msg="No GRUB found."
10 | _msgbox_
11 | exit 1
12 | else
13 | local _packages=()
14 | if [[ "$ID_LIKE" =~ (suse|rhel|fedora) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
15 | _packages=(gawk inotify-tools make)
16 | elif [[ "$ID" =~ (arch|cachyos) ]] || [[ "$ID_LIKE" =~ (arch) ]]; then
17 | _packages=(gawk inotify-tools)
18 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
19 | _packages=(gawk inotify-tools make)
20 | fi
21 | _install_
22 | fi
23 |
24 | }
25 |
26 | # install grub-btrfs and set up automatic snapshot listing
27 | grubtrfs_in () {
28 |
29 | if [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
30 | sudo dnf rm snapper -y
31 | insta snapper btrfs-assistant
32 | sudo snapper -c root create-config /
33 | sudo snapper -c root create --command dnf
34 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
35 | sudo zypper rm snapper -y
36 | insta snapper btrfs-assistant
37 | sudo snapper -c root create-config /
38 | sudo snapper -c root create --command zypper
39 | elif [[ "$ID" =~ (arch|cachyos) ]] || [[ "$ID_LIKE" =~ (arch) ]]; then
40 | sudo pacman -Rsn --noconfirm snapper
41 | insta snapper
42 | sudo snapper -c root create-config /
43 | sudo snapper -c root create --command pacman
44 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
45 | sudo apt purge -y snapper
46 | insta snapper btrfs-assistant
47 | sudo snapper -c root create-config /
48 | sudo snapper -c root create --command apt
49 | fi
50 | sudo sed -i 's/^TIMELINE_CREATE=.*/TIMELINE_CREATE="no"/' '/etc/snapper/configs/root'
51 | sudo sed -i 's/^NUMBER_LIMIT=.*/NUMBER_LIMIT="5"/' '/etc/snapper/configs/root'
52 | sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT=.*/NUMBER_LIMIT_IMPORTANT="5"/' '/etc/snapper/configs/root'
53 | sudo sed -i 's/^NUMBER_CLEANUP=.*/NUMBER_CLEANUP="yes"/' '/etc/snapper/configs/root'
54 | sudo sed -i 's/^EMPTY_PRE_POST_CLEANUP=.*/EMPTY_PRE_POST_CLEANUP="yes"/' '/etc/snapper/configs/root'
55 | sudo systemctl enable snapper-boot.timer
56 | sudo systemctl enable snapper-cleanup.timer
57 | sudo systemctl start snapper-cleanup.timer
58 | if [ "$ID" == "arch" ] || [[ "$ID_LIKE" =~ (arch) ]]; then
59 | insta grub-btrfs
60 | else
61 | cd $HOME
62 | git clone https://github.com/Antynea/grub-btrfs.git
63 | cd grub-btrfs
64 | make install
65 | fi
66 | if [[ "$ID_LIKE" =~ (suse|rhel|fedora) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
67 | sudo sed -i 's|^GRUB_BTRFS_MKCONFIG=.*|GRUB_BTRFS_MKCONFIG=/sbin/grub2-mkconfig|' '/etc/default/grub-btrfs/config'
68 | sudo sed -i 's|^GRUB_BTRFS_GRUB_DIRNAME=.*|GRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"|' '/etc/default/grub-btrfs/config'
69 | sudo sed -i 's|^GRUB_BTRFS_SCRIPT_CHECK=.*|GRUB_BTRFS_SCRIPT_CHECK=grub2-script-check|' '/etc/default/grub-btrfs/config'
70 | sudo grub2-mkconfig -o /boot/grub2/grub.cfg
71 | elif [ "$ID" == "arch" ] || [[ "$ID_LIKE" =~ (arch) ]]; then
72 | sudo grub-mkconfig -o /boot/grub/grub.cfg
73 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
74 | sudo update-grub
75 | fi
76 | sudo systemctl enable grub-btrfsd
77 | sudo systemctl start grub-btrfsd
78 |
79 | }
80 |
81 | # runtime
82 | . /etc/os-release
83 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
84 | dep_check
85 | if whiptail --title "Grub-Btrfs Installer" --yesno "This will list snapshots in your GRUB. It will only work if your root filesystem is btrfs. Proceed?" 8 78; then
86 | grubtrfs_in
87 | title="Grub-Btrfs Installer"
88 | msg="Installation successful."
89 | _msgbox_
90 | cd ..
91 | rm -rf grub-btrfs
92 | exit 0
93 | fi
--------------------------------------------------------------------------------
/src/resources/subscripts/jetbrainsmenu.lib:
--------------------------------------------------------------------------------
1 | # jetbrains installers
2 | # pycharm
3 | pycharm_in () {
4 |
5 | cd $HOME
6 | wget https://download-cdn.jetbrains.com/python/pycharm-2025.1.1.1.tar.gz
7 | # first installation
8 | if [ ! -d "/opt/pycharm" ]; then
9 | tar -xvzf pycharm-2025.1.1.1.tar.gz
10 | mv pycharm-* pycharm
11 | sudo cp -rf pycharm /opt
12 | rm pycharm-2025.1.1.1.tar.gz
13 | rm -rf pycharm
14 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/pycharm.desktop
15 | sudo cp pycharm.desktop /usr/share/applications
16 | rm pycharm.desktop
17 | if grep -q "alias pycharm=" ~/.bashrc; then
18 | return
19 | else
20 | echo "alias pycharm=\"/opt/pycharm/bin/pycharm\"" >> ~/.bashrc
21 | source ~/.bashrc
22 | fi
23 | else # update
24 | tar -xvzf pycharm-2025.1.1.1.tar.gz
25 | mv pycharm-* pycharm
26 | sudo rm -rf /opt/pycharm
27 | sudo cp -rf pycharm /opt
28 | rm pycharm-2025.1.1.1.tar.gz
29 | rm -rf pycharm
30 | fi
31 |
32 | }
33 |
34 | # intellij idea
35 | idea_in () {
36 |
37 | # menu
38 | while :; do
39 |
40 | CHOICE=$(whiptail --title "IntelliJ IDEA" --menu "$msg067" 25 78 16 \
41 | "0" "Community Edition (free)" \
42 | "1" "Ultimate" \
43 | "2" "Cancel" 3>&1 1>&2 2>&3)
44 |
45 | exitstatus=$?
46 | if [ $exitstatus != 0 ]; then
47 | # Exit the script if the user presses Esc
48 | return
49 | fi
50 |
51 | case $CHOICE in
52 | 0) idea_ic ;;
53 | 1) idea_iu ;;
54 | 2 | q) break ;;
55 | *) echo "Invalid Option" ;;
56 | esac
57 | done
58 |
59 | }
60 |
61 | idea_ic () {
62 |
63 | cd $HOME
64 | # first installation
65 | if [ ! -d "/opt/idea-IC" ]; then
66 | wget https://download-cdn.jetbrains.com/idea/ideaIC-2025.1.1.1.tar.gz
67 | tar -xvzf ideaIC-2025.1.1.1.tar.gz
68 | mv idea-IC* idea-IC
69 | sudo cp -rf idea-IC /opt
70 | rm ideaIC-2025.1.1.1.tar.gz
71 | rm -rf idea-IC
72 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/intellijce.desktop
73 | sudo cp intellijce.desktop /usr/share/applications
74 | rm intellijce.desktop
75 | if grep -q "alias idea-ce=" ~/.bashrc; then
76 | return
77 | else
78 | echo "alias idea-ce=\"/opt/idea-IC/bin/idea\"" >> ~/.bashrc
79 | source ~/.bashrc
80 | fi
81 | else # update
82 | wget https://download-cdn.jetbrains.com/idea/ideaIC-2025.1.1.1.tar.gz
83 | tar -xvzf ideaIC-2025.1.1.1.tar.gz
84 | mv idea-IC* idea-IC
85 | sudo rm -rf /opt/idea-IC
86 | sudo cp -rf idea-IC /opt
87 | rm ideaIC-2025.1.1.1.tar.gz
88 | rm -rf idea-IC
89 | fi
90 |
91 | }
92 |
93 | idea_iu () {
94 |
95 | cd $HOME
96 | # first installation
97 | if [ ! -d "/opt/idea-IU" ]; then
98 | wget https://download-cdn.jetbrains.com/idea/ideaIU-2025.1.1.1.tar.gz
99 | tar -xvzf ideaIU-2025.1.1.1.tar.gz
100 | mv idea-IU* idea-IU
101 | sudo cp -rf idea-IU /opt
102 | rm -rf idea-IU
103 | rm ideaIU-2025.1.1.1.tar.gz
104 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/intellij.desktop
105 | sudo cp intellij.desktop /usr/share/applications
106 | rm intellij.desktop
107 | if grep -q "alias idea-ue=" ~/.bashrc; then
108 | return
109 | else
110 | echo "alias idea-ue=\"/opt/idea-IU/bin/idea\"" >> ~/.bashrc
111 | source ~/.bashrc
112 | fi
113 | else # update
114 | wget https://download-cdn.jetbrains.com/idea/ideaIU-2025.1.1.1.tar.gz
115 | tar -xvzf ideaIU-2025.1.1.1.tar.gz
116 | mv idea-IU* idea-IU
117 | sudo rm -rf /opt/idea-IU
118 | sudo cp -rf idea-IU /opt
119 | rm ideaIU-2025.1.1.1.tar.gz
120 | rm -rf idea-IU
121 | fi
122 |
123 | }
124 |
125 | # webstorm
126 | webstorm_in () {
127 |
128 | cd $HOME
129 | wget https://download-cdn.jetbrains.com/webstorm/WebStorm-2025.1.2.tar.gz
130 | # first installation
131 | if [ ! -d "/opt/WebStorm" ]; then
132 | tar -xvzf WebStorm-2025.1.2.tar.gz
133 | mv WebStorm-* WebStorm
134 | sudo cp -rf WebStorm /opt
135 | rm WebStorm-2025.1.2.tar.gz
136 | rm -rf WebStorm
137 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/webstorm.desktop
138 | sudo cp webstorm.desktop /usr/share/applications
139 | rm webstorm.desktop
140 | if grep -q "alias webstorm=" ~/.bashrc; then
141 | return
142 | else
143 | echo "alias webstorm=\"/opt/WebStorm/bin/webstorm\"" >> ~/.bashrc
144 | source ~/.bashrc
145 | fi
146 | else # update
147 | tar -xvzf WebStorm-2025.1.2.tar.gz
148 | mv WebStorm-* WebStorm
149 | sudo rm -rf /opt/WebStorm
150 | sudo cp -rf WebStorm /opt
151 | rm WebStorm-2025.1.2.tar.gz
152 | rm -rf WebStorm
153 | fi
154 |
155 | }
156 |
157 | # rider
158 | rider_in () {
159 |
160 | cd $HOME
161 | wget https://download-cdn.jetbrains.com/rider/JetBrains.Rider-2025.1.2.tar.gz
162 | # first installation
163 | if [ ! -d "/opt/rider" ]; then
164 | tar -xvzf JetBrains.Rider-2025.1.2.tar.gz
165 | mv JetBrains* rider
166 | sudo cp -rf rider /opt
167 | rm JetBrains.Rider-2025.1.2.tar.gz
168 | rm -rf rider
169 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/rider.desktop
170 | sudo cp rider.desktop /usr/share/applications
171 | rm rider.desktop
172 | if grep -q "alias rider=" ~/.bashrc; then
173 | return
174 | else
175 | echo "alias rider=\"/opt/rider/bin/rider\"" >> ~/.bashrc
176 | source ~/.bashrc
177 | fi
178 | else # update
179 | tar -xvzf JetBrains.Rider-2025.1.2.tar.gz
180 | mv JetBrains* rider
181 | sudo rm -rf /opt/rider
182 | sudo cp -rf rider /opt
183 | rm JetBrains.Rider-2025.1.2.tar.gz
184 | rm -rf rider
185 | fi
186 |
187 | }
188 |
189 | # clion
190 | clion_in () {
191 |
192 | cd $HOME
193 | wget https://download-cdn.jetbrains.com/cpp/CLion-2025.1.2.tar.gz
194 | # first installation
195 | if [ ! -d "/opt/clion" ]; then
196 | tar -xvzf CLion-2025.1.2.tar.gz
197 | mv clion-* clion
198 | sudo cp -rf clion /opt
199 | rm CLion-2025.1.2.tar.gz
200 | rm -rf clion
201 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/clion.desktop
202 | sudo cp clion.desktop /usr/share/applications
203 | rm clion.desktop
204 | if grep -q "alias clion=" ~/.bashrc; then
205 | return
206 | else
207 | echo "alias clion=\"/opt/clion/bin/clion\"" >> ~/.bashrc
208 | source ~/.bashrc
209 | fi
210 | else # update
211 | tar -xvzf CLion-2025.1.2.tar.gz
212 | mv clion-* clion
213 | sudo rm -rf /opt/clion
214 | sudo cp -rf clion /opt
215 | rm CLion-2025.1.2.tar.gz
216 | rm -rf clion
217 | fi
218 |
219 | }
220 |
221 | # rustrover
222 | rustrover_in () {
223 |
224 | cd $HOME
225 | wget https://download-cdn.jetbrains.com/rustrover/RustRover-2025.1.3.tar.gz
226 | # first installation
227 | if [ ! -d "/opt/rustrover" ]; then
228 | tar -xvzf RustRover-2025.1.3.tar.gz
229 | mv RustRover-* rustrover
230 | sudo cp -rf rustrover /opt
231 | rm RustRover-2025.1.3.tar.gz
232 | rm -rf rustrover
233 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/rustrover.desktop
234 | sudo cp rustrover.desktop /usr/share/applications
235 | rm rustrover.desktop
236 | if grep -q "alias rustrover=" ~/.bashrc; then
237 | return
238 | else
239 | echo "alias rustrover=\"/opt/rustrover/bin/rustrover\"" >> ~/.bashrc
240 | source ~/.bashrc
241 | fi
242 | else # update
243 | tar -xvzf RustRover-2025.1.3.tar.gz
244 | mv RustRover-* rustrover
245 | sudo rm -rf /opt/rustrover
246 | sudo cp -rf rustrover /opt
247 | rm RustRover-2025.1.3.tar.gz
248 | rm -rf rustrover
249 | fi
250 |
251 | }
252 |
253 | # rubymine
254 | rubymine_in () {
255 |
256 | cd $HOME
257 | wget https://download-cdn.jetbrains.com/ruby/RubyMine-2025.1.2.tar.gz
258 | # first installation
259 | if [ ! -d "/opt/rubymine" ]; then
260 | tar -xvzf RubyMine-2025.1.2.tar.gz
261 | mv RubyMine-* rubymine
262 | sudo cp -rf rubymine /opt
263 | rm RubyMine-2025.1.2.tar.gz
264 | rm -rf rubymine
265 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/rubymine.desktop
266 | sudo cp rubymine.desktop /usr/share/applications
267 | rm rubymine.desktop
268 | if grep -q "alias rubymine=" ~/.bashrc; then
269 | return
270 | else
271 | echo "alias rubymine=\"/opt/rubymine/bin/rubymine\"" >> ~/.bashrc
272 | source ~/.bashrc
273 | fi
274 | else # update
275 | tar -xvzf RubyMine-2025.1.2.tar.gz
276 | mv RubyMine-* rubymine
277 | sudo rm -rf /opt/rubymine
278 | sudo cp -rf rubymine /opt
279 | rm RubyMine-2025.1.2.tar.gz
280 | rm -rf rubymine
281 | fi
282 |
283 | }
284 |
285 | # datagrip
286 | datagrip_in () {
287 |
288 | cd $HOME
289 | wget https://download-cdn.jetbrains.com/datagrip/datagrip-2025.1.3.tar.gz
290 | # first installation
291 | if [ ! -d "/opt/datagrip" ]; then
292 | tar -xvzf datagrip-2025.1.3.tar.gz
293 | mv DataGrip-* datagrip
294 | sudo cp -rf datagrip /opt
295 | rm datagrip-2025.1.3.tar.gz
296 | rm -rf datagrip
297 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/datagrip.desktop
298 | sudo cp datagrip.desktop /usr/share/applications
299 | rm datagrip.desktop
300 | if grep -q "alias datagrip=" ~/.bashrc; then
301 | return
302 | else
303 | echo "alias datagrip=\"/opt/datagrip/bin/datagrip\"" >> ~/.bashrc
304 | source ~/.bashrc
305 | fi
306 | else # update
307 | tar -xvzf datagrip-2025.1.3.tar.gz
308 | mv DataGrip-* datagrip
309 | sudo rm -rf /opt/datagrip
310 | sudo cp -rf datagrip /opt
311 | rm datagrip-2025.1.3.tar.gz
312 | rm -rf datagrip
313 | fi
314 |
315 | }
316 |
317 | # phpstorm
318 | phpstorm_in () {
319 |
320 | cd $HOME
321 | wget https://download-cdn.jetbrains.com/webide/PhpStorm-2025.1.2.tar.gz
322 | # first installation
323 | if [ ! -d "/opt/phpstorm" ]; then
324 | tar -xvzf PhpStorm-2025.1.2.tar.gz
325 | mv PhpStorm-* phpstorm
326 | sudo cp -rf phpstorm /opt
327 | rm PhpStorm-2025.1.2.tar.gz
328 | rm -rf phpstorm
329 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/phpstorm.desktop
330 | sudo cp phpstorm.desktop /usr/share/applications
331 | rm phpstorm.desktop
332 | if grep -q "alias phpstorm=" ~/.bashrc; then
333 | return
334 | else
335 | echo "alias phpstorm=\"/opt/phpstorm/bin/phpstorm\"" >> ~/.bashrc
336 | source ~/.bashrc
337 | fi
338 | else # update
339 | tar -xvzf PhpStorm-2025.1.2.tar.gz
340 | mv PhpStorm-* phpstorm
341 | sudo rm -rf /opt/phpstorm
342 | sudo cp -rf phpstorm /opt
343 | rm PhpStorm-2025.1.2.tar.gz
344 | rm -rf phpstorm
345 | fi
346 |
347 | }
348 |
349 | # goland
350 | goland_in () {
351 |
352 | cd $HOME
353 | wget https://download-cdn.jetbrains.com/go/goland-2025.1.2.tar.gz
354 | # first installation
355 | if [ ! -d "/opt/goland" ]; then
356 | tar -xvzf goland-2025.1.2.tar.gz
357 | mv GoLand-* goland
358 | sudo cp -rf goland /opt
359 | rm goland-2025.1.2.tar.gz
360 | rm -rf goland
361 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/goland.desktop
362 | sudo cp goland.desktop /usr/share/applications
363 | rm goland.desktop
364 | if grep -q "alias goland=" ~/.bashrc; then
365 | return
366 | else
367 | echo "alias goland=\"/opt/goland/bin/goland\"" >> ~/.bashrc
368 | source ~/.bashrc
369 | fi
370 | else # update
371 | tar -xvzf goland-2025.1.2.tar.gz
372 | mv GoLand-* goland
373 | sudo rm -rf /opt/goland
374 | sudo cp -rf goland /opt
375 | rm goland-2025.1.2.tar.gz
376 | rm -rf goland
377 | fi
378 |
379 | }
380 |
381 | # toolbox
382 | toolbox_in () {
383 |
384 | cd $HOME
385 | wget https://download-cdn.jetbrains.com/toolbox/jetbrains-toolbox-2.6.2.41321.tar.gz
386 | # first installation
387 | if [ ! -d "/opt/toolbox" ]; then
388 | if whiptail --title "Jetbrains Toolbox" --yesno "$msg174" 12 78; then
389 | insta fuse
390 | tar -xvzf jetbrains-toolbox-2.6.2.41321.tar.gz
391 | mv jetbrains-* toolbox
392 | ./toolbox/jetbrains-toolbox --appimage-extract
393 | cd toolbox
394 | mv squashfs-root toolbox
395 | sudo cp -rf toolbox /opt
396 | cd ..
397 | rm jetbrains-toolbox-2.6.2.41321.tar.gz
398 | rm -rf toolbox
399 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/jetbrains/jetbrains-toolbox.desktop
400 | sudo cp jetbrains-toolbox.desktop /usr/share/applications
401 | rm jetbrains-toolbox.desktop
402 | if grep -q "alias toolbox=" ~/.bashrc; then
403 | return
404 | else
405 | echo "alias toolbox=\"/opt/toolbox/jetbrains-toolbox\"" >> ~/.bashrc
406 | source ~/.bashrc
407 | fi
408 | else
409 | local title="$msg030"
410 | local msg="$msg175"
411 | _msgbox_
412 | return
413 | fi
414 | else # update
415 | tar -xvzf jetbrains-toolbox-2.6.2.41321.tar.gz
416 | mv jetbrains-* toolbox
417 | ./toolbox/jetbrains-toolbox --appimage-extract
418 | cd toolbox
419 | mv squashfs-root toolbox
420 | sudo cp -rf toolbox /opt
421 | cd ..
422 | rm jetbrains-toolbox-2.6.2.41321.tar.gz
423 | rm -rf toolbox
424 | fi
425 |
426 | }
427 |
428 | # jetbrains trigger
429 | jetbrains_t () {
430 |
431 | if [[ -n "$_tb" ]]; then
432 | if whiptail --title "Jetbrains Toolbox" --yesno "$msg173" 12 78; then
433 | _pycharm=""
434 | _idea=""
435 | _wstorm=""
436 | _rider=""
437 | _clion=""
438 | _rustr=""
439 | _rubym=""
440 | _datag=""
441 | _phpstorm=""
442 | _goland=""
443 | toolbox_in
444 | return
445 | fi
446 | fi
447 | if [[ -n "$_pycharm" ]]; then
448 | pycharm_in
449 | fi
450 | if [[ -n "$_idea" ]]; then
451 | idea_in
452 | fi
453 | if [[ -n "$_wstorm" ]]; then
454 | webstorm_in
455 | fi
456 | if [[ -n "$_rider" ]]; then
457 | rider_in
458 | fi
459 | if [[ -n "$_clion" ]]; then
460 | clion_in
461 | fi
462 | if [[ -n "$_rustr" ]]; then
463 | rustrover_in
464 | fi
465 | if [[ -n "$_rubym" ]]; then
466 | rubymine_in
467 | fi
468 | if [[ -n "$_datag" ]]; then
469 | datagrip_in
470 | fi
471 | if [[ -n "$_phpstorm" ]]; then
472 | phpstorm_in
473 | fi
474 | if [[ -n "$_goland" ]]; then
475 | goland_in
476 | fi
477 |
478 | }
479 |
480 |
481 | # Jetbrains menu
482 | jetbrains_menu () {
483 |
484 | local pycharm_status=$([ "$_pycharm" = "1" ] && echo "ON" || echo "OFF")
485 | local idea_status=$([ "$_idea" = "1" ] && echo "ON" || echo "OFF")
486 | local webstorm_status=$([ "$_wstorm" = "1" ] && echo "ON" || echo "OFF")
487 | local rider_status=$([ "$_rider" = "1" ] && echo "ON" || echo "OFF")
488 | local clion_status=$([ "$_clion" = "1" ] && echo "ON" || echo "OFF")
489 | local rustrover_status=$([ "$_rustr" = "1" ] && echo "ON" || echo "OFF")
490 | local rubymine_status=$([ "$_rubym" = "1" ] && echo "ON" || echo "OFF")
491 | local datagrip_status=$([ "$_datag" = "1" ] && echo "ON" || echo "OFF")
492 | local phpstorm_status=$([ "$_phpstorm" = "1" ] && echo "ON" || echo "OFF")
493 | local goland_status=$([ "$_goland" = "1" ] && echo "ON" || echo "OFF")
494 | local toolbox_status=$([ "$_tb" = "1" ] && echo "ON" || echo "OFF")
495 |
496 | while :; do
497 |
498 | local selection
499 | selection=$(whiptail --title "$msg131" --checklist \
500 | "$msg131" 20 78 15 \
501 | "PyCharm" "$msg163" $pycharm_status \
502 | "IntelliJ IDEA" "$msg138" $idea_status \
503 | "WebStorm" "$msg164" $webstorm_status \
504 | "Rider" "$msg165" $rider_status \
505 | "CLion" "$msg166" $clion_status \
506 | "RustRover" "$msg167" $rustrover_status \
507 | "RubyMine" "$msg168" $rubymine_status \
508 | "DataGrip" "$msg169" $datagrip_status \
509 | "PhpStorm" "$msg170" $phpstorm_status \
510 | "GoLand" "$msg171" $goland_status \
511 | "Toolbox" "$msg172" $toolbox_status \
512 | 3>&1 1>&2 2>&3)
513 |
514 | exitstatus=$?
515 | if [ $exitstatus != 0 ]; then
516 | # Exit the script if the user presses Esc
517 | return
518 | fi
519 |
520 | [[ "$selection" == *"PyCharm"* ]] && _pycharm="1" || _pycharm=""
521 | [[ "$selection" == *"IntelliJ IDEA"* ]] && _idea="1" || _idea=""
522 | [[ "$selection" == *"WebStorm"* ]] && _wstorm="1" || _wstorm=""
523 | [[ "$selection" == *"Rider"* ]] && _rider="1" || _rider=""
524 | [[ "$selection" == *"CLion"* ]] && _clion="1" || _clion=""
525 | [[ "$selection" == *"RustRover"* ]] && _rustr="1" || _rustr=""
526 | [[ "$selection" == *"RubyMine"* ]] && _rubym="1" || _rubym=""
527 | [[ "$selection" == *"DataGrip"* ]] && _datag="1" || _datag=""
528 | [[ "$selection" == *"PhpStorm"* ]] && _phpstorm="1" || _phpstorm=""
529 | [[ "$selection" == *"GoLand"* ]] && _goland="1" || _goland=""
530 | [[ "$selection" == *"Toolbox"* ]] && _tb="1" || _tb=""
531 |
532 | jetbrains_t
533 |
534 | done
535 |
536 | }
--------------------------------------------------------------------------------
/src/resources/subscripts/pipewire-obs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # depcheck
5 | depcheck_pipe () {
6 |
7 | local _packages=(wireplumber)
8 | _install_
9 |
10 | }
11 |
12 | # install plugin for flatpak
13 | flatpak_pipe () {
14 |
15 | if flatpak list --app | grep -q com.obsproject.Studio; then
16 | local ver="1.2.0"
17 | cd $HOME
18 | mkdir obspipe
19 | cd obspipe
20 | wget https://github.com/dimtpap/obs-pipewire-audio-capture/releases/download/${ver}/linux-pipewire-audio-${ver}-flatpak-30.tar.gz || { echo "Download failed"; cd ..; rm -rf obspipe; return 1; }
21 | tar xvzf linux-pipewire-audio-${ver}-flatpak-30.tar.gz
22 | cp -rf linux-pipewire-audio $HOME/.var/app/com.obsproject.Studio/config/obs-studio/plugins/linux-pipewire-audio/
23 | sudo flatpak override --filesystem=xdg-run/pipewire-0 com.obsproject.Studio
24 | cd ..
25 | rm -rf obspipe
26 | else
27 | title="Installer"
28 | msg="OBS Studio flatpak not installed."
29 | _msgbox_
30 | fi
31 |
32 | }
33 |
34 | # install plugin for native packages
35 | native_pipe () {
36 |
37 | local ver="1.2.0"
38 | cd $HOME
39 | mkdir obspipe
40 | cd obspipe
41 | wget https://github.com/dimtpap/obs-pipewire-audio-capture/releases/download/${ver}/linux-pipewire-audio-${ver}.tar.gz || { echo "Download failed"; cd ..; rm -rf obspipe; return 1; }
42 | tar xvzf linux-pipewire-audio-${ver}.tar.gz
43 | cp -rf linux-pipewire-audio $HOME/.config/obs-studio/plugins/linux-pipewire-audio/
44 | cd ..
45 | rm -rf obspipe
46 |
47 | }
48 |
49 | # native package checker
50 | obscheck () {
51 |
52 | if [[ "$ID_LIKE" =~ (suse|rhel|fedora) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
53 | if rpm -qi "obs-studio" 2>/dev/null 1>&2; then
54 | native_pipe
55 | else
56 | whiptail --title "Installer" --msgbox "OBS Studio not found." 8 78
57 | fi
58 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
59 | if pacman -Qi "obs-studio" 2>/dev/null 1>&2; then
60 | native_pipe
61 | else
62 | whiptail --title "Installer" --msgbox "OBS Studio not found." 8 78
63 | fi
64 | elif [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
65 | if dpkg -s "obs-studio" 2>/dev/null 1>&2; then
66 | native_pipe
67 | else
68 | whiptail --title "Installer" --msgbox "OBS Studio not found." 8 78
69 | fi
70 | else
71 | whiptail --title "Installer" --msgbox "Invalid Operating System." 8 78
72 | fi
73 |
74 | }
75 |
76 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
77 | depcheck_pipe
78 | # menu
79 | while :; do
80 |
81 | CHOICE=$(whiptail --title "OBS Pipewire Audio Capture" --menu "Choose your OBS version:" 25 78 16 \
82 | "0" "Native" \
83 | "1" "Flatpak" \
84 | "2" "Cancel" 3>&1 1>&2 2>&3)
85 |
86 | exitstatus=$?
87 | if [ $exitstatus != 0 ]; then
88 | # Exit the script if the user presses Esc
89 | break
90 | fi
91 |
92 | case $CHOICE in
93 | 0) obscheck ;;
94 | 1) flatpak_pipe ;;
95 | 2 | q) break ;;
96 | *) echo "Invalid Option" ;;
97 | esac
98 | done
--------------------------------------------------------------------------------
/src/resources/subscripts/runners.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # menu
5 | runners_menu () {
6 |
7 | local spritz_status=$([ "$_spritz" = "1" ] && echo "ON" || echo "OFF")
8 | local osu_status=$([ "$_osu" = "1" ] && echo "ON" || echo "OFF")
9 |
10 | while :; do
11 |
12 | local selection
13 | selection=$(whiptail --title "$msg131" --checklist \
14 | "$msg131" 20 78 15 \
15 | "Spritz" "$msg153" $spritz_status \
16 | "Osu!-Wine" "$msg154" $osu_status \
17 | 3>&1 1>&2 2>&3)
18 |
19 | exitstatus=$?
20 | if [ $exitstatus != 0 ]; then
21 | # Exit the script if the user presses Esc
22 | break
23 | fi
24 |
25 | [[ "$selection" == *"Spritz"* ]] && _spritz="1" || _spritz=""
26 | [[ "$selection" == *"Osu!-Wine"* ]] && _osu="1" || _osu=""
27 |
28 | if [[ -n "$_spritz" ]]; then
29 | cd $HOME
30 | local krnver=$(uname -r | cut -d- -f1)
31 | local krnmaj=$(echo "$krnver" | cut -d. -f1)
32 | local krnmin=$(echo "$krnver" | cut -d. -f2)
33 | if (( KERNEL_MAJOR > 6 )) || { (( KERNEL_MAJOR == 6 )) && (( KERNEL_MINOR > 13 )); }; then
34 | wget https://github.com/NelloKudo/WineBuilder/releases/download/spritz-v10.9-1/spritz-wine-tkg-ntsync-fonts-wow64-10.9-2-x86_64.tar.xz
35 | tar -xf spritz-wine-tkg-ntsync-fonts-wow64-10.9-2-x86_64.tar.xz
36 | cp -rf spritz-wine-tkg-ntsync-10.9 $HOME/.var/app/net.lutris.Lutris/data/lutris/runners/wine/
37 | rm spritz-wine-tkg-ntsync-fonts-wow64-10.9-2-x86_64.tar.xz
38 | rm -rf spritz-wine-tkg-ntsync-10.9
39 | else
40 | wget https://github.com/NelloKudo/WineBuilder/releases/download/spritz-v10.9-1/spritz-wine-tkg-fonts-wow64-10.9-2-x86_64.tar.xz
41 | tar -xf spritz-wine-tkg-fonts-wow64-10.9-2-x86_64.tar.xz
42 | cp -rf spritz-wine-tkg-10.9 $HOME/.var/app/net.lutris.Lutris/data/lutris/runners/wine/
43 | rm spritz-wine-tkg-fonts-wow64-10.9-2-x86_64.tar.xz
44 | rm -rf spritz-wine-tkg-10.9
45 | fi
46 | fi
47 | if [[ -n "$_osu" ]]; then
48 | wget https://github.com/NelloKudo/WineBuilder/releases/download/wine-osu-staging-10.8-2/wine-osu-winello-fonts-wow64-10.8-2-x86_64.tar.xz
49 | tar -xf wine-osu-winello-fonts-wow64-10.8-2-x86_64.tar.xz
50 | cp -rf wine-osu $HOME/.var/app/net.lutris.Lutris/data/lutris/runners/wine/
51 | rm wine-osu-winello-fonts-wow64-10.8-2-x86_64.tar.xz
52 | rm -rf wine-osu
53 | fi
54 |
55 | done
56 |
57 | }
58 |
59 | # runtime
60 | . /etc/os-release
61 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
62 | _lang_
63 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
64 | if command -v flatpak &> /dev/null && flatpak list | grep -q 'net.lutris.Lutris'; then
65 | runners_menu
66 | else
67 | title="$msg030"
68 | msg="$msg155"
69 | _msgbox_
70 | fi
71 |
--------------------------------------------------------------------------------
/src/resources/subscripts/rusticl-amd:
--------------------------------------------------------------------------------
1 | RUSTICL_ENABLE=radeonsi
2 | OCL_ICD_VENDORS=/etc/OpenCL/vendors/rusticl.icd
--------------------------------------------------------------------------------
/src/resources/subscripts/rusticl-intel:
--------------------------------------------------------------------------------
1 | RUSTICL_ENABLE=iris
2 | OCL_ICD_VENDORS=/etc/OpenCL/vendors/rusticl.icd
--------------------------------------------------------------------------------
/src/resources/subscripts/script.sed:
--------------------------------------------------------------------------------
1 | $a \
2 | [chaotic-aur]\
3 | Include = /etc/pacman.d/chaotic-mirrorlist
--------------------------------------------------------------------------------
/src/resources/subscripts/swapper.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # functions
3 |
4 | # create swap on root
5 | root_swap () {
6 |
7 | if [ "$(findmnt -n -o FSTYPE /)" = "btrfs" ]; then
8 | btrfs subvolume create /swap
9 | btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile
10 | swapon /swap/swapfile
11 | echo "# swapfile" | sudo tee -a /etc/fstab
12 | echo "/swap/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
13 | title="Swapfile Creator"
14 | msg="Swapfile creation succesful."
15 | _msgbox_
16 | else
17 | mkswap -U clear --size 8G --file /swapfile
18 | swapon /swapfile
19 | echo "# swapfile" | sudo tee -a /etc/fstab
20 | echo "/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
21 | title="Swapfile Creator"
22 | msg="Swapfile creation succesful."
23 | _msgbox_
24 | fi
25 |
26 | }
27 |
28 | # create swap on home
29 | home_swap () {
30 |
31 | if [ "$(findmnt -n -o FSTYPE /home)" = "btrfs" ]; then
32 | sudo btrfs subvolume create /home/swap
33 | sudo btrfs filesystem mkswapfile --size 8g --uuid clear /home/swap/swapfile
34 | sudo swapon /home/swap/swapfile
35 | echo "# swapfile" | sudo tee -a /etc/fstab
36 | echo "/home/swap/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
37 | title="Swapfile Creator"
38 | msg="Swapfile creation succesful."
39 | _msgbox_
40 | else
41 | sudo mkswap -U clear --size 8G --file /home/swapfile
42 | sudo swapon /home/swapfile
43 | echo "# swapfile" | sudo tee -a /etc/fstab
44 | echo "/home/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
45 | title="Swapfile Creator"
46 | msg="Swapfile creation succesful."
47 | _msgbox_
48 | fi
49 |
50 | }
51 |
52 | if swapon --show | grep -q '^'; then
53 | title="Swapfile Creator"
54 | msg="Swap already enabled in your system."
55 | _msgbox_
56 | exit 0
57 | else
58 | # menu
59 | while :; do
60 |
61 | CHOICE=$(whiptail --title "Swapfile Creator" --menu "Create swapfile on:" 25 78 16 \
62 | "0" "/ (root)" \
63 | "1" "/home (home)" \
64 | "2" "Cancel" 3>&1 1>&2 2>&3)
65 |
66 | exitstatus=$?
67 | if [ $exitstatus != 0 ]; then
68 | # Exit the script if the user presses Esc
69 | break
70 | fi
71 |
72 | case $CHOICE in
73 | 0) root_swap ;;
74 | 1) home_swap ;;
75 | 2 | q) break ;;
76 | *) echo "Invalid Option" ;;
77 | esac
78 | done
79 | fi
--------------------------------------------------------------------------------
/src/resources/subscripts/waydroid-suse.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if grep -qi "slowroll" /etc/os-release; then
3 | sudo zypper addrepo https://download.opensuse.org/repositories/home:runa-chin/openSUSE_Slowroll/home:runa-chin.repo && sudo zypper ref
4 | else
5 | sudo zypper addrepo https://download.opensuse.org/repositories/home:runa-chin/openSUSE_Tumbleweed/home:runa-chin.repo && sudo zypper ref
6 | fi
7 | sudo zypper in grubby -y
8 | sudo grubby --update-kernel="/boot/vmlinuz-$(uname -r)" --args="psi=1"
--------------------------------------------------------------------------------
/src/resources/supermenus/dsupermenu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # initialize variables for reboot status
4 | flatpak_run=""
5 | # supermenu checklist
6 | dsupermenu () {
7 |
8 | local code_status=$([ "$_code" = "code" ] && echo "ON" || echo "OFF")
9 | local codium_status=$([ "$_codium" = "com.vscodium.codium" ] && echo "ON" || echo "OFF")
10 | local nvim_status=$([ "$_nvim" = "neovim" ] && echo "ON" || echo "OFF")
11 | local jb_status=$([ "$_jb" = "1" ] && echo "ON" || echo "OFF")
12 | local nvm_status=$([ "$_nvm" = "nodejs" ] && echo "ON" || echo "OFF")
13 | local mvn_status=$([ "$_mvn" = "maven" ] && echo "ON" || echo "OFF")
14 | local pyenv_status=$([ "$_pyenv" = "pyenv" ] && echo "ON" || echo "OFF")
15 | local godot_status=$([ "$_godot" = "godot" ] && echo "ON" || echo "OFF")
16 | local unity_status=$([ "$_unity" = "unityhub" ] && echo "ON" || echo "OFF")
17 | local dotnet_status=$([ "$_dotnet" = "dotnet-sdk-9.0" ] && echo "ON" || echo "OFF")
18 | local java_status=$([ "$_java" = "java" ] && echo "ON" || echo "OFF")
19 |
20 | while :; do
21 |
22 | local selection
23 | selection=$(whiptail --title "$msg131" --checklist \
24 | "$msg131" 20 78 15 \
25 | "VS Code" "$msg141" $code_status \
26 | "VSCodium" "$msg142" $codium_status \
27 | "NeoVim" "$msg140" $nvim_status \
28 | "Jetbrains" "$msg162" $jb_status \
29 | "NodeJS" "+ Node Version Manager" $nvm_status \
30 | "Maven" "$msg178" $mvn_status \
31 | "Python" "$msg134" $pyenv_status \
32 | "C#" "Microsoft .NET SDK" $dotnet_status \
33 | "Java" "OpenJDK/JRE" $java_status \
34 | "Godot 4" "$msg139" $godot_status \
35 | "Unity Hub" "$msg137" $unity_status \
36 | 3>&1 1>&2 2>&3)
37 |
38 | exitstatus=$?
39 | if [ $exitstatus != 0 ]; then
40 | # Exit the script if the user presses Esc
41 | break
42 | fi
43 |
44 | [[ "$selection" == *"VS Code"* ]] && _code="code" || _code=""
45 | [[ "$selection" == *"VSCodium"* ]] && _codium="com.vscodium.codium" || _codium=""
46 | [[ "$selection" == *"NeoVim"* ]] && _nvim="neovim" || _nvim=""
47 | [[ "$selection" == *"Jetbrains"* ]] && _jb="1" || _jb=""
48 | [[ "$selection" == *"NodeJS"* ]] && _nvm="nodejs" || _nvm=""
49 | [[ "$selection" == *"Maven"* ]] && _mvn="maven" || _mvn=""
50 | [[ "$selection" == *"Python"* ]] && _pyenv="pyenv" || _pyenv=""
51 | [[ "$selection" == *"Godot 4"* ]] && _godot="godot" || _godot=""
52 | [[ "$selection" == *"Unity Hub"* ]] && _unity="unityhub" || _unity=""
53 | [[ "$selection" == *"C#"* ]] && _dotnet="dotnet-sdk-9.0" || _dotnet=""
54 | [[ "$selection" == *"Java"* ]] && _java="java" || _java=""
55 |
56 |
57 | install_flatpak
58 | install_native
59 | others_t
60 | # adjust if rebooting is required for any software
61 | if [[ -n "$flatpak_run" || -n "$_pyenv" || -n "$_nvm" ]]; then
62 | local title="$msg006"
63 | local msg="$msg036"
64 | _msgbox_
65 | else
66 | local title="$msg006"
67 | local msg="$msg018"
68 | _msgbox_
69 | fi
70 |
71 | done
72 |
73 | }
74 |
75 | # installer functions
76 | # native packages
77 | install_native () {
78 |
79 | local _packages=($_code $_nvim $_nvm $_mvn $_pyenv $_unity $_dotnet)
80 | if [[ -n "$_packages" ]]; then
81 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
82 | if [[ -n "$_code" ]]; then
83 | cd $HOME
84 | wget https://vscode.download.prss.microsoft.com/dbazure/download/stable/848b80aeb52026648a8ff9f7c45a9b0a80641e2e/code_1.100.2-1747260578_amd64.deb
85 | sudo dpkg -i code_1.100.2-1747260578_amd64.deb
86 | rm code_1.100.2-1747260578_amd64.deb
87 | fi
88 | if [[ -n "$_pyenv" ]]; then
89 | insta make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
90 | fi
91 | if [[ -n "$_unity" ]]; then
92 | wget -qO - https://hub.unity3d.com/linux/keys/public | gpg --dearmor | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null
93 | sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
94 | sudo apt update
95 | fi
96 | if [[ -n "$_dotnet" && "$ID" == "debian" ]]; then
97 | wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
98 | sudo dpkg -i packages-microsoft-prod.deb
99 | rm packages-microsoft-prod.deb
100 | sudo apt update
101 | fi
102 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
103 | if [[ -n "$_code" ]]; then
104 | if whiptail --title "$msg006" --yesno "$msg035" 8 78; then
105 | chaotic_aur_lib
106 | else
107 | local title="$msg006"
108 | local msg="Skipping Visual Studio Code installation."
109 | _msgbox_
110 | fi
111 | fi
112 | if [[ -n "$_pyenv" ]]; then
113 | insta base-devel openssl zlib xz tk
114 | fi
115 | if [[ -n "$_unity" ]]; then
116 | local title="Unity Hub"
117 | local msg="$msg077"
118 | _msgbox_
119 | fi
120 | if [[ -n "$_dotnet" ]]; then
121 | local title=".NET SDK"
122 | local msg="$msg077"
123 | _msgbox_
124 | fi
125 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
126 | if [[ -n "$_code" ]]; then
127 | sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
128 | echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
129 | sudo dnf check-update
130 | insta code
131 | fi
132 | if [[ -n "$_pyenv" ]]; then
133 | insta make gcc patch zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel libuuid-devel gdbm-libs libnsl2 -y
134 | fi
135 | if [[ -n "$_unity" ]]; then
136 | if [ "$ID" == "rhel" ]; then
137 | sudo sh -c 'echo -e "[unityhub]\nname=Unity Hub\nbaseurl=https://hub.unity3d.com/linux/repos/rpm/stable\nenabled=1\ngpgcheck=1\ngpgkey=https://hub.unity3d.com/linux/repos/rpm/stable/repodata/repomd.xml.key\nrepo_gpgcheck=1" > /etc/yum.repos.d/unityhub.repo'
138 | sudo yum check-update
139 | sudo yum install unityhub
140 | else
141 | local title="Unity Hub"
142 | local msg="$msg077"
143 | _msgbox_
144 | fi
145 | fi
146 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
147 | if [[ -n "$_code" ]]; then
148 | sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
149 | echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" |sudo tee /etc/zypp/repos.d/vscode.repo > /dev/null
150 | insta code
151 | fi
152 | if [[ -n "$_pyenv" ]]; then
153 | insta gcc automake bzip2 libbz2-devel xz xz-devel openssl-devel ncurses-devel readline-devel zlib-devel tk-devel libffi-devel sqlite3-devel gdbm-devel make findutils patch -y
154 | fi
155 | if [[ -n "$_dotnet" ]]; then
156 | if [ "$NAME" == "openSUSE Leap" ]; then
157 | insta libicu
158 | sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
159 | wget https://packages.microsoft.com/config/opensuse/15/prod.repo
160 | sudo mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo
161 | sudo chown root:root /etc/zypp/repos.d/microsoft-prod.repo
162 | insta dotnet-sdk-9.0
163 | else
164 | local title=".NET SDK"
165 | local msg="$msg077"
166 | _msgbox_
167 | fi
168 | fi
169 | fi
170 | _install_
171 | fi
172 |
173 | }
174 |
175 | # flatpak packages
176 | install_flatpak () {
177 |
178 | local _flatpaks=($_codium)
179 | if [[ -n "$_flatpaks" ]] || [[ -n "$_steam" ]]; then
180 | if command -v flatpak &> /dev/null; then
181 | _flatpak_
182 | else
183 | if whiptail --title "$msg006" --yesno "$msg085" 8 78; then
184 | flatpak_run="1"
185 | flatpak_in_lib
186 | _flatpak_
187 | else
188 | local title="$msg030"
189 | local msg="$msg132"
190 | _msgbox_
191 | fi
192 | fi
193 | fi
194 |
195 | }
196 |
197 | # Godot Engine installer
198 | godot_in () {
199 |
200 | # menu
201 | while :; do
202 |
203 | CHOICE=$(whiptail --title "Godot Engine" --menu "$msg067" 25 78 16 \
204 | "0" "Godot (Default)" \
205 | "1" "Godot .NET (C# Support)" \
206 | "2" "Cancel" 3>&1 1>&2 2>&3)
207 |
208 | exitstatus=$?
209 | if [ $exitstatus != 0 ]; then
210 | # Exit the script if the user presses Esc
211 | return
212 | fi
213 |
214 | case $CHOICE in
215 | 0) godot_st ;;
216 | 1) godot_shrp ;;
217 | 2 | q) break ;;
218 | *) echo "Invalid Option" ;;
219 | esac
220 | done
221 |
222 | }
223 |
224 | godot_st () {
225 |
226 | cd $HOME
227 | # first install
228 | if [ ! -d "/opt/godot" ]; then
229 | wget 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/15634981/5c13b07c-aad3-4bde-8712-9f0825758bb2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250602%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250602T210343Z&X-Amz-Expires=300&X-Amz-Signature=2b5d1d411f853ce8c1eb9045af1b02f3567a4a8de13d754a3f1b3fce345a0051&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DGodot_v4.4.1-stable_linux.x86_64.zip&response-content-type=application%2Foctet-stream'
230 | unzip Godot_v4.4.1-stable_linux.x86_64.zip
231 | mv Godot_v4.4.1-stable_linux.x86_64 Godot
232 | sudo mkdir -p /opt/godot
233 | sudo cp Godot -f /opt/godot
234 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/godot.png
235 | sudo cp godot.png /opt/godot
236 | rm Godot
237 | rm godot.png
238 | rm Godot_v4.4.1-stable_linux.x86_64.zip
239 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/godot.desktop
240 | sudo cp godot.desktop /usr/share/applications
241 | rm godot.desktop
242 | else # update
243 | wget 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/15634981/5c13b07c-aad3-4bde-8712-9f0825758bb2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250602%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250602T210343Z&X-Amz-Expires=300&X-Amz-Signature=2b5d1d411f853ce8c1eb9045af1b02f3567a4a8de13d754a3f1b3fce345a0051&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DGodot_v4.4.1-stable_linux.x86_64.zip&response-content-type=application%2Foctet-stream'
244 | unzip Godot_v4.4.1-stable_linux.x86_64.zip
245 | mv Godot_v4.4.1-stable_linux.x86_64 Godot
246 | sudo cp Godot -f /opt/godot
247 | rm Godot
248 | rm Godot_v4.4.1-stable_linux.x86_64.zip
249 | fi
250 |
251 |
252 | }
253 |
254 | godot_shrp () {
255 |
256 | if [[ "$ID_LIKE" =~ (rhel|fedora) || "$ID" =~ (fedora|ubuntu|debian) || "$NAME" == "openSUSE Leap" ]]; then
257 | cd $HOME
258 | # first install
259 | if [ ! -d "/opt/godot" ]; then
260 | wget 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/15634981/8976b3a0-fb60-4d98-bd70-b623b9eaf9d3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250602%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250602T211639Z&X-Amz-Expires=300&X-Amz-Signature=11f42225a48cf9dea2a262ff4918e8c594b8494bd70ac108cf2e0b014fb8ac46&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DGodot_v4.4.1-stable_mono_linux_x86_64.zip&response-content-type=application%2Foctet-stream'
261 | mkdir -p godot
262 | unzip -d $HOME/godot Godot_v4.4.1-stable_mono_linux.x86_64.zip
263 | sudo cp -rf godot /opt/
264 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/godot.png
265 | sudo cp godot.png /opt/godot
266 | rm -rf godot
267 | rm godot.png
268 | rm Godot_v4.4.1-stable_mono_linux.x86_64.zip
269 | wget https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/other/godotsharp.desktop
270 | sudo cp godotsharp.desktop /usr/share/applications
271 | rm godotsharp.desktop
272 | if [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
273 | insta dotnet-sdk-9.0
274 | elif [ "$ID" == "ubuntu" ]; then
275 | insta dotnet-sdk-9.0
276 | elif [ "$ID" == "debian" ]; then
277 | wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
278 | sudo dpkg -i packages-microsoft-prod.deb
279 | rm packages-microsoft-prod.deb
280 | sudo apt update
281 | insta dotnet-sdk-9.0
282 | elif [[ "$NAME" == "openSUSE Leap" ]]; then
283 | sudo insta libicu
284 | sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
285 | wget https://packages.microsoft.com/config/opensuse/15/prod.repo
286 | sudo mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo
287 | sudo chown root:root /etc/zypp/repos.d/microsoft-prod.repo
288 | insta dotnet-sdk-9.0
289 | fi
290 | else # update
291 | wget 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/15634981/8976b3a0-fb60-4d98-bd70-b623b9eaf9d3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250602%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250602T211639Z&X-Amz-Expires=300&X-Amz-Signature=11f42225a48cf9dea2a262ff4918e8c594b8494bd70ac108cf2e0b014fb8ac46&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3DGodot_v4.4.1-stable_mono_linux_x86_64.zip&response-content-type=application%2Foctet-stream'
292 | mkdir -p godot
293 | unzip -d $HOME/godot Godot_v4.4.1-stable_mono_linux.x86_64.zip
294 | sudo rm -rf /opt/godot
295 | sudo cp -rf godot /opt/
296 | rm -rf godot
297 | rm Godot_v4.4.1-stable_mono_linux.x86_64.zip
298 | fi
299 | else
300 | local title="$msg030"
301 | local msg="$msg077"
302 | _msgbox_
303 | fi
304 |
305 |
306 | }
307 |
308 | # java JDK + JRE installation
309 | jdk_install () {
310 |
311 | local javas=($_jdk8 $_jdk11 $_jdk17 $_jdk21 $_jdk24)
312 | for jav in "${javas[@]}"; do
313 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
314 | insta openjdk-${jav}-jdk openjdk-${jav}-jre
315 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
316 | if [ $jav == "8" ]; then
317 | insta java-1.8.0-openjdk java-1.8.0-openjdk-devel
318 | continue
319 | fi
320 | insta java-${jav}-openjdk java-${jav}-openjdk-devel
321 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
322 | insta java-${jav}-openjdk java-${jav}-openjdk-devel
323 | fi
324 | done
325 |
326 | }
327 |
328 | java_in () {
329 |
330 | local jdk8_status=$([ "$_jdk8" = "8" ] && echo "ON" || echo "OFF")
331 | local jdk11_status=$([ "$_jdk11" = "11" ] && echo "ON" || echo "OFF")
332 | local jdk17_status=$([ "$_jdk17" = "17" ] && echo "ON" || echo "OFF")
333 | local jdk21_status=$([ "$_jdk21" = "21" ] && echo "ON" || echo "OFF")
334 | local jdk24_status=$([ "$_jdk24" = "24" ] && echo "ON" || echo "OFF")
335 |
336 | while :; do
337 |
338 | local selection
339 | selection=$(whiptail --title "$msg131" --checklist \
340 | "$msg131" 20 78 15 \
341 | "Java 8" "LTS" $jdk8_status \
342 | "Java 11" "LTS" $jdk11_status \
343 | "Java 17" "LTS" $jdk17_status \
344 | "Java 21" "LTS" $jdk21_status \
345 | "Java 24" "Latest" $jdk24_status \
346 | 3>&1 1>&2 2>&3)
347 |
348 | exitstatus=$?
349 | if [ $exitstatus != 0 ]; then
350 | # Exit the script if the user presses Esc
351 | return
352 | fi
353 |
354 | [[ "$selection" == *"Java 8"* ]] && _jdk8="8" || _jdk8=""
355 | [[ "$selection" == *"Java 11"* ]] && _jdk11="11" || _jdk11=""
356 | [[ "$selection" == *"Java 17"* ]] && _jdk17="17" || _jdk17=""
357 | [[ "$selection" == *"Java 21"* ]] && _jdk21="21" || _jdk21=""
358 | [[ "$selection" == *"Java 24"* ]] && _jdk24="24" || _jdk24=""
359 |
360 | jdk_install
361 |
362 | done
363 |
364 | }
365 |
366 | # triggers for OS-agnostic installers
367 | others_t () {
368 |
369 | if [[ -n "$_jb" ]]; then
370 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/resources/subscripts/jetbrainsmenu.lib)
371 | jetbrains_menu
372 | fi
373 | if [[ -n "$_godot" ]]; then
374 | godot_in
375 | fi
376 | if [[ -n "$_nvm" ]]; then
377 | wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
378 | rm install.sh
379 | npm i --global yarn
380 | # basic usage instruction prompt
381 | local title="$msg006"
382 | local msg="$msg136"
383 | _msgbox_
384 | xdg-open https://github.com/nvm-sh/nvm?tab=readme-ov-file#usage
385 | fi
386 | if [[ -n "$_pyenv" ]]; then
387 | # pyenv and python build requirements installation
388 | curl -fsSL https://pyenv.run | bash
389 | if [[ -f "${HOME}/.bash_profile" ]]; then
390 | echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
391 | echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
392 | echo 'eval "$(pyenv init - bash)"' >> ~/.bash_profile
393 | elif [[ -f "$HOME/.profile" ]]; then
394 | echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
395 | echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
396 | echo 'eval "$(pyenv init - bash)"' >> ~/.profile
397 | fi
398 | if [[ -f "$HOME/.zshrc" ]]; then
399 | echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
400 | echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
401 | echo 'eval "$(pyenv init - zsh)"' >> ~/.zshrc
402 | fi
403 | git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
404 | echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
405 | # basic usage instruction prompt
406 | local title="$msg006"
407 | local msg="$msg135"
408 | _msgbox_
409 | xdg-open https://github.com/pyenv/pyenv?tab=readme-ov-file#usage
410 | xdg-open https://github.com/pyenv/pyenv-virtualenv?tab=readme-ov-file#usage
411 | fi
412 | if [[ -n "$_java" ]]; then
413 | java_in
414 | fi
415 |
416 | }
417 |
418 | # runtime
419 | . /etc/os-release
420 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
421 | _lang_
422 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
423 | dsupermenu
--------------------------------------------------------------------------------
/src/resources/supermenus/esupermenu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # set up firewall (ufw)
4 | ufw_in () {
5 |
6 | if whiptail --title "$msg006" --yesno "$msg007" 8 78; then
7 | local _packages=(ufw gufw)
8 | _install_
9 | if command -v ufw &> /dev/null; then
10 | sudo ufw default deny incoming
11 | sudo ufw default allow outgoing
12 | sudo ufw enable
13 | fi
14 | local title="$msg006"
15 | local msg="$msg008"
16 | _msgbox_
17 | fi
18 |
19 | }
20 |
21 | # configure swapfile
22 | swapfile_t () {
23 |
24 | if whiptail --title "$msg009" --yesno "$msg010" 8 78; then
25 | local subscript="swapper"
26 | _invoke_
27 | fi
28 |
29 | }
30 |
31 | # 'cleartype'-like settings for Linux
32 | lucidglyph_in () {
33 |
34 | local lgver="0.11.0"
35 | if whiptail --title "$msg019" --yesno "$msg020" 8 78; then
36 | cd $HOME
37 | wget https://github.com/maximilionus/lucidglyph/archive/refs/tags/v${lgver}.tar.gz
38 | tar -xvzf v0.11.0.tar.gz
39 | cd lucidglyph-${lgver}
40 | chmod +x lucidglyph.sh
41 | sudo ./lucidglyph.sh install
42 | cd ..
43 | rm -rf lucidglyph-${lgver}
44 | local title="$msg021"
45 | local msg="$msg022"
46 | _msgbox_
47 | fi
48 |
49 | }
50 |
51 | # set up grub-btrfs for snapshots on boot menu
52 | grubtrfs_t () {
53 |
54 | if [ "$(findmnt -n -o FSTYPE /)" = "btrfs" ]; then
55 | local subscript="grub-btrfs-installer"
56 | _invoke_
57 | else
58 | local title="$msg030"
59 | local msg="$msg031"
60 | _msgbox_
61 | fi
62 |
63 | }
64 |
65 | # Nvidia driver installer for Fedora/SUSE - it is a montrosity, but it works, trust me bro
66 | nvidia_in () {
67 |
68 | local GPU=$(lspci | grep -iE 'vga|3d' | grep -i nvidia)
69 | if [[ -n "$GPU" ]]; then
70 | if [[ "$ID_LIKE" =~ (rhel|fedora|suse) ]] || [[ "$ID" =~ (fedora|suse) ]]; then
71 |
72 | while :; do
73 |
74 | CHOICE=$(whiptail --title "$msg006" --menu "$msg067" 25 78 16 \
75 | "0" "$msg068" \
76 | "1" "$msg069" \
77 | "2" "$msg070" 3>&1 1>&2 2>&3)
78 |
79 | exitstatus=$?
80 | if [ $exitstatus != 0 ]; then
81 | # Exit the script if the user presses Esc
82 | return
83 | fi
84 |
85 | case $CHOICE in
86 | 0) if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
87 | local REPO_ALIAS="nvidia"
88 | case "$VERSION_ID" in
89 | *Tumbleweed*)
90 | REPO_URL="https://download.nvidia.com/opensuse/tumbleweed"
91 | ;;
92 | 15.*)
93 | REPO_URL="https://download.nvidia.com/opensuse/leap/$VERSION_ID"
94 | ;;
95 | *)
96 | local title="Unsupported openSUSE version"
97 | local msg="Unsupported version $VERSION_ID"
98 | _msgbox_
99 | ;;
100 | esac
101 | if zypper lr | grep -q "^${REPO_ALIAS}\s"; then
102 | continue
103 | else
104 | sudo zypper ar -f "$REPO_URL" "nvidia"
105 | fi
106 | insta x11-video-nvidiaG06 nvidia-computeG06
107 | else
108 | if ! sudo dnf repolist | grep -q "rpmfusion-free"; then
109 | insta https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
110 | fi
111 | if ! sudo dnf repolist | grep -q "rpmfusion-nonfree"; then
112 | insta https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
113 | fi
114 | insta akmod-nvidia xorg-x11-drv-nvidia-cuda
115 | fi
116 | sudo dracut -f --regenerate-all ;;
117 | 1) if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
118 | local REPO_ALIAS="nvidia"
119 | case "$VERSION_ID" in
120 | *Tumbleweed*)
121 | REPO_URL="https://download.nvidia.com/opensuse/tumbleweed"
122 | ;;
123 | 15.*)
124 | REPO_URL="https://download.nvidia.com/opensuse/leap/$VERSION_ID"
125 | ;;
126 | *)
127 | local title="Unsupported openSUSE version"
128 | local msg="Unsupported version $VERSION_ID"
129 | _msgbox_
130 | ;;
131 | esac
132 | if zypper lr | grep -q "^${REPO_ALIAS}\s"; then
133 | continue
134 | else
135 | sudo zypper ar -f "$REPO_URL" "nvidia"
136 | fi
137 | insta x11-video-nvidiaG05 nvidia-computeG05
138 | else
139 | if ! sudo dnf repolist | grep -q "rpmfusion-free"; then
140 | insta https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
141 | fi
142 | if ! sudo dnf repolist | grep -q "rpmfusion-nonfree"; then
143 | insta https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
144 | fi
145 | insta xorg-x11-drv-nvidia-470xx akmod-nvidia-470xx xorg-x11-drv-nvidia-470xx-cuda
146 | fi
147 | sudo dracut -f --regenerate-all ;;
148 | 2 | q) break ;;
149 | *) echo "Invalid Option" ;;
150 | esac
151 |
152 | done
153 |
154 | else
155 | local title="$msg039"
156 | local msg="$msg077"
157 | _msgbox_
158 | fi
159 | else
160 | local title="$msg039"
161 | local msg="$msg071"
162 | _msgbox_
163 | fi
164 |
165 | }
166 |
167 | # fix SELinux policies for gaming on openSUSE
168 | fix_se_suse () {
169 |
170 | if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
171 | sudo setsebool -P selinuxuser_execmod 1
172 | local title="$msg072"
173 | local msg="$msg022"
174 | _msgbox_
175 | else
176 | local title="$msg072"
177 | local msg="$msg073"
178 | _msgbox_
179 | fi
180 |
181 | }
182 |
183 | # install proper codec support on openSUSE
184 | suse_codecs () {
185 |
186 | if whiptail --title "$msg006" --yesno "$msg080" 8 78; then
187 | if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
188 | insta opi
189 | sudo opi codecs
190 | local title="$msg006"
191 | local msg="$msg018"
192 | _msgbox_
193 | else
194 | local title="$msg030"
195 | local msg="$msg077"
196 | _msgbox_
197 | fi
198 | fi
199 |
200 | }
201 |
202 | # install flatpak support
203 | flatpak_in () {
204 |
205 | if whiptail --title "$msg011" --yesno "$msg012" 8 78; then
206 | flatpak_in_lib
207 | if [ "$ID" == "ubuntu" ]; then
208 | insta gnome-software gnome-software-plugin-flatpak gnome-software-plugin-snap
209 | fi
210 | local title="$msg013"
211 | local msg="$msg014"
212 | _msgbox_
213 | fi
214 |
215 | }
216 |
217 | # linux kernel power saving optimized settings when on battery
218 | psaver () {
219 |
220 | if whiptail --title "$msg006" --yesno "$msg176" 12 78; then
221 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]]; then
222 | sudo add-apt-repository ppa:linrunner/tlp
223 | sudo apt update
224 | fi
225 | insta powertop tlp tlp-rdw smartmontools ethtool
226 | sudo systemctl enable tlp.service
227 | sudo systemctl enable NetworkManager-dispatcher.service
228 | sudo systemctl mask systemd-rfkill.service systemd-rfkill.socket
229 | cd $HOME
230 | git clone https://github.com/AdnanHodzic/auto-cpufreq.git
231 | cd auto-cpufreq && sudo ./auto-cpufreq-installer
232 | cd ..
233 | rm -rf auto-cpufreq
234 | sudo auto-cpufreq --install
235 | flatpak_in_lib
236 | flatpak install --or-update -y com.github.d4nj1.tlpui --system
237 | local title="$msg006"
238 | local msg="$msg036"
239 | _msgbox_
240 | fi
241 |
242 | }
243 |
244 | # install linux-cachyos optimized kernel
245 | kernel_in () {
246 |
247 | if [ "$ID" == "cachyos" ]; then
248 | local title="$msg030"
249 | local msg="$msg077"
250 | _msgbox_
251 | else
252 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
253 | # summon installer
254 | if whiptail --title "CachyOS Kernel" --yesno "$msg150" 12 78; then
255 | bash <(curl -s https://raw.githubusercontent.com/psygreg/linux-cachyos-deb/refs/heads/master/linuxtoys/cachyos-deb.sh) -s
256 | else
257 | bash <(curl -s https://raw.githubusercontent.com/psygreg/linux-cachyos-deb/refs/heads/master/linuxtoys/cachyos-deb.sh)
258 | fi
259 | # clean old kernels
260 | dpkg --list | grep -v $(uname -r) | grep -E 'linux-image-[0-9]|linux-headers-[0-9]' | awk '{print $2" "$3}' | sort -k2,2 | head -n -2 | awk '{print $1}' | xargs sudo apt purge
261 | dpkg --list | grep -v $(uname -r) | grep -E 'custom-kernel-[0-9]|custom-kernel-headers-[0-9]' | awk '{print $2" "$3}' | sort -k2,2 | head -n -2 | awk '{print $1}' | xargs sudo apt purge
262 | local title="$msg006"
263 | local msg="$msg036"
264 | _msgbox_
265 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [ "$ID" == "fedora" ]; then
266 | kernel_menu
267 | elif [ "$ID" == "arch" ] || [[ "$ID_LIKE" == *arch* ]]; then
268 | chaotic_aur_lib
269 | insta linux-cachyos linux-cachyos-headers
270 | if command -v dracut >/dev/null 2>&1; then
271 | sudo dracut -f --regenerate-all
272 | elif command -v mkinitcpio >/dev/null 2>&1; then
273 | sudo mkinitcpio -P
274 | fi
275 | sudo grub-mkconfig -o /boot/grub/grub.cfg
276 | local title="$msg006"
277 | local msg="$msg036"
278 | _msgbox_
279 | else
280 | local title="$msg074"
281 | local msg="$msg077"
282 | _msgbox_
283 | fi
284 | fi
285 |
286 | }
287 |
288 | # CachyOS kernel for Fedora
289 | kernel_compat () {
290 |
291 | sudo dnf copr enable bieszczaders/kernel-cachyos
292 | sudo insta kernel-cachyos kernel-cachyos-devel-matched
293 | sudo setsebool -P domain_kernel_load_modules on
294 | sudo dracut -f --regenerate-all
295 | sudo grub2-mkconfig -o /boot/grub2/grub.cfg
296 | local title="$msg006"
297 | local msg="$msg036"
298 | _msgbox_
299 |
300 | }
301 |
302 | kernel_performance () {
303 |
304 | sudo dnf copr enable bieszczaders/kernel-cachyos-lto
305 | sudo insta kernel-cachyos-lto kernel-cachyos-lto-devel-matched
306 | sudo setsebool -P domain_kernel_load_modules on
307 | sudo dracut -f --regenerate-all
308 | sudo grub2-mkconfig -o /boot/grub2/grub.cfg
309 | local title="$msg006"
310 | local msg="$msg036"
311 | _msgbox_
312 |
313 | }
314 |
315 | kernel_menu () {
316 |
317 | while :; do
318 | CHOICE=$(whiptail --title "LinuxToys" --menu "$msg074" 25 78 16 \
319 | "0" "$msg075" \
320 | "1" "$msg076" \
321 | "2" "$msg070" 3>&1 1>&2 2>&3)
322 |
323 | exitstatus=$?
324 | if [ $exitstatus != 0 ]; then
325 | # Exit the script if the user presses Esc
326 | return
327 | fi
328 |
329 | case $CHOICE in
330 | 0) kernel_compat ;;
331 | 1) kernel_performance ;;
332 | 3 | q) break ;;
333 | *) echo "Invalid Option" ;;
334 | esac
335 | done
336 |
337 | }
338 |
339 | # runtime
340 | . /etc/os-release
341 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
342 | _lang_
343 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
344 | # extras menu
345 | while :; do
346 |
347 | CHOICE=$(whiptail --title "Extras Supermenu" --menu "LinuxToys ${current_ltver}" 25 78 16 \
348 | "0" "$msg044" \
349 | "1" "$msg045" \
350 | "2" "$msg046" \
351 | "3" "$msg048" \
352 | "4" "$msg055" \
353 | "5" "$msg177" \
354 | "6" "$msg057" \
355 | "7" "$msg081" \
356 | "8" "$msg079" \
357 | "9" "$msg078" \
358 | "10" "$msg053" \
359 | "11" "$msg059" 3>&1 1>&2 2>&3)
360 |
361 | exitstatus=$?
362 | if [ $exitstatus != 0 ]; then
363 | # Exit the script if the user presses Esc
364 | break
365 | fi
366 |
367 | case $CHOICE in
368 | 0) ufw_in ;;
369 | 1) swapfile_t ;;
370 | 2) flatpak_in ;;
371 | 3) lucidglyph_in ;;
372 | 4) grubtrfs_t ;;
373 | 5) psaver ;;
374 | 6) kernel_in ;;
375 | 7) suse_codecs ;;
376 | 8) fix_se_suse ;;
377 | 9) nvidia_in ;;
378 | 10) chaotic_aur_lib ;;
379 | 11 | q) break ;;
380 | *) echo "Invalid Option" ;;
381 | esac
382 | done
--------------------------------------------------------------------------------
/src/resources/supermenus/gsupermenu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # initialize variables for reboot status
4 | flatpak_run=""
5 | sboost_run=""
6 | dsplitm_run=""
7 | # supermenu checklist
8 | gsupermenu () {
9 |
10 | local steam_status=$([ "$_steam" = "steam" ] && echo "ON" || echo "OFF")
11 | local lutris_status=$([ "$_lutris" = "net.lutris.Lutris" ] && echo "ON" || echo "OFF")
12 | local heroic_status=$([ "$_heroic" = "com.heroicgameslauncher.hgl" ] && echo "ON" || echo "OFF")
13 | local pp_status=$([ "$_pp" = "com.vysp3r.ProtonPlus" ] && echo "ON" || echo "OFF")
14 | local stl_status=$([ "$_stl" = "com.valvesoftware.Steam.Utility.steamtinkerlaunch" ] && echo "ON" || echo "OFF")
15 | local sober_status=$([ "$_sobst" = "org.vinegarhq.Sober" ] && echo "ON" || echo "OFF")
16 | local disc_status=$([ "$_disc" = "com.discordapp.Discord" ] && echo "ON" || echo "OFF")
17 | local gmode_status=$([ "$_gmode" = "gamemode" ] && echo "ON" || echo "OFF")
18 | local gscope_status=$([ "$_gscope" = "gamescope" ] && echo "ON" || echo "OFF")
19 | local mhud_status=$([ "$_mhud" = "mangohud" ] && echo "ON" || echo "OFF")
20 | local govl_status=$([ "$_govl" = "goverlay" ] && echo "ON" || echo "OFF")
21 | local sboost_status=$([ "$_sboost" = "yes" ] && echo "ON" || echo "OFF")
22 | local dsplitm_status=$([ "$_dsplitm" = "yes" ] && echo "ON" || echo "OFF")
23 | local wivrn_status=$([ "$_wivrn" = "io.github.wivrn.wivrn" ] && echo "ON" || echo "OFF")
24 | local steer_status=$([ "$_steer" = "io.github.berarma.Oversteer" ] && echo "ON" || echo "OFF")
25 | local gfn_status=$([ "$_gfn" = "yes" ] && echo "ON" || echo "OFF")
26 | local mcbe_status=$([ "$_mcbe" = "io.mrarm.mcpelauncher" ] && echo "ON" || echo "OFF")
27 | local runner_status=$([ "$_runner" = "runners" ] && echo "ON" || echo "OFF")
28 |
29 | while :; do
30 |
31 | local selection
32 | selection=$(whiptail --title "$msg131" --checklist \
33 | "$msg131" 20 78 15 \
34 | "Steam" "$msg109" $steam_status \
35 | "Lutris" "$msg110" $lutris_status \
36 | "Heroic Games Launcher" "$msg111" $heroic_status \
37 | "ProtonPlus" "$msg112" $pp_status \
38 | "SteamTinkerLaunch" "$msg113" $stl_status \
39 | "Sober" "$msg114" $sober_status \
40 | "Bedrock Launcher" "$msg160" $mcbe_status \
41 | "Discord" "$msg130" $disc_status \
42 | "Gamemode" "$msg115" $gmode_status \
43 | "Gamescope" "$msg116" $gscope_status \
44 | "Mangohud" "$msg117" $mhud_status \
45 | "GOverlay" "$msg118" $govl_status \
46 | "GeForce NOW" "$msg152" $gfn_status \
47 | "Shader Booster" "$msg119" $sboost_status \
48 | "Disable SLM" "$msg041" $dsplitm_status \
49 | "Oversteer" "$msg145" $steer_status \
50 | "WiVRn" "$msg144" $wivrn_status \
51 | "Wine" "$msg156" $runner_status \
52 | 3>&1 1>&2 2>&3)
53 |
54 | exitstatus=$?
55 | if [ $exitstatus != 0 ]; then
56 | # Exit the script if the user presses Esc
57 | break
58 | fi
59 |
60 | [[ "$selection" == *"Steam"* ]] && _steam="steam" || _steam=""
61 | [[ "$selection" == *"Lutris"* ]] && _lutris="net.lutris.Lutris" || _lutris=""
62 | [[ "$selection" == *"Heroic Games Launcher"* ]] && _heroic="com.heroicgameslauncher.hgl" || _heroic=""
63 | [[ "$selection" == *"ProtonPlus"* ]] && _pp="com.vysp3r.ProtonPlus" || _pp=""
64 | [[ "$selection" == *"SteamTinkerLaunch"* ]] && _stl="com.valvesoftware.Steam.Utility.steamtinkerlaunch" || _stl=""
65 | [[ "$selection" == *"Sober"* ]] && _sobst="org.vinegarhq.Sober" || _sobst=""
66 | [[ "$selection" == *"Bedrock Launcher"* ]] && _mcbe="io.mrarm.mcpelauncher" || _mcbe=""
67 | [[ "$selection" == *"Discord"* ]] && _disc="com.discordapp.Discord" || _gmode=""
68 | [[ "$selection" == *"Gamemode"* ]] && _gmode="gamemode" || _gmode=""
69 | [[ "$selection" == *"Gamescope"* ]] && _gscope="gamescope" || _gscope=""
70 | [[ "$selection" == *"Mangohud"* ]] && _mhud="mangohud" || _mhud=""
71 | [[ "$selection" == *"GOverlay"* ]] && _govl="goverlay" || _govl=""
72 | [[ "$selection" == *"Shader Booster"* ]] && _sboost="yes" || _sboost=""
73 | [[ "$selection" == *"Disable SLM"* ]] && _dsplitm="yes" || _dsplitm=""
74 | [[ "$selection" == *"WiVRn"* ]] && _wivrn="io.github.wivrn.wivrn" || _wivrn=""
75 | [[ "$selection" == *"Oversteer"* ]] && _steer="io.github.berarma.Oversteer" || _steer=""
76 | [[ "$selection" == *"GeForce NOW"* ]] && _gfn="yes" || _gfn=""
77 | [[ "$selection" == *"Wine"* ]] && _runner="runners" || _runner=""
78 |
79 | install_flatpak
80 | install_native
81 | sboost_t
82 | dsplitm_t
83 | runners_t
84 | if [[ -n "$flatpak_run" || -n "$dsplitm_run" || -n "$sboost_run" ]]; then
85 | local title="$msg006"
86 | local msg="$msg036"
87 | _msgbox_
88 | else
89 | local title="$msg006"
90 | local msg="$msg018"
91 | _msgbox_
92 | fi
93 |
94 | done
95 |
96 | }
97 |
98 | # installer functions
99 | # native packages
100 | install_native () {
101 |
102 | local _packages=($_steam $_gmode $_govl $_gscope $_mhud)
103 | if [[ -n "$_packages" ]]; then
104 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
105 | if [[ -n "$_steam" ]]; then
106 | cd $HOME
107 | wget https://cdn.fastly.steamstatic.com/client/installer/steam.deb
108 | sudo dpkg -i steam.deb
109 | rm steam.deb
110 | fi
111 | fi
112 | if [[ -n "$_gscope" ]]; then
113 | if command -v flatpak &> /dev/null; then
114 | flatpak install --or-update --system -y org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
115 | fi
116 | fi
117 | if [[ -n "$_mhud" ]]; then
118 | if command -v flatpak &> /dev/null; then
119 | flatpak install --or-update --system -y org.freedesktop.Platform.VulkanLayer.MangoHud
120 | fi
121 | fi
122 | fi
123 | _install_
124 |
125 | }
126 |
127 | # flatpak packages
128 | install_flatpak () {
129 |
130 | local _flatpaks=($_lutris $_heroic $_pp $_stl $_sobst $_disc $_wivrn $_steer $_mcbe)
131 | if [[ -n "$_flatpaks" ]] || [[ -n "$_steam" ]] || [[ -n "$_gfn" ]]; then
132 | if command -v flatpak &> /dev/null; then
133 | _flatpak_
134 | if [[ -n "$_steam" ]]; then
135 | flatpak install --or-update -u -y com.valvesoftware.Steam
136 | sed -i 's/^Name=Steam$/Name=Steam (Flatpak)/' "$HOME/.local/share/applications/com.valvesoftware.Steam.desktop"
137 | fi
138 | if [[ -n "$_gfn" ]]; then
139 | flatpak remote-add --user --if-not-exists GeForceNOW
140 | flatpak install -y --user GeForceNOW com.nvidia.geforcenow
141 | fi
142 | if [[ -n "$_steer" ]]; then
143 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-fanatec-wheel-perms.rules -P /etc/udev/rules.d
144 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-logitech-wheel-perms.rules -P /etc/udev/rules.d
145 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-thrustmaster-wheel-perms.rules -P /etc/udev/rules.d
146 | local title="Oversteer"
147 | local msg="$msg146"
148 | _msgbox_
149 | xdg-open https://github.com/berarma/oversteer?tab=readme-ov-file#supported-devices
150 | fi
151 | if [[ -n "$_mcbe" ]]; then
152 | local title="Bedrock Launcher"
153 | local msg="$msg161"
154 | _msgbox_
155 | fi
156 | else
157 | if whiptail --title "$msg006" --yesno "$msg085" 8 78; then
158 | flatpak_run="1"
159 | flatpak_in_lib
160 | _flatpak_
161 | if [[ -n "$_steam" ]]; then
162 | flatpak install --or-update -u -y com.valvesoftware.Steam
163 | sed -i 's/^Name=Steam$/Name=Steam (Flatpak)/' "$HOME/.local/share/applications/com.valvesoftware.Steam.desktop"
164 | fi
165 | if [[ -n "$_gfn" ]]; then
166 | flatpak remote-add --user --if-not-exists GeForceNOW
167 | flatpak install -y --user GeForceNOW com.nvidia.geforcenow
168 | fi
169 | if [[ -n "$_steer" ]]; then
170 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-fanatec-wheel-perms.rules -P /etc/udev/rules.d
171 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-logitech-wheel-perms.rules -P /etc/udev/rules.d
172 | sudo wget https://github.com/berarma/oversteer/raw/refs/heads/master/data/udev/99-thrustmaster-wheel-perms.rules -P /etc/udev/rules.d
173 | local title="Oversteer"
174 | local msg="$msg146"
175 | _msgbox_
176 | xdg-open https://github.com/berarma/oversteer?tab=readme-ov-file#supported-devices
177 | fi
178 | if [[ -n "$_mcbe" ]]; then
179 | local title="Bedrock Launcher"
180 | local msg="$msg161"
181 | _msgbox_
182 | fi
183 | else
184 | local title="$msg030"
185 | local msg="$msg132"
186 | _msgbox_
187 | fi
188 | fi
189 | fi
190 |
191 | }
192 |
193 | # shader booster
194 | sboost_t () {
195 |
196 | if [[ -n "$_sboost" ]]; then
197 | cd $HOME
198 | sboost_run="1"
199 | if [ "$ID" == "cachyos" ]; then
200 | wget https://github.com/psygreg/shader-booster/releases/latest/download/patcher-cachy.fish
201 | chmod +x patcher-cachy.fish
202 | fish ./patcher-cachy.fish
203 | rm patcher-cachy.fish
204 | else
205 | wget https://github.com/psygreg/shader-booster/releases/latest/download/patcher.sh
206 | chmod +x patcher.sh
207 | ./patcher.sh
208 | rm patcher.sh
209 | fi
210 | fi
211 |
212 | }
213 |
214 | # split lock mitigation disabler
215 | dsplitm_t () {
216 |
217 | if [[ -n "$_dsplitm" ]]; then
218 | dsplitm_run="1"
219 | if [ ! -f /etc/sysctl.d/99-splitlock.conf ]; then
220 | echo 'kernel.split_lock_mitigate=0' | sudo tee /etc/sysctl.d/99-splitlock.conf >/dev/null
221 | local title="$msg041"
222 | local msg="$msg022"
223 | _msgbox_
224 | else
225 | local title="$msg041"
226 | local msg="$msg043"
227 | _msgbox_
228 | fi
229 | fi
230 |
231 | }
232 |
233 | # custom runners
234 | runners_t () {
235 |
236 | if [[ -n "$_runner" ]]; then
237 | local subscript="$_runner"
238 | _invoke_
239 | fi
240 |
241 | }
242 |
243 | # runtime
244 | . /etc/os-release
245 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
246 | _lang_
247 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
248 | gsupermenu
--------------------------------------------------------------------------------
/src/resources/supermenus/osupermenu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # initialize variables for reboot status
4 | flatpak_run=""
5 | # supermenu checklist
6 | osupermenu () {
7 |
8 | local oofice_status=$([ "$_oofice" = "org.onlyoffice.desktopeditors" ] && echo "ON" || echo "OFF")
9 | local msteams_status=$([ "$_msteams" = "com.github.IsmaelMartinez.teams_for_linux" ] && echo "ON" || echo "OFF")
10 | local anyd_status=$([ "$_anyd" = "com.anydesk.Anydesk" ] && echo "ON" || echo "OFF")
11 | local slck_status=$([ "$_slck" = "com.slack.Slack" ] && echo "ON" || echo "OFF")
12 | local notion_status=$([ "$_notion" = "io.github.brunofin.Cohesion" ] && echo "ON" || echo "OFF")
13 | local gimp_status=$([ "$_gimp" = "org.gimp.GIMP" ] && echo "ON" || echo "OFF")
14 | local inksc_status=$([ "$_inksc" = "org.inkscape.Inkscape" ] && echo "ON" || echo "OFF")
15 | local fcad_status=$([ "$_fcad" = "org.freecad.FreeCAD" ] && echo "ON" || echo "OFF")
16 | local drslv_status=$([ "$_drslv" = "yes" ] && echo "ON" || echo "OFF")
17 | local blender_status=$([ "$_blender" = "org.blender.Blender" ] && echo "ON" || echo "OFF")
18 | local fial_status=$([ "$_fial" = "yes" ] && echo "ON" || echo "OFF")
19 | local chrome_status=$([ "$_chrome" = "com.google.Chrome" ] && echo "ON" || echo "OFF")
20 | local zen_status=$([ "$_zen" = "app.zen_browser.zen" ] && echo "ON" || echo "OFF")
21 | local drktb_status=$([ "$_drktb" = "org.darktable.Darktable" ] && echo "ON" || echo "OFF")
22 | local foli_status=$([ "$_foli" = "com.github.johnfactotum.Foliate" ] && echo "ON" || echo "OFF")
23 |
24 | while :; do
25 |
26 | local selection
27 | selection=$(whiptail --title "$msg131" --checklist \
28 | "$msg131" 20 78 15 \
29 | "Zen" "$msg128" $zen_status \
30 | "Chrome" "$msg129" $chrome_status \
31 | "Onlyoffice" "$msg099" $oofice_status \
32 | "Foliate" "$msg149" $foli_status \
33 | "MS Teams" "$msg100" $msteams_status \
34 | "Anydesk" "$msg101" $anyd_status \
35 | "Slack" "$msg102" $slck_status \
36 | "Cohesion" "$msg103" $notion_status \
37 | "Darktable" "$msg148" $drktb_status \
38 | "GIMP" "$msg104" $gimp_status \
39 | "Inkscape" "$msg105" $inksc_status \
40 | "FreeCAD" "$msg106" $fcad_status \
41 | "Blender" "$msg159" $blender_status \
42 | "DaVinci Resolve" "$msg107" $drslv_status \
43 | "FireAlpaca" "$msg108" $fial_status \
44 | 3>&1 1>&2 2>&3)
45 |
46 | exitstatus=$?
47 | if [ $exitstatus != 0 ]; then
48 | # Exit the script if the user presses Esc
49 | break
50 | fi
51 |
52 | [[ "$selection" == *"Onlyoffice"* ]] && _oofice="org.onlyoffice.desktopeditors" || _oofice=""
53 | [[ "$selection" == *"MS Teams"* ]] && _msteams="com.github.IsmaelMartinez.teams_for_linux" || _msteams=""
54 | [[ "$selection" == *"Anydesk"* ]] && _anyd="com.anydesk.Anydesk" || _anyd=""
55 | [[ "$selection" == *"Slack"* ]] && _slck="com.slack.Slack" || _slck=""
56 | [[ "$selection" == *"Cohesion"* ]] && _notion="io.github.brunofin.Cohesion" || _notion=""
57 | [[ "$selection" == *"Darktable"* ]] && _drktb="org.darktable.Darktable" || _drktb=""
58 | [[ "$selection" == *"GIMP"* ]] && _gimp="org.gimp.GIMP" || _gimp=""
59 | [[ "$selection" == *"Inkscape"* ]] && _inksc="org.inkscape.Inkscape" || _inksc=""
60 | [[ "$selection" == *"FreeCAD"* ]] && _fcad="org.freecad.FreeCAD" || _fcad=""
61 | [[ "$selection" == *"DaVinci Resolve"* ]] && _drslv="yes" || _drslv=""
62 | [[ "$selection" == *"Blender"* ]] && _blender="org.blender.Blender" || _blender=""
63 | [[ "$selection" == *"FireAlpaca"* ]] && _fial="yes" || _fial=""
64 | [[ "$selection" == *"Chrome"* ]] && _chrome="com.google.Chrome" || _chrome=""
65 | [[ "$selection" == *"Zen"* ]] && _zen="app.zen_browser.zen" || _zen=""
66 | [[ "$selection" == *"Foliate"* ]] && _foli="com.github.johnfactotum.Foliate" || _foli=""
67 |
68 | install_flatpak
69 | install_native
70 | if [[ -n "$flatpak_run" ]]; then
71 | local title="$msg006"
72 | local msg="$msg036"
73 | _msgbox_
74 | else
75 | local title="$msg006"
76 | local msg="$msg018"
77 | _msgbox_
78 | fi
79 |
80 | done
81 |
82 | }
83 |
84 | # installer functions
85 | # native packages
86 | install_native () {
87 |
88 | local _packages=($_drslv $_fial)
89 | cd $HOME
90 | if [[ -n "$_packages" ]]; then
91 | if [[ -n "$_drslv" ]]; then
92 | local title="$msg006"
93 | local msg="$msg034"
94 | _msgbox_
95 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
96 | wget https://raw.githubusercontent.com/psygreg/autoresolvedeb/refs/heads/main/linuxtoys/autoresolvedeb.sh
97 | chmod +x autoresolvedeb.sh
98 | ./autoresolvedeb.sh
99 | rm autoresolvedeb.sh
100 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
101 | wget https://raw.githubusercontent.com/psygreg/autoresolvedeb/refs/heads/main/linuxtoys/autoresolvepkg.sh
102 | chmod +x autoresolvepkg.sh
103 | ./autoresolvepkg.sh
104 | rm autoresolvepkg.sh
105 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [ "$ID" = "fedora" ]; then
106 | wget https://raw.githubusercontent.com/psygreg/autoresolvedeb/refs/heads/main/linuxtoys/autoresolverpm.sh
107 | chmod +x autoresolverpm.sh
108 | ./autoresolverpm.sh
109 | rm autoresolverpm.sh
110 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
111 | wget https://raw.githubusercontent.com/psygreg/autoresolvedeb/refs/heads/main/linuxtoys/autoresolverpm.sh
112 | chmod +x autoresolverpm.sh
113 | ./autoresolverpm.sh
114 | rm autoresolverpm.sh
115 | fi
116 | fi
117 | if [[ -n "$_fial" ]]; then
118 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
119 | wget https://github.com/psygreg/firealpaca-deb/releases/latest/download/installer.sh
120 | chmod +x installer.sh
121 | ./installer.sh
122 | rm installer.sh
123 | else
124 | local title="$msg030"
125 | local msg="$msg077"
126 | _msgbox_
127 | fi
128 | fi
129 | fi
130 | _install_
131 |
132 | }
133 |
134 | # flatpak packages
135 | install_flatpak () {
136 |
137 | local _flatpaks=($_oofice $_anyd $_fcad $_gimp $_inksc $_notion $_msteams $_slck $_chrome $_zen $_drktb $_foli $_blender)
138 | if [[ -n "$_flatpaks" ]]; then
139 | if command -v flatpak &> /dev/null; then
140 | _flatpak_
141 | else
142 | if whiptail --title "$msg006" --yesno "$msg085" 8 78; then
143 | flatpak_run="1"
144 | flatpak_in_lib
145 | _flatpak_
146 | else
147 | local title="$msg030"
148 | local msg="$msg132"
149 | _msgbox_
150 | fi
151 | fi
152 | fi
153 |
154 | }
155 |
156 | # runtime
157 | . /etc/os-release
158 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
159 | _lang_
160 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
161 | osupermenu
--------------------------------------------------------------------------------
/src/resources/supermenus/usupermenu.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # initialize variables for reboot status
4 | flatpak_run=""
5 | # supermenu checklist
6 | usupermenu () {
7 |
8 | local gsr_status=$([ "$_gsr" = "com.dec05eba.gpu_screen_recorder" ] && echo "ON" || echo "OFF")
9 | local obs_status=$([ "$_obs" = "com.obsproject.Studio" ] && echo "ON" || echo "OFF")
10 | local hndbrk_status=$([ "$_hndbrk" = "fr.handbrake.ghb" ] && echo "ON" || echo "OFF")
11 | local slar_status=$([ "$_slar" = "solaar" ] && echo "ON" || echo "OFF")
12 | local oprzr_status=$([ "$_oprzr" = "openrazer" ] && echo "ON" || echo "OFF")
13 | local oprgb_status=$([ "$_oprgb" = "org.openrgb.OpenRGB" ] && echo "ON" || echo "OFF")
14 | local btassist_status=$([ "$_btassist" = "btrfs-assistant" ] && echo "ON" || echo "OFF")
15 | local lact_status=$([ "$_lact" = "io.github.ilya_zlobintsev.LACT" ] && echo "ON" || echo "OFF")
16 | local droid_status=$([ "$_droid" = "waydroid" ] && echo "ON" || echo "OFF")
17 | local dckr_status=$([ "$_dckr" = "yes" ] && echo "ON" || echo "OFF")
18 | local rocm_status=$([ "$_rocm" = "yes" ] && echo "ON" || echo "OFF")
19 | local rcl_status=$([ "$_rcl" = "yes" ] && echo "ON" || echo "OFF")
20 | local fseal_status=$([ "$_fseal" = "com.github.tchx84.Flatseal" ] && echo "ON" || echo "OFF")
21 | local efx_status=$([ "$_efx" = "com.github.wwmm.easyeffects" ] && echo "ON" || echo "OFF")
22 | local sc_status=$([ "$_sc" = "com.core447.StreamController" ] && echo "ON" || echo "OFF")
23 |
24 | while :; do
25 |
26 | local selection
27 | selection=$(whiptail --title "$msg131" --checklist \
28 | "$msg131" 20 78 15 \
29 | "GPU Screen Recorder" "$msg086" $gsr_status \
30 | "OBS Studio" "Open Broadcaster Software" $obs_status \
31 | "HandBrake" "$msg087" $hndbrk_status \
32 | "Solaar" "$msg088" $slar_status \
33 | "OpenRazer" "$msg089" $oprzr_status \
34 | "StreamController" "$msg151" $sc_status \
35 | "OpenRGB" "$msg091" $oprgb_status \
36 | "Flatseal" "$msg133" $fseal_status \
37 | "Easy Effects" "$msg147" $efx_status \
38 | "btrfs-Assistant" "$msg092" $btassist_status \
39 | "LACT" "$msg093" $lact_status \
40 | "Waydroid" "$msg094" $droid_status \
41 | "Docker" "$msg095" $dckr_status \
42 | "Rusticl" "$msg158" $rcl_status \
43 | "ROCm" "$msg096" $rocm_status \
44 | 3>&1 1>&2 2>&3)
45 |
46 | exitstatus=$?
47 | if [ $exitstatus != 0 ]; then
48 | # Exit the script if the user presses Esc
49 | break
50 | fi
51 |
52 | [[ "$selection" == *"GPU Screen Recorder"* ]] && _gsr="com.dec05eba.gpu_screen_recorder" || _gsr=""
53 | [[ "$selection" == *"OBS Studio"* ]] && _obs="com.obsproject.Studio" || _obs=""
54 | [[ "$selection" == *"HandBrake"* ]] && _hndbrk="fr.handbrake.ghb" || _hndbrk=""
55 | [[ "$selection" == *"Solaar"* ]] && _slar="solaar" || _slar=""
56 | [[ "$selection" == *"OpenRazer"* ]] && _oprzr="openrazer" || _oprzr=""
57 | [[ "$selection" == *"OpenRGB"* ]] && _oprgb="org.openrgb.OpenRGB" || _oprgb=""
58 | [[ "$selection" == *"btrfs-Assistant"* ]] && _btassist="btrfs-assistant" || _btassist=""
59 | [[ "$selection" == *"LACT"* ]] && _lact="io.github.ilya_zlobintsev.LACT" || _lact=""
60 | [[ "$selection" == *"Waydroid"* ]] && _droid="waydroid" || _droid=""
61 | [[ "$selection" == *"Docker"* ]] && _dckr="yes" || _dckr=""
62 | [[ "$selection" == *"ROCm"* ]] && _rocm="yes" || _rocm=""
63 | [[ "$selection" == *"Rusticl"* ]] && _rcl="yes" || _rcl=""
64 | [[ "$selection" == *"Flatseal"* ]] && _fseal="com.github.tchx84.Flatseal" || _fseal=""
65 | [[ "$selection" == *"Easy Effects"* ]] && _efx="com.github.wwmm.easyeffects" || _efx=""
66 | [[ "$selection" == *"StreamController"* ]] && _sc="com.core447.StreamController" || _sc=""
67 |
68 | install_flatpak
69 | install_native
70 | if [[ -n "$flatpak_run" || -n "$_oprzr" || -n "$_rocm" ]]; then
71 | local title="$msg006"
72 | local msg="$msg036"
73 | _msgbox_
74 | else
75 | local title="$msg006"
76 | local msg="$msg018"
77 | _msgbox_
78 | fi
79 |
80 | done
81 |
82 | }
83 |
84 | # installer functions
85 | # native packages
86 | install_native () {
87 |
88 | if [ "$(findmnt -n -o FSTYPE /)" = "btrfs" ]; then
89 | local _packages=($_slar $_oprzr $_btassist $_droid $_dckr $_rocm)
90 | else
91 | local _packages=($_slar $_oprzr $_droid $_dckr $_rocm)
92 | fi
93 | if [[ -n "$_packages" ]]; then
94 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
95 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]]; then
96 | if [[ -n "$_slar" ]]; then
97 | sudo add-apt-repository ppa:solaar-unifying/stable
98 | sudo apt update
99 | fi
100 | fi
101 | if [[ -n "$_droid" ]]; then
102 | insta curl ca-certificates -y
103 | curl -s https://repo.waydro.id | sudo bash
104 | fi
105 | if [[ -n "$_dckr" ]]; then
106 | docker_t
107 | fi
108 | if [[ -n "$_rocm" ]]; then
109 | rocm_deb
110 | fi
111 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
112 | if [[ -n "$_btassist" ]]; then
113 | if whiptail --title "$msg006" --yesno "$msg035" 8 78; then
114 | chaotic_aur_lib
115 | else
116 | local title="$msg006"
117 | local msg="Skipping btrfs-assistant installation."
118 | _msgbox_
119 | fi
120 | fi
121 | if [[ -n "$_dckr" ]]; then
122 | docker_t
123 | fi
124 | if [[ -n "$_rocm" ]]; then
125 | rocm_arch
126 | fi
127 | for pak in "${_packages[@]}"; do
128 | if [[ "$pak" =~ (openrazer|yes) ]]; then
129 | insta openrazer-daemon
130 | fi
131 | insta $pak
132 | done
133 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
134 | if [[ -n "$_oprzr" ]]; then
135 | insta kernel-devel -y
136 | sudo dnf config-manager addrepo --from-repofile=https://openrazer.github.io/hardware:razer.repo
137 | insta openrazer-meta -y
138 | fi
139 | if [[ -n "$_dckr" ]]; then
140 | docker_t
141 | fi
142 | if [[ -n "$_rocm" ]]; then
143 | rocm_rpm
144 | fi
145 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
146 | if [[ -n "$_oprzr" ]]; then
147 | if grep -qi "slowroll" /etc/os-release; then
148 | sudo zypper addrepo https://download.opensuse.org/repositories/hardware:razer/openSUSE_Slowroll/hardware:razer.repo
149 | else
150 | sudo zypper addrepo https://download.opensuse.org/repositories/hardware:razer/openSUSE_Tumbleweed/hardware:razer.repo
151 | fi
152 | sudo zypper refresh
153 | insta openrazer-meta
154 | fi
155 | if [[ -n "$_dckr" ]]; then
156 | docker_t
157 | fi
158 | if [[ -n "$_rocm" ]]; then
159 | rocm_rpm
160 | fi
161 | if [[ -n "$_droid" ]]; then
162 | local title="Waydroid"
163 | local msg="$msg097"
164 | _msgbox_
165 | fi
166 | fi
167 | fi
168 | _install_
169 |
170 | }
171 |
172 | # rusticl installation
173 | rusticl_in () {
174 |
175 | if [[ -n "$_rcl" ]]; then
176 | if [[ "$ID_LIKE" =~ (ubuntu|debian) ]] || [ "$ID" == "debian" ]; then
177 | insta mesa-opencl-icd clinfo
178 | elif [[ "$ID_LIKE" =~ (rhel|fedora) ]] || [[ "$ID" =~ (fedora) ]]; then
179 | insta mesa-libOpenCL clinfo
180 | elif [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
181 | insta Mesa-libRusticlOpenCL clinfo
182 | elif [[ "$ID" =~ ^(arch|cachyos)$ ]] || [[ "$ID_LIKE" == *arch* ]]; then
183 | insta opencl-mesa clinfo
184 | fi
185 | local GPU=$(lspci | grep -Ei 'vga|3d' | grep -Ei 'amd|ati|radeon|amdgpu')
186 | if [[ -n "$GPU" ]]; then
187 | curl -sL https://raw.githubusercontent.com/psygreg/linuxtoys/main/src/resources/subscripts/rusticl-amd \
188 | | sudo tee -a /etc/environment > /dev/null
189 | else
190 | local GPU=$(lspci | grep -Ei 'vga|3d' | grep -Ei 'intel')
191 | if [[ -n "$GPU" ]]; then
192 | curl -sL https://raw.githubusercontent.com/psygreg/linuxtoys/main/src/resources/subscripts/rusticl-intel \
193 | | sudo tee -a /etc/environment > /dev/null
194 | fi
195 | fi
196 | fi
197 |
198 | }
199 |
200 | # obs pipewire audio capture plugin installation
201 | obs_pipe () {
202 |
203 | local title="$msg006"
204 | local msg="$msg098"
205 | _msgbox_
206 | local subscript="pipewire-obs"
207 | _invoke_
208 |
209 | }
210 |
211 | # docker + portainer CE setup
212 | docker_t () {
213 |
214 | cd $HOME
215 | local subscript="docker-installer"
216 | _invoke_
217 |
218 | }
219 |
220 | # ROCm installer setups
221 | rocm_rpm () {
222 |
223 | local GPU=$(lspci | grep -i 'radeon .*')
224 | if [[ -n "$GPU" ]]; then
225 | local _packages=()
226 | if [ "$ID_LIKE" == "suse" ] || [ "$ID" == "suse" ]; then
227 | _packages=(libamd_comgr2 libhsa-runtime64-1 librccl1 librocalution0 librocblas4 librocfft0 librocm_smi64_1 librocsolver0 librocsparse1 rocm-device-libs rocm-smi rocminfo hipcc libhiprand1 libhiprtc-builtins5 radeontop rocm-opencl ocl-icd clinfo)
228 | else
229 | _packages=(rocm-comgr rocm-runtime rccl rocalution rocblas rocfft rocm-smi rocsolver rocsparse rocm-device-libs rocminfo rocm-hip hiprand hiprtc radeontop rocm-opencl ocl-icd clinfo)
230 | fi
231 | _install_
232 | sudo usermod -aG render,video $USER
233 | else
234 | local title="$msg039"
235 | local msg="$msg040"
236 | _msgbox_
237 | fi
238 |
239 | }
240 |
241 | rocm_deb () {
242 |
243 | local GPU=$(lspci | grep -i 'radeon .*')
244 | if [[ -n "$GPU" ]]; then
245 | local _packages=(libamd-comgr2 libhsa-runtime64-1 librccl1 librocalution0 librocblas0 librocfft0 librocm-smi64-1 librocsolver0 librocsparse0 rocm-device-libs-17 rocm-smi rocminfo hipcc libhiprand1 libhiprtc-builtins5 radeontop rocm-opencl-icd ocl-icd-libopencl1 clinfo)
246 | _install_
247 | sudo usermod -aG render,video $USER
248 | else
249 | local title="$msg039"
250 | local msg="$msg040"
251 | _msgbox_
252 | fi
253 |
254 | }
255 |
256 | rocm_arch () {
257 |
258 | local GPU=$(lspci | grep -i 'radeon .*')
259 | if [[ -n "$GPU" ]]; then
260 | local _packages=(comgr hsa-rocr rccl rocalution rocblas rocfft rocm-smi-lib rocsolver rocsparse rocm-device-libs rocm-smi-lib rocminfo hipcc hiprand hip-runtime-amd radeontop rocm-opencl-runtime ocl-icd clinfo)
261 | _install_
262 | sudo usermod -aG render,video $USER
263 | else
264 | local title="$msg039"
265 | local msg="$msg040"
266 | _msgbox_
267 | fi
268 |
269 | }
270 |
271 | # flatpak packages
272 | install_flatpak () {
273 |
274 | local _flatpaks=($_obs $_hndbrk $_lact $_oprgb $_fseal $_sc)
275 | if [[ -n "$_flatpaks" ]]; then
276 | if command -v flatpak &> /dev/null; then
277 | _flatpak_
278 | if [[ -n "$_hndbrk" ]]; then
279 | if lspci | grep -iE 'vga|3d' | grep -iq 'intel'; then
280 | flatpak install --or-update -y fr.handbrake.ghb.Plugin.IntelMediaSDK --system
281 | fi
282 | fi
283 | if [[ -n "$_oprgb" ]]; then
284 | cd $HOME
285 | wget https://openrgb.org/releases/release_0.9/60-openrgb.rules
286 | sudo cp 60-openrgb.rules /usr/lib/udev/rules.d/
287 | sudo udevadm control --reload-rules && sudo udevadm trigger
288 | fi
289 | if [[ -n "$_efx" ]] && ( rpm -qi "pipewire" 2>/dev/null 1>&2 || pacman -Qi "pipewire" 2>/dev/null 1>&2 || dpkg -s "pipewire" 2>/dev/null 1>&2 ); then
290 | flatpak install --or-update -y $_efx --system
291 | fi
292 | if [[ -n "$_gsr" ]]; then
293 | flatpak install --or-update -y $_gsr --system
294 | fi
295 | if [[ -n "$_obs" ]] && ( rpm -qi "pipewire" 2>/dev/null 1>&2 || pacman -Qi "pipewire" 2>/dev/null 1>&2 || dpkg -s "pipewire" 2>/dev/null 1>&2 ); then
296 | obs_pipe
297 | fi
298 | else
299 | if whiptail --title "$msg006" --yesno "$msg085" 8 78; then
300 | flatpak_run="1"
301 | flatpak_in_lib
302 | _flatpak_
303 | if [[ -n "$_hndbrk" ]]; then
304 | if lspci | grep -iE 'vga|3d' | grep -iq 'intel'; then
305 | flatpak install --or-update -y fr.handbrake.ghb.Plugin.IntelMediaSDK --system
306 | fi
307 | fi
308 | if [[ -n "$_oprgb" ]]; then
309 | cd $HOME
310 | wget https://openrgb.org/releases/release_0.9/60-openrgb.rules
311 | sudo cp 60-openrgb.rules /usr/lib/udev/rules.d/
312 | sudo udevadm control --reload-rules && sudo udevadm trigger
313 | fi
314 | if [[ -n "$_efx" ]] && ( rpm -qi "pipewire" 2>/dev/null 1>&2 || pacman -Qi "pipewire" 2>/dev/null 1>&2 || dpkg -s "pipewire" 2>/dev/null 1>&2 ); then
315 | flatpak install --or-update -y $_efx --system
316 | fi
317 | if [[ -n "$_gsr" ]]; then
318 | flatpak install --or-update -y $_gsr --system
319 | fi
320 | if [[ -n "$_obs" ]] && ( rpm -qi "pipewire" 2>/dev/null 1>&2 || pacman -Qi "pipewire" 2>/dev/null 1>&2 || dpkg -s "pipewire" 2>/dev/null 1>&2 ); then
321 | obs_pipe
322 | fi
323 | else
324 | local title="$msg030"
325 | local msg="$msg132"
326 | _msgbox_
327 | fi
328 | fi
329 | fi
330 |
331 | }
332 |
333 | # runtime
334 | . /etc/os-release
335 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/linuxtoys.lib)
336 | _lang_
337 | source <(curl -s https://raw.githubusercontent.com/psygreg/linuxtoys/refs/heads/main/src/lang/${langfile})
338 | usupermenu
--------------------------------------------------------------------------------
/src/scrnshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/psygreg/linuxtoys/019a03f8ed177f100261651077a7475fba2c607c/src/scrnshot.png
--------------------------------------------------------------------------------
/src/ver:
--------------------------------------------------------------------------------
1 | 2.1.6
--------------------------------------------------------------------------------