├── .github
├── FUNDING.yml
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── .gitignore
├── .travis.yml
├── CREDITS.md
├── LICENSE
├── LICENSE-COLORTHIEF
├── MANIFEST.in
├── README.md
├── azote
├── __about__.py
├── __init__.py
├── color_tools.py
├── colorthief.py
├── common.py
├── images
│ ├── azote-wallpaper.png
│ ├── azote-wallpaper1.jpg
│ ├── azote-wallpaper2.png
│ ├── azote.svg
│ ├── empty.png
│ ├── icon.svg
│ ├── icon_about.svg
│ ├── icon_all.svg
│ ├── icon_apply.svg
│ ├── icon_az.svg
│ ├── icon_config.svg
│ ├── icon_flip.svg
│ ├── icon_image_menu.svg
│ ├── icon_menu.svg
│ ├── icon_new.svg
│ ├── icon_old.svg
│ ├── icon_picker.svg
│ ├── icon_refresh.svg
│ ├── icon_split.svg
│ ├── icon_za.svg
│ ├── nwg-shell-sgs.png
│ └── squares.jpg
├── langs
│ ├── cs_CZ.json
│ ├── de_DE.json
│ ├── en_US.json
│ ├── fr_FR.json
│ ├── it_IT.json
│ ├── pl_PL.json
│ ├── pt_BR.json
│ ├── ru_RU.json
│ └── tr_TR.json
├── main.py
├── plugins.py
└── tools.py
├── dist
├── azote.desktop
├── azote.svg
├── indicator_active.png
└── indicator_attention.png
├── install.sh
└── setup.py
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: nwg-piotr
2 | liberapay: nwg
3 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - Linux distribution: [e.g. Arch, Void]
28 | - WM: [e.g. sway, i3]
29 |
30 | **Azote version (please state it clearly if you use -git version):**
31 | - version number from the "About" window
32 |
33 | **Additional context**
34 | Add any other context about the problem here.
35 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea
2 | .vscode
3 | /venv
4 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: python
2 | python:
3 | - "3.8"
4 | - "3.9"
5 |
6 | add-ons:
7 | apt:
8 | packages:
9 | - python3-all
10 | - python3-setuptools
11 |
12 | script: python3 setup.py install --optimize=1
13 |
--------------------------------------------------------------------------------
/CREDITS.md:
--------------------------------------------------------------------------------
1 | # Credits
2 |
3 | ## colorthief
4 |
5 | To generate color palettes, Azote uses the awesome [colorthief](https://github.com/fengsp/color-thief-py) python
6 | module (c) 2015 by Shipeng Feng. The module in version 2.0.1 has been included directly into the Azote package, as the
7 | `python-colorthief` package it's still absent in repositories of most Linux distributions.
8 |
9 | ## Colour names dictionary
10 |
11 | Credits go to [Wikipedia](https://en.wikipedia.org/wiki/List_of_colors_(compact).
12 |
13 | ## Dependencies
14 |
15 | - [swaybg](https://github.com/swaywm/swaybg) (c) 2016-2019 Drew DeVault
16 | - [feh](https://feh.finalrewind.org) (c) 1999,2000 Tom Gilbert, 2010-2018 Daniel Friesel
17 | - [python-pillow](https://python-pillow.github.io) (c) 1995-2011, Fredrik Lundh, 2010-2019 Alex Clark and Contributors'
18 | - [python-gobject](https://wiki.gnome.org/Projects/PyGObject) (c) 2005-2019 The GNOME Project
19 | - [gtk3](https://www.gtk.org) (c) 2007-2019 The GTK Team
20 | - [python-xlib](https://github.com/python-xlib/python-xlib) (c) 2000-2002 Peter Liljenberg
21 | - optional [python-send2trash](https://github.com/hsoft/send2trash) - for trash support
22 | - optional [grim](https://github.com/emersion/grim), [slurp](https://github.com/emersion/slurp) - for screen color picker on Sway
23 | - optional [maim](https://github.com/naelstrof/maim), [slop](https://github.com/naelstrof/slop) - for screen color picker on X11
24 | - optional [imagemagick](https://imagemagick.org) - for screen color picker
25 | - optional [python-yaml](https://pyyaml.org/wiki/PyYAML) - for alacritty.yml toolbox
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/LICENSE-COLORTHIEF:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 by Shipeng Feng.
2 |
3 | Some rights reserved.
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are
7 | met:
8 |
9 | * Redistributions of source code must retain the above copyright
10 | notice, this list of conditions and the following disclaimer.
11 |
12 | * Redistributions in binary form must reproduce the above
13 | copyright notice, this list of conditions and the following
14 | disclaimer in the documentation and/or other materials provided
15 | with the distribution.
16 |
17 | * The names of the contributors may not be used to endorse or
18 | promote products derived from this software without specific
19 | prior written permission.
20 |
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 |
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | recursive-include azote/images *
2 | recursive-include azote/langs *
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
Azote
3 |
4 | This application is a part of the [nwg-shell](https://nwg-piotr.github.io/nwg-shell) project.
5 |
6 | **Azote** is a GTK+3 - based picture browser and background setter, as the frontend to the [swaybg](https://github.com/swaywm/swaybg)
7 | (sway/Wayland) and [feh](https://feh.finalrewind.org) (X windows) commands. The user interface is being developed with
8 | multi-headed setups in mind. Azote also includes several colour management tools.
9 |
10 | [](https://repology.org/project/azote/versions)
11 |
12 | The program, written primarily for sway, should work on all wlroots-based Wayland compositors, as well as on
13 | some X11 window managers. GNOME is not supported.
14 |
15 | Azote relies on numerous external packages. Some of them determine if the program is capable of working in a certain
16 | environment (sway / another wlroots-based compositor / X11). It's **up to the packager** which of them come preinstalled.
17 | It's recommendable to first run `azote` from terminal:
18 |
19 | - if one of missing packages disallows Azote to work at all (e.g. `python-xlib` or `feh` on X11, `wlr-randr` or
20 | `swaybg` on Wayfire), the program will display a message and terminate with exit code 1.
21 |
22 | - If a missing dependency just stops some feature from working, Azote will display a message and start normally.
23 |
24 | ```text
25 | $ azote
26 | python-send2trash package not found - deleting pictures unavailable
27 | Running on Wayland, but not sway
28 | Available screen height: 1030 px; measurement delay: 5 ms
29 | ```
30 |
31 |
32 |
33 | ## Project assumptions
34 |
35 | The most commonly used *desktop background browser and setter* is aimed at X windows, and does not work with
36 | wlroots-based compositors. Since the `swaybg` command does everything we may need, it's enough to give it a GUI.
37 | In order not to limit the program usage to the single environment, Azote is also capable of using feh
38 | when running on i3, Openbox or other X11 window managers.
39 |
40 | *The description below takes into account the current `master` branch. All the features may or may not be available in the
41 | package already released for a certain Linux distribution. Some features rely on
42 | [optional dependencies](https://github.com/nwg-piotr/azote#dependencies-as-used-in-the-azote-aur-package).*
43 |
44 | ### Main features:
45 |
46 | - works on wlroots;
47 | - uses own thumbnails, 240x135px by default;
48 | - flips wallpapers horizontally;
49 | - splits wallpapers between 2 or more displays;
50 | - scales and crops images to detected or user-defined display dimensions;
51 | - generates a colour palette on the basis of an image;
52 | - picks a colour from the screen;
53 | - allows to find and edit colour definitions in `.Xresources` and `alacritty.yml` files.
54 |
55 | ## Usage
56 |
57 | Select the folder your wallpapers are stored in. If it contains a lot of big pictures, it may take some time for
58 | Azote to create thumbnails. It's being performed once per folder, unless you clear the thumbnails folder.
59 |
60 | Most of the buttons seem to be self-explanatory, with a little help from their tooltip text. What may not be clear
61 | at first is the `Apply selected picture to all screens` button. It applies unchanged
62 | selected picture to all displays, regardless of whether they are currently connected/detected. It may be useful if you
63 | often connect and disconnect displays. A shortcut to this feature is just to double click a thumbnail. It'll always
64 | use the 'fill' mode, however.
65 |
66 | Azote, as well as feh, saves a batch file to your home directory. It needs to be executed in order to set the wallpaper
67 | on subsequent logins or reboot.
68 |
69 | ### sway
70 |
71 | Edit your `~/.config/sway/config` file. Replace your current wallpaper settings, like:
72 |
73 | ```bash
74 | output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
75 | ```
76 |
77 | with:
78 |
79 | ```bash
80 | exec ~/.azotebg
81 | ```
82 |
83 | ### Hyprland
84 |
85 | Add `exec-once = ~/.azotebg-hyprland` to your hyprland.conf.
86 |
87 | Since v1.12.0, we no longer use common ~/.azotebg file on sway and Hyprland, as they don't detect generic
88 | display names the same way.
89 |
90 | ### Wayfire
91 |
92 | In `~/.config/wayfire.ini` set `autostart_wf_shell = false`, and replace `background = wf-background` with
93 | `background = ~/.azotebg`.
94 |
95 | **Important:** optional `wlr-randr` / `wlr-randr-git` and `swaybg` packages are necessary.
96 |
97 | ### X window managers (i3, Openbox, dwm etc.)
98 |
99 | You need to execute `~/.fehbg` from your window manager’s startup file.
100 | You'll also need optional `feh` and `python-xlib` (or `python3-xlib`, depending on the distro) packages.
101 |
102 | **Important:** optional `python-xlib` and `feh` packages are necessary.
103 |
104 | **dwm note:**
105 |
106 | If you start dwm from a script, it may look something like this:
107 |
108 | ```bash
109 | # Statusbar loop
110 | while true; do
111 | xsetroot -name "$( date +"%F %R" )"
112 | sleep 1m # Update time every minute
113 | done &
114 |
115 | # Autostart section
116 | ~/.fehbg &
117 |
118 | exec dwm
119 | ```
120 |
121 | ### Dependencies (as used in the `azote` Arch package):
122 |
123 | - `python` (`python3`)
124 | - `python-setuptools`
125 | - `python-gobject`
126 | - `python-pillow`
127 | - `gtk3`
128 | - `python-cairo`
129 | - `python-send2trash`
130 |
131 | ### Optional dependencies:
132 |
133 | - `python-pillow-jxl-plugin` | `python-pillow-jpegxl-plugin`: for JPEG XL support in Pillow
134 | - `python-pillow-heif`: for HEIF support in Pillow
135 | - `python-pillow-avif-plugin`: for AVIF support in Pillow, also needed for HEIF support
136 | - `imagemagick`: for screen color picker in every environment
137 | - `grim`, `slurp`: for screen color picker on sway / wlroots
138 | - `maim`, `slop`: for screen color picker on X11
139 | - `libappindicator-gtk3`: for tray status icon
140 | - `python-yaml`: for alacritty.yml toolbox
141 | - `swaybg`: for setting background on wlroots-based compositors other than sway
142 | - `feh`: for setting background on X11-based WMs
143 | - `python-xlib`: for checking outputs on X11-based WMs
144 | - `wlr-randr` (`wlr-randr-git`): for checking outputs on wlroots-based compositors other than sway
145 |
146 | Please use assets from the [latest release](https://github.com/nwg-piotr/azote/releases/latest).
147 |
148 | Seeing Arch [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=azote) may be informative.
149 |
150 | ## ~/.config/azote/azoterc
151 |
152 | ```json
153 | {
154 | "thumb_width": "240",
155 | "columns": "3",
156 | "color_icon_w": "100",
157 | "color_icon_h": "50",
158 | "clip_prev_size": "30",
159 | "palette_quality": "10",
160 | "tracking_interval_seconds": "5",
161 | "screen_measurement_delay": "300"
162 | }
163 | ```
164 |
165 | Azote is being developed on the 1920x1080 box, and some graphics dimensions may not go well with other screens.
166 | The runtime configuration file allows to redefine them:
167 |
168 | - `thumb_width` - thumbnail width; changing the value triggers thumbnails regeneration on startup;
169 | - `columns` - initial number of columns in thumbnails preview;
170 | - `color_icon_w`, `color_icon_h`, `clip_prev_size` - define dimensions of pictures which represent colors in the color
171 | palette view;
172 | - `palette_quality` - affects quality and time of generation of the colour palette on the basis of an image; the less - the
173 | better, but slower; default value is 10;
174 | - `tracking_interval_seconds` - determines how often the current wallpapers folder should be checked for file addition /
175 | deletion;
176 | - `screen_measurement_delay` (ms) - introduced to resolve [#108](https://github.com/nwg-piotr/azote/issues/108).
177 | Since `Gdk.Screen.height` has been deprecated, there's no reasonable way to determine the screen dimensions.
178 | We need to open a temporary window and measure its height to open the Azote window with maximum allowed vertical dimension.
179 | Different hardware and window managers need different time to accomplish the task. Increase the value if the (floating)
180 | window does not scale to the screen height. Decrease as much as possible to speed up launching Azote.
181 |
182 | ## Command line arguments
183 |
184 | ```text
185 | $ azote -h
186 |
187 | Azote wallpaper manager version 1.x.y
188 |
189 | [-h] | [--help] Print help
190 | [-l] | [--lang] Force a locale (de_DE, en_EN, fr_FR, pl_PL)
191 | [-c] | [--clear] Clear unused thumbnails
192 | [-a] | [--clear-all] Clear all thumbnails
193 | ```
194 |
195 | ## Troubleshooting
196 |
197 | ### [sway] My outputs use random names, wallpapers get lost after restart
198 |
199 | Turn the "Use generic display names" preferences switch on (since v1.9.1).
200 | See [#143](https://github.com/nwg-piotr/azote/issues/143).
201 |
202 | ### No pictures in thumbnails / display preview
203 |
204 | As well thumbnails, as displays preview inherit from the Gtk.Button class. In case you don't see images inside them,
205 | please make sure that button images are turned on in the `~/.config/gtk-3.0/settings.ini` file:
206 |
207 | ```bash
208 | [Settings]
209 | (...)
210 | gtk-button-images=1
211 | ```
212 |
213 | ### 'Open with...' feature doesn't work
214 |
215 | **Azote v1.2.0 and below** - no 'Open with' menu entry at all;
216 |
217 | **Azote v1.3.0 and above** - the only program listed is feh.
218 |
219 | The `/usr/share/applications/mimeinfo.cache` is probably missing from your system. Regenerate it:
220 |
221 | ```bash
222 | $ sudo update-desktop-database
223 | ```
224 |
225 | See https://specifications.freedesktop.org/desktop-entry-spec/0.9.5/ar01s07.html
226 |
227 | ### Floating Azote window does not scale to the screen height
228 |
229 | Since `Gdk.Screen.height` has been deprecated, there's no reasonable way to determine the screen dimensions.
230 | We need to open a temporary window (maximized or fullscreened on sway) and measure its height to open the Azote
231 | window with maximum allowed vertical dimension.
232 |
233 | *This does not apply to sway, where we measure the screen in another way.*
234 |
235 | In `~/.config/azote/azoterc` you'll find the `"screen_measurement_delay": "300"` value. Different hardware
236 | and window managers need different time to open the temporary window. Increase the value if the (floating)
237 | window does not scale to the screen height. Decrease as much as possible to speed up launching Azote (and not to
238 | see the black screen on sway). On my development machine the minimum value is 30 ms on sway and 5 ms on Wayfire.
239 |
240 | ## X11 / feh notice
241 |
242 | You'll be unable to select different modes
243 | *("scale", "max", "fill", "center", "tile")* for certain displays. The list of modes varies from what you see in Sway
244 | *("stretch", "fit", "fill", "center", "tile")*.
245 |
--------------------------------------------------------------------------------
/azote/__about__.py:
--------------------------------------------------------------------------------
1 | try:
2 | from importlib import metadata
3 | except ImportError:
4 | import importlib_metadata as metadata
5 |
6 | try:
7 | __version__ = metadata.version("azote")
8 | except Exception:
9 | __version__ = "unknown"
--------------------------------------------------------------------------------
/azote/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/__init__.py
--------------------------------------------------------------------------------
/azote/colorthief.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | """
3 | colorthief
4 | ~~~~~~~~~~
5 |
6 | Grabbing the color palette from an image.
7 |
8 | :copyright: (c) 2015 by Shipeng Feng.
9 | :license: BSD, see LICENSE for more details.
10 | """
11 | __version__ = '0.2.1'
12 |
13 | import math
14 |
15 | from PIL import Image
16 |
17 | try:
18 | from pillow_heif import register_heif_opener
19 | register_heif_opener()
20 | except ImportError:
21 | print('Warning: HEIF/HEIC image support not available. Install pillow-heif.')
22 |
23 | try:
24 | import pillow_avif
25 | except ImportError:
26 | print('Warning: AVIF image support not available. Install pillow-avif.')
27 |
28 | try:
29 | import pillow_jxl
30 | except ImportError:
31 | print('JPEG XL (JXL) support not available. Install pillow-jxl if needed.')
32 |
33 |
34 | class cached_property(object):
35 | """Decorator that creates converts a method with a single
36 | self argument into a property cached on the instance.
37 | """
38 |
39 | def __init__(self, func):
40 | self.func = func
41 |
42 | def __get__(self, instance, type):
43 | res = instance.__dict__[self.func.__name__] = self.func(instance)
44 | return res
45 |
46 |
47 | class ColorThief(object):
48 | """Color thief main class."""
49 |
50 | def __init__(self, file):
51 | """Create one color thief for one image.
52 |
53 | :param file: A filename (string) or a file object. The file object
54 | must implement `read()`, `seek()`, and `tell()` methods,
55 | and be opened in binary mode.
56 | """
57 | self.image = Image.open(file)
58 |
59 | def get_color(self, quality=10):
60 | """Get the dominant color.
61 |
62 | :param quality: quality settings, 1 is the highest quality, the bigger
63 | the number, the faster a color will be returned but
64 | the greater the likelihood that it will not be the
65 | visually most dominant color
66 | :return tuple: (r, g, b)
67 | """
68 | palette = self.get_palette(5, quality)
69 | return palette[0]
70 |
71 | def get_palette(self, color_count=10, quality=10):
72 | """Build a color palette. We are using the median cut algorithm to
73 | cluster similar colors.
74 |
75 | :param color_count: the size of the palette, max number of colors
76 | :param quality: quality settings, 1 is the highest quality, the bigger
77 | the number, the faster the palette generation, but the
78 | greater the likelihood that colors will be missed.
79 | :return list: a list of tuple in the form (r, g, b)
80 | """
81 | image = self.image.convert('RGBA')
82 | width, height = image.size
83 | pixels = image.getdata()
84 | pixel_count = width * height
85 | valid_pixels = []
86 | for i in range(0, pixel_count, quality):
87 | r, g, b, a = pixels[i]
88 | # If pixel is mostly opaque and not white
89 | if a >= 125:
90 | if not (r > 250 and g > 250 and b > 250):
91 | valid_pixels.append((r, g, b))
92 |
93 | # Send array to quantize function which clusters values
94 | # using median cut algorithm
95 | cmap = MMCQ.quantize(valid_pixels, color_count)
96 | return cmap.palette
97 |
98 |
99 | class MMCQ(object):
100 | """Basic Python port of the MMCQ (modified median cut quantization)
101 | algorithm from the Leptonica library (http://www.leptonica.com/).
102 | """
103 |
104 | SIGBITS = 5
105 | RSHIFT = 8 - SIGBITS
106 | MAX_ITERATION = 1000
107 | FRACT_BY_POPULATIONS = 0.75
108 |
109 | @staticmethod
110 | def get_color_index(r, g, b):
111 | return (r << (2 * MMCQ.SIGBITS)) + (g << MMCQ.SIGBITS) + b
112 |
113 | @staticmethod
114 | def get_histo(pixels):
115 | """histo (1-d array, giving the number of pixels in each quantized
116 | region of color space)
117 | """
118 | histo = dict()
119 | for pixel in pixels:
120 | rval = pixel[0] >> MMCQ.RSHIFT
121 | gval = pixel[1] >> MMCQ.RSHIFT
122 | bval = pixel[2] >> MMCQ.RSHIFT
123 | index = MMCQ.get_color_index(rval, gval, bval)
124 | histo[index] = histo.setdefault(index, 0) + 1
125 | return histo
126 |
127 | @staticmethod
128 | def vbox_from_pixels(pixels, histo):
129 | rmin = 1000000
130 | rmax = 0
131 | gmin = 1000000
132 | gmax = 0
133 | bmin = 1000000
134 | bmax = 0
135 | for pixel in pixels:
136 | rval = pixel[0] >> MMCQ.RSHIFT
137 | gval = pixel[1] >> MMCQ.RSHIFT
138 | bval = pixel[2] >> MMCQ.RSHIFT
139 | rmin = min(rval, rmin)
140 | rmax = max(rval, rmax)
141 | gmin = min(gval, gmin)
142 | gmax = max(gval, gmax)
143 | bmin = min(bval, bmin)
144 | bmax = max(bval, bmax)
145 | return VBox(rmin, rmax, gmin, gmax, bmin, bmax, histo)
146 |
147 | @staticmethod
148 | def median_cut_apply(histo, vbox):
149 | if not vbox.count:
150 | return (None, None)
151 |
152 | rw = vbox.r2 - vbox.r1 + 1
153 | gw = vbox.g2 - vbox.g1 + 1
154 | bw = vbox.b2 - vbox.b1 + 1
155 | maxw = max([rw, gw, bw])
156 | # only one pixel, no split
157 | if vbox.count == 1:
158 | return (vbox.copy, None)
159 | # Find the partial sum arrays along the selected axis.
160 | total = 0
161 | sum_ = 0
162 | partialsum = {}
163 | lookaheadsum = {}
164 | do_cut_color = None
165 | if maxw == rw:
166 | do_cut_color = 'r'
167 | for i in range(vbox.r1, vbox.r2 + 1):
168 | sum_ = 0
169 | for j in range(vbox.g1, vbox.g2 + 1):
170 | for k in range(vbox.b1, vbox.b2 + 1):
171 | index = MMCQ.get_color_index(i, j, k)
172 | sum_ += histo.get(index, 0)
173 | total += sum_
174 | partialsum[i] = total
175 | elif maxw == gw:
176 | do_cut_color = 'g'
177 | for i in range(vbox.g1, vbox.g2 + 1):
178 | sum_ = 0
179 | for j in range(vbox.r1, vbox.r2 + 1):
180 | for k in range(vbox.b1, vbox.b2 + 1):
181 | index = MMCQ.get_color_index(j, i, k)
182 | sum_ += histo.get(index, 0)
183 | total += sum_
184 | partialsum[i] = total
185 | else: # maxw == bw
186 | do_cut_color = 'b'
187 | for i in range(vbox.b1, vbox.b2 + 1):
188 | sum_ = 0
189 | for j in range(vbox.r1, vbox.r2 + 1):
190 | for k in range(vbox.g1, vbox.g2 + 1):
191 | index = MMCQ.get_color_index(j, k, i)
192 | sum_ += histo.get(index, 0)
193 | total += sum_
194 | partialsum[i] = total
195 | for i, d in partialsum.items():
196 | lookaheadsum[i] = total - d
197 |
198 | # determine the cut planes
199 | dim1 = do_cut_color + '1'
200 | dim2 = do_cut_color + '2'
201 | dim1_val = getattr(vbox, dim1)
202 | dim2_val = getattr(vbox, dim2)
203 | for i in range(dim1_val, dim2_val + 1):
204 | if partialsum[i] > (total / 2):
205 | vbox1 = vbox.copy
206 | vbox2 = vbox.copy
207 | left = i - dim1_val
208 | right = dim2_val - i
209 | if left <= right:
210 | d2 = min([dim2_val - 1, int(i + right / 2)])
211 | else:
212 | d2 = max([dim1_val, int(i - 1 - left / 2)])
213 | # avoid 0-count boxes
214 | while not partialsum.get(d2, False):
215 | d2 += 1
216 | count2 = lookaheadsum.get(d2)
217 | while not count2 and partialsum.get(d2 - 1, False):
218 | d2 -= 1
219 | count2 = lookaheadsum.get(d2)
220 | # set dimensions
221 | setattr(vbox1, dim2, d2)
222 | setattr(vbox2, dim1, getattr(vbox1, dim2) + 1)
223 | return (vbox1, vbox2)
224 | return (None, None)
225 |
226 | @staticmethod
227 | def quantize(pixels, max_color):
228 | """Quantize.
229 |
230 | :param pixels: a list of pixel in the form (r, g, b)
231 | :param max_color: max number of colors
232 | """
233 | if not pixels:
234 | raise Exception('Empty pixels when quantize.')
235 | if max_color < 2 or max_color > 256:
236 | raise Exception('Wrong number of max colors when quantize.')
237 |
238 | histo = MMCQ.get_histo(pixels)
239 |
240 | # check that we aren't below maxcolors already
241 | if len(histo) <= max_color:
242 | # generate the new colors from the histo and return
243 | pass
244 |
245 | # get the beginning vbox from the colors
246 | vbox = MMCQ.vbox_from_pixels(pixels, histo)
247 | pq = PQueue(lambda x: x.count)
248 | pq.push(vbox)
249 |
250 | # inner function to do the iteration
251 | def iter_(lh, target):
252 | n_color = 1
253 | n_iter = 0
254 | while n_iter < MMCQ.MAX_ITERATION:
255 | vbox = lh.pop()
256 | if not vbox.count: # just put it back
257 | lh.push(vbox)
258 | n_iter += 1
259 | continue
260 | # do the cut
261 | vbox1, vbox2 = MMCQ.median_cut_apply(histo, vbox)
262 | if not vbox1:
263 | raise Exception("vbox1 not defined; shouldn't happen!")
264 | lh.push(vbox1)
265 | if vbox2: # vbox2 can be null
266 | lh.push(vbox2)
267 | n_color += 1
268 | if n_color >= target:
269 | return
270 | if n_iter > MMCQ.MAX_ITERATION:
271 | return
272 | n_iter += 1
273 |
274 | # first set of colors, sorted by population
275 | iter_(pq, MMCQ.FRACT_BY_POPULATIONS * max_color)
276 |
277 | # Re-sort by the product of pixel occupancy times the size in
278 | # color space.
279 | pq2 = PQueue(lambda x: x.count * x.volume)
280 | while pq.size():
281 | pq2.push(pq.pop())
282 |
283 | # next set - generate the median cuts using the (npix * vol) sorting.
284 | iter_(pq2, max_color - pq2.size())
285 |
286 | # calculate the actual colors
287 | cmap = CMap()
288 | while pq2.size():
289 | cmap.push(pq2.pop())
290 | return cmap
291 |
292 |
293 | class VBox(object):
294 | """3d color space box"""
295 |
296 | def __init__(self, r1, r2, g1, g2, b1, b2, histo):
297 | self.r1 = r1
298 | self.r2 = r2
299 | self.g1 = g1
300 | self.g2 = g2
301 | self.b1 = b1
302 | self.b2 = b2
303 | self.histo = histo
304 |
305 | @cached_property
306 | def volume(self):
307 | sub_r = self.r2 - self.r1
308 | sub_g = self.g2 - self.g1
309 | sub_b = self.b2 - self.b1
310 | return (sub_r + 1) * (sub_g + 1) * (sub_b + 1)
311 |
312 | @property
313 | def copy(self):
314 | return VBox(self.r1, self.r2, self.g1, self.g2,
315 | self.b1, self.b2, self.histo)
316 |
317 | @cached_property
318 | def avg(self):
319 | ntot = 0
320 | mult = 1 << (8 - MMCQ.SIGBITS)
321 | r_sum = 0
322 | g_sum = 0
323 | b_sum = 0
324 | for i in range(self.r1, self.r2 + 1):
325 | for j in range(self.g1, self.g2 + 1):
326 | for k in range(self.b1, self.b2 + 1):
327 | histoindex = MMCQ.get_color_index(i, j, k)
328 | hval = self.histo.get(histoindex, 0)
329 | ntot += hval
330 | r_sum += hval * (i + 0.5) * mult
331 | g_sum += hval * (j + 0.5) * mult
332 | b_sum += hval * (k + 0.5) * mult
333 |
334 | if ntot:
335 | r_avg = int(r_sum / ntot)
336 | g_avg = int(g_sum / ntot)
337 | b_avg = int(b_sum / ntot)
338 | else:
339 | r_avg = int(mult * (self.r1 + self.r2 + 1) / 2)
340 | g_avg = int(mult * (self.g1 + self.g2 + 1) / 2)
341 | b_avg = int(mult * (self.b1 + self.b2 + 1) / 2)
342 |
343 | return r_avg, g_avg, b_avg
344 |
345 | def contains(self, pixel):
346 | rval = pixel[0] >> MMCQ.RSHIFT
347 | gval = pixel[1] >> MMCQ.RSHIFT
348 | bval = pixel[2] >> MMCQ.RSHIFT
349 | return all([
350 | rval >= self.r1,
351 | rval <= self.r2,
352 | gval >= self.g1,
353 | gval <= self.g2,
354 | bval >= self.b1,
355 | bval <= self.b2,
356 | ])
357 |
358 | @cached_property
359 | def count(self):
360 | npix = 0
361 | for i in range(self.r1, self.r2 + 1):
362 | for j in range(self.g1, self.g2 + 1):
363 | for k in range(self.b1, self.b2 + 1):
364 | index = MMCQ.get_color_index(i, j, k)
365 | npix += self.histo.get(index, 0)
366 | return npix
367 |
368 |
369 | class CMap(object):
370 | """Color map"""
371 |
372 | def __init__(self):
373 | self.vboxes = PQueue(lambda x: x['vbox'].count * x['vbox'].volume)
374 |
375 | @property
376 | def palette(self):
377 | return self.vboxes.map(lambda x: x['color'])
378 |
379 | def push(self, vbox):
380 | self.vboxes.push({
381 | 'vbox': vbox,
382 | 'color': vbox.avg,
383 | })
384 |
385 | def size(self):
386 | return self.vboxes.size()
387 |
388 | def nearest(self, color):
389 | d1 = None
390 | p_color = None
391 | for i in range(self.vboxes.size()):
392 | vbox = self.vboxes.peek(i)
393 | d2 = math.sqrt(
394 | math.pow(color[0] - vbox['color'][0], 2) +
395 | math.pow(color[1] - vbox['color'][1], 2) +
396 | math.pow(color[2] - vbox['color'][2], 2)
397 | )
398 | if d1 is None or d2 < d1:
399 | d1 = d2
400 | p_color = vbox['color']
401 | return p_color
402 |
403 | def map(self, color):
404 | for i in range(self.vboxes.size()):
405 | vbox = self.vboxes.peek(i)
406 | if vbox['vbox'].contains(color):
407 | return vbox['color']
408 | return self.nearest(color)
409 |
410 |
411 | class PQueue(object):
412 | """Simple priority queue."""
413 |
414 | def __init__(self, sort_key):
415 | self.sort_key = sort_key
416 | self.contents = []
417 | self._sorted = False
418 |
419 | def sort(self):
420 | self.contents.sort(key=self.sort_key)
421 | self._sorted = True
422 |
423 | def push(self, o):
424 | self.contents.append(o)
425 | self._sorted = False
426 |
427 | def peek(self, index=None):
428 | if not self._sorted:
429 | self.sort()
430 | if index is None:
431 | index = len(self.contents) - 1
432 | return self.contents[index]
433 |
434 | def pop(self):
435 | if not self._sorted:
436 | self.sort()
437 | return self.contents.pop()
438 |
439 | def size(self):
440 | return len(self.contents)
441 |
442 | def map(self, f):
443 | return list(map(f, self.contents))
444 |
--------------------------------------------------------------------------------
/azote/common.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | # _*_ coding: utf-8 _*_
3 |
4 | """
5 | Wallpaper manager for Sway, i3 and some other WMs, as a frontend to swaybg and feh
6 |
7 | Author: Piotr Miller
8 | e-mail: nwg.piotr@gmail.com
9 | Website: http://nwg.pl
10 | Project: https://github.com/nwg-piotr/azote
11 | License: GPL3
12 | """
13 | app_name = 'azote'
14 |
15 | CRITICAL = 'critical'
16 | ERROR = 'error'
17 | WARNING = 'warning'
18 | INFO = 'info'
19 | DEBUG = 'debug'
20 |
21 | env = {}
22 | sway = False
23 | screen_h = None
24 |
25 | lang = None # dictionary "name": lang_string
26 |
27 | preview = None
28 | progress_bar = None
29 | status_bar = None
30 | thumbnails_list = None
31 | display_boxes_list = None
32 | selected_wallpaper = None
33 | selected_picture_label = None
34 | split_button = None
35 | apply_button = None
36 | apply_to_all_button = None
37 |
38 | cols = 3 # number of columns in pictures preview
39 |
40 | allowed_file_types = ['jpg', 'jpeg', 'jxl', 'png', 'webp', "heic", "avif"]
41 | associations = None # dictionary {'extension": [program1, program2, program3, ...]}
42 |
43 | app_dir = '' # ~/.azote
44 | thumb_dir = '' # ~/.azote/thumbnails
45 | tmp_dir = '' # ~/.azote/temp
46 | bcg_dir = '' # ~/.azote/backgrounds-sway or ~/.azote/backgrounds-feh
47 | sample_dir = '' # ~/.azote/sample
48 | log_file = '' # ~/.azote/log.txt
49 | cmd_file = '' # ~/.azote/command.sh
50 | config_home = ''
51 | azote_config_home = '' # $XDG_CONFIG_HOME or ~/.config/azote
52 | data_home = '' # $XDG_DATA_HOME or ~/.local/share/azote
53 | alacritty_config = ''
54 | xresources = ''
55 |
56 | data_migrated = False
57 |
58 | logging_enabled = True
59 | displays = None # detected displays details
60 |
61 | settings = None # object saved to / restored from ~/.azote/settings.pkl
62 |
63 | modes_swaybg = ["stretch", "fit", "fill", "center", "tile"]
64 | modes_feh = ["scale", "max", "fill", "center", "tile"]
65 |
66 | main_window = None
67 | clipboard = None
68 | clipboard_text = '' # to transfer colors between toolbars we'll use this instead of the real clipboard content
69 | picker = False
70 |
71 | cpd = None # ColorPaletteDialog object
72 | dotfile_window = None
73 | picker_window = None
74 | indicator = None
75 |
76 | color_names = None
77 |
--------------------------------------------------------------------------------
/azote/images/azote-wallpaper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/azote-wallpaper.png
--------------------------------------------------------------------------------
/azote/images/azote-wallpaper1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/azote-wallpaper1.jpg
--------------------------------------------------------------------------------
/azote/images/azote-wallpaper2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/azote-wallpaper2.png
--------------------------------------------------------------------------------
/azote/images/azote.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
120 |
--------------------------------------------------------------------------------
/azote/images/empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/empty.png
--------------------------------------------------------------------------------
/azote/images/icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
84 |
--------------------------------------------------------------------------------
/azote/images/icon_about.svg:
--------------------------------------------------------------------------------
1 |
2 |
81 |
--------------------------------------------------------------------------------
/azote/images/icon_all.svg:
--------------------------------------------------------------------------------
1 |
2 |
92 |
--------------------------------------------------------------------------------
/azote/images/icon_apply.svg:
--------------------------------------------------------------------------------
1 |
2 |
81 |
--------------------------------------------------------------------------------
/azote/images/icon_az.svg:
--------------------------------------------------------------------------------
1 |
2 |
103 |
--------------------------------------------------------------------------------
/azote/images/icon_config.svg:
--------------------------------------------------------------------------------
1 |
2 |
94 |
--------------------------------------------------------------------------------
/azote/images/icon_flip.svg:
--------------------------------------------------------------------------------
1 |
2 |
80 |
--------------------------------------------------------------------------------
/azote/images/icon_image_menu.svg:
--------------------------------------------------------------------------------
1 |
2 |
134 |
--------------------------------------------------------------------------------
/azote/images/icon_menu.svg:
--------------------------------------------------------------------------------
1 |
2 |
75 |
--------------------------------------------------------------------------------
/azote/images/icon_new.svg:
--------------------------------------------------------------------------------
1 |
2 |
102 |
--------------------------------------------------------------------------------
/azote/images/icon_old.svg:
--------------------------------------------------------------------------------
1 |
2 |
102 |
--------------------------------------------------------------------------------
/azote/images/icon_picker.svg:
--------------------------------------------------------------------------------
1 |
2 |
75 |
--------------------------------------------------------------------------------
/azote/images/icon_refresh.svg:
--------------------------------------------------------------------------------
1 |
2 |
81 |
--------------------------------------------------------------------------------
/azote/images/icon_split.svg:
--------------------------------------------------------------------------------
1 |
2 |
92 |
--------------------------------------------------------------------------------
/azote/images/icon_za.svg:
--------------------------------------------------------------------------------
1 |
2 |
103 |
--------------------------------------------------------------------------------
/azote/images/nwg-shell-sgs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/nwg-shell-sgs.png
--------------------------------------------------------------------------------
/azote/images/squares.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/azote/images/squares.jpg
--------------------------------------------------------------------------------
/azote/langs/cs_CZ.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "O azote",
3 | "app_desc": "Správce pozadí obrazovky a barev pro Sway, i3 a další správce oken",
4 | "apply_settings": "Použít pro {}",
5 | "apply_to_all": "Použít na všechny obrazovky",
6 | "background_color": "barva pozadí",
7 | "cancel": "Zrušit",
8 | "check_log": "Zkontrolovat {}",
9 | "clear_unused_thumbnails": "Vymazat nepoužívané miniatury",
10 | "clipboard_empty": "Schránka je prázdná",
11 | "zavřít": "Zavřít",
12 | "closest": "Nejbližší: {}",
13 | "color_dictionary": "Výběr barev",
14 | "colors": "Barvy",
15 | "copied": "Zkopírováno",
16 | "copy": "Kopírovat",
17 | "copy_as": "Kopírovat jako:",
18 | "copy_paste_into": "Kopírovat a vložit do {}",
19 | "create_palette": "Vytvořit paletu barev",
20 | "aktuální": "Aktuální",
21 | "custom_display": "Vlastní zobrazení",
22 | "delete": "Smazat",
23 | "display_mode": "Režim zobrazení",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "Dvojnásobná výška",
26 | "dual_width": "Dvojitá šířka",
27 | "triple_height": "Trojnásobná výška",
28 | "triple_width": "Trojnásobná šířka",
29 | "exact": "Přesně: {}",
30 | "exit": "Exit",
31 | "flip_image": "Převrátit obrázek",
32 | "flip_wallpaper_horizontally": "Překlopit obrázek vodorovně",
33 | "grim_slurp_required": "Vyžadovány balíčky grim, slurp a imagemagick",
34 | "height": "Výška",
35 | "image_menu_button": "Tlačítko nabídky obrázku",
36 | "include_when_splitting": "Zahrnout při rozdělování",
37 | "maim_slop_required": "Vyžadovány balíčky maim & slop",
38 | "move": "Přesunout do koše",
39 | "move_to_trash": "Přesunout výběr do koše",
40 | "name": "Jméno",
41 | "no_color_definitions": "Žádné definice barev v {}",
42 | "no_picture_selected": "Není vybrán žádný obrázek",
43 | "ok": "Ok",
44 | "open_another_folder": "Otevřít další složku",
45 | "open_folder": "Otevřít složku",
46 | "open_with": "Otevřít pomocí {}",
47 | "preferences": "Nastavení",
48 | "refresh_folder_preview": "Obnovit náhled složky",
49 | "reload": "Znovu načíst",
50 | "remove_image": "Odebrat obrázek",
51 | "scale_and_crop": "Změnit měřítko a oříznout",
52 | "screen_color_picker": "Výběr barvy obrazovky",
53 | "set_selected_wallpaper": "Použít vybrané pozadí",
54 | "sorting_order": "Pořadí řazení",
55 | "sorting_az": "Abecedně",
56 | "sorting_za": "Abecedně, obráceně",
57 | "sorting_new": "Věk, vzestupně",
58 | "sorting_old": "Věk, sestupně",
59 | "split_selection_between_displays": "Rozdělit výběr mezi obrazovkami",
60 | "thumbnail_tooltip": "Jedním kliknutím vyberete, dvojitým kliknutím okamžitě použijete, pravým kliknutím zobrazíte další možnosti",
61 | "thumbnails_in_cache": "{} miniatur v mezipaměti ({})",
62 | "track_file_changes": "Sledování změn souborů",
63 | "use_display_names": "Použít obecné zobrazované názvy",
64 | "width": "Šířka"
65 | }
66 |
--------------------------------------------------------------------------------
/azote/langs/de_DE.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "Über azote",
3 | "app_desc": "Bildschirmhintergrund & Color-Manager für Sway, i3 und andere Window Manager",
4 | "apply_settings": "Auf {} anwenden",
5 | "apply_to_all": "Auf allen Bildschirmen anwenden",
6 | "background_color": "Hintergrundfarbe",
7 | "cancel": "Abbrechen",
8 | "check_log": "Überprüfen Sie {}",
9 | "clear_unused_thumbnails": "Unbenutzte Thumbnails löschen",
10 | "clipboard_empty": "Zwischenablage leer",
11 | "close": "Schließen",
12 | "closest": "Am nächsten: {}",
13 | "color_dictionary": "Farbauswahl",
14 | "colors": "Farben",
15 | "copied": "Kopiert",
16 | "copy": "Kopieren",
17 | "copy_as": "Kopieren als:",
18 | "copy_paste_into": "Kopieren & Einfügen in {}",
19 | "create_palette": "Farbpalette erstellen",
20 | "current": "Aktuell",
21 | "custom_display": "Benutzerdefinierter Bildschirm",
22 | "delete": "Löschen",
23 | "display_mode": "Anzeigemodus",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "dreifache Höhe",
26 | "dual_width": "dreifache Breite",
27 | "triple_height": "triple height",
28 | "triple_width": "triple width",
29 | "exact": "Exakt: {}",
30 | "exit": "Beenden",
31 | "flip_image": "Bild spiegeln",
32 | "flip_wallpaper_horizontally": "Bild horizontal spiegeln",
33 | "grim_slurp_required": "grim, slurp & imagemagick-Pakete erforderlich",
34 | "height": "Höhe",
35 | "image_menu_button": "Bildmenütaste",
36 | "include_when_splitting": "beim Teilen einschließen",
37 | "maim_slop_required": "maim & slop-Pakete erforderlich",
38 | "move": "In den Papierkorb verschieben",
39 | "move_to_trash": "Auswahl in den Papierkorb verschieben",
40 | "name": "Name",
41 | "no_colour_definitions": "Keine Farbdefinitionen in {}",
42 | "no_picture_selected": "Kein Bild ausgewählt",
43 | "ok": "OK",
44 | "open_another_folder": "Anderen Ordner öffnen",
45 | "open_folder": "Ordner öffnen",
46 | "open_with": "Mit {} öffnen",
47 | "preferences": "Einstellungen",
48 | "refresh_folder_preview": "Ordnervorschau aktualisieren",
49 | "reload": "Neu laden",
50 | "remove_image": "Bild entfernen",
51 | "scale_and_crop": "Skalieren und Zuschneiden",
52 | "screen_color_picker": "Bildschirm-Farbwähler",
53 | "set_selected_wallpaper": "Ausgewählten Hintergrund verwenden",
54 | "sorting_order": "Sortierreihenfolge",
55 | "sorting_az": "Alphabetisch",
56 | "sorting_za": "Alphabetisch, umgekehrt",
57 | "sorting_new": "Alter, aufsteigend",
58 | "sorting_old": "Alter, absteigend",
59 | "split_selection_between_displays": "Auswahl zwischen Bildschirmen aufteilen",
60 | "thumbnail_tooltip": "Einfach-Klicken zum Auswählen, Doppel-Klicken zum sofortigen Verwenden, Rechts-Klick für mehr Optionen",
61 | "thumbnails_in_cache": "{} Vorschaubilder im Zwischenspeicher ({})",
62 | "track_file_changes": "Dateiänderungen überwachen",
63 | "use_display_names": "Verwend generische Anzeigenamen",
64 | "width": "Breite"
65 | }
--------------------------------------------------------------------------------
/azote/langs/en_US.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "About Azote",
3 | "app_desc": "Wallpaper & color manager for sway & some other WMs",
4 | "apply_settings": "Apply to: {}",
5 | "apply_to_all": "Apply selected picture to all screens",
6 | "background_color": "Background color",
7 | "cancel": "Cancel",
8 | "check_log": "Check {}",
9 | "clear_unused_thumbnails": "Clear unused thumbnails",
10 | "clipboard_empty": "Clipboard empty",
11 | "close": "Close",
12 | "closest": "Closest: {}",
13 | "color_dictionary": "Color dictionary",
14 | "colors": "colors",
15 | "copied": "Copied",
16 | "copy": "Copy",
17 | "copy_as": "Copy as:",
18 | "copy_paste_into": "Copy & paste into {}",
19 | "create_palette": "Create palette",
20 | "current": "Current",
21 | "custom_display": "Custom display",
22 | "delete": "Delete",
23 | "display_mode": "Display mode",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "dual height",
26 | "dual_width": "dual width",
27 | "triple_height": "triple height",
28 | "triple_width": "triple width",
29 | "exact": "Exact: {}",
30 | "exit": "Exit",
31 | "flip_image": "Flip image",
32 | "flip_wallpaper_horizontally": "Flip wallpaper horizontally",
33 | "grim_slurp_required": "grim, slurp & imagemagick packages required",
34 | "height": "Height",
35 | "image_menu_button": "Image menu button",
36 | "include_when_splitting": "Include when splitting",
37 | "maim_slop_required": "maim & slop packages required",
38 | "move": "To trash",
39 | "move_to_trash": "Move selected to trash",
40 | "name": "Name",
41 | "no_colour_definitions": "No colour definitions in {}",
42 | "no_picture_selected": "No picture selected",
43 | "ok": "OK",
44 | "open_another_folder": "Open another folder",
45 | "open_folder": "Open folder",
46 | "open_with": "Open with {}",
47 | "preferences": "Preferences",
48 | "refresh_folder_preview": "Refresh folder preview",
49 | "reload": "Reload",
50 | "remove_image": "Remove image",
51 | "scale_and_crop": "Scale and crop",
52 | "screen_color_picker": "Screen color picker",
53 | "set_selected_wallpaper": "Set selected wallpaper",
54 | "sorting_order": "Sorting order",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "New on top",
58 | "sorting_old": "Old on top",
59 | "split_selection_between_displays": "Split selection between displays",
60 | "thumbnail_tooltip": "Click to select, double to set, right for menu",
61 | "thumbnails_in_cache": "{} thumbnails in cache ({})",
62 | "track_file_changes": "Track file changes",
63 | "use_display_names": "Use generic display names",
64 | "width": "Width"
65 | }
--------------------------------------------------------------------------------
/azote/langs/fr_FR.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "À propos d’Azote",
3 | "app_desc": "Gestionnaire de fonds d’écran & couleurs pour Sway, i3 et d’autres gestionnaires de fenêtres",
4 | "apply_settings": "Appliquer à: {}",
5 | "apply_to_all": "Appliquer l'image sélectionnée à tous les écrans",
6 | "background_color": "Couleur de fonds",
7 | "cancel": "Annuler",
8 | "check_log": "Vérifier {}",
9 | "clear_unused_thumbnails": "Effacer les vignettes inutilisées",
10 | "clipboard_empty": "Presse-papiers vide",
11 | "close": "Fermer",
12 | "closest": "Le plus proche: {}",
13 | "color_dictionary": "Dictionnaire de couleur",
14 | "colors": "couleurs",
15 | "copied": "Copié",
16 | "copy": "Copier",
17 | "copy_as": "Copier en tant que:",
18 | "copy_paste_into": "Copier et coller dans {}",
19 | "create_palette": "Créer une palette",
20 | "current": "Actuel",
21 | "custom_display": "Écran personnalisé",
22 | "delete": "Effacer",
23 | "display_mode": "Mode d’affichage",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "triple hauteur",
26 | "dual_width": "triple largeur",
27 | "triple_height": "triple height",
28 | "triple_width": "triple width",
29 | "exact": "Exact: {}",
30 | "exit": "Terminer",
31 | "flip_image": "Retourner l’image",
32 | "flip_wallpaper_horizontally": "Retourner le fond d’écran horizontalement",
33 | "grim_slurp_required": "paquets grim, slurp et imagemagick requis",
34 | "height": "La taille",
35 | "image_menu_button": "Bouton de menu Image",
36 | "include_when_splitting": "inclure lors du fractionnement",
37 | "maim_slop_required": "paquets maim et slop requis",
38 | "move": "Vers la corbeille",
39 | "move_to_trash": "Déplacer la sélection vers la corbeille",
40 | "name": "Nom",
41 | "no_colour_definitions": "Aucune définition de couleur dans {}",
42 | "no_picture_selected": "Aucune image sélectionnée",
43 | "ok": "OK",
44 | "open_another_folder": "Ouvrir un autre dossier",
45 | "open_folder": "Ouvrir le dossier",
46 | "open_with": "Ovrir avec {}",
47 | "preferences": "Préférences",
48 | "refresh_folder_preview": "Rafraîchir l'aperçu du dossier",
49 | "reload": "Recharger",
50 | "remove_image": "Enlever l'image",
51 | "scale_and_crop": "Échelle et recadrer",
52 | "screen_color_picker": "Sélecteur de couleur d'écran",
53 | "set_selected_wallpaper": "Définir le fond d'écran sélectionné",
54 | "sorting_order": "Ordre de tri",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "Nouveau en haut",
58 | "sorting_old": "Ancien en haut",
59 | "split_selection_between_displays": "Répartition de la sélection entre les écrans",
60 | "thumbnail_tooltip": "Click to select, double to set, right for menu",
61 | "thumbnails_in_cache": "{} miniatures en cache ({})",
62 | "track_file_changes": "Suivre les modifications du fichier",
63 | "use_display_names": "Utiliser des noms d'affichage génériques",
64 | "width": "Largeur"
65 | }
--------------------------------------------------------------------------------
/azote/langs/it_IT.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "A proposito di Azote",
3 | "app_desc": "Gestione sfondi e colori per Sway e altri WMs",
4 | "apply_settings": "Applica a: {}",
5 | "apply_to_all": "Applica l'immagine selezionata a tutti gli schermi",
6 | "background_color": "Colore di sfondo",
7 | "cancel": "Annulla",
8 | "check_log": "Controllo {}",
9 | "clear_unused_thumbnails": "Cancella le miniature inutilizzate",
10 | "clipboard_empty": "Appunti vuoti",
11 | "close": "Chiudi",
12 | "closest": "Closest: {}",
13 | "color_dictionary": "Dizionario dei colori",
14 | "colors": "colori",
15 | "copied": "Copiato",
16 | "copy": "Copia",
17 | "copy_as": "Copia come:",
18 | "copy_paste_into": "Copia ed incolla in {}",
19 | "create_palette": "Crea tavolozza",
20 | "current": "Corrente",
21 | "custom_display": "Visualizzazione personalizzata",
22 | "delete": "Cancella",
23 | "display_mode": "Modalità di esposizione",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "doppia altezza",
26 | "dual_width": "doppia larghezza",
27 | "triple_height": "tripla altezza",
28 | "triple_width": "tripla larghezza",
29 | "exact": "Esatto: {}",
30 | "exit": "Uscita",
31 | "flip_image": "Capovolgi l'immagine",
32 | "flip_wallpaper_horizontally": "Capovolgi lo sfondo orizzontalmente",
33 | "grim_slurp_required": "Sono richiesti i pacchetti grim, slurp e imagemagick",
34 | "height": "Altezza",
35 | "image_menu_button": "Pulsante del menu Immagine",
36 | "include_when_splitting": "Includi durante la divisione",
37 | "maim_slop_required": "Sono richiesti i pacchetti maim & slop",
38 | "move": "Nel cestino",
39 | "move_to_trash": "Sposta la selezione nel cestino",
40 | "name": "Nome",
41 | "no_colour_definitions": "Nessuna definizione di colore in {}",
42 | "no_picture_selected": "Nessuna immagine selezionata",
43 | "ok": "OK",
44 | "open_another_folder": "Apri un'altra cartella",
45 | "open_folder": "Sfoglia la cartella",
46 | "open_with": "Apri con {}",
47 | "preferences": "Preferenze",
48 | "refresh_folder_preview": "Aggiorna l'anteprima della cartella",
49 | "reload": "Ricarica",
50 | "remove_image": "Rimuovi l'immagine",
51 | "scale_and_crop": "Ridimensiona e ritaglia",
52 | "screen_color_picker": "Selettore colore dello schermo",
53 | "set_selected_wallpaper": "Imposta lo sfondo selezionato",
54 | "sorting_order": "Ordinamento",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "Nuovo sopra",
58 | "sorting_old": "Vecchio sopra",
59 | "split_selection_between_displays": "Dividi la Selezione tra gli schermi",
60 | "thumbnail_tooltip": "Fare clic per selezionare, doppio click per impostare, a destra per il menù",
61 | "thumbnails_in_cache": "{} miniature nella cache ({})",
62 | "track_file_changes": "Tieni traccia delle modifiche ai file",
63 | "use_display_names": "Utilizza nomi visualizzati generici",
64 | "width": "Larghezza"
65 | }
66 |
--------------------------------------------------------------------------------
/azote/langs/pl_PL.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "O programie Azote",
3 | "app_desc": "Menedżer tapet i kolorów dla sway i niektórych innych menedżerów okien",
4 | "apply_settings": "Zastosuj do: {}",
5 | "apply_to_all": "Zastosuj wybrany obraz do wszystkich ekranów",
6 | "background_color": "Kolor tła",
7 | "cancel": "Anuluj",
8 | "check_log": "Sprawdź {}",
9 | "clear_unused_thumbnails": "Usuń nieużywane miniatury",
10 | "clipboard_empty": "Schowek pusty",
11 | "close": "Zamknij",
12 | "closest": "Najbliższy: {}",
13 | "color_dictionary": "Słownik kolorów",
14 | "colors": "kolorów",
15 | "copied": "Skopiowano",
16 | "copy": "Kopiuj",
17 | "copy_as": "Kopiuj jako:",
18 | "copy_paste_into": "Skopiuj i wklej do {}",
19 | "create_palette": "Utwórz paletę",
20 | "current": "Aktualny",
21 | "custom_display": "Niestandardowy ekran",
22 | "delete": "Usuń",
23 | "display_mode": "Tryb wyświetlania",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "podwójna wysokość",
26 | "dual_width": "podwójna szerokość",
27 | "triple_height": "potrójna wysokość",
28 | "triple_width": "potrójna szerokość",
29 | "exact": "Dokładny: {}",
30 | "exit": "Zakończ",
31 | "flip_image": "Odwróć obraz",
32 | "flip_wallpaper_horizontally": "Odwróć tapetę w poziomie",
33 | "grim_slurp_required": "Wymagane paczki grim, slurp i imagemagick",
34 | "height": "Wysokość",
35 | "image_menu_button": "Przycisk menu obrazu",
36 | "include_when_splitting": "Uwzględniaj przy podziale",
37 | "maim_slop_required": "Wymagane paczki maim & slop",
38 | "move": "Do kosza",
39 | "move_to_trash": "Przenieś wybrany do kosza",
40 | "name": "Nazwa",
41 | "no_colour_definitions": "Brak definicji kolorów w {}",
42 | "no_picture_selected": "Nie wybrano obrazu",
43 | "ok": "OK",
44 | "open_another_folder": "Wybierz inny folder",
45 | "open_folder": "Otwórz folder",
46 | "open_with": "Otwórz w {}",
47 | "preferences": "Preferencje",
48 | "refresh_folder_preview": "Odśwież podgląd folderu",
49 | "reload": "Wczytaj ponownie",
50 | "remove_image": "Usuń obraz",
51 | "scale_and_crop": "Skaluj i przytnij",
52 | "screen_color_picker": "Próbnik kolorów ekranu",
53 | "set_selected_wallpaper": "Ustaw wybraną tapetę",
54 | "sorting_order": "Sortowanie",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "Od najnowszych",
58 | "sorting_old": "Od najstarszych",
59 | "split_selection_between_displays": "Podziel wybrany obraz pomiędzy ekrany",
60 | "thumbnail_tooltip": "Kliknij by wybrać, podwójnie by ustawić, prawym dla menu",
61 | "thumbnails_in_cache": "{} miniatur w cache ({})",
62 | "track_file_changes": "Śledź zmiany w plikach",
63 | "use_display_names": "Używaj ogólnych nazw wyświetlaczy",
64 | "width": "Szerokość"
65 | }
--------------------------------------------------------------------------------
/azote/langs/pt_BR.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "Sobre Azote",
3 | "app_desc": "Gerenciador de papéis de parede e cores para sway & e outros GJs",
4 | "apply_settings": "Aplicar em: {}",
5 | "apply_to_all": "Aplicar imagem selecionada a todas as telas",
6 | "background_color": "Cor de fundo",
7 | "cancel": "Cancelar",
8 | "check_log": "Verificar {}",
9 | "clear_unused_thumbnails": "Limpar miniaturas não utilizadas",
10 | "clipboard_empty": "Área de transferência vazia",
11 | "close": "Fechar",
12 | "closest": "Mais próximo: {}",
13 | "color_dictionary": "Dicionário de core",
14 | "colors": "cores",
15 | "copied": "Copiado",
16 | "copy": "Copiar",
17 | "copy_as": "Copir como:",
18 | "copy_paste_into": "Copiar & colar em {}",
19 | "create_palette": "Criar paleta",
20 | "current": "Atual",
21 | "custom_display": "Tela atual",
22 | "delete": "Deletar",
23 | "display_mode": "Modo de exibição",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "altura dupla",
26 | "dual_width": "largura dupla",
27 | "triple_height": "altura tripla",
28 | "triple_width": "largura tripla",
29 | "exact": "Exato: {}",
30 | "exit": "Sair",
31 | "flip_image": "Inverter imagem",
32 | "flip_wallpaper_horizontally": "Inverter papel de parede horizontalmente",
33 | "grim_slurp_required": "grim, slurp & imagemagick são necessários",
34 | "height": "Altura",
35 | "image_menu_button": "Botão do menu imagem",
36 | "include_when_splitting": "Incluir ao dividir",
37 | "maim_slop_required": "maim & slop são necessários",
38 | "move": "Para lixeira",
39 | "move_to_trash": "Mover para lixeira selecionada",
40 | "name": "Nome",
41 | "no_colour_definitions": "Sem definição de cor em {}",
42 | "no_picture_selected": "Nenhuma imagem selecionada",
43 | "ok": "OK",
44 | "open_another_folder": "Abrir outra pasta",
45 | "open_folder": "Abrir pasta",
46 | "open_with": "Abrir com {}",
47 | "preferences": "Preferências",
48 | "refresh_folder_preview": "Atualizar pré-visualização de pasta",
49 | "reload": "Recarregar",
50 | "remove_image": "Remover imagem",
51 | "scale_and_crop": "Escalar e cortar",
52 | "screen_color_picker": "Seletor de cores de tela",
53 | "set_selected_wallpaper": "Definir o papel de parede selecionado",
54 | "sorting_order": "Ordem de classificação",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "Novo no top",
58 | "sorting_old": "Velho no top",
59 | "split_selection_between_displays": "Dividir seleção entre monitores",
60 | "thumbnail_tooltip": "Clique para selecionar, duplo para definir, direito para menu",
61 | "thumbnails_in_cache": "{} miniaturas em cache ({})",
62 | "track_file_changes": "Rastrear alterações de arquivo",
63 | "use_display_names": "Usar nome genérico de telas",
64 | "width": "Largura"
65 | }
66 |
--------------------------------------------------------------------------------
/azote/langs/ru_RU.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "О программе Azote",
3 | "app_desc": "Менеджер обоев и фонового цвета для sway и некоторых других оконных менеджеров",
4 | "apply_settings": "Применить к: {}",
5 | "apply_to_all": "Применить выбранное изображение для всех экранов",
6 | "background_color": "Фоновый цвет",
7 | "cancel": "Отмена",
8 | "check_log": "Проверить {}",
9 | "clear_unused_thumbnails": "Удалить неиспользуемые миниатюры",
10 | "clipboard_empty": "Буфер обмена пуст",
11 | "close": "Закрыть",
12 | "closest": "Ближайший: {}",
13 | "color_dictionary": "Словарь цветов",
14 | "colors": "цвета",
15 | "copied": "Скопировано",
16 | "copy": "Скопировать",
17 | "copy_as": "Скопировать как:",
18 | "copy_paste_into": "Скопировать и вставить в {}",
19 | "create_palette": "Создать палитру",
20 | "current": "Текущий",
21 | "custom_display": "Пользовательский экран",
22 | "delete": "Удалить",
23 | "display_mode": "Режим отображения",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "двойная высота",
26 | "dual_width": "двойная ширина",
27 | "triple_height": "тройная высота",
28 | "triple_width": "тройная ширина",
29 | "exact": "Точный: {}",
30 | "exit": "Выход",
31 | "flip_image": "Перевернуть изображение",
32 | "flip_wallpaper_horizontally": "Перевернуть обои горизонтально",
33 | "grim_slurp_required": "Требуются пакеты grim, slurp и imagemagick",
34 | "height": "Высота",
35 | "image_menu_button": "Кнопка меню изображения",
36 | "include_when_splitting": "Включить при разделении",
37 | "maim_slop_required": "Требуются пакеты maim и slop",
38 | "move": "В корзину",
39 | "move_to_trash": "Переместить выбранное в корзину",
40 | "name": "Имя",
41 | "no_colour_definitions": "Нет цветовых определений в {}",
42 | "no_picture_selected": "Изображение не выбрано",
43 | "ok": "OK",
44 | "open_another_folder": "Открыть другую папку",
45 | "open_folder": "Открыть папку",
46 | "open_with": "Открыть с помощью {}",
47 | "preferences": "Параметры",
48 | "refresh_folder_preview": "Обновить предпросмотр папки",
49 | "reload": "Перезагрузить",
50 | "remove_image": "Удалить изображение",
51 | "scale_and_crop": "Растянуть и обрезать",
52 | "screen_color_picker": "Экранная пипетка",
53 | "set_selected_wallpaper": "Установить выбранные обои",
54 | "sorting_order": "Метод сортировки",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "Вначале новые",
58 | "sorting_old": "Вначале старые",
59 | "split_selection_between_displays": "Разделить выбранное между дисплеями",
60 | "thumbnail_tooltip": "Клик чтобы выбрать, двойной клик чтобы установить, клик правой кнопкой - меню",
61 | "thumbnails_in_cache": "{} миниатюры в кеше ({})",
62 | "track_file_changes": "Отслеживать изменения файла",
63 | "use_display_names": "Использовать общие имена дисплея",
64 | "width": "Ширина"
65 | }
66 |
--------------------------------------------------------------------------------
/azote/langs/tr_TR.json:
--------------------------------------------------------------------------------
1 | {
2 | "about_azote": "Azote Hakkında",
3 | "app_desc": "Sway ve bazı diğer pencere yöneticileri için duvar kağıdı ve renk yöneticisi",
4 | "apply_settings": "Şuna uygula: {}",
5 | "apply_to_all": "Seçili resmi tüm ekranlara uygula",
6 | "background_color": "Arka plan rengi",
7 | "cancel": "İptal",
8 | "check_log": "{} kontrol et",
9 | "clear_unused_thumbnails": "Kullanılmayan küçük resimleri temizle",
10 | "clipboard_empty": "Panoya kopyalanacak bir şey yok",
11 | "close": "Kapat",
12 | "closest": "En yakın: {}",
13 | "color_dictionary": "Renk sözlüğü",
14 | "colors": "Renkler",
15 | "copied": "Kopyalandı",
16 | "copy": "Kopyala",
17 | "copy_as": "Şu formatta kopyala: {}",
18 | "copy_paste_into": "{} içine kopyala & yapıştır",
19 | "create_palette": "Palet oluştur",
20 | "current": "Mevcut",
21 | "custom_display": "Özel ekran",
22 | "delete": "Sil",
23 | "display_mode": "Ekran modu",
24 | "dotfiles": ".dotfiles",
25 | "dual_height": "Çift yükseklik",
26 | "dual_width": "Çift genişlik",
27 | "triple_height": "Üçlü yükseklik",
28 | "triple_width": "Üçlü genişlik",
29 | "exact": "Tam olarak: {}",
30 | "exit": "Çıkış",
31 | "flip_image": "Görseli çevir",
32 | "flip_wallpaper_horizontally": "Duvar kağıdını yatay çevir",
33 | "grim_slurp_required": "grim, slurp & imagemagick paketleri gerekli",
34 | "height": "Yükseklik",
35 | "image_menu_button": "Görsel menü butonu",
36 | "include_when_splitting": "Bölünürken dahil et",
37 | "maim_slop_required": "maim & slop paketleri gerekli",
38 | "move": "Çöpe taşı",
39 | "move_to_trash": "Seçili öğeyi çöpe taşı",
40 | "name": "Ad",
41 | "no_colour_definitions": "{} içinde renk tanımları yok",
42 | "no_picture_selected": "Seçili resim yok",
43 | "ok": "Tamam",
44 | "open_another_folder": "Başka bir klasör aç",
45 | "open_folder": "Klasör aç",
46 | "open_with": "{} ile aç",
47 | "preferences": "Tercihler",
48 | "refresh_folder_preview": "Klasör önizlemesini yenile",
49 | "reload": "Yeniden yükle",
50 | "remove_image": "Görseli kaldır",
51 | "scale_and_crop": "Ölçekle ve kırp",
52 | "screen_color_picker": "Ekran renk seçici",
53 | "set_selected_wallpaper": "Seçili duvar kağıdını ayarla",
54 | "sorting_order": "Sıralama düzeni",
55 | "sorting_az": "A -> Z",
56 | "sorting_za": "Z -> A",
57 | "sorting_new": "En yeni üstte",
58 | "sorting_old": "En eski üstte",
59 | "split_selection_between_displays": "Seçimi ekranlar arasında böl",
60 | "thumbnail_tooltip": "Seçmek için tıkla, ayarlamak için çift tıkla, menü için sağ tıkla",
61 | "thumbnails_in_cache": "Önbellekte {} küçük resim ({})",
62 | "track_file_changes": "Dosya değişikliklerini takip et",
63 | "use_display_names": "Genel ekran adlarını kullan",
64 | "width": "Genişlik"
65 | }
--------------------------------------------------------------------------------
/azote/plugins.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | # _*_ coding: utf-8 _*_
3 |
4 | import gi
5 | gi.require_version('Gtk', '3.0')
6 | from gi.repository import Gtk, Gdk
7 | from azote.tools import create_pixbuf
8 | from azote.color_tools import hex_to_rgb
9 | from azote import common
10 |
11 | # Check if python yaml module available
12 | try:
13 | from yaml import load, dump
14 | common.env['yaml'] = True
15 | except Exception as e:
16 | common.env['yaml'] = False
17 |
18 | if common.env['yaml']:
19 | try:
20 | from yaml import CLoader as Loader, CDumper as Dumper
21 | except ImportError:
22 | from yaml import Loader, Dumper
23 |
24 |
25 | class Alacritty(Gtk.Window):
26 | def __init__(self):
27 | super().__init__()
28 |
29 | self.set_title('alacritty.yml')
30 | self.set_resizable(False)
31 | self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
32 | self.set_position(Gtk.WindowPosition.NONE)
33 | self.set_keep_above(True)
34 |
35 | vbox0 = Gtk.VBox()
36 | vbox0.set_spacing(5)
37 | vbox0.set_border_width(5)
38 |
39 | hbox0 = Gtk.HBox()
40 | hbox0.set_spacing(5)
41 | hbox0.set_border_width(5)
42 |
43 | f = open(common.alacritty_config, "rb")
44 | self.data = load(f, Loader=Loader)
45 | try:
46 | output = dump(self.data['colors'], Dumper=Dumper, default_flow_style=False, sort_keys=False)
47 | except KeyError:
48 | output = None
49 |
50 | scrolled_window = Gtk.ScrolledWindow()
51 | scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
52 | scrolled_window.set_propagate_natural_width(True)
53 |
54 | self.textview = Gtk.TextView()
55 | self.textview.set_property("name", "preview")
56 | self.textview.set_editable(False)
57 |
58 | self.textbuffer = self.textview.get_buffer()
59 | if output:
60 | self.textbuffer.set_text(output)
61 | else:
62 | self.textbuffer.set_text("No color definitions found")
63 | scrolled_window.add(self.textview)
64 |
65 | if output:
66 | hbox0.add(scrolled_window)
67 |
68 | vbox = Gtk.VBox()
69 | vbox.set_spacing(3)
70 | vbox.set_border_width(5)
71 |
72 | if self.data['colors']:
73 | for key in self.data['colors']:
74 | label = Gtk.Label()
75 | label.set_property("name", "dotfiles-header")
76 | label.set_text(key.upper())
77 | vbox.add(label)
78 | try:
79 | for key1 in self.data['colors'][key]:
80 | hbox = Gtk.HBox()
81 | label = Gtk.Label()
82 | label.set_property("name", "dotfiles")
83 | label.set_text(key1)
84 | hbox.pack_start(label, True, False, 0)
85 | label = Gtk.Label()
86 | label.set_property("name", "dotfiles")
87 | hex_color = self.data['colors'][key][key1].replace('0x', '#')
88 | label.set_text(hex_color)
89 | hbox.pack_start(label, True, False, 0)
90 |
91 | preview_box = ColorPreviewBox(hex_color)
92 | preview_box.connect('button-press-event', self.on_box_press, label, key, key1)
93 |
94 | hbox.pack_start(preview_box, False, False, 0)
95 |
96 | vbox.pack_start(hbox, False, False, 0)
97 | except:
98 | pass
99 |
100 | hbox0.add(vbox)
101 |
102 | vbox0.add(hbox0)
103 |
104 | hbox = Gtk.HBox()
105 | hbox.set_spacing(5)
106 | hbox.set_border_width(5)
107 | label = Gtk.Label()
108 | if output:
109 | label.set_text(common.lang['copy_paste_into'].format(common.alacritty_config))
110 | else:
111 | label.set_text(common.lang['no_colour_definitions'].format(common.alacritty_config))
112 | label.set_property('name', 'dotfiles')
113 | hbox.add(label)
114 | button = Gtk.Button.new_with_label(common.lang['close'])
115 | button.connect_after('clicked', self.close_window)
116 | hbox.pack_start(button, False, False, 0)
117 |
118 | vbox0.pack_start(hbox, False, False, 0)
119 |
120 | self.add(vbox0)
121 | self.show_all()
122 |
123 | def update_preview(self):
124 | output = dump(self.data['colors'], Dumper=Dumper, default_flow_style=False, sort_keys=False)
125 | self.textbuffer.set_text(output)
126 |
127 | def on_box_press(self, preview_box, event, label, section, key):
128 | if common.clipboard_text:
129 | self.data['colors'][section][key] = common.clipboard_text.replace('#', '0x')
130 | label.set_text(common.clipboard_text)
131 | preview_box.update()
132 | self.update_preview()
133 |
134 | def close_window(self, button):
135 | self.close()
136 |
137 |
138 | class Xresources(Gtk.Window):
139 | def __init__(self):
140 | super().__init__()
141 |
142 | self.set_title('.Xresources')
143 | self.set_resizable(False)
144 | self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
145 | self.set_position(Gtk.WindowPosition.NONE)
146 | self.set_keep_above(True)
147 |
148 | vbox0 = Gtk.VBox()
149 | vbox0.set_spacing(5)
150 | vbox0.set_border_width(5)
151 |
152 | hbox0 = Gtk.HBox()
153 | hbox0.set_spacing(5)
154 | hbox0.set_border_width(5)
155 |
156 | f = open(common.xresources, "r")
157 | lines = f.read().splitlines()
158 | f.close()
159 | self.data = {}
160 |
161 | # We only parse the lines 2 or 3 words long; the last one must be a hex color like '#rrggbb'.
162 | for line in lines:
163 | line = line.strip()
164 | parts = line.split()
165 |
166 | if 0 < len(parts) < 4 and parts[-1].startswith('#') and len(parts[-1]) == 7:
167 | try:
168 | rgb = hex_to_rgb(parts[-1]) # validate the hex colour value
169 | if len(parts) == 2:
170 | key, value = parts
171 | self.data[key] = value
172 |
173 | elif len(parts) == 3:
174 | keyword, name, value = parts
175 | key = '{} {}'.format(keyword, name)
176 | self.data[key] = value
177 | except ValueError:
178 | print('Improper color value', parts[-1])
179 |
180 | output = ''
181 | for key, value in self.data.items():
182 | output += '{} {}\n'.format(key, value)
183 |
184 | scrolled_window = Gtk.ScrolledWindow()
185 | scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
186 | scrolled_window.set_propagate_natural_width(True)
187 |
188 | self.textview = Gtk.TextView()
189 | self.textview.set_property("name", "preview")
190 | self.textview.set_editable(False)
191 |
192 | self.textbuffer = self.textview.get_buffer()
193 | self.textbuffer.set_text(output)
194 | scrolled_window.add(self.textview)
195 |
196 | hbox0.add(scrolled_window)
197 |
198 | vbox = Gtk.VBox()
199 | vbox.set_spacing(3)
200 | vbox.set_border_width(5)
201 |
202 | for key, value in self.data.items():
203 | hbox = Gtk.HBox()
204 | label = Gtk.Label()
205 | label.set_property("name", "dotfiles")
206 | label.set_text(key)
207 | hbox.pack_start(label, True, False, 0)
208 | label = Gtk.Label()
209 | label.set_property("name", "dotfiles")
210 | hex_color = self.data[key]
211 | label.set_text(hex_color)
212 | hbox.pack_start(label, True, False, 0)
213 |
214 | preview_box = ColorPreviewBox(hex_color)
215 | preview_box.connect('button-press-event', self.on_box_press, label, key)
216 |
217 | hbox.pack_start(preview_box, False, False, 0)
218 |
219 | vbox.pack_start(hbox, False, False, 0)
220 |
221 | hbox0.add(vbox)
222 |
223 | vbox0.add(hbox0)
224 |
225 | hbox = Gtk.HBox()
226 | hbox.set_spacing(5)
227 | hbox.set_border_width(5)
228 | label = Gtk.Label(common.lang['copy_paste_into'].format(common.xresources))
229 | label.set_property('name', 'dotfiles')
230 | hbox.add(label)
231 | button = Gtk.Button.new_with_label(common.lang['close'])
232 | button.connect_after('clicked', self.close_window)
233 | hbox.pack_start(button, False, False, 0)
234 |
235 | vbox0.pack_start(hbox, False, False, 0)
236 |
237 | self.add(vbox0)
238 | self.show_all()
239 |
240 | def update_preview(self):
241 | output = ''
242 | for key, value in self.data.items():
243 | output += '{} {}\n'.format(key, value)
244 | self.textbuffer.set_text(output)
245 |
246 | def on_box_press(self, preview_box, event, label, key):
247 | if common.clipboard_text:
248 | self.data[key] = common.clipboard_text
249 | label.set_text(common.clipboard_text)
250 | preview_box.update()
251 | self.update_preview()
252 |
253 | def close_window(self, button):
254 | self.close()
255 |
256 |
257 | class ColorPreviewBox(Gtk.EventBox):
258 | def __init__(self, hex_color):
259 | super().__init__()
260 | try:
261 | pixbuf = create_pixbuf((common.settings.clip_prev_size, common.settings.clip_prev_size // 2),
262 | hex_to_rgb(hex_color))
263 | except:
264 | print('Improper color value: {}'.format(hex_color))
265 | pixbuf = create_pixbuf((common.settings.clip_prev_size, common.settings.clip_prev_size // 2),
266 | hex_to_rgb('#000000'))
267 | self.gtk_image = Gtk.Image.new_from_pixbuf(pixbuf)
268 | self.add(self.gtk_image)
269 |
270 | def update(self):
271 | if common.clipboard_text:
272 | pixbuf = create_pixbuf((common.settings.clip_prev_size, common.settings.clip_prev_size // 2),
273 | hex_to_rgb(common.clipboard_text))
274 | self.gtk_image.set_from_pixbuf(pixbuf)
275 |
--------------------------------------------------------------------------------
/dist/azote.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Encoding=UTF-8
3 | Type=Application
4 | Exec=azote
5 | Name=Azote
6 | Icon=azote
7 | Terminal=false
8 | GenericName=Azote wallpaper manager
9 | GenericName[pl]=Menedżer tapet Azote
10 | GenericName[de]=Azote Bildschirmhintergrund-Manager
11 | Categories=Utility;GTK;DesktopSettings;
12 | Comment=Browse, flip and set desktop wallpapers
13 | Comment[pl]=Przeglądaj, odwracaj i ustawiaj tapety pulpitu
14 | Keywords=background;desktop;
15 |
--------------------------------------------------------------------------------
/dist/azote.svg:
--------------------------------------------------------------------------------
1 |
2 |
120 |
--------------------------------------------------------------------------------
/dist/indicator_active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/dist/indicator_active.png
--------------------------------------------------------------------------------
/dist/indicator_attention.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nwg-piotr/azote/2ae47b79b555c9c1152683efff8cbc7a7fac7d6e/dist/indicator_attention.png
--------------------------------------------------------------------------------
/install.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | PROGRAM_NAME="azote"
4 | MODULE_NAME="azote"
5 | SITE_PACKAGES="$(python3 -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")"
6 | PATTERN="$SITE_PACKAGES/$MODULE_NAME*"
7 |
8 | # Remove from site_packages
9 | for path in $PATTERN; do
10 | if [ -e "$path" ]; then
11 | echo "Removing $path"
12 | rm -r "$path"
13 | fi
14 | done
15 |
16 | [ -d "./dist" ] && rm -rf ./dist
17 |
18 | rm -f /usr/bin/azote
19 |
20 | install -Dm 644 -t /usr/share/pixmaps "dist/$PROGRAM_NAME.svg"
21 | install -Dm 644 -t "/usr/share/$PROGRAM_NAME" dist/indicator*.png
22 | install -Dm 644 -t /usr/share/applications "dist/$PROGRAM_NAME.desktop"
23 | install -Dm 644 -t "/usr/share/doc/$PROGRAM_NAME" README.md
24 |
25 | python -m build --wheel --no-isolation
26 | python -m installer dist/*.whl
27 |
--------------------------------------------------------------------------------
/setup.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 | from setuptools import setup, find_packages
4 |
5 |
6 | def read(f_name):
7 | return open(os.path.join(os.path.dirname(__file__), f_name)).read()
8 |
9 |
10 | setup(
11 | name='azote',
12 | version='1.16.0',
13 | description='Wallpaper manager for sway and some other WMs',
14 | packages=find_packages(),
15 | include_package_data=True,
16 | package_data={
17 | "": ["images/*", "langs/*"]
18 | },
19 | url='https://github.com/nwg-piotr/azote',
20 | license='GPL3',
21 | author='Piotr Miller',
22 | author_email='nwg.piotr@gmail.com',
23 | python_requires='>=3.8.0',
24 | install_requires=[],
25 | entry_points={
26 | 'gui_scripts': [
27 | 'azote = azote.main:main'
28 | ]
29 | }
30 | )
31 |
--------------------------------------------------------------------------------