pax_global_header 0000666 0000000 0000000 00000000064 14734255052 0014521 g ustar 00root root 0000000 0000000 52 comment=cab8deb764472c9d727b5a44bfca0ce6e4612c8b
azote-1.14.1/ 0000775 0000000 0000000 00000000000 14734255052 0012727 5 ustar 00root root 0000000 0000000 azote-1.14.1/.github/ 0000775 0000000 0000000 00000000000 14734255052 0014267 5 ustar 00root root 0000000 0000000 azote-1.14.1/.github/FUNDING.yml 0000664 0000000 0000000 00000000041 14734255052 0016077 0 ustar 00root root 0000000 0000000 github: nwg-piotr
liberapay: nwg
azote-1.14.1/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14734255052 0016452 5 ustar 00root root 0000000 0000000 azote-1.14.1/.github/ISSUE_TEMPLATE/bug_report.md 0000664 0000000 0000000 00000001401 14734255052 0021140 0 ustar 00root root 0000000 0000000 ---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- Linux distribution: [e.g. Arch, Void]
- WM: [e.g. sway, i3]
**Azote version (please state it clearly if you use -git version):**
- version number from the "About" window
**Additional context**
Add any other context about the problem here.
azote-1.14.1/.github/ISSUE_TEMPLATE/feature_request.md 0000664 0000000 0000000 00000001123 14734255052 0022174 0 ustar 00root root 0000000 0000000 ---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
azote-1.14.1/.gitignore 0000664 0000000 0000000 00000000025 14734255052 0014714 0 ustar 00root root 0000000 0000000 /.idea
.vscode
/venv
azote-1.14.1/.travis.yml 0000664 0000000 0000000 00000000265 14734255052 0015043 0 ustar 00root root 0000000 0000000 language: python
python:
- "3.8"
- "3.9"
add-ons:
apt:
packages:
- python3-all
- python3-setuptools
script: python3 setup.py install --optimize=1
azote-1.14.1/CREDITS.md 0000664 0000000 0000000 00000002751 14734255052 0014353 0 ustar 00root root 0000000 0000000 # Credits
## colorthief
To generate color palettes, Azote uses the awesome [colorthief](https://github.com/fengsp/color-thief-py) python
module (c) 2015 by Shipeng Feng. The module in version 2.0.1 has been included directly into the Azote package, as the
`python-colorthief` package it's still absent in repositories of most Linux distributions.
## Colour names dictionary
Credits go to [Wikipedia](https://en.wikipedia.org/wiki/List_of_colors_(compact).
## Dependencies
- [swaybg](https://github.com/swaywm/swaybg) (c) 2016-2019 Drew DeVault
- [feh](https://feh.finalrewind.org) (c) 1999,2000 Tom Gilbert, 2010-2018 Daniel Friesel
- [python-pillow](https://python-pillow.github.io) (c) 1995-2011, Fredrik Lundh, 2010-2019 Alex Clark and Contributors'
- [python-gobject](https://wiki.gnome.org/Projects/PyGObject) (c) 2005-2019 The GNOME Project
- [gtk3](https://www.gtk.org) (c) 2007-2019 The GTK Team
- [python-xlib](https://github.com/python-xlib/python-xlib) (c) 2000-2002 Peter Liljenberg
- optional [python-send2trash](https://github.com/hsoft/send2trash) - for trash support
- optional [grim](https://github.com/emersion/grim), [slurp](https://github.com/emersion/slurp) - for screen color picker on Sway
- optional [maim](https://github.com/naelstrof/maim), [slop](https://github.com/naelstrof/slop) - for screen color picker on X11
- optional [imagemagick](https://imagemagick.org) - for screen color picker
- optional [python-yaml](https://pyyaml.org/wiki/PyYAML) - for alacritty.yml toolbox azote-1.14.1/LICENSE 0000664 0000000 0000000 00000104515 14734255052 0013742 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
azote-1.14.1/LICENSE-COLORTHIEF 0000664 0000000 0000000 00000002762 14734255052 0015377 0 ustar 00root root 0000000 0000000 Copyright (c) 2015 by Shipeng Feng.
Some rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
azote-1.14.1/MANIFEST.in 0000664 0000000 0000000 00000000100 14734255052 0014454 0 ustar 00root root 0000000 0000000 recursive-include azote/images *
recursive-include azote/langs * azote-1.14.1/README.md 0000664 0000000 0000000 00000023315 14734255052 0014212 0 ustar 00root root 0000000 0000000
Azote
This application is a part of the [nwg-shell](https://nwg-piotr.github.io/nwg-shell) project.
**Azote** is a GTK+3 - based picture browser and background setter, as the frontend to the [swaybg](https://github.com/swaywm/swaybg)
(sway/Wayland) and [feh](https://feh.finalrewind.org) (X windows) commands. The user interface is being developed with
multi-headed setups in mind. Azote also includes several colour management tools.
[](https://repology.org/project/azote/versions)
The program, written primarily for sway, should work on all wlroots-based Wayland compositors, as well as on
some X11 window managers. GNOME is not supported.
Azote relies on numerous external packages. Some of them determine if the program is capable of working in a certain
environment (sway / another wlroots-based compositor / X11). It's **up to the packager** which of them come preinstalled.
It's recommendable to first run `azote` from terminal:
- if one of missing packages disallows Azote to work at all (e.g. `python-xlib` or `feh` on X11, `wlr-randr` or
`swaybg` on Wayfire), the program will display a message and terminate with exit code 1.
- If a missing dependency just stops some feature from working, Azote will display a message and start normally.
```text
$ azote
python-send2trash package not found - deleting pictures unavailable
Running on Wayland, but not sway
Available screen height: 1030 px; measurement delay: 5 ms
```

## Project assumptions
The most commonly used *desktop background browser and setter* is aimed at X windows, and does not work with
wlroots-based composers. Since the `swaybg` command does everything we may need, it's enough to give it a GUI.
In order not to limit the program usage to the single environment, Azote is also capable of using feh
when running on i3, Openbox or other X11 window managers.
*The description below takes into account the current `master` branch. All the features may or may not be available in the
package already released for a certain Linux distribution. Some features rely on
[optional dependencies](https://github.com/nwg-piotr/azote#dependencies-as-used-in-the-azote-aur-package).*
### Main features:
- works on wlroots;
- uses own thumbnails, 240x135px by default;
- flips wallpapers horizontally;
- splits wallpapers between 2 or more displays;
- scales and crops images to detected or user-defined display dimensions;
- generates a colour palette on the basis of an image;
- picks a colour from the screen;
- allows to find and edit colour definitions in `.Xresources` and `alacritty.yml` files.
## Usage
Select the folder your wallpapers are stored in. If it contains a lot of big pictures, it may take some time for
Azote to create thumbnails. It's being performed once per folder, unless you clear the thumbnails folder.
Most of the buttons seem to be self-explanatory, with a little help from their tooltip text. What may not be clear
at first is the `Apply selected picture to all screens` button. It applies unchanged
selected picture to all displays, regardless of whether they are currently connected/detected. It may be useful if you
often connect and disconnect displays. A shortcut to this feature is just to double click a thumbnail. It'll always
use the 'fill' mode, however.
Azote, as well as feh, saves a batch file to your home directory. It needs to be executed in order to set the wallpaper
on subsequent logins or reboot.
### sway
Edit your `~/.config/sway/config` file. Replace your current wallpaper settings, like:
```bash
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
```
with:
```bash
exec ~/.azotebg
```
### Hyprland
Add `exec-once = ~/.azotebg-hyprland` to your hyprland.conf.
Since v1.12.0, we no longer use common ~/.azotebg file on sway and Hyprland, as they don't detect generic
display names the same way.
### Wayfire
In `~/.config/wayfire.ini` set `autostart_wf_shell = false`, and replace `background = wf-background` with
`background = ~/.azotebg`.
**Important:** optional `wlr-randr` / `wlr-randr-git` and `swaybg` packages are necessary.
### X window managers (i3, Openbox, dwm etc.)
You need to execute `~/.fehbg` from your window manager’s startup file.
You'll also need optional `feh` and `python-xlib` (or `python3-xlib`, depending on the distro) packages.
**Important:** optional `python-xlib` and `feh` packages are necessary.
**dwm note:**
If you start dwm from a script, it may look something like this:
```bash
# Statusbar loop
while true; do
xsetroot -name "$( date +"%F %R" )"
sleep 1m # Update time every minute
done &
# Autostart section
~/.fehbg &
exec dwm
```
### Dependencies (as used in the `azote` Arch package):
- `python` (`python3`)
- `python-setuptools`
- `python-gobject`
- `python-pillow`
- `gtk3`
- `python-cairo`
- `python-send2trash`
### Optional dependencies:
- `imagemagick`: for screen color picker in every environment
- `grim`, `slurp`: for screen color picker on sway / wlroots
- `maim`, `slop`: for screen color picker on X11
- `libappindicator-gtk3`: for tray status icon
- `python-yaml`: for alacritty.yml toolbox
- `swaybg`: for setting background on wlroots-based compositors other than sway
- `feh`: for setting background on X11-based WMs
- `python-xlib`: for checking outputs on X11-based WMs
- `wlr-randr` (`wlr-randr-git`): for checking outputs on wlroots-based compositors other than sway
Please use assets from the [latest release](https://github.com/nwg-piotr/azote/releases/latest).
Seeing Arch [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=azote) may be informative.
## ~/.config/azote/azoterc
```json
{
"thumb_width": "240",
"columns": "3",
"color_icon_w": "100",
"color_icon_h": "50",
"clip_prev_size": "30",
"palette_quality": "10",
"tracking_interval_seconds": "5",
"screen_measurement_delay": "300"
}
```
Azote is being developed on the 1920 x 1080 box, and some graphics dimensions may not go well with other screens.
The runtime configuration file allows to redefine them:
- `thumb_width` - thumbnail width; changing the value triggers thumbnails regeneration on startup;
- `columns` - initial number of columns in thumbnails preview;
- `color_icon_w`, `color_icon_h`, `clip_prev_size` - define dimensions of pictures which represent colors in the color
palette view;
- `palette_quality` - affects quality and time of generation of the colour palette on the basis of an image; the less - the
better, but slower; default value is 10;
- `tracking_interval_seconds` - determines how often the current wallpapers folder should be checked for file addition /
deletion;
- `screen_measurement_delay` (ms) - introduced to resolve [#108](https://github.com/nwg-piotr/azote/issues/108).
Since `Gdk.Screen.height` has been deprecated, there's no reasonable way to determine the screen dimensions.
We need to open a temporary window and measure its height to open the Azote window with maximum allowed vertical dimension.
Different hardware and window managers need different time to accomplish the task. Increase the value if the (floating)
window does not scale to the screen height. Decrease as much as possible to speed up launching Azote.
## Command line arguments
```text
$ azote -h
Azote wallpaper manager version 1.x.y
[-h] | [--help] Print help
[-l] | [--lang] Force a locale (de_DE, en_EN, fr_FR, pl_PL)
[-c] | [--clear] Clear unused thumbnails
[-a] | [--clear-all] Clear all thumbnails
```
## Troubleshooting
### [sway] My outputs use random names, wallpapers get lost after restart
Turn the "Use generic display names" preferences switch on (since v1.9.1).
See [#143](https://github.com/nwg-piotr/azote/issues/143).
### No pictures in thumbnails / display preview
As well thumbnails, as displays preview inherit from the Gtk.Button class. In case you don't see images inside them,
please make sure that button images are turned on in the `~/.config/gtk-3.0/settings.ini` file:
```bash
[Settings]
(...)
gtk-button-images=1
```
### 'Open with...' feature doesn't work
**Azote v1.2.0 and below** - no 'Open with' menu entry at all;
**Azote v1.3.0 and above** - the only program listed is feh.
The `/usr/share/applications/mimeinfo.cache` is probably missing from your system. Regenerate it:
```bash
$ sudo update-desktop-database
```
See https://specifications.freedesktop.org/desktop-entry-spec/0.9.5/ar01s07.html
### Floating Azote window does not scale to the screen height
Since `Gdk.Screen.height` has been deprecated, there's no reasonable way to determine the screen dimensions.
We need to open a temporary window (maximized or fullscreened on sway) and measure its height to open the Azote
window with maximum allowed vertical dimension.
*This does not apply to sway, where we measure the screen in another way.*
In `~/.config/azote/azoterc` you'll find the `"screen_measurement_delay": "300"` value. Different hardware
and window managers need different time to open the temporary window. Increase the value if the (floating)
window does not scale to the screen height. Decrease as much as possible to speed up launching Azote (and not to
see the black screen on sway). On my development machine the minimum value is 30 ms on sway and 5 ms on Wayfire.
## X11 / feh notice
You'll be unable to select different modes
*("scale", "max", "fill", "center", "tile")* for certain displays. The list of modes varies from what you see in Sway
*("stretch", "fit", "fill", "center", "tile")*.
azote-1.14.1/azote/ 0000775 0000000 0000000 00000000000 14734255052 0014051 5 ustar 00root root 0000000 0000000 azote-1.14.1/azote/__about__.py 0000664 0000000 0000000 00000000305 14734255052 0016327 0 ustar 00root root 0000000 0000000 try:
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
try:
__version__ = metadata.version("azote")
except Exception:
__version__ = "unknown" azote-1.14.1/azote/__init__.py 0000664 0000000 0000000 00000000000 14734255052 0016150 0 ustar 00root root 0000000 0000000 azote-1.14.1/azote/color_tools.py 0000664 0000000 0000000 00000133372 14734255052 0016772 0 ustar 00root root 0000000 0000000 #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
def rgba_to_hex(color):
"""
Return hexadecimal string for :class:`Gdk.RGBA` `color`
http://wrhansen.blogspot.com/2012/09/how-to-convert-gdkrgba-to-hex-string-in.html
"""
return "#{0:02x}{1:02x}{2:02x}".format(int(color.red * 255),
int(color.green * 255),
int(color.blue * 255))
def rgb_to_hex(rgb_color):
return '#%02x%02x%02x' % (rgb_color[0], rgb_color[1], rgb_color[2])
def hex_to_rgb(string):
string = string.lstrip('#')
return tuple(int(string[i:i+2], 16) for i in (0, 2, 4))
def rgb_to_rgba(rgb):
"""
:param rgb: tuple (rrr, ggg, bbb)
:return: tuple (r.r, g.g, b.b, 1.0)
"""
rgba = (rgb[0] / 255, rgb[1] / 255, rgb [2] / 255, 1.0)
return rgba
class WikiColours(object):
def __init__(self):
super().__init__()
# Definitions come from https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F.
# I removed redundant names arbitrarily.
self.colours = {"#0048ba": "Absolute Zero",
"#b0bf1a": "Acid green",
"#7cb9e8": "Aero",
"#c9ffe5": "Aero blue",
"#b284be": "African violet",
"#72a0c1": "Air superiority blue",
"#edeae0": "Alabaster",
"#f0f8ff": "Alice blue",
"#c46210": "Alloy orange",
"#efdecd": "Almond",
"#e52b50": "Amaranth",
"#9f2b68": "Amaranth (M&P)",
"#f19cbb": "Amaranth pink",
"#ab274f": "Amaranth purple",
"#d3212d": "Amaranth red",
"#3b7a57": "Amazon",
"#ffbf00": "Amber",
"#ff7e00": "Amber (SAE/ECE)",
"#9966cc": "Amethyst",
"#a4c639": "Android green",
"#cd9575": "Antique brass",
"#665d1e": "Antique bronze",
"#915c83": "Antique fuchsia",
"#841b2d": "Antique ruby",
"#faebd7": "Antique white",
"#8db600": "Apple green",
"#fbceb1": "Apricot",
"#7fffd4": "Aquamarine",
"#d0ff14": "Arctic lime",
"#4b5320": "Army green",
"#8f9779": "Artichoke",
"#e9d66b": "Arylide yellow",
"#b2beb5": "Ash gray",
"#87a96b": "Asparagus",
"#ff9966": "Atomic tangerine",
"#a52a2a": "Auburn",
"#fdee00": "Aureolin",
"#568203": "Avocado",
"#007fff": "Azure",
"#f0ffff": "Azure (X11/web color)",
"#89cff0": "Baby blue",
"#a1caf1": "Baby blue eyes",
"#f4c2c2": "Baby pink",
"#fefefa": "Baby powder",
"#ff91af": "Baker-Miller pink",
"#fae7b5": "Banana Mania",
"#da1884": "Barbie Pink",
"#7c0a02": "Barn red",
"#bcd4e6": "Beau blue",
"#9f8170": "Beaver",
"#f5f5dc": "Beige",
"#2e5894": "B'dazzled blue",
"#9c2542": "Big dip o’ruby",
"#ffe4c4": "Bisque",
"#3d2b1f": "Bistre",
"#967117": "Bistre brown",
"#cae00d": "Bitter lemon",
"#bfff00": "Bitter lime",
"#fe6f5e": "Bittersweet",
"#bf4f51": "Bittersweet shimmer",
"#000000": "Black",
"#3d0c02": "Black bean",
"#1b1811": "Black chocolate",
"#3b2f2f": "Black coffee",
"#54626f": "Black coral",
"#3b3c36": "Black olive",
"#bfafb2": "Black Shadows",
"#ffebcd": "Blanched almond",
"#a57164": "Blast-off bronze",
"#318ce7": "Bleu de France",
"#ace5ee": "Blizzard blue",
"#faf0be": "Blond",
"#660000": "Blood red",
"#0000ff": "Blue",
"#1f75fe": "Blue (Crayola)",
"#0093af": "Blue (Munsell)",
"#0087bd": "Blue (NCS)",
"#0018a8": "Blue (Pantone)",
"#333399": "Blue (pigment)",
"#0247fe": "Blue (RYB)",
"#a2a2d0": "Blue bell",
"#6699cc": "Blue-gray",
"#0d98ba": "Blue-green",
"#064e40": "Blue-green (color wheel)",
"#5dadec": "Blue jeans",
"#126180": "Blue sapphire",
"#8a2be2": "Blue-violet",
"#7366bd": "Blue-violet (Crayola)",
"#4d1a7f": "Blue-violet (color wheel)",
"#5072a7": "Blue yonder",
"#3c69e7": "Bluetiful",
"#de5d83": "Blush",
"#79443b": "Bole",
"#e3dac9": "Bone",
"#006a4e": "Bottle green",
"#87413f": "Brandy",
"#cb4154": "Brick red",
"#66ff00": "Bright green",
"#d891ef": "Bright lilac",
"#c32148": "Bright maroon",
"#1974d2": "Bright navy blue",
"#ffaa1d": "Bright yellow (Crayola)",
"#ff55a3": "Brilliant rose",
"#fb607f": "Brink pink",
"#004225": "British racing green",
"#cd7f32": "Bronze",
"#88540b": "Brown",
"#af6e4d": "Brown sugar",
"#1b4d3e": "Brunswick green",
"#7bb661": "Bud green",
"#f0dc82": "Buff",
"#800020": "Burgundy",
"#deb887": "Burlywood",
"#a17a74": "Burnished brown",
"#cc5500": "Burnt orange",
"#e97451": "Burnt sienna",
"#8a3324": "Burnt umber",
"#bd33a4": "Byzantine",
"#702963": "Byzantium",
"#536872": "Cadet",
"#5f9ea0": "Cadet blue",
"#a9b2c3": "Cadet blue (Crayola)",
"#91a3b0": "Cadet grey",
"#006b3c": "Cadmium green",
"#ed872d": "Cadmium orange",
"#e30022": "Cadmium red",
"#fff600": "Cadmium yellow",
"#a67b5b": "Café au lait",
"#4b3621": "Café noir",
"#a3c1ad": "Cambridge blue",
"#efbbcc": "Cameo pink",
"#ffff99": "Canary",
"#ffef00": "Canary yellow",
"#ff0800": "Candy apple red",
"#e4717a": "Candy pink",
"#592720": "Caput mortuum",
"#c41e3a": "Cardinal",
"#00cc99": "Caribbean green",
"#960018": "Carmine",
"#d70040": "Carmine (M&P)",
"#ffa6c9": "Carnation pink",
"#b31b1b": "Carnelian",
"#56a0d3": "Carolina blue",
"#ed9121": "Carrot orange",
"#00563f": "Castleton green",
"#703642": "Catawba",
"#c95a49": "Cedar Chest",
"#ace1af": "Celadon",
"#007ba7": "Celadon blue",
"#2f847c": "Celadon green",
"#246bce": "Celtic blue",
"#de3163": "Cerise",
"#2a52be": "Cerulean blue",
"#6d9bc3": "Cerulean frost",
"#1dacd6": "Cerulean (Crayola)",
"#007aa5": "CG blue",
"#e03c31": "CG red",
"#f7e7ce": "Champagne",
"#f1ddcf": "Champagne pink",
"#36454f": "Charcoal",
"#232b2b": "Charleston green",
"#e68fac": "Charm pink",
"#dfff00": "Chartreuse (traditional)",
"#7fff00": "Chartreuse (web)",
"#ffb7c5": "Cherry blossom pink",
"#954535": "Chestnut",
"#a8516e": "China rose",
"#aa381e": "Chinese red",
"#856088": "Chinese violet",
"#ffb200": "Chinese yellow",
"#7b3f00": "Chocolate (traditional)",
"#d2691e": "Chocolate (web)",
"#ffa700": "Chrome yellow",
"#98817b": "Cinereous",
"#e34234": "Cinnabar",
"#cd607e": "Cinnamon Satin",
"#e4d00a": "Citrine",
"#9fa91f": "Citron",
"#7f1734": "Claret",
"#0047ab": "Cobalt blue",
"#6f4e37": "Coffee",
"#b9d9eb": "Columbia Blue",
"#8c92ac": "Cool grey",
"#b87333": "Copper",
"#da8a67": "Copper (Crayola)",
"#ad6f69": "Copper penny",
"#cb6d51": "Copper red",
"#996666": "Copper rose",
"#ff3800": "Coquelicot",
"#ff7f50": "Coral",
"#893f45": "Cordovan",
"#6495ed": "Cornflower blue",
"#fff8dc": "Cornsilk",
"#2e2d88": "Cosmic cobalt",
"#fff8e7": "Cosmic latte",
"#81613c": "Coyote brown",
"#ffbcd9": "Cotton candy",
"#fffdd0": "Cream",
"#dc143c": "Crimson",
"#9e1b32": "Crimson (UA)",
"#f5f5f5": "Cultured",
"#00ffff": "Cyan",
"#00b7eb": "Cyan (process)",
"#58427c": "Cyber grape",
"#f56fa1": "Cyclamen",
"#666699": "Dark blue-gray",
"#654321": "Dark brown",
"#5d3954": "Dark byzantium",
"#26428b": "Dark cornflower blue",
"#008b8b": "Dark cyan",
"#536878": "Dark electric blue",
"#b8860b": "Dark goldenrod",
"#013220": "Dark green",
"#006400": "Dark green (X11)",
"#1a2421": "Dark jungle green",
"#bdb76b": "Dark khaki",
"#534b4f": "Dark liver",
"#543d37": "Dark liver (horses)",
"#8b008b": "Dark magenta",
"#4a5d23": "Dark moss green",
"#556b2f": "Dark olive green",
"#ff8c00": "Dark orange",
"#9932cc": "Dark orchid",
"#03c03c": "Dark pastel green",
"#301934": "Dark purple",
"#8b0000": "Dark red",
"#e9967a": "Dark salmon",
"#8fbc8f": "Dark sea green",
"#3c1414": "Dark sienna",
"#8cbed6": "Dark sky blue",
"#483d8b": "Dark slate blue",
"#2f4f4f": "Dark slate gray",
"#177245": "Dark spring green",
"#00ced1": "Dark turquoise",
"#9400d3": "Dark violet",
"#00703c": "Dartmouth green",
"#555555": "Davy's grey",
"#da3287": "Deep cerise",
"#b94e48": "Deep chestnut",
"#004b49": "Deep jungle green",
"#ff1493": "Deep pink",
"#ff9933": "Deep saffron",
"#00bfff": "Deep sky blue",
"#4a646c": "Deep Space Sparkle",
"#7e5e60": "Deep taupe",
"#1560bd": "Denim",
"#2243b6": "Denim blue",
"#edc9af": "Desert sand",
"#696969": "Dim gray",
"#1e90ff": "Dodger blue",
"#d71868": "Dogwood rose",
"#00009c": "Duke blue",
"#efdfbb": "Dutch white",
"#e1a95f": "Earth yellow",
"#555d50": "Ebony",
"#c2b280": "Ecru",
"#1b1b1b": "Eerie black",
"#614051": "Eggplant",
"#f0ead6": "Eggshell",
"#1034a6": "Egyptian blue",
"#7df9ff": "Electric blue",
"#6f00ff": "Electric indigo",
"#ccff00": "Electric lime",
"#bf00ff": "Electric purple",
"#6c3082": "Eminence",
"#b48395": "English lavender",
"#ab4b52": "English red",
"#cc474b": "English vermillion",
"#563c5c": "English violet",
"#00ff40": "Erin",
"#96c8a2": "Eton blue",
"#801818": "Falu red",
"#b53389": "Fandango",
"#de5285": "Fandango pink",
"#f400a1": "Fashion fuchsia",
"#e5aa70": "Fawn",
"#4d5d53": "Feldgrau",
"#4f7942": "Fern green",
"#6c541e": "Field drab",
"#ff5470": "Fiery rose",
"#b22222": "Firebrick",
"#ce2029": "Fire engine red",
"#e95c4b": "Fire opal",
"#e25822": "Flame",
"#eedc82": "Flax",
"#0063dc": "Flickr Blue",
"#fb0081": "Flickr Pink",
"#a2006d": "Flirt",
"#fffaf0": "Floral white",
"#15f4ee": "Fluorescent blue",
"#5fa777": "Forest green (Crayola)",
"#014421": "Forest green (traditional)",
"#228b22": "Forest green (web)",
"#856d4d": "French bistre",
"#0072bb": "French blue",
"#fd3f92": "French fuchsia",
"#86608e": "French lilac",
"#9efd38": "French lime",
"#d473d4": "French mauve",
"#fd6c9e": "French pink",
"#c72c48": "French raspberry",
"#f64a8a": "French rose",
"#77b5fe": "French sky blue",
"#8806ce": "French violet",
"#e936a7": "Frostbite",
"#c154c1": "Fuchsia (Crayola)",
"#cc397b": "Fuchsia purple",
"#c74375": "Fuchsia rose",
"#e48400": "Fulvous",
"#87421f": "Fuzzy Wuzzy",
"#dcdcdc": "Gainsboro",
"#e49b0f": "Gamboge",
"#007f66": "Generic viridian",
"#f8f8ff": "Ghost white",
"#6082b6": "Glaucous",
"#ab92b3": "Glossy grape",
"#00ab66": "GO green",
"#a57c00": "Gold",
"#d4af37": "Gold (metallic)",
"#ffd700": "Gold (web) (Golden)",
"#e6be8a": "Gold (Crayola)",
"#85754e": "Gold Fusion",
"#996515": "Golden brown",
"#fcc200": "Golden poppy",
"#ffdf00": "Golden yellow",
"#daa520": "Goldenrod",
"#676767": "Granite gray",
"#a8e4a0": "Granny Smith apple",
"#808080": "Gray (web)",
"#bebebe": "Gray (X11 gray)",
"#00ff00": "Green",
"#1cac78": "Green (Crayola)",
"#008000": "Green (web)",
"#00a877": "Green (Munsell)",
"#009f6b": "Green (NCS)",
"#00ad43": "Green (Pantone)",
"#00a550": "Green (pigment)",
"#66b032": "Green (RYB)",
"#1164b4": "Green-blue",
"#2887c8": "Green-blue (Crayola)",
"#009966": "Green-cyan",
"#a7f432": "Green Lizard",
"#6eaea1": "Green Sheen",
"#adff2f": "Green-yellow",
"#f0e891": "Green-yellow (Crayola)",
"#a99a86": "Grullo",
"#2a3439": "Gunmetal",
"#446ccf": "Han blue",
"#5218fa": "Han purple",
"#3fff00": "Harlequin",
"#da9100": "Harvest gold",
"#ff7a00": "Heat Wave",
"#df73ff": "Heliotrope",
"#aa98a9": "Heliotrope gray",
"#f0fff0": "Honeydew",
"#006db0": "Honolulu blue",
"#49796b": "Hooker's green",
"#ff1dce": "Hot magenta",
"#ff69b4": "Hot pink",
"#355e3b": "Hunter green",
"#71a6d2": "Iceberg",
"#fcf75e": "Icterine",
"#319177": "Illuminating emerald",
"#b2ec5d": "Inchworm",
"#4c516d": "Independence",
"#138808": "India green",
"#cd5c5c": "Indian red",
"#e3a857": "Indian yellow",
"#4b0082": "Indigo",
"#00416a": "Indigo dye",
"#002fa7": "International Klein Blue",
"#ff4f00": "International orange (aerospace)",
"#ba160c": "International orange (engineering)",
"#c0362c": "International orange (Golden Gate Bridge)",
"#5a4fcf": "Iris",
"#f4f0ec": "Isabelline",
"#b2ffff": "Italian sky blue",
"#fffff0": "Ivory",
"#00a86b": "Jade",
"#a50b5e": "Jazzberry jam",
"#343434": "Jet",
"#f4ca16": "Jonquil",
"#bdda57": "June bud",
"#29ab87": "Jungle green",
"#4cbb17": "Kelly green",
"#3ab09e": "Keppel",
"#e8f48c": "Key lime",
"#c3b091": "Khaki (web)",
"#f0e68c": "Khaki (X11) (Light khaki)",
"#e79fc4": "Kobi",
"#6b4423": "Kobicha",
"#354230": "Kombu green",
"#512888": "KSU purple",
"#d6cadd": "Languid lavender",
"#26619c": "Lapis lazuli",
"#ffff66": "Laser lemon",
"#a9ba9d": "Laurel green",
"#cf1020": "Lava",
"#b57edc": "Lavender (floral)",
"#e6e6fa": "Lavender (web)",
"#ccccff": "Lavender blue",
"#fff0f5": "Lavender blush",
"#c4c3d0": "Lavender gray",
"#7cfc00": "Lawn green",
"#fff700": "Lemon",
"#fffacd": "Lemon chiffon",
"#cca01d": "Lemon curry",
"#fdff00": "Lemon glacier",
"#f6eabe": "Lemon meringue",
"#fff44f": "Lemon yellow",
"#ffff9f": "Lemon yellow (Crayola)",
"#545aa7": "Liberty",
"#add8e6": "Light blue",
"#f08080": "Light coral",
"#93ccea": "Light cornflower blue",
"#e0ffff": "Light cyan",
"#c8ad7f": "Light French beige",
"#fafad2": "Light goldenrod yellow",
"#d3d3d3": "Light gray",
"#90ee90": "Light green",
"#fed8b1": "Light orange",
"#c5cbe1": "Light periwinkle",
"#ffb6c1": "Light pink",
"#ffa07a": "Light salmon",
"#20b2aa": "Light sea green",
"#87cefa": "Light sky blue",
"#778899": "Light slate gray",
"#b0c4de": "Light steel blue",
"#ffffe0": "Light yellow",
"#c8a2c8": "Lilac",
"#ae98aa": "Lilac Luster",
"#32cd32": "Lime green",
"#195905": "Lincoln green",
"#faf0e6": "Linen",
"#de6fa1": "Liseran purple",
"#6ca0dc": "Little boy blue",
"#674c47": "Liver",
"#b86d29": "Liver (dogs)",
"#6c2e1f": "Liver (organ)",
"#987456": "Liver chestnut",
"#ffbd88": "Macaroni and Cheese",
"#cc3336": "Madder Lake",
"#ff00ff": "Magenta",
"#f653a6": "Magenta (Crayola)",
"#ca1f7b": "Magenta (dye)",
"#d0417e": "Magenta (Pantone)",
"#ff0090": "Magenta (process)",
"#9f4576": "Magenta haze",
"#aaf0d1": "Magic mint",
"#f8f4ff": "Magnolia",
"#c04000": "Mahogany",
"#fbec5d": "Maize",
"#f2c649": "Maize (Crayola)",
"#6050dc": "Majorelle blue",
"#0bda51": "Malachite",
"#979aaa": "Manatee",
"#f37a48": "Mandarin",
"#fdbe02": "Mango",
"#ff8243": "Mango Tango",
"#74c365": "Mantis",
"#880085": "Mardi Gras",
"#eaa221": "Marigold",
"#800000": "Maroon (web)",
"#b03060": "Maroon (X11)",
"#e0b0ff": "Mauve",
"#915f6d": "Mauve taupe",
"#ef98aa": "Mauvelous",
"#47abcc": "Maximum blue",
"#30bfbf": "Maximum blue green",
"#acace6": "Maximum blue purple",
"#5e8c31": "Maximum green",
"#d9e650": "Maximum green yellow",
"#733380": "Maximum purple",
"#d92121": "Maximum red",
"#a63a79": "Maximum red purple",
"#fafa37": "Maximum yellow",
"#f2ba49": "Maximum yellow red",
"#4c9141": "May green",
"#73c2fb": "Maya blue",
"#66ddaa": "Medium aquamarine",
"#0000cd": "Medium blue",
"#e2062c": "Medium candy apple red",
"#af4035": "Medium carmine",
"#ba55d3": "Medium orchid",
"#9370db": "Medium purple",
"#3cb371": "Medium sea green",
"#7b68ee": "Medium slate blue",
"#00fa9a": "Medium spring green",
"#48d1cc": "Medium turquoise",
"#f8b878": "Mellow apricot",
"#f8de7e": "Mellow yellow",
"#febaad": "Melon",
"#d3af37": "Metallic gold",
"#0a7e8c": "Metallic Seaweed",
"#9c7c38": "Metallic Sunburst",
"#e4007c": "Mexican pink",
"#7ed4e6": "Middle blue",
"#8dd9cc": "Middle blue green",
"#8b72be": "Middle blue purple",
"#8b8680": "Middle grey",
"#4d8c57": "Middle green",
"#acbf60": "Middle green yellow",
"#d982b5": "Middle purple",
"#e58e73": "Middle red",
"#a55353": "Middle red purple",
"#ffeb00": "Middle yellow",
"#ecb176": "Middle yellow red",
"#702670": "Midnight",
"#191970": "Midnight blue",
"#004953": "Midnight green (eagle green)",
"#ffc40c": "Mikado yellow",
"#ffdae9": "Mimi pink",
"#e3f988": "Mindaro",
"#36747d": "Ming",
"#f5e050": "Minion yellow",
"#3eb489": "Mint",
"#f5fffa": "Mint cream",
"#98ff98": "Mint green",
"#bbb477": "Misty moss",
"#ffe4e1": "Misty rose",
"#8da399": "Morning blue",
"#8a9a5b": "Moss green",
"#30ba8f": "Mountain Meadow",
"#997a8d": "Mountbatten pink",
"#18453b": "MSU green",
"#c54b8c": "Mulberry",
"#c8509b": "Mulberry (Crayola)",
"#ffdb58": "Mustard",
"#317873": "Myrtle green",
"#d65282": "Mystic",
"#ad4379": "Mystic maroon",
"#f6adc6": "Nadeshiko pink",
"#ffdead": "Navajo white",
"#000080": "Navy blue",
"#4666ff": "Neon blue",
"#39ff14": "Neon green",
"#d7837f": "New York pink",
"#727472": "Nickel",
"#a4dded": "Non-photo blue",
"#e9ffdb": "Nyanza",
"#4f42b5": "Ocean Blue",
"#48bf91": "Ocean green",
"#cc7722": "Ochre",
"#43302e": "Old burgundy",
"#cfb53b": "Old gold",
"#fdf5e6": "Old lace",
"#796878": "Old lavender",
"#c08081": "Old rose",
"#848482": "Old silver",
"#808000": "Olive",
"#6b8e23": "Olive Drab (Nb3)",
"#3c341f": "Olive Drab (Nb7)",
"#b5b35c": "Olive green",
"#9ab973": "Olivine",
"#353839": "Onyx",
"#a8c3bc": "Opal",
"#b784a7": "Opera mauve",
"#ff7f00": "Orange",
"#ff7538": "Orange (Crayola)",
"#ff5800": "Orange (Pantone)",
"#ffa500": "Orange (web)",
"#ff9f00": "Orange peel",
"#ff681f": "Orange-red",
"#fa5b3d": "Orange soda",
"#f5bd1f": "Orange-yellow",
"#f8d568": "Orange-yellow (Crayola)",
"#da70d6": "Orchid",
"#f2bdcd": "Orchid pink",
"#e29cd2": "Orchid (Crayola)",
"#2d383a": "Outer space (Crayola)",
"#ff6e4a": "Outrageous Orange",
"#002147": "Oxford blue",
"#841617": "OU Crimson red",
"#1ca9c9": "Pacific blue",
"#006600": "Pakistan green",
"#682860": "Palatinate purple",
"#9bc4e2": "Pale cerulean",
"#fadadd": "Pale pink",
"#fae6fa": "Pale purple (Pantone)",
"#c9c0bb": "Pale silver",
"#78184a": "Pansy purple",
"#009b7d": "Paolo Veronese green",
"#ffefd5": "Papaya whip",
"#e63e62": "Paradise pink",
"#50c878": "Paris Green",
"#dea5a4": "Pastel pink",
"#ffe5b4": "Peach",
"#ffcba4": "Peach (Crayola)",
"#ffdab9": "Peach puff",
"#d1e231": "Pear",
"#b768a2": "Pearly purple",
"#c3cde6": "Periwinkle (Crayola)",
"#e12c2c": "Permanent Geranium Lake",
"#1c39bb": "Persian blue",
"#00a693": "Persian green",
"#32127a": "Persian indigo",
"#d99058": "Persian orange",
"#f77fbe": "Persian pink",
"#cc3333": "Persian red",
"#fe28a2": "Persian rose",
"#ec5800": "Persimmon",
"#8ba8b7": "Pewter Blue",
"#000f89": "Phthalo blue",
"#123524": "Phthalo green",
"#2e2787": "Picotee blue",
"#c30b4e": "Pictorial carmine",
"#fddde6": "Piggy pink",
"#01796f": "Pine green",
"#2a2f23": "Pine tree",
"#ffc0cb": "Pink",
"#d74894": "Pink (Pantone)",
"#fc74fd": "Pink flamingo",
"#ffddf4": "Pink lace",
"#d8b2d1": "Pink lavender",
"#f78fa7": "Pink Sherbet",
"#93c572": "Pistachio",
"#e5e4e2": "Platinum",
"#8e4585": "Plum",
"#dda0dd": "Plum (web)",
"#5946b2": "Plump Purple",
"#5da493": "Polished Pine",
"#be4f62": "Popstar",
"#ff5a36": "Portland Orange",
"#b0e0e6": "Powder blue",
"#f58025": "Princeton orange",
"#701c1c": "Prune",
"#003153": "Prussian blue",
"#df00ff": "Psychedelic purple",
"#cc8899": "Puce",
"#644117": "Pullman Brown (UPS Brown)",
"#ff7518": "Pumpkin",
"#6a0dad": "Purple",
"#800080": "Purple (web)",
"#9f00c5": "Purple (Munsell)",
"#a020f0": "Purple (X11)",
"#9678b6": "Purple mountain majesty",
"#4e5180": "Purple navy",
"#fe4eda": "Purple pizzazz",
"#9c51b6": "Purple Plum",
"#9a4eae": "Purpureus",
"#436b95": "Queen blue",
"#e8ccd7": "Queen pink",
"#a6a6a6": "Quick Silver",
"#8e3a59": "Quinacridone magenta",
"#ff355e": "Radical Red",
"#242124": "Raisin black",
"#fbab60": "Rajah",
"#e30b5d": "Raspberry",
"#b3446c": "Raspberry rose",
"#d68a59": "Raw Sienna",
"#826644": "Raw umber",
"#ff33cc": "Razzle dazzle rose",
"#e3256b": "Razzmatazz",
"#8d4e85": "Razzmic Berry",
"#663399": "Rebecca Purple",
"#ff0000": "Red",
"#ee204d": "Red (Crayola)",
"#f2003c": "Red (Munsell)",
"#c40233": "Red (NCS)",
"#ed2939": "Red (Pantone)",
"#ed1c24": "Red (pigment)",
"#fe2712": "Red (RYB)",
"#ff5349": "Red-orange",
"#ff4500": "Red-orange (Color wheel)",
"#e40078": "Red-purple",
"#fd3a4a": "Red Salsa",
"#c71585": "Red-violet",
"#c0448f": "Red-violet (Crayola)",
"#922b3e": "Red-violet (Color wheel)",
"#a45a52": "Redwood",
"#002387": "Resolution blue",
"#777696": "Rhythm",
"#004040": "Rich black",
"#010b13": "Rich black (FOGRA29)",
"#010203": "Rich black (FOGRA39)",
"#444c38": "Rifle green",
"#00cccc": "Robin egg blue",
"#8a7f80": "Rocket metallic",
"#838996": "Roman silver",
"#ff007f": "Rose",
"#f9429e": "Rose bonbon",
"#9e5e6f": "Rose Dust",
"#674846": "Rose ebony",
"#e32636": "Rose madder",
"#ff66cc": "Rose pink",
"#c21e56": "Rose red",
"#905d5d": "Rose taupe",
"#ab4e52": "Rose vale",
"#65000b": "Rosewood",
"#d40000": "Rosso corsa",
"#bc8f8f": "Rosy brown",
"#002366": "Royal blue (dark)",
"#4169e1": "Royal blue (light)",
"#7851a9": "Royal purple",
"#fada5e": "Royal yellow",
"#ce4676": "Ruber",
"#d10056": "Rubine red",
"#e0115f": "Ruby",
"#9b111e": "Ruby red",
"#a81c07": "Rufous",
"#80461b": "Russet",
"#679267": "Russian green",
"#32174d": "Russian violet",
"#b7410e": "Rust",
"#da2c43": "Rusty red",
"#043927": "Sacramento State green",
"#8b4513": "Saddle brown",
"#ff7800": "Safety orange",
"#ff6700": "Safety orange (blaze orange)",
"#eed202": "Safety yellow",
"#f4c430": "Saffron",
"#bcb88a": "Sage",
"#23297a": "St. Patrick's blue",
"#fa8072": "Salmon",
"#ff91a4": "Salmon pink",
"#f4a460": "Sandy brown",
"#507d2a": "Sap green",
"#0f52ba": "Sapphire",
"#0067a5": "Sapphire blue",
"#cba135": "Satin sheen gold",
"#ff2400": "Scarlet",
"#ffd800": "School bus yellow",
"#66ff66": "Screamin' Green",
"#2e8b57": "Sea green",
"#00ffcd": "Sea green (Crayola)",
"#59260b": "Seal brown",
"#fff5ee": "Seashell",
"#ffba00": "Selective yellow",
"#704214": "Sepia",
"#8a795d": "Shadow",
"#778ba5": "Shadow blue",
"#009e60": "Shamrock green",
"#8fd400": "Sheen green",
"#d98695": "Shimmering Blush",
"#5fa778": "Shiny Shamrock",
"#fc0fc0": "Shocking pink",
"#882d17": "Sienna",
"#c0c0c0": "Silver",
"#aaa9ad": "Silver (Metallic)",
"#acacac": "Silver chalice",
"#c4aead": "Silver pink",
"#bfc1c2": "Silver sand",
"#cb410b": "Sinopia",
"#ff3855": "Sizzling Red",
"#ffdb00": "Sizzling Sunrise",
"#007474": "Skobeloff",
"#87ceeb": "Sky blue",
"#76d7ea": "Sky blue (Crayola)",
"#cf71af": "Sky magenta",
"#6a5acd": "Slate blue",
"#708090": "Slate gray",
"#299617": "Slimy green",
"#c84186": "Smitten",
"#100c08": "Smoky black",
"#fffafa": "Snow",
"#893843": "Solid pink",
"#757575": "Sonic silver",
"#1d2951": "Space cadet",
"#807532": "Spanish bistre",
"#0070b8": "Spanish blue",
"#d10047": "Spanish carmine",
"#989898": "Spanish gray",
"#009150": "Spanish green",
"#e86100": "Spanish orange",
"#f7bfbe": "Spanish pink",
"#e60026": "Spanish red",
"#4c2882": "Spanish violet",
"#007f5c": "Spanish viridian",
"#a7fc00": "Spring bud",
"#87ff2a": "Spring Frost",
"#00ff7f": "Spring green",
"#ecebbd": "Spring green (Crayola)",
"#007bb8": "Star command blue",
"#4682b4": "Steel blue",
"#cc33cc": "Steel pink",
"#5f8a8b": "Steel Teal",
"#e4d96f": "Straw",
"#914e75": "Sugar Plum",
"#ffcc33": "Sunglow",
"#e3ab57": "Sunray",
"#fad6a5": "Sunset",
"#cf6ba9": "Super pink",
"#a83731": "Sweet Brown",
"#d2b48c": "Tan",
"#d99a6c": "Tan (Crayola)",
"#f28500": "Tangerine",
"#fb4d46": "Tart Orange",
"#483c32": "Taupe",
"#8b8589": "Taupe gray",
"#d0f0c0": "Tea green",
"#f88379": "Tea rose",
"#008080": "Teal",
"#367588": "Teal blue",
"#cf3476": "Telemagenta",
"#cd5700": "Tenné (tawny)",
"#e2725b": "Terra cotta",
"#d8bfd8": "Thistle",
"#fc89ac": "Tickle Me Pink",
"#0abab5": "Tiffany Blue",
"#dbd7d2": "Timberwolf",
"#eee600": "Titanium yellow",
"#ff6347": "Tomato",
"#00755e": "Tropical rain forest",
"#2d68c4": "True Blue",
"#1c05b3": "Trypan Blue",
"#3e8ede": "Tufts blue",
"#deaa88": "Tumbleweed",
"#40e0d0": "Turquoise",
"#00ffef": "Turquoise blue",
"#a0d6b4": "Turquoise green",
"#7c4848": "Tuscan red",
"#c09999": "Tuscany",
"#8a496b": "Twilight lavender",
"#66023c": "Tyrian purple",
"#0033aa": "UA blue",
"#d9004c": "UA red",
"#3f00ff": "Ultramarine",
"#4166f5": "Ultramarine blue",
"#ff6fff": "Ultra pink",
"#fc6c85": "Ultra red",
"#635147": "Umber",
"#ffddca": "Unbleached silk",
"#5b92e5": "United Nations blue",
"#7b1113": "UP maroon",
"#ae2029": "Upsdell red",
"#afdbf5": "Uranian blue",
"#004f98": "USAFA blue",
"#664228": "Van Dyke brown",
"#f3e5ab": "Vanilla",
"#f38fa9": "Vanilla ice",
"#c5b358": "Vegas gold",
"#c80815": "Venetian red",
"#43b3ae": "Verdigris",
"#d9381e": "Vermilion1",
"#8f00ff": "Violet",
"#7f00ff": "Violet (color wheel)",
"#963d7f": "Violet (crayola)",
"#8601af": "Violet (RYB)",
"#ee82ee": "Violet (web)",
"#324ab2": "Violet-blue",
"#766ec8": "Violet-blue (Crayola)",
"#f75394": "Violet-red",
"#40826d": "Viridian",
"#009698": "Viridian green",
"#9f1d35": "Vivid burgundy",
"#00ccff": "Vivid sky blue",
"#ffa089": "Vivid tangerine",
"#9f00ff": "Vivid violet",
"#ceff00": "Volt",
"#004242": "Warm black",
"#f5deb3": "Wheat",
"#ffffff": "White",
"#a2add0": "Wild blue yonder",
"#d470a2": "Wild orchid",
"#ff43a4": "Wild Strawberry",
"#a75502": "Windsor tan",
"#722f37": "Wine",
"#673147": "Wine dregs",
"#ff007c": "Winter Sky",
"#56887d": "Wintergreen Dream",
"#c9a0dc": "Wisteria",
"#c19a6b": "Wood brown",
"#eeed09": "Xanthic",
"#738678": "Xanadu",
"#0c020f": "Xiketic",
"#0f4d92": "Yale Blue",
"#ffff00": "Yellow",
"#fce883": "Yellow (Crayola)",
"#efcc00": "Yellow (Munsell)",
"#ffd300": "Yellow (NCS)",
"#fedf00": "Yellow (Pantone)",
"#fefe33": "Yellow (RYB)",
"#9acd32": "Yellow-green",
"#c5e384": "Yellow-green (Crayola)",
"#30b21a": "Yellow-green (Color Wheel)",
"#ffae42": "Yellow Orange",
"#ff9505": "Yellow Orange (Color Wheel)",
"#2e5090": "YInMn Blue",
"#0014a8": "Zaffre",
"#39a78e": "Zomp"}
def closest_colour(self, requested_colour):
"""
Credits go to fraxel: https://stackoverflow.com/a/9694246/4040598
:param requested_colour: #rrggbb string
:return: The closest colour name as a string
"""
requested_colour = hex_to_rgb(requested_colour)
min_colours = {}
for key, name in self.colours.items():
r_c, g_c, b_c = hex_to_rgb(key)
rd = (r_c - requested_colour[0]) ** 2
gd = (g_c - requested_colour[1]) ** 2
bd = (b_c - requested_colour[2]) ** 2
min_colours[(rd + gd + bd)] = name
c_name = min_colours[min(min_colours.keys())]
hex_value = None
for key, name in self.colours.items():
if name == c_name:
hex_value = ' {}'.format(key)
break
return c_name + hex_value
def get_colour_name(self, requested_colour):
try:
closest_name = actual_name = self.colours[requested_colour]
except KeyError:
closest_name = self.closest_colour(requested_colour)
actual_name = None
return actual_name, closest_name
azote-1.14.1/azote/colorthief.py 0000664 0000000 0000000 00000032353 14734255052 0016567 0 ustar 00root root 0000000 0000000 # -*- coding: utf-8 -*-
"""
colorthief
~~~~~~~~~~
Grabbing the color palette from an image.
:copyright: (c) 2015 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
__version__ = '0.2.1'
import math
from PIL import Image
class cached_property(object):
"""Decorator that creates converts a method with a single
self argument into a property cached on the instance.
"""
def __init__(self, func):
self.func = func
def __get__(self, instance, type):
res = instance.__dict__[self.func.__name__] = self.func(instance)
return res
class ColorThief(object):
"""Color thief main class."""
def __init__(self, file):
"""Create one color thief for one image.
:param file: A filename (string) or a file object. The file object
must implement `read()`, `seek()`, and `tell()` methods,
and be opened in binary mode.
"""
self.image = Image.open(file)
def get_color(self, quality=10):
"""Get the dominant color.
:param quality: quality settings, 1 is the highest quality, the bigger
the number, the faster a color will be returned but
the greater the likelihood that it will not be the
visually most dominant color
:return tuple: (r, g, b)
"""
palette = self.get_palette(5, quality)
return palette[0]
def get_palette(self, color_count=10, quality=10):
"""Build a color palette. We are using the median cut algorithm to
cluster similar colors.
:param color_count: the size of the palette, max number of colors
:param quality: quality settings, 1 is the highest quality, the bigger
the number, the faster the palette generation, but the
greater the likelihood that colors will be missed.
:return list: a list of tuple in the form (r, g, b)
"""
image = self.image.convert('RGBA')
width, height = image.size
pixels = image.getdata()
pixel_count = width * height
valid_pixels = []
for i in range(0, pixel_count, quality):
r, g, b, a = pixels[i]
# If pixel is mostly opaque and not white
if a >= 125:
if not (r > 250 and g > 250 and b > 250):
valid_pixels.append((r, g, b))
# Send array to quantize function which clusters values
# using median cut algorithm
cmap = MMCQ.quantize(valid_pixels, color_count)
return cmap.palette
class MMCQ(object):
"""Basic Python port of the MMCQ (modified median cut quantization)
algorithm from the Leptonica library (http://www.leptonica.com/).
"""
SIGBITS = 5
RSHIFT = 8 - SIGBITS
MAX_ITERATION = 1000
FRACT_BY_POPULATIONS = 0.75
@staticmethod
def get_color_index(r, g, b):
return (r << (2 * MMCQ.SIGBITS)) + (g << MMCQ.SIGBITS) + b
@staticmethod
def get_histo(pixels):
"""histo (1-d array, giving the number of pixels in each quantized
region of color space)
"""
histo = dict()
for pixel in pixels:
rval = pixel[0] >> MMCQ.RSHIFT
gval = pixel[1] >> MMCQ.RSHIFT
bval = pixel[2] >> MMCQ.RSHIFT
index = MMCQ.get_color_index(rval, gval, bval)
histo[index] = histo.setdefault(index, 0) + 1
return histo
@staticmethod
def vbox_from_pixels(pixels, histo):
rmin = 1000000
rmax = 0
gmin = 1000000
gmax = 0
bmin = 1000000
bmax = 0
for pixel in pixels:
rval = pixel[0] >> MMCQ.RSHIFT
gval = pixel[1] >> MMCQ.RSHIFT
bval = pixel[2] >> MMCQ.RSHIFT
rmin = min(rval, rmin)
rmax = max(rval, rmax)
gmin = min(gval, gmin)
gmax = max(gval, gmax)
bmin = min(bval, bmin)
bmax = max(bval, bmax)
return VBox(rmin, rmax, gmin, gmax, bmin, bmax, histo)
@staticmethod
def median_cut_apply(histo, vbox):
if not vbox.count:
return (None, None)
rw = vbox.r2 - vbox.r1 + 1
gw = vbox.g2 - vbox.g1 + 1
bw = vbox.b2 - vbox.b1 + 1
maxw = max([rw, gw, bw])
# only one pixel, no split
if vbox.count == 1:
return (vbox.copy, None)
# Find the partial sum arrays along the selected axis.
total = 0
sum_ = 0
partialsum = {}
lookaheadsum = {}
do_cut_color = None
if maxw == rw:
do_cut_color = 'r'
for i in range(vbox.r1, vbox.r2 + 1):
sum_ = 0
for j in range(vbox.g1, vbox.g2 + 1):
for k in range(vbox.b1, vbox.b2 + 1):
index = MMCQ.get_color_index(i, j, k)
sum_ += histo.get(index, 0)
total += sum_
partialsum[i] = total
elif maxw == gw:
do_cut_color = 'g'
for i in range(vbox.g1, vbox.g2 + 1):
sum_ = 0
for j in range(vbox.r1, vbox.r2 + 1):
for k in range(vbox.b1, vbox.b2 + 1):
index = MMCQ.get_color_index(j, i, k)
sum_ += histo.get(index, 0)
total += sum_
partialsum[i] = total
else: # maxw == bw
do_cut_color = 'b'
for i in range(vbox.b1, vbox.b2 + 1):
sum_ = 0
for j in range(vbox.r1, vbox.r2 + 1):
for k in range(vbox.g1, vbox.g2 + 1):
index = MMCQ.get_color_index(j, k, i)
sum_ += histo.get(index, 0)
total += sum_
partialsum[i] = total
for i, d in partialsum.items():
lookaheadsum[i] = total - d
# determine the cut planes
dim1 = do_cut_color + '1'
dim2 = do_cut_color + '2'
dim1_val = getattr(vbox, dim1)
dim2_val = getattr(vbox, dim2)
for i in range(dim1_val, dim2_val + 1):
if partialsum[i] > (total / 2):
vbox1 = vbox.copy
vbox2 = vbox.copy
left = i - dim1_val
right = dim2_val - i
if left <= right:
d2 = min([dim2_val - 1, int(i + right / 2)])
else:
d2 = max([dim1_val, int(i - 1 - left / 2)])
# avoid 0-count boxes
while not partialsum.get(d2, False):
d2 += 1
count2 = lookaheadsum.get(d2)
while not count2 and partialsum.get(d2 - 1, False):
d2 -= 1
count2 = lookaheadsum.get(d2)
# set dimensions
setattr(vbox1, dim2, d2)
setattr(vbox2, dim1, getattr(vbox1, dim2) + 1)
return (vbox1, vbox2)
return (None, None)
@staticmethod
def quantize(pixels, max_color):
"""Quantize.
:param pixels: a list of pixel in the form (r, g, b)
:param max_color: max number of colors
"""
if not pixels:
raise Exception('Empty pixels when quantize.')
if max_color < 2 or max_color > 256:
raise Exception('Wrong number of max colors when quantize.')
histo = MMCQ.get_histo(pixels)
# check that we aren't below maxcolors already
if len(histo) <= max_color:
# generate the new colors from the histo and return
pass
# get the beginning vbox from the colors
vbox = MMCQ.vbox_from_pixels(pixels, histo)
pq = PQueue(lambda x: x.count)
pq.push(vbox)
# inner function to do the iteration
def iter_(lh, target):
n_color = 1
n_iter = 0
while n_iter < MMCQ.MAX_ITERATION:
vbox = lh.pop()
if not vbox.count: # just put it back
lh.push(vbox)
n_iter += 1
continue
# do the cut
vbox1, vbox2 = MMCQ.median_cut_apply(histo, vbox)
if not vbox1:
raise Exception("vbox1 not defined; shouldn't happen!")
lh.push(vbox1)
if vbox2: # vbox2 can be null
lh.push(vbox2)
n_color += 1
if n_color >= target:
return
if n_iter > MMCQ.MAX_ITERATION:
return
n_iter += 1
# first set of colors, sorted by population
iter_(pq, MMCQ.FRACT_BY_POPULATIONS * max_color)
# Re-sort by the product of pixel occupancy times the size in
# color space.
pq2 = PQueue(lambda x: x.count * x.volume)
while pq.size():
pq2.push(pq.pop())
# next set - generate the median cuts using the (npix * vol) sorting.
iter_(pq2, max_color - pq2.size())
# calculate the actual colors
cmap = CMap()
while pq2.size():
cmap.push(pq2.pop())
return cmap
class VBox(object):
"""3d color space box"""
def __init__(self, r1, r2, g1, g2, b1, b2, histo):
self.r1 = r1
self.r2 = r2
self.g1 = g1
self.g2 = g2
self.b1 = b1
self.b2 = b2
self.histo = histo
@cached_property
def volume(self):
sub_r = self.r2 - self.r1
sub_g = self.g2 - self.g1
sub_b = self.b2 - self.b1
return (sub_r + 1) * (sub_g + 1) * (sub_b + 1)
@property
def copy(self):
return VBox(self.r1, self.r2, self.g1, self.g2,
self.b1, self.b2, self.histo)
@cached_property
def avg(self):
ntot = 0
mult = 1 << (8 - MMCQ.SIGBITS)
r_sum = 0
g_sum = 0
b_sum = 0
for i in range(self.r1, self.r2 + 1):
for j in range(self.g1, self.g2 + 1):
for k in range(self.b1, self.b2 + 1):
histoindex = MMCQ.get_color_index(i, j, k)
hval = self.histo.get(histoindex, 0)
ntot += hval
r_sum += hval * (i + 0.5) * mult
g_sum += hval * (j + 0.5) * mult
b_sum += hval * (k + 0.5) * mult
if ntot:
r_avg = int(r_sum / ntot)
g_avg = int(g_sum / ntot)
b_avg = int(b_sum / ntot)
else:
r_avg = int(mult * (self.r1 + self.r2 + 1) / 2)
g_avg = int(mult * (self.g1 + self.g2 + 1) / 2)
b_avg = int(mult * (self.b1 + self.b2 + 1) / 2)
return r_avg, g_avg, b_avg
def contains(self, pixel):
rval = pixel[0] >> MMCQ.RSHIFT
gval = pixel[1] >> MMCQ.RSHIFT
bval = pixel[2] >> MMCQ.RSHIFT
return all([
rval >= self.r1,
rval <= self.r2,
gval >= self.g1,
gval <= self.g2,
bval >= self.b1,
bval <= self.b2,
])
@cached_property
def count(self):
npix = 0
for i in range(self.r1, self.r2 + 1):
for j in range(self.g1, self.g2 + 1):
for k in range(self.b1, self.b2 + 1):
index = MMCQ.get_color_index(i, j, k)
npix += self.histo.get(index, 0)
return npix
class CMap(object):
"""Color map"""
def __init__(self):
self.vboxes = PQueue(lambda x: x['vbox'].count * x['vbox'].volume)
@property
def palette(self):
return self.vboxes.map(lambda x: x['color'])
def push(self, vbox):
self.vboxes.push({
'vbox': vbox,
'color': vbox.avg,
})
def size(self):
return self.vboxes.size()
def nearest(self, color):
d1 = None
p_color = None
for i in range(self.vboxes.size()):
vbox = self.vboxes.peek(i)
d2 = math.sqrt(
math.pow(color[0] - vbox['color'][0], 2) +
math.pow(color[1] - vbox['color'][1], 2) +
math.pow(color[2] - vbox['color'][2], 2)
)
if d1 is None or d2 < d1:
d1 = d2
p_color = vbox['color']
return p_color
def map(self, color):
for i in range(self.vboxes.size()):
vbox = self.vboxes.peek(i)
if vbox['vbox'].contains(color):
return vbox['color']
return self.nearest(color)
class PQueue(object):
"""Simple priority queue."""
def __init__(self, sort_key):
self.sort_key = sort_key
self.contents = []
self._sorted = False
def sort(self):
self.contents.sort(key=self.sort_key)
self._sorted = True
def push(self, o):
self.contents.append(o)
self._sorted = False
def peek(self, index=None):
if not self._sorted:
self.sort()
if index is None:
index = len(self.contents) - 1
return self.contents[index]
def pop(self):
if not self._sorted:
self.sort()
return self.contents.pop()
def size(self):
return len(self.contents)
def map(self, f):
return list(map(f, self.contents))
azote-1.14.1/azote/common.py 0000664 0000000 0000000 00000003750 14734255052 0015720 0 ustar 00root root 0000000 0000000 #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
"""
Wallpaper manager for Sway, i3 and some other WMs, as a frontend to swaybg and feh
Author: Piotr Miller
e-mail: nwg.piotr@gmail.com
Website: http://nwg.pl
Project: https://github.com/nwg-piotr/azote
License: GPL3
"""
app_name = 'azote'
CRITICAL = 'critical'
ERROR = 'error'
WARNING = 'warning'
INFO = 'info'
DEBUG = 'debug'
env = {}
sway = False
screen_h = None
lang = None # dictionary "name": lang_string
preview = None
progress_bar = None
status_bar = None
thumbnails_list = None
display_boxes_list = None
selected_wallpaper = None
selected_picture_label = None
split_button = None
apply_button = None
apply_to_all_button = None
cols = 3 # number of columns in pictures preview
allowed_file_types = ['jpg', 'jpeg', 'png', 'webp']
associations = None # dictionary {'extension": [program1, program2, program3, ...]}
app_dir = '' # ~/.azote
thumb_dir = '' # ~/.azote/thumbnails
tmp_dir = '' # ~/.azote/temp
bcg_dir = '' # ~/.azote/backgrounds-sway or ~/.azote/backgrounds-feh
sample_dir = '' # ~/.azote/sample
log_file = '' # ~/.azote/log.txt
cmd_file = '' # ~/.azote/command.sh
config_home = ''
azote_config_home = '' # $XDG_CONFIG_HOME or ~/.config/azote
data_home = '' # $XDG_DATA_HOME or ~/.local/share/azote
alacritty_config = ''
xresources = ''
data_migrated = False
logging_enabled = True
displays = None # detected displays details
settings = None # object saved to / restored from ~/.azote/settings.pkl
modes_swaybg = ["stretch", "fit", "fill", "center", "tile"]
modes_feh = ["scale", "max", "fill", "center", "tile"]
main_window = None
clipboard = None
clipboard_text = '' # to transfer colors between toolbars we'll use this instead of the real clipboard content
picker = False
cpd = None # ColorPaletteDialog object
dotfile_window = None
picker_window = None
indicator = None
color_names = None
azote-1.14.1/azote/images/ 0000775 0000000 0000000 00000000000 14734255052 0015316 5 ustar 00root root 0000000 0000000 azote-1.14.1/azote/images/azote-wallpaper.png 0000664 0000000 0000000 00004361241 14734255052 0021146 0 ustar 00root root 0000000 0000000 PNG
IHDR p \% [zTXtRaw profile type exif xڥk$
/Bx^?eU{USI6IPHЄ>Zȧg<sw>^t jGD6
/~0|˫Dw{"ɯ=x+G/Esz[锜$\EkdY
W Nƅ[-V~U{|1rlIG1_V.}OT_{wϙ9(S>1n/[)S|^@m'ߕzʠrSI;tyڕ[,l伲kf=0Sff6s,g.[m5v]'\锣;3.v%rk~'joXjZ~fS$u ,@:;fR#,Mc#夬7}`QG-X7P۞փ+
ݨQȍ䪟w>[cxׁu;&c2
\B^B;wᄡ-bl(Ö5}SY#1\ewYn LFw_ 73ՋHs7K:V\
m{ZZ=7.>nVj\[(Sgҵ=1WCU|G$:d[)ew0T۷pD4jܫp|F1,m=AR.[$98,\㜩ޑƨ~fܷiYciz1U̹EՃ`rzu*>QuRR}ۃ\(87HBr0U6ّqM-s3~Dlcoȯ.GiAmݩ)z΅#פ1ґ C:#0" ,Va (rW&"k?k4s`Wh`r77gڳW9Grcnp/$k'pDR'+{RW;ðh;@Hy\'GWl݈"|Ǫay]!*[9C ;[X'CX]Nr!GpI3K Qbhs|FO#w0?dedeiO\+۷"X'/15t{ SQ
;wA*o6|܈°4Oyt_S~ɫrdeO60Ww6WӤyG{БdQ!`aYM`^-,&ixژB6hEȆZtxekel&{H!5*ᰥ808aSL{fP,ͪOj{)և5WN'O
u)n.v|GBڡS&X+QɒHC A
W>
x}pb*܉14*ц_ n3ׅ'~"D%9ׅhGD| օKF2kl)Jԏs,Z49$2HigufgCiD:P2*|ZupK`m"Zqm