summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorShai_- <romain.gailleton at gmail dot com>2010-05-30 20:33:40 +0200
committerShai_- <romain.gailleton at gmail dot com>2010-05-30 20:33:40 +0200
commit7446a6f93dd092db460e46cf5e3a84fb4cd35e1b (patch)
treefce8f59494851b47ac67ae2f0655accef938628e /extra
parent4e87e0e05326b4a1de72da67fad56f39e6eab992 (diff)
downloadnutyx-extra-7446a6f93dd092db460e46cf5e3a84fb4cd35e1b.tar.gz
nutyx-extra-7446a6f93dd092db460e46cf5e3a84fb4cd35e1b.tar.bz2
nutyx-extra-7446a6f93dd092db460e46cf5e3a84fb4cd35e1b.tar.xz
nutyx-extra-7446a6f93dd092db460e46cf5e3a84fb4cd35e1b.zip
arandr, suppression de fichiers obsolètes
Diffstat (limited to 'extra')
-rw-r--r--extra/arandr/arandr-0.1.3.tar.gzbin53306 -> 0 bytes
-rw-r--r--extra/arandr/arandr-0.1.3/COPYING674
-rw-r--r--extra/arandr/arandr-0.1.3/ChangeLog418
-rw-r--r--extra/arandr/arandr-0.1.3/NEWS21
-rw-r--r--extra/arandr/arandr-0.1.3/README139
-rw-r--r--extra/arandr/arandr-0.1.3/TODO15
-rwxr-xr-xextra/arandr/arandr-0.1.3/arandr25
-rw-r--r--extra/arandr/arandr-0.1.3/data/arandr.1.txt34
-rw-r--r--extra/arandr/arandr-0.1.3/data/arandr.desktop10
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/da.po199
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/de.po196
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/it.po197
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/kn.po183
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/messages.pot185
-rw-r--r--extra/arandr/arandr-0.1.3/data/po/pt_BR.po199
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/__init__.py0
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/auxiliary.py96
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/data/gpl-3.txt674
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/demo.py28
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/gui.py310
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/metacity.py294
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/snap.py30
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/widget.py406
-rw-r--r--extra/arandr/arandr-0.1.3/screenlayout/xrandr.py267
-rwxr-xr-xextra/arandr/arandr-0.1.3/setup.py164
25 files changed, 0 insertions, 4764 deletions
diff --git a/extra/arandr/arandr-0.1.3.tar.gz b/extra/arandr/arandr-0.1.3.tar.gz
deleted file mode 100644
index 99347e272..000000000
--- a/extra/arandr/arandr-0.1.3.tar.gz
+++ /dev/null
Binary files differ
diff --git a/extra/arandr/arandr-0.1.3/COPYING b/extra/arandr/arandr-0.1.3/COPYING
deleted file mode 100644
index 94a9ed024..000000000
--- a/extra/arandr/arandr-0.1.3/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- 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.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- 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 <http://www.gnu.org/licenses/>.
-
-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:
-
- <program> Copyright (C) <year> <name of author>
- 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
-<http://www.gnu.org/licenses/>.
-
- 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
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/extra/arandr/arandr-0.1.3/ChangeLog b/extra/arandr/arandr-0.1.3/ChangeLog
deleted file mode 100644
index 0d322c034..000000000
--- a/extra/arandr/arandr-0.1.3/ChangeLog
+++ /dev/null
@@ -1,418 +0,0 @@
-commit c5dcf2710d9b4030da7685349c1248549d020039
-Author: chrysn <chrysn@fsfe.org>
-Date: Fri Mar 12 21:12:37 2010 +0100
-
- ready for release 0.1.3
-
-commit c5f8e86f3fa5b3d327237a39e370381099088b58
-Author: chrysn <chrysn@fsfe.org>
-Date: Fri Mar 12 14:36:42 2010 +0100
-
- add changelog handling to release checklist
-
-commit 7468f4aaeec9bf4c63525b768f9a1e55af5cbee3
-Author: chrysn <chrysn@fsfe.org>
-Date: Fri Mar 12 13:40:15 2010 +0100
-
- addedd newsfile (including old changes)
-
-commit 9629ac3d18552aad69f197bce94a1970c1466671
-Author: chrysn <chrysn@fsfe.org>
-Date: Fri Mar 12 00:26:15 2010 +0100
-
- update release checklist: use release branch
-
-commit 315178aac62d145986203d13282f0b0da636890a
-Author: chrysn <chrysn@fsfe.org>
-Date: Thu Mar 11 23:54:20 2010 +0100
-
- update copyright range
-
-commit cb76e5f75e20623017e4a1527edeb1f2cfed51f8
-Author: chrysn <chrysn@fsfe.org>
-Date: Thu Mar 11 23:39:21 2010 +0100
-
- don't request too large a window size
-
- recent x servers tend to allocate huge virtuals, causing
- bigger-than-screen windows. with the current configuration, this can
- still happen, but will now only happen if there are about three screens
- connected (depending on relative sizes) -- and for those cases, there is
- the zoom function.
-
-commit 5351dcbdaedc36014e2f5545b20d1c8cb42ca49b
-Author: chrysn <chrysn@fsfe.org>
-Date: Thu Mar 11 23:05:55 2010 +0100
-
- use pangocairo for text display
-
- solves problems with exotic scripts (previous version just displayed
- rectangles instead of characters when run with kannada language)
-
- does not affect dependencies (comes with python-gtk2)
-
-commit bd66d76d30cdd1590d281d054525de0d57da9299
-Merge: b516954 4ec04ca
-Author: chrysn <chrysn@fsfe.org>
-Date: Thu Mar 11 20:28:44 2010 +0100
-
- new kannada translations
-
- including updates everywhere languages are involved and minor updates
- for the european languages to follow the new translation hints
-
-commit b516954c4b821174106e69c9d622bb3ce606fb9c
-Merge: 5462c04 94d448d
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Mar 3 14:44:27 2010 +0100
-
- import cosmetic updates in pt_BR translation
-
-commit 5462c0474ead793d9f7524be8b4ac8edffba5d30
-Merge: 0b9b2ef fec6e22
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Mar 3 14:39:42 2010 +0100
-
- better use of gettext
-
- * support for ## comments that show up in .pot
- * update mechanism for .po files
- * make arandr use local translations when called locally
- * update *.po{t,}
-
-commit 0b9b2ef13e72561e1130414c9fe46b6deaee9863
-Merge: e2e8476 ea5bc07
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Feb 10 14:50:05 2010 +0100
-
- included danish translation by Joe Hansen <joedalton2@yahoo.dk>
-
-commit e2e8476f55b9a6ee8a6212ecdb0fca041a488baa
-Merge: 9910d2e ed1abcb
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Jan 27 21:40:19 2010 +0100
-
- man page fixes by albert dengg and new man page build system
-
-commit 9910d2e0eb2f807e651fb5ca883d0cce1a4bd81f
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Jan 27 01:52:44 2010 +0100
-
- improved installation instructions for slackware
-
-commit 13c2ea04c017ffae2180dd87f3b12ee3ba4cdc03
-Merge: 9c5ab17 570f524
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Jan 27 01:49:56 2010 +0100
-
- portuguese (brasilian) translation added
-
-commit 9c5ab179047a9f602e98df61c327d8eb5398056d
-Author: chrysn <chrysn@fsfe.org>
-Date: Tue Jan 26 15:27:10 2010 +0100
-
- add installation instructions for slackware
-
-commit 804c2c11f18198b7f0f37910fcd19b2f3e88e858
-Merge: 90d427f a81e7b8
-Author: chrysn <chrysn@fsfe.org>
-Date: Thu Jan 21 01:16:34 2010 +0100
-
- italian translation added
-
-commit 90d427f9c36c8c4f9e283da21799bab1eb6cb6d8
-Merge: a1c7001 9ce9cae
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 18 20:49:04 2010 +0100
-
- Merge branch 'translations': first test changes
-
-commit a1c7001a4c07275e38513f985ccfa060ddeed078
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 18 20:37:50 2010 +0100
-
- fix setup.py clean to ignore missing files
-
-commit 57b4b7efe9f5a5fea8e716d2320ff05fc1c4de74
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 18 20:06:14 2010 +0100
-
- add pot file creation and pot file
-
- pot file is kept in the source for better transifex integration and
- because it might be relevant to have a reference pot if po merging is to
- be done.
-
-commit 00952727014b197c59b2884e16d31e098c98c45f
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 18 18:34:37 2010 +0100
-
- (fixed link)
-
-commit f689d99f09a091456a0f4bb23df9259f119f8920
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 18 18:28:49 2010 +0100
-
- added contributing to readme
-
- including some hypterlink fixes
-
-commit 7ff67baa4a2f95e919eedfb115211a2ff87502be
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 11 17:16:39 2010 +0100
-
- minor changes hinted at by pychecker
-
- what remains are the "Parameter (widget) not used" complaints, mostly
- from gtk integration which often passes unnecessary parameters and a "No
- method arguments, should have self as argument" from a flexible
- decorator.
-
-commit 91f2885dbb2f349f29948283ce273cee9da512b2
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 11 16:56:43 2010 +0100
-
- pep 8 fix: use spaces (recommended)
-
-commit 776dac913555b6cc3745e62f454174304d4ceffc
-Author: chrysn <chrysn@fsfe.org>
-Date: Tue Jan 5 00:45:58 2010 +0100
-
- `./setup.py clean -a`: remove manually created files
-
- as the build target creates translation and man page files, these have
- to be cleaned up in the clean target.
-
-commit f0feede688480240a015e53d5fe635c6858a8de6
-Author: chrysn <chrysn@fsfe.org>
-Date: Tue Jan 5 00:45:30 2010 +0100
-
- (don't rely on garbage collector to close file)
-
-commit 464905529534f441cf7d2827286d08aa233001f3
-Author: chrysn <chrysn@fsfe.org>
-Date: Mon Jan 4 23:39:39 2010 +0100
-
- add working event demo
-
- (as of now, this is a standalone file; pulling this into arandr will
- introduce a dependency on xcb)
-
-commit 2e7c6123c148d7893bc9452838fdf739509a884b
-Author: chrysn <chrysn@fsfe.org>
-Date: Sat Nov 28 21:21:05 2009 +0100
-
- README and TODO updates
-
- reformatting, updated links, removed TODO item
-
-commit 17e56521d333dc1a5fcdcd7e9f4b0881a6f4b1c5
-Author: chrysn <chrysn@fsfe.org>
-Date: Sat Nov 28 20:56:08 2009 +0100
-
- change official source to git hosted on gitorious
-
-commit b6ce6ae289a60169bece5a757022792962cc8d5c
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Nov 25 21:38:08 2009 +0100
-
- readme updates
-
- * new debian package available
- * acknowledge bug with unusual modes
-
-commit d845551631d997c43bf10d007b9a4440ecc2daaf
-Author: chrysn <chrysn@fsfe.org>
-Date: Wed Nov 25 18:21:39 2009 +0100
-
- release process changes to `git archive`
-
- while previous tar balls were built using `setup.py sdist`, in future
- they will be created using `git archive`. this avoids differences
- between the tar ball and the last commit (with which the debian branch
- is merged).
-
-commit 6210593441e07ca81f26e6ed43ac2c9c8c872708
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Wed Nov 25 15:20:05 2009 +0000
-
- german translation update
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@160 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit c7206c8d2108887742abbd655f1e539e076a22dc
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Wed Nov 25 15:20:04 2009 +0000
-
- minor cleanups
-
- * whitespace fixes
- * pep8 enhancements
- * comment / docstring / message updates
- * destroy dialogs instead of hiding them
- * remove stale code
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@159 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit c4cffa4fda5a85632fd8ee4f333198d70f17e8e8
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Wed Nov 25 15:20:03 2009 +0000
-
- more todo items
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@158 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit e1730007aa6ecb7ba74f1ec3bfae8b48d1d3bfde
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Apr 16 21:46:16 2009 +0000
-
- more missing version changes
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@154 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit b4744267e20966d692992569a802d412cecf7da7
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Apr 16 13:16:44 2009 +0000
-
- README/TODO changes to reflect new version
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@153 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit f8893378c549afdc8803191895a019135b1680b8
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Mon Apr 13 13:46:57 2009 +0000
-
- accept xrandr 1.3, added --force-version
-
- by default, arandr only accepts xrandr versions it has been tested with.
- this patch adds 1.3 to these versions, and adds a --force-version switch
- to override this check for future upgrades.
-
- no changes for new 1.3 features have been made.
-
- to be released as 0.1.2.
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@150 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit b93477fd0a033f09f1f113bcd95f894ba9c8419f
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Mon Jul 21 20:56:14 2008 +0000
-
- * translation updates
- * fix uncaught ImportError
- * increase vresion to 0.1.1 for bugfix release
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@136 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 6e04d1b114595df8c3ac1d68998457dda57c43d4
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Mon Jul 21 19:14:20 2008 +0000
-
- * added gettext support to modules which did not already used it
- * caught import error of gconf (which is no declared dependency, neither should be)
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@135 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 779044ba2f6b5e81746eaadf7d4c5ffd490d1105
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Fri Jun 13 12:47:44 2008 +0000
-
- fixed python gtk dependency
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@133 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit cbc6bb0ae3c913357c0395c4abfd02e202cec62c
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Tue Jun 10 12:52:21 2008 +0000
-
- added arch reference
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@132 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 6fcba91a65d88a01aa2b206a3c0d13ba6af2bec8
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Fri Jun 6 22:20:29 2008 +0000
-
- url to debian file changed in readme part 2
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@128 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit e3a2f82e915238bbd8cf0ceb007d012cf6e767bc
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Fri Jun 6 22:19:47 2008 +0000
-
- path to debian file changed in readme
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@127 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 54a233bd2367bed75483b5a8026ea270e1ee083d
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Fri Jun 6 22:17:42 2008 +0000
-
- fixed bug in optparse usage
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@126 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit c428375a65a0b023abc27421410cef021723c5db
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Fri Jun 6 21:21:18 2008 +0000
-
- added --randr-display option
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@125 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 8858606de32cfca964e235c032990e9deaf5eb71
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Jun 5 21:54:12 2008 +0000
-
- change to readme
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@124 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 9db813a33cf0a35eb38fced7e9acbdaa9fa2d4e0
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Jun 5 21:50:55 2008 +0000
-
- added tarball download option
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@123 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit 176879a00f176b6093929a1875e8067a90dfa270
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Jun 5 21:49:12 2008 +0000
-
- changed readme file for 0.1 release
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@122 84c1553d-868a-485e-9ebb-c7de0e225ff1
-
-commit e7fa91464b1655228b6827ff6a20626155a5e9de
-Author: chrysn <chrysn@84c1553d-868a-485e-9ebb-c7de0e225ff1>
-Date: Thu Jun 5 21:42:03 2008 +0000
-
- added trunk
-
-
-
- git-svn-id: http://svn.amsuess.com/svn/tools/arandr/trunk@121 84c1553d-868a-485e-9ebb-c7de0e225ff1
diff --git a/extra/arandr/arandr-0.1.3/NEWS b/extra/arandr/arandr-0.1.3/NEWS
deleted file mode 100644
index 4b5fd01cc..000000000
--- a/extra/arandr/arandr-0.1.3/NEWS
+++ /dev/null
@@ -1,21 +0,0 @@
-Version 0.1.3
-* Prevent too large window size requests
-* New translations:
- - Italian (by Quizzlo)
- - Brasilian (by Phantom X)
- - Danish (by Joe Hansen)
- - Kannada (by gundachandru)
-* Better translation infrastructure
- - Translations now hosted on https://transifex.net/projects/p/arandr/
-* man page enhancements
- - man page generation now depends on docutils (>=0.6)
-* New source code repository at http://gitorious.org/arandr/arandr
-
-Version 0.1.2
-* Accept xrandr versions newer than 1.2
-
-Version 0.1.1
-* Add support for --randr-display
-
-Version 0.1
-* Initial release
diff --git a/extra/arandr/arandr-0.1.3/README b/extra/arandr/arandr-0.1.3/README
deleted file mode 100644
index c0a4db154..000000000
--- a/extra/arandr/arandr-0.1.3/README
+++ /dev/null
@@ -1,139 +0,0 @@
-==========================
-ARandR: Another XRandR GUI
-==========================
-
-
-Design intent
--------------
-
-Provide a simple visual front end for XRandR_ 1.2, client side X only (no xorg.conf involved, no pre-1.2 options).
-
-
-
-Features
---------
-
-* Full controll over positioning (instead of plain "left of") with edge snapping
-* Saving configurations as executable shell scripts (configurations can be loaded without using this program)
-* Configuration files can be edited to include additional payload (like xsetwacom_ commands tablet PC users need when rotating), which is preserved when editing
-* Metacity keybinding integration:
- * Saved configurations can be bound to arbitrary keys via metacity's custom commands.
- * Several layouts can be bound to one key; they are cycled through. (Useful for "rotate" buttons on tablet PCs.)
-* Main widget separated from packaged application (to facilitate integration with existing solutions)
-
-
-
-Status
-------
-
-Works with recent X servers supporting XRandR 1.2 or 1.3 (which is 1.2 compatible).
-
-See TODO_ for planned features.
-
-
-
-Installation
-------------
-
-* Using your distribution's instaler:
-
- * Debian_ / Ubuntu_::
-
- aptitude install arandr
-
- * archlinux using a PKGBUILD_ on AUR::
-
- yaourt -S arandr
-
- * Slackware using a `slackbuild by PhantomX`_::
-
- wget http://cloud.github.com/downloads/PhantomX/slackbuilds/arandr.tar.bz2
- tar xjf arandr.tar.bz2
- cd arandr
- ./arandr.SlackBuild 2>&1 | tee build.log
-
-* From source:
-
- * Fetch either
-
- * the `latest release`_::
-
- wget http://christian.amsuess.com/tools/arandr/files/arandr-0.1.3.tar.gz
- tar xzf arandr-0.1.3.tar.gz
- cd arandr-0.1.3
-
- * or get it directly from GIT (`hosted on gitorious`_)::
-
- git clone git://gitorious.org/arandr/arandr.git
- cd arandr
-
- * and start it using::
-
- ./arandr
-
- * or install it::
-
- sudo ./setup.py install
-
-
-
-Dependencies
-------------
-
- * python_
- * PyGTK_
- * xrandr_
- * docutils_ (>=0.6; for building the man page)
-
-
-
-Bugs / Caveats
---------------
-
- * Changes while running are not caught.
- * Depends on all modes to have a <width>x<height> name.
-
-
-Contributing
-------------
-
-If you are fluent with languages not yet supported, you can add translations to ARandR using gettext_. An easy way to do this is `ARandR's transifex site`_.
-
-Please send bug reports, suggestions, patches and git pull requests to me_.
-
-
-About
------
-
-Copyright © chrysn_ <chrysn@fsfe.org> 2008–2010, published under GPLv3_ or any later version.
-
-Inspired by the `dual head sketch`_ in the ThinkWiki_.
-
-Translations by
-
-* Quizzlo (Italian)
-* Phantom X (Brasilian)
-* Joe Hansen (Danish)
-* gundachandru (Kannada)
-* chrysn (German, English)
-
-
- .. _XRandR: http://www.x.org/wiki/Projects/XRandR
- .. _xsetwacom: http://linuxwacom.sourceforge.net/index.php/howto/xsetwacom
- .. _TODO: ./TODO
- .. _`latest release`: http://christian.amsuess.com/tools/arandr/files/arandr-0.1.3.tar.gz
- .. _PKGBUILD: http://aur.archlinux.org/packages.php?ID=17385
- .. _chrysn: http://christian.amsuess.com
- .. _GPLv3: http://www.gnu.org/licenses/gpl-3.0.txt
- .. _`dual head sketch`: http://www.thinkwiki.org/wiki/Image:Intel-DualHead.png
- .. _ThinkWiki: http://thinkwiki.org/
- .. _`hosted on gitorious`: http://gitorious.org/arandr/arandr
- .. _Debian: http://packages.debian.org/arandr
- .. _Ubuntu: http://packages.ubuntu.com/arandr
- .. _gettext: http://www.gnu.org/software/gettext/
- .. _`ARandR's transifex site`: https://transifex.net/projects/p/arandr/c/main/
- .. _me: mailto:chrysn@fsfe.org
- .. _python: http://www.python.org/
- .. _PyGTK: http://www.pygtk.org/
- .. _`slackbuild by PhantomX`: http://github.com/PhantomX/slackbuilds/tree/master/arandr/
- .. _docutils: http://docutils.sourceforge.net/
diff --git a/extra/arandr/arandr-0.1.3/TODO b/extra/arandr/arandr-0.1.3/TODO
deleted file mode 100644
index 46ac768d2..000000000
--- a/extra/arandr/arandr-0.1.3/TODO
+++ /dev/null
@@ -1,15 +0,0 @@
- * add option to make layout default on startup by means of desktop environment integration
- * implement missing xrandr 1.2 features: reflect, additional modes (for forcibly applying saved layouts so they are already active when an output is connected), fb, fbmm/dpi
- * call xrandr without blocking
- * receive notifications on changes (XRRScreenChangeNotify)
- * useful resources: <http://www.mail-archive.com/sawfish-list@gnome.org/msg03630.html> (a patch to sawfish for xrandr event support), Xrandr.c (that defines XRRSelectInput), SelInput.c (compare XSelectInput /XRRSelectInput), ./eventdemo.py
- * don't reset displays moved over edges; instead, move as far as possible
- * allow setting dpi
- * integrate related settings: (might end up writing a complete configuration manager, which is not my intention)
-
- * xsetwacom
- * gnome-panel layout (is this 1.3's --primary?)
-
- * integrate new 1.3 features (projection matrix, panning)
- * be more intelligent about future xrandr versions (cf debian #523903)
- * read --props, parse edid (using parse-edid from read-edid), maybe even offer setting properties
diff --git a/extra/arandr/arandr-0.1.3/arandr b/extra/arandr/arandr-0.1.3/arandr
deleted file mode 100755
index 82c701aea..000000000
--- a/extra/arandr/arandr-0.1.3/arandr
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-"""Run ARandR GUI"""
-
-import sys
-import gettext
-
-# monkey patch gettext for local execution
-
-if sys.argv[0].startswith('./'):
- old_find = gettext.find
-
- def find_wrapper(domain, localedir=None, languages=None, all=False):
- """Catch finds for arandr and redirect them to local files"""
- if domain == 'arandr':
- result = old_find(domain, './build/locale', languages, all)
- if result:
- return result
- return old_find(domain, localedir, languages, all)
-
- gettext.find = find_wrapper
-
-# defer importing and thus loading locales until monkey patching is done
-
-from screenlayout.gui import main
-main()
diff --git a/extra/arandr/arandr-0.1.3/data/arandr.1.txt b/extra/arandr/arandr-0.1.3/data/arandr.1.txt
deleted file mode 100644
index 6d86d3470..000000000
--- a/extra/arandr/arandr-0.1.3/data/arandr.1.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-=========
- arandr
-=========
-
--------------------------------
-visual front end for XRandR 1.2
--------------------------------
-
-:Author: chrysn <chrysn@fsfe.org>
-:Date: 2008-06-03
-:Manual section: 1
-
-SYNOPSIS
-=========
-
-``arandr`` [savedfile]
-
-DESCRIPTION
-===========
-
-ARandR is a visual front end for XRandR 1.2 (per display options), which
-provides full control over positioning, saving and loading to/from shell
-scripts and easy integration with other applications.
-
---version show program's version number and exit
--h, --help show this help message and exit
---randr-display=D Use D as display for xrandr (but still show the GUI on
- the display from the environment; e.g. `localhost:10.0`)
---force-version Even run with untested XRandR versions
-
-SEE ALSO
-========
-
-``man 1 xrandr``
diff --git a/extra/arandr/arandr-0.1.3/data/arandr.desktop b/extra/arandr/arandr-0.1.3/data/arandr.desktop
deleted file mode 100644
index d64ce168f..000000000
--- a/extra/arandr/arandr-0.1.3/data/arandr.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Name=ARandR
-GenericName=Screen Settings
-GenericName[de]=Bildschirmeinstellungen
-Icon=display
-Exec=arandr
-Terminal=false
-Type=Application
-Categories=Settings;HardwareSettings;
-StartupNotify=true
diff --git a/extra/arandr/arandr-0.1.3/data/po/da.po b/extra/arandr/arandr-0.1.3/data/po/da.po
deleted file mode 100644
index 2054c9d37..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/da.po
+++ /dev/null
@@ -1,199 +0,0 @@
-# Danish translation ARandR.
-# Copyright (C) 2009 chrysn & Joe Hansen.
-# This file is distributed under the same license as the ARandR package.
-# Joe Hansen <joedalton2@yahoo.dk>, 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: arandr 0.1.2\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: 2010-02-01 17:30+01:00\n"
-"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
-"Language-Team: Danish <dansk@dansk-gruppen.dk>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr "_Udseende"
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr "_Vis"
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr "_Uddata"
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr "Dummy"
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr "_System"
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr "_Nøgletildelinger (Metacity)"
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr "_Hjælp"
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr "1:4"
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr "1:8"
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr "1:16"
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr "Skriptegenskaber"
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr "Skript"
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-"XRandR mislykkedes:\n"
-"%s"
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr "Åbn udseende"
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr "Gem udseende"
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr "ARandR - redigering af skærmudseende"
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr "Another XRandR GUI (en anden XRandR-grænseflade)"
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr "Accelerator"
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr "Handling"
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr "deaktiveret"
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr "Ny accelerator..."
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr "ingen handling"
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr "inkompatibel konfiguration"
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr "andet program"
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr "Ingen filer i %(folder)r. Gem et udseende først."
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr "gconf ikke tilgængelig."
-
-#: screenlayout/metacity.py:269
-msgid ""
-"In order to configure metacity, you need to have the python gconf module "
-"installed."
-msgstr ""
-"For at kunne konfigurere metacity, skal du have pythons gconf-modul "
-"installeret."
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr "Nøgletildelinger (via Metacity)"
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to "
-"bind to a certain screen layout. (Use backspace to clear accelerators, "
-"escape to abort editing.) Then, select one or more layouts in the right "
-"column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its "
-"configuration."
-msgstr ""
-"Klik på en knap i den venstre kolonne og tryk på en tastkombination du "
-"ønsker at tildele til et bestemt skærmudseende. (Brug Slet tilbage for at "
-"rydde acceleratorer, escape for at fortryde redigering.) Vælg så et eller "
-"flere udseender i den højre kolonne.\n"
-"\n"
-"Dette vil kun virke, hvis du bruger metacity eller et andet program, der "
-"læser dens konfiguration."
-
-#: screenlayout/widget.py:43
-msgid ""
-"Your configuration does not include an active monitor. Do you want to apply "
-"the configuration?"
-msgstr ""
-"Din konfiguration inkluderer ikke en aktiv overvågning. Ønsker du at anvende "
-"konfigurationen?"
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr "Aktiv"
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr "Angivelse af denne opløsning er ikke muligt her: %s"
-
-# retning er brugt i OpenOffice, kunne måske også være opsætning
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr "Denne retning er ikke mulig her: %s"
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr "Opløsning"
-
-# retning er brugt i OpenOffice, kunne måske også være opsætning
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr "Retning"
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr "En del af noget uddata er uden for den virtuelle skærm."
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr "Uddata er uden for den virtuelle skærm."
diff --git a/extra/arandr/arandr-0.1.3/data/po/de.po b/extra/arandr/arandr-0.1.3/data/po/de.po
deleted file mode 100644
index 556415a8a..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/de.po
+++ /dev/null
@@ -1,196 +0,0 @@
-# ARandR
-# Copyright (C) 2008 chrysn <chrysn@fsfe.org
-# This file is distributed under the same license as the arandr package.
-# chrysn <chrysn@fsfe.org>, 2008.
-msgid ""
-msgstr ""
-"Project-Id-Version: arandr 0.1\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: 2010-01-18 20:45+0100\n"
-"Last-Translator: chrysn <chrysn@fsfe.org>\n"
-"Language-Team: German\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr "_Layout"
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr "_Ansicht"
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr "_Ausgabegeräte"
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr "Dummy"
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr "_System"
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr "_Tastenkombinationen (Metacity)"
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr "_Hilfe"
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr "1:4"
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr "1:8"
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr "1:16"
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr "Skript-Eigenschaften"
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr "Skript"
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-"XRandR fehlgeschlagen:\n"
-"%s"
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr "Layout öffnen"
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr "Layout speichern"
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr "ARandR Bildschirmlayout-Editor"
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr "Another XRandR GUI (ein weiteres GUI für XRandR)"
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr "Kombination"
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr "Aktion"
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr "deaktiviert"
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr "Neue Kombination…"
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr "keine Aktion"
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr "Konfiguration nicht verwendbar."
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr "andere Anwendung"
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr "Keine Dateien in %(folder)r. Speichern Sie zuerst ein Layout."
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr "gconf nicht verfügbar."
-
-#: screenlayout/metacity.py:269
-msgid ""
-"In order to configure metacity, you need to have the python gconf module "
-"installed."
-msgstr ""
-"Um metacity zu konfigurieren muss das Python-Modul gconf installiert sein."
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr "Tastenkombinationen (über Metacity)"
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to "
-"bind to a certain screen layout. (Use backspace to clear accelerators, "
-"escape to abort editing.) Then, select one or more layouts in the right "
-"column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its "
-"configuration."
-msgstr ""
-"Klicken Sie auf einen Button in der linken Spalte und drücken sie eine "
-"Tastenkombination, die Sie mit einem Layout belegen möchten. (Backspace "
-"löscht Belegungen, Escape bricht ab.) Wählen sie dann ein oder mehrere "
-"Layouts in der rechten Spalte.\n"
-"\n"
-"Die Tastenkombinationen stehen nur zur Verfügung, wenn metacity oder ein "
-"anderes Programm, das dessen Konfiguration ausliest, verwendet wird."
-
-#: screenlayout/widget.py:43
-msgid ""
-"Your configuration does not include an active monitor. Do you want to apply "
-"the configuration?"
-msgstr ""
-"Diese Konfiguration beinhaltet keinen aktiven Monitor. Soll sie angewendet "
-"werden?"
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr "Aktiv"
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr "Setzen der Bildschirmauflösung unmöglich: %s"
-
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr "Drehung nicht möglich: %s"
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr "Auflösung"
-
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr "Drehung"
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr "Ein Teil des Ausgabegeräts liegt außerhalb des Virtual-Bereichs."
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr "Ein Ausgabegerät liegt außerhalb des Virtual-Bereichs."
diff --git a/extra/arandr/arandr-0.1.3/data/po/it.po b/extra/arandr/arandr-0.1.3/data/po/it.po
deleted file mode 100644
index 1b061a782..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/it.po
+++ /dev/null
@@ -1,197 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR chrysn
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: arandr 0.1.2\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: 2010-01-18 20:52+0100\n"
-"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
-"Language-Team: Italian <it@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr "_Layout"
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr "_Visualizza"
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr "_Output"
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr "Dummy"
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr "_Sistema"
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr "_Scorciatoie (Metacity)"
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr "_Aiuto"
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr "1:4"
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr "1:8"
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr "1:16"
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr "Proprietà script"
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr "Script"
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-"Errore di XRandR:\n"
-"%s"
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr "Apri layout"
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr "Salva layout"
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr "Editor layout dello schermo di ARandR"
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr "Another XRandR GUI (Un'altra interfaccia XRandR)"
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr "Acceleratore"
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr "Azione"
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr "disabilitato"
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr "Nuovo acceleratore..."
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr "nessuna azione"
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr "configurazione non compatibile"
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr "altra applicazione"
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr "Nessun file in %(folder)r. Salvare prima un layout."
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr "gconf non disponibile"
-
-#: screenlayout/metacity.py:269
-msgid ""
-"In order to configure metacity, you need to have the python gconf module "
-"installed."
-msgstr ""
-"Per poter configurare metacity, è necessario avere il modulo gconf python "
-"installato."
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr "Scorciatoie (via Metacity)"
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to "
-"bind to a certain screen layout. (Use backspace to clear accelerators, "
-"escape to abort editing.) Then, select one or more layouts in the right "
-"column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its "
-"configuration."
-msgstr ""
-"Cliccare su un pulsante nella colonna di sinistra e digitare una "
-"combinazione tasti da utilizzare per un certo layout dello schermo. "
-"(Utilizzare backspace per eliminare gli acceleratori, esc per annullare la "
-"modifica. Selezionare in seguito uno o più layout nella colonna di destra.\n"
-"\n"
-"Questo metodo funzione solo se si utilizza metacity o un altro programma "
-"capace di leggere la sua configurazione."
-
-#: screenlayout/widget.py:43
-msgid ""
-"Your configuration does not include an active monitor. Do you want to apply "
-"the configuration?"
-msgstr ""
-"La configurazione non include un monitor attivo. Si desidera applicare la "
-"configurazione?"
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr "Attivo"
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr "Impostare la risoluzione qui non è possibile: %s"
-
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr "Questa orientazione non è possibile qui: %s"
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr "Risoluzione"
-
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr "Orientamento"
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr "Una parte dell'output è al di fuori dello schermo virtuale."
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr "Un output è al di fuori dello schermo virtuale."
diff --git a/extra/arandr/arandr-0.1.3/data/po/kn.po b/extra/arandr/arandr-0.1.3/data/po/kn.po
deleted file mode 100644
index 7ca985acd..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/kn.po
+++ /dev/null
@@ -1,183 +0,0 @@
-# Kannada translations for arandr.
-# Copyright (C) 2010 chrysn
-# This file is distributed under the same license as the PACKAGE package.
-# gundachandru <gundachandru@gmail.com>, 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: arandr 0.1.2\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: 2010-03-06 15:55+0530\n"
-"Last-Translator: gundachandru <gundachandru@gmail.com>\n"
-"Language-Team: Kannada\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr "ವಿನ್ಯಾಸ(_L)"
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr "ನೋಟ(_V)"
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr "ಔಟ್‌ಪುಟ್‌ಗಳು(_O)"
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr "ಡಮ್ಮಿ"
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr "ವ್ಯವಸ್ಥೆ(_S)"
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr "ಕೀಲಿಬದ್ಧತೆಗಳು (ಮೆಟಾಸಿಟಿ)"
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr "ಸಹಾಯ(_H)"
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr "೧:೪"
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr "೧:೮"
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr "೧:೧೬"
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr "ಸ್ಕ್ರಿಪ್ಟ್‌ನ ಗುಣಲಕ್ಷಣಗಳು"
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr "ಸ್ಕ್ರಿಪ್ಟ್"
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-"XRandR ವಿಫಲಗೊಂಡಿದೆ:\n"
-"%s"
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr "ವಿನ್ಯಾಸವನ್ನು ತೆರೆ"
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr "ವಿನ್ಯಾಸವನ್ನು ಉಳಿಸು"
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr "ARandR ತೆರೆ ವಿನ್ಯಾಸ ಸಂಪಾದಕ"
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr "ಇನ್ನೊಂದು XRandR GUI"
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr "ವೇಗೋತ್ಕರ್ಷಕ"
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr "ಕಾರ್ಯ"
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr "ಅಶಕ್ತಗೊಂಡಿದೆ"
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr "ಹೊಸ ವೇಗೋತ್ಕರ್ಷಕ..."
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr "ಯಾವುದೇ ಕಾರ್ಯವು ಇಲ್ಲ"
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr "ಸಹವರ್ತಿಸದ ಸಂರಚನೆ"
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr "ಇತರೆ ಅನ್ವಯ"
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr "%(folder)r ನಲ್ಲಿ ಯಾವುದೇ ಕಡತಗಳಿಲ್ಲ. ಮೊದಲು ಒಂದು ವಿನ್ಯಾಸವನ್ನು ಉಳಿಸಿ."
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr "gconf ಲಭ್ಯವಿಲ್ಲ"
-
-#: screenlayout/metacity.py:269
-msgid "In order to configure metacity, you need to have the python gconf module installed."
-msgstr "ಮೆಟಾಸಿಟಿಯನ್ನು ಸಂರಚಿಸುವ ಸಲುವಾಗಿ, ನೀವು python gconf ಮಾಡ್ಯೂಲ್ ವನ್ನು ಸ್ಥಾಪಿಸಿರಬೇಕು"
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr "ಕೀಲಿಬದ್ಧತೆಗಳು (ಮೆಟಾಸಿಟಿಯ ಮೂಲಕ)"
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to bind to a certain screen layout. (Use backspace to clear accelerators, escape to abort editing.) Then, select one or more layouts in the right column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its configuration."
-msgstr ""
-"ಎಡಭಾಗದ ಕಾಲಮ್‌ನಲ್ಲಿರುವ ಬಟನ್ ಕ್ಲಿಕ್ ಮಾಡಿ ಮತ್ತು ಒಂದು ತೆರೆ ವಿನ್ಯಾಸಕ್ಕೆ ಬೈಂಡ್ ಮಾಡಬಯಸುವು ಕೀ ಕಾಂಬಿನೇಶನ್ ಒತ್ತಿ. (ವೇಗೋತ್ಕರ್ಷಕಗಳನ್ನು ಅಳಿಸಲು backspace ಬಳಸಿ, ಸಂಪಾದನೆಯನ್ನು ಅಬಾರ್ಟ್ ಮಾಡಲು escape ಬಳಸಿ.), ಹಾಗೂ, ಒಂದು ಅಥವಾ ಹೆಚ್ಚಿನ ವಿನ್ಯಾಸಗಳನ್ನು ಬಲಭಾಗದ ಕಾಲಮ್‌ನಲ್ಲಿ ಆರಿಸಿ.\n"
-"\n"
-"ನೀವು ಮೆಟಾಸಿಟಿ ಬಳಸಿದಾಗ ಅಥವಾ ಇದರ ಸಂರಚನೆಯನ್ನು ಓದುವ ಇನ್ನೊಂದು ಪ್ರೋಗ್ರಾಮ್ ಬಳಸಿದಾಗ ಮಾತ್ರ ಇದು ಕೆಲಸ ಮಾಡುತ್ತದೆ."
-
-#: screenlayout/widget.py:43
-msgid "Your configuration does not include an active monitor. Do you want to apply the configuration?"
-msgstr "ನಿಮ್ಮ ಸಂರಚನೆಯು ಯಾವುದೇ ಒಂದು ಸಕ್ರಿಯ ಮಾನಿಟರ್‌ವನ್ನು ಒಳಗೊಂಡಿಲ್ಲ. ನೀವು ಈ ಸಂರಚನೆಯನ್ನು ಅನ್ವಯಿಸಲು ಬಯಸುತ್ತೀರಾ?"
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr "ಸಕ್ರಿಯ"
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr "ಈ ರೆಸಲ್ಯೂಶನ್ ಅನ್ನು ಸೆಟ್ ಮಾಡುವುದು ಇಲ್ಲಿ ಸಾಧ್ಯವಿಲ್ಲ: %s"
-
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr "ಈ ನಿಲುವು(ಓರಿಯೆಂಟೇಶನ್) ಇಲ್ಲಿ ಸಾಧ್ಯವಿಲ್ಲ: %s"
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr "ರೆಸಲ್ಯೂಶನ್"
-
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr "ನಿಲುವು (ಓರಿಯೆಂಟೇಶನ್)"
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr "ಔಟ್‌ಪುಟ್‌ನ ಒಂದು ಭಾಗ ವರ್ಚುವಲ್ ಸ್ಕ್ರೀನ್‌ನ ಹೊರಗಿದೆ."
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr "ಔಟ್‌ಪುಟ್‌ ವರ್ಚುವಲ್ ಸ್ಕ್ರೀನ್‌ನ ಹೊರಗಿದೆ."
-
diff --git a/extra/arandr/arandr-0.1.3/data/po/messages.pot b/extra/arandr/arandr-0.1.3/data/po/messages.pot
deleted file mode 100644
index c60fc01fd..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/messages.pot
+++ /dev/null
@@ -1,185 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR chrysn
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: arandr 0.1.2\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr ""
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr ""
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr ""
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr ""
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr ""
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr ""
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr ""
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr ""
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr ""
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr ""
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr ""
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr ""
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr ""
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr ""
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr ""
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr ""
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr ""
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr ""
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr ""
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr ""
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr ""
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr ""
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr ""
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr ""
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr ""
-
-#: screenlayout/metacity.py:269
-msgid ""
-"In order to configure metacity, you need to have the python gconf module "
-"installed."
-msgstr ""
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr ""
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to "
-"bind to a certain screen layout. (Use backspace to clear accelerators, "
-"escape to abort editing.) Then, select one or more layouts in the right "
-"column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its "
-"configuration."
-msgstr ""
-
-#: screenlayout/widget.py:43
-msgid ""
-"Your configuration does not include an active monitor. Do you want to apply "
-"the configuration?"
-msgstr ""
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr ""
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr ""
-
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr ""
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr ""
-
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr ""
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr ""
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr ""
diff --git a/extra/arandr/arandr-0.1.3/data/po/pt_BR.po b/extra/arandr/arandr-0.1.3/data/po/pt_BR.po
deleted file mode 100644
index 05a56a99e..000000000
--- a/extra/arandr/arandr-0.1.3/data/po/pt_BR.po
+++ /dev/null
@@ -1,199 +0,0 @@
-# translation of de.po to Português do Brasil
-# chrysn <chrysn@fsfe.org>, 2008.
-# Phantom X <megaphantomx at bol.com.br>, 2010.
-# ARandR
-# Copyright (C) 2008 chrysn <chrysn@fsfe.org
-# This file is distributed under the same license as the arandr package.
-msgid ""
-msgstr ""
-"Project-Id-Version: de\n"
-"Report-Msgid-Bugs-To: chrysn@fsfe.org\n"
-"POT-Creation-Date: 2010-03-03 14:37+0100\n"
-"PO-Revision-Date: 2010-01-27 01:45+0100\n"
-"Last-Translator: chrysn <chrysn@fsfe.org>\n"
-"Language-Team: Português do Brasil <pt@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
-"X-Generator: KBabel 1.11.4\n"
-
-#: screenlayout/gui.py:104
-msgid "_Layout"
-msgstr "_Disposição"
-
-#: screenlayout/gui.py:115
-msgid "_View"
-msgstr "_Visualizar"
-
-#: screenlayout/gui.py:117
-msgid "_Outputs"
-msgstr "_Saídas"
-
-#: screenlayout/gui.py:118
-msgid "Dummy"
-msgstr "Simulação"
-
-#: screenlayout/gui.py:120
-msgid "_System"
-msgstr "_Sistema"
-
-#: screenlayout/gui.py:121
-msgid "_Keybindings (Metacity)"
-msgstr "_Atalhos (Metacity)"
-
-#: screenlayout/gui.py:123
-msgid "_Help"
-msgstr "_Ajuda"
-
-#: screenlayout/gui.py:127
-msgid "1:4"
-msgstr "1:4"
-
-#: screenlayout/gui.py:128
-msgid "1:8"
-msgstr "1:8"
-
-#: screenlayout/gui.py:129
-msgid "1:16"
-msgstr "1:16"
-
-#: screenlayout/gui.py:176
-msgid "Script Properties"
-msgstr "Propriedades de Script"
-
-#: screenlayout/gui.py:188
-msgid "Script"
-msgstr "Script"
-
-#: screenlayout/gui.py:204
-#, python-format
-msgid ""
-"XRandR failed:\n"
-"%s"
-msgstr ""
-"XRandR falhou:\n"
-"%s"
-
-#: screenlayout/gui.py:214
-msgid "Open Layout"
-msgstr "Abrir Disposição"
-
-#: screenlayout/gui.py:226
-msgid "Save Layout"
-msgstr "Salvar Disposição"
-
-#: screenlayout/gui.py:276
-msgid "ARandR Screen Layout Editor"
-msgstr "Editor de Disposição de Tela ARandR"
-
-#. # translators, please translate in the style of "Another XRandR GUI
-#. # (ein weiteres GUI für XRandR)" so users get both the explanation of
-#. # the acronym and a localized version.
-#: screenlayout/gui.py:283
-msgid "Another XRandR GUI"
-msgstr ""
-
-#: screenlayout/metacity.py:37
-msgid "Accelerator"
-msgstr "Acelerador"
-
-#: screenlayout/metacity.py:38
-msgid "Action"
-msgstr "Ação"
-
-#: screenlayout/metacity.py:104
-msgid "disabled"
-msgstr "desativado"
-
-#: screenlayout/metacity.py:119
-msgid "New accelerator..."
-msgstr "Novo acelerador..."
-
-#: screenlayout/metacity.py:182
-msgid "no action"
-msgstr "sem ação"
-
-#: screenlayout/metacity.py:212
-msgid "incompatible configuration"
-msgstr "configuração incompatível"
-
-#: screenlayout/metacity.py:219
-msgid "other application"
-msgstr "outra aplicação"
-
-#: screenlayout/metacity.py:239
-#, python-format
-msgid "No files in %(folder)r. Save a layout first."
-msgstr "Não há arquivos em %(folder)r. Salve uma dispsição primeiro."
-
-#: screenlayout/metacity.py:268
-msgid "gconf not available."
-msgstr "gconf não disponível."
-
-#: screenlayout/metacity.py:269
-msgid ""
-"In order to configure metacity, you need to have the python gconf module "
-"installed."
-msgstr ""
-"Para configurar o metacity, você precisa ter o módulo gconf do python "
-"instalado."
-
-#: screenlayout/metacity.py:276
-msgid "Keybindings (via Metacity)"
-msgstr "Atalhos (via Metacity)"
-
-#: screenlayout/metacity.py:289
-msgid ""
-"Click on a button in the left column and press a key combination you want to "
-"bind to a certain screen layout. (Use backspace to clear accelerators, "
-"escape to abort editing.) Then, select one or more layouts in the right "
-"column.\n"
-"\n"
-"This will only work if you use metacity or another program reading its "
-"configuration."
-msgstr ""
-"Clique em um botão na coluna esquerda e pressione uma combinação de teclas "
-"que deseja associar a alguma disposição de tela. (Use backspace para limpar "
-"aceleradors, escape para abortar a edição). Entãom selecione uma ou mais "
-"disposições na coluna correta.\n"
-"\n"
-"Isto somente funcionará se você usar metacity ou outro programa que leia sua "
-"configuração."
-
-#: screenlayout/widget.py:43
-msgid ""
-"Your configuration does not include an active monitor. Do you want to apply "
-"the configuration?"
-msgstr ""
-"Sua configuração não inclui um monitor ativo. Deseja aplicar a configuração?"
-
-#: screenlayout/widget.py:257
-msgid "Active"
-msgstr "Ativo"
-
-#: screenlayout/widget.py:275
-#, python-format
-msgid "Setting this resolution is not possible here: %s"
-msgstr "Configurar esta resolução não é possível aqui: %s"
-
-#: screenlayout/widget.py:288
-#, python-format
-msgid "This orientation is not possible here: %s"
-msgstr "Esta orientação não é possível aqui: %s"
-
-#: screenlayout/widget.py:294
-msgid "Resolution"
-msgstr "Resolução"
-
-#: screenlayout/widget.py:296
-msgid "Orientation"
-msgstr "Orientação"
-
-#: screenlayout/xrandr.py:205
-msgid "A part of an output is outside the virtual screen."
-msgstr "Um parte da saída está fora da tela virtual."
-
-#: screenlayout/xrandr.py:208
-msgid "An output is outside the virtual screen."
-msgstr "Uma saída está fora da tela virtual."
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/__init__.py b/extra/arandr/arandr-0.1.3/screenlayout/__init__.py
deleted file mode 100644
index e69de29bb..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/__init__.py
+++ /dev/null
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/auxiliary.py b/extra/arandr/arandr-0.1.3/screenlayout/auxiliary.py
deleted file mode 100644
index 376486109..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/auxiliary.py
+++ /dev/null
@@ -1,96 +0,0 @@
-"""Exceptions and generic classes"""
-
-from math import pi
-
-class FileLoadError(Exception): pass
-class FileSyntaxError(FileLoadError):
- """A file's syntax could not be parsed."""
-
-class InadequateConfiguration(Exception):
- """A configuration is incompatible with the current state of X."""
-
-
-class BetterList(list):
- """List that can be split like a string"""
- def indices(self, item):
- i = -1
- while True:
- try:
- i = self.index(item, i+1)
- except ValueError:
- break
- yield i
-
- def split(self, item):
- indices = list(self.indices(item))
- yield self[:indices[0]]
- for x in (self[a+1:b] for (a,b) in zip(indices[:-1], indices[1:])):
- yield x
- yield self[indices[-1]+1:]
-
-
-class Size(tuple):
- """2-tuple of width and height that can be created from a '<width>x<height>' string"""
- def __new__(cls, arg):
- if isinstance(arg, basestring):
- arg = [int(x) for x in arg.split("x")]
- arg = tuple(arg)
- assert len(arg)==2
- return super(Size, cls).__new__(cls, arg)
-
- width = property(lambda self:self[0])
- height = property(lambda self:self[1])
- def __str__(self):
- return "%dx%d"%self
-
-class Position(tuple):
- """2-tuple of left and top that can be created from a '<left>x<top>' string"""
- def __new__(cls, arg):
- if isinstance(arg, basestring):
- arg = [int(x) for x in arg.split("x")]
- arg = tuple(arg)
- assert len(arg)==2
- return super(Position, cls).__new__(cls, arg)
-
- left = property(lambda self:self[0])
- top = property(lambda self:self[1])
- def __str__(self):
- return "%dx%d"%self
-
-class Geometry(tuple):
- """4-tuple of width, height, left and top that can be created from an XParseGeometry style string"""
- # FIXME: use XParseGeometry instead of an own incomplete implementation
- def __new__(cls, width, height=None, left=None, top=None):
- if isinstance(width, basestring):
- width,rest = width.split("x")
- height,left,top = rest.split("+")
- return super(Geometry, cls).__new__(cls, (int(width), int(height), int(left), int(top)))
-
- def __str__(self):
- return "%dx%d+%d+%d"%self
-
- width = property(lambda self:self[0])
- height = property(lambda self:self[1])
- left = property(lambda self:self[2])
- top = property(lambda self:self[3])
-
- position = property(lambda self:Position(self[2:4]))
- size = property(lambda self:Size(self[0:2]))
-
-
-class Rotation(str):
- """String that represents a rotation by a multiple of 90 degree"""
- def __init__(self, original_me):
- if self not in ('left','right','normal','inverted'):
- raise Exception("No know rotation.")
- is_odd = property(lambda self: self in ('left','right'))
- _angles = {'left':pi/2,'inverted':pi,'right':3*pi/2,'normal':0}
- angle = property(lambda self: Rotation._angles[self])
- def __repr__(self):
- return '<Rotation %s>'%self
-
-LEFT = Rotation('left')
-RIGHT = Rotation('right')
-INVERTED = Rotation('inverted')
-NORMAL = Rotation('normal')
-ROTATIONS = (NORMAL, RIGHT, INVERTED, LEFT)
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/data/gpl-3.txt b/extra/arandr/arandr-0.1.3/screenlayout/data/gpl-3.txt
deleted file mode 100644
index 94a9ed024..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/data/gpl-3.txt
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- 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.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- 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 <http://www.gnu.org/licenses/>.
-
-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:
-
- <program> Copyright (C) <year> <name of author>
- 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
-<http://www.gnu.org/licenses/>.
-
- 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
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/demo.py b/extra/arandr/arandr-0.1.3/screenlayout/demo.py
deleted file mode 100644
index a99790133..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/demo.py
+++ /dev/null
@@ -1,28 +0,0 @@
-"""Demo application, primarily used to make sure the screenlayout library can be used independent of ARandR.
-
-Run by calling the main() function."""
-
-import gtk
-from . import widget
-
-def main():
- w = gtk.Window()
- w.connect('destroy',gtk.main_quit)
-
- r = widget.ARandRWidget()
- r.load_from_x()
-
- b = gtk.Button("Reload")
- b.connect('clicked', lambda *args: r.load_from_x())
-
- b2 = gtk.Button("Apply")
- b2.connect('clicked', lambda *args: r.save_to_x())
-
- v = gtk.VBox()
- w.add(v)
- v.add(r)
- v.add(b)
- v.add(b2)
- w.set_title('Simple ARandR Widget Demo')
- w.show_all()
- gtk.main()
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/gui.py b/extra/arandr/arandr-0.1.3/screenlayout/gui.py
deleted file mode 100644
index 9c4121cf0..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/gui.py
+++ /dev/null
@@ -1,310 +0,0 @@
-# This Python file uses the following encoding: utf-8
-"""Main GUI for ARandR"""
-
-import os
-import optparse
-import inspect
-
-import gtk
-
-from . import widget
-from .metacity import show_keybinder
-
-
-__version__ = '0.1.3'
-TRANSLATORS = ['chrysn <chrysn@fsfe.org>', 'Quizzlo <paolone.marco@gmail.com>', 'Phantom X <megaphantomx@bol.com.br>', 'Joe Hansen <joedalton2@yahoo.dk>', 'gundachandru <gundachandru@gmail.com>']
-
-#import os
-#os.environ['DISPLAY']=':0.0'
-
-import gettext
-gettext.install('arandr')
-
-
-def actioncallback(function):
- """Wrapper around a function that is intended to be used both as a callback from a gtk.Action and as a normal function.
-
- Functions taking no arguments will never be given any, functions taking one argument (callbacks for radio actions) will be given the value of the action or just the argument.
-
- A first argument called 'self' is passed through."""
- argnames = inspect.getargspec(function)[0]
- if argnames[0] == 'self':
- has_self = True
- argnames.pop(0)
- else:
- has_self = False
- assert len(argnames) in (0,1)
-
- def wrapper(*args):
- args_in = list(args)
- args_out = []
- if has_self:
- args_out.append(args_in.pop(0))
- if len(argnames) == len(args_in): # called directly
- args_out.extend(args_in)
- elif len(argnames)+1 == len(args_in):
- if len(argnames):
- args_out.append(args_in[1].props.value)
- else:
- raise TypeError("Arguments don't match")
-
- return function(*args_out)
-
- wrapper.__name__ = function.__name__
- wrapper.__doc__ = function.__doc__
- return wrapper
-
-
-class Application(object):
- uixml = """
- <ui>
- <menubar name="MenuBar">
- <menu action="Layout">
- <menuitem action="New" />
- <menuitem action="Open" />
- <menuitem action="SaveAs" />
- <separator />
- <menuitem action="Apply" />
- <menuitem action="LayoutSettings" />
- <separator />
- <menuitem action="Quit" />
- </menu>
- <menu action="View">
- <menuitem action="Zoom4" />
- <menuitem action="Zoom8" />
- <menuitem action="Zoom16" />
- </menu>
- <menu action="Outputs" name="Outputs">
- <menuitem action="OutputsDummy" />
- </menu>
- <menu action="System">
- <menuitem action="Metacity" />
- </menu>
- <menu action="Help">
- <menuitem action="About" />
- </menu>
- </menubar>
- <toolbar name="ToolBar">
- <toolitem action="Apply" />
- <separator />
- <toolitem action="New" />
- <toolitem action="Open" />
- <toolitem action="SaveAs" />
- </toolbar>
- </ui>
- """
-
- def __init__(self, file=None, randr_display=None, force_version=False):
- self.window = window = gtk.Window()
- window.props.title = "Screen Layout Editor"
-
- # actions
- actiongroup = gtk.ActionGroup('default')
- actiongroup.add_actions([
- ("Layout", None, _("_Layout")),
- ("New", gtk.STOCK_NEW, None, None, None, self.do_new),
- ("Open", gtk.STOCK_OPEN, None, None, None, self.do_open),
- ("SaveAs", gtk.STOCK_SAVE_AS, None, None, None, self.do_save_as),
-
- ("Apply", gtk.STOCK_APPLY, None, '<Control>Return', None, self.do_apply),
- ("LayoutSettings", gtk.STOCK_PROPERTIES, None, '<Alt>Return', None, self.do_open_properties),
-
- ("Quit", gtk.STOCK_QUIT, None, None, None, gtk.main_quit),
-
-
- ("View", None, _("_View")),
-
- ("Outputs", None, _("_Outputs")),
- ("OutputsDummy", None, _("Dummy")),
-
- ("System", None, _("_System")),
- ("Metacity", None, _("_Keybindings (Metacity)"), None, None, self.do_open_metacity),
-
- ("Help", None, _("_Help")),
- ("About", gtk.STOCK_ABOUT, None, None, None, self.about),
- ])
- actiongroup.add_radio_actions([
- ("Zoom4", None, _("1:4"), None, None, 4),
- ("Zoom8", None, _("1:8"), None, None, 8),
- ("Zoom16", None, _("1:16"), None, None, 16),
- ], 8, self.set_zoom)
-
- window.connect('destroy', gtk.main_quit)
-
- # uimanager
- self.uimanager = gtk.UIManager()
- accelgroup = self.uimanager.get_accel_group()
- window.add_accel_group(accelgroup)
-
- self.uimanager.insert_action_group(actiongroup, 0)
-
- self.uimanager.add_ui_from_string(self.uixml)
-
- # widget
- self.widget = widget.ARandRWidget(display=randr_display, force_version=force_version)
- if file is None:
- self.filetemplate = self.widget.load_from_x()
- else:
- self.filetemplate = self.widget.load_from_file(file)
-
- self.widget.connect('changed', self._widget_changed)
- self._widget_changed(self.widget)
-
- # window layout
- vbox = gtk.VBox()
- menubar = self.uimanager.get_widget('/MenuBar')
- vbox.pack_start(menubar, expand=False)
- toolbar = self.uimanager.get_widget('/ToolBar')
- vbox.pack_start(toolbar, expand=False)
-
- vbox.add(self.widget)
-
- window.add(vbox)
- window.show_all()
-
- self.gconf = None
-
- #################### actions ####################
-
- @actioncallback
- def set_zoom(self, value): # don't use directly: state is not pushed back to action group.
- self.widget.factor = value
- self.window.resize(1,1)
-
- @actioncallback
- def do_open_properties(self):
- d = gtk.Dialog(_("Script Properties"), None, gtk.DIALOG_MODAL, (gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT))
- d.set_default_size(300,400)
-
- script_editor = gtk.TextView()
- script_buffer = script_editor.get_buffer()
- script_buffer.set_text("\n".join(self.filetemplate))
- script_editor.props.editable = False
-
- #wacom_options = gtk.Label("FIXME")
-
- nb = gtk.Notebook()
- #nb.append_page(wacom_options, gtk.Label(_("Wacom options")))
- nb.append_page(script_editor, gtk.Label(_("Script")))
-
- d.vbox.pack_start(nb)
- d.show_all()
-
- d.run()
- d.destroy()
-
- @actioncallback
- def do_apply(self):
- if self.widget.abort_if_unsafe():
- return
-
- try:
- self.widget.save_to_x()
- except Exception, e:
- d = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, _("XRandR failed:\n%s")%e)
- d.run()
- d.destroy()
-
- @actioncallback
- def do_new(self):
- self.filetemplate = self.widget.load_from_x()
-
- @actioncallback
- def do_open(self):
- d = self._new_file_dialog(_("Open Layout"), gtk.FILE_CHOOSER_ACTION_OPEN)
-
- result = d.run()
- filenames = d.get_filenames()
- d.destroy()
- if result == gtk.RESPONSE_ACCEPT:
- assert len(filenames) == 1
- f = filenames[0]
- self.filetemplate = self.widget.load_from_file(f)
-
- @actioncallback
- def do_save_as(self):
- d = self._new_file_dialog(_("Save Layout"), gtk.FILE_CHOOSER_ACTION_SAVE)
- d.props.do_overwrite_confirmation = True
-
- result = d.run()
- filenames = d.get_filenames()
- d.destroy()
- if result == gtk.RESPONSE_ACCEPT:
- assert len(filenames) == 1
- f = filenames[0]
- if not f.endswith('.sh'): f = f + '.sh'
- self.widget.save_to_file(f, self.filetemplate)
-
- def _new_file_dialog(self, title, type):
- d = gtk.FileChooserDialog(title, None, type)
- d.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL)
- d.add_button(gtk.STOCK_OPEN, gtk.RESPONSE_ACCEPT)
-
- layoutdir = os.path.expanduser('~/.screenlayout/')
- try:
- os.makedirs(layoutdir)
- except OSError:
- pass
- d.set_current_folder(layoutdir)
-
- f = gtk.FileFilter()
- f.set_name('Shell script (Layout file)')
- f.add_pattern('*.sh')
- d.add_filter(f)
-
- return d
-
- #################### widget maintenance ####################
-
- def _widget_changed(self, widget):
- self._populate_outputs()
-
- def _populate_outputs(self):
- w = self.uimanager.get_widget('/MenuBar/Outputs')
- w.props.submenu = self.widget.contextmenu()
-
- #################### metacity ####################
-
- @actioncallback
- def do_open_metacity(self):
- show_keybinder()
-
- #################### application related ####################
-
- def about(self, *args):
- d = gtk.AboutDialog()
- d.props.program_name = _(u'ARandR Screen Layout Editor')
- d.props.version = __version__
- d.props.translator_credits = "\n".join(TRANSLATORS)
- d.props.copyright = u'© chrysn 2008 – 2009'
- ## translators, please translate in the style of "Another XRandR GUI
- ## (ein weiteres GUI für XRandR)" so users get both the explanation of
- ## the acronym and a localized version.
- d.props.comments = _(u'Another XRandR GUI')
- d.props.license = open(os.path.join(os.path.dirname(__file__), 'data', 'gpl-3.txt')).read()
- d.props.logo_icon_name = 'video-display'
- d.run()
- d.destroy()
-
- def run(self):
- gtk.main()
-
-def main():
- p = optparse.OptionParser(usage="%prog [savedfile]", description="Another XRandrR GUI", version="%%prog %s"%__version__)
- p.add_option('--randr-display', help='Use D as display for xrandr (but still show the GUI on the display from the environment; e.g. `localhost:10.0`)', metavar='D')
- p.add_option('--force-version', help='Even run with untested XRandR versions', action='store_true')
-
- (options, args) = p.parse_args()
- if len(args) == 0:
- file_to_open = None
- elif len(args) == 1:
- file_to_open = args[0]
- else:
- p.usage()
-
- a = Application(
- file=file_to_open,
- randr_display=options.randr_display,
- force_version=options.force_version
- )
- a.run()
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/metacity.py b/extra/arandr/arandr-0.1.3/screenlayout/metacity.py
deleted file mode 100644
index a6cac05d6..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/metacity.py
+++ /dev/null
@@ -1,294 +0,0 @@
-import os
-import gobject
-import gtk
-
-try:
- import gconf
-except ImportError:
- gconf = None
-
-import gettext
-gettext.install('arandr')
-
-SCRIPTSDIR = os.path.expanduser('~/.screenlayout/') # must end in /
-
-# cycling template:
-# sh -c 'COUNT=`cat /tmp/counter 2>/dev/null`; LENGTH=3; COUNT=$(expr $(expr $COUNT + 1) % $LENGTH); echo $COUNT > /tmp/counter; case "$COUNT" in 0) echo zero;; 1) echo uno;; 2) echo dos;; esac'
-# countfile must be a harmless string
-CYCLINGPATTERN = """sh -c 'COUNTFILE=%(countfile)s; COUNT=`cat $COUNTFILE 2>/dev/null`; LENGTH=%(length)d; COUNT=$(expr $(expr $COUNT + 1) %% $LENGTH); echo $COUNT > $COUNTFILE; case "$COUNT" in %(cases)s;; esac'"""
-CYCLINGPATTERN_RECOGNITION = [
- """sh -c 'COUNTFILE=""",
- """; COUNT=`cat $COUNTFILE 2>/dev/null`; LENGTH=""",
- """; COUNT=$(expr $(expr $COUNT + 1) % $LENGTH); echo $COUNT > $COUNTFILE; case "$COUNT" in """,
- """;; esac'""",
- ]
-
-class MetacityWidget(gtk.Table):
- """Widget that manages bindings of screenlayout scripts to metacity keybindings.
-
- Not related to ARandR except that ARandR scripts are bound."""
- def __init__(self):
- gtk.Table.__init__(self, rows=13, columns=2)
-
- c = gconf.client_get_default()
- c.add_dir('/apps/metacity/global_keybindings', gconf.CLIENT_PRELOAD_NONE)
- c.add_dir('/apps/metacity/keybinding_commands', gconf.CLIENT_PRELOAD_NONE)
-
- self.attach(gtk.Label(_("Accelerator")), 0,1,0,1)
- self.attach(gtk.Label(_("Action")), 1,2,0,1)
-
- self.lines = []
- for i in range(1,13):
- k = KeyBindingButton(c, '/apps/metacity/global_keybindings/run_command_%d'%i)
- a = ActionWidget(c, '/apps/metacity/keybinding_commands/command_%d'%i)
- self.attach(k, 0, 1, i, i+1)
- self.attach(a, 1, 2, i, i+1)
- self.lines.append((k,a))
- k.connect('notify::bound', lambda *args: self._update())
- a.connect('notify::editable', lambda *args: self._update())
- self._update()
-
- def _update(self):
- for i,(k,a) in enumerate(self.lines):
- enable = (i==0 or k.props.bound or self.lines[i-1][0].props.bound) and a.props.editable
- k.props.sensitive = enable
- a.props.sensitive = enable and k.props.bound
-
-
-class GConfButton(gtk.Button):
- """Button connected to a gconfkey via a gconf client c.
-
- Will call self._update when the key is changed; use self.set(value) to change the key's value."""
- def __init__(self, c, gconfkey):
- self._properties = {}
- super(GConfButton, self).__init__()
-
- self.gconf = c
- self.gconfkey = gconfkey
- self._id = c.notify_add(gconfkey, self._update)
- c.notify(gconfkey)
-
- def __del__(self):
- self.gconf.notify_remove(self._id)
- #print "del" # FIXME: not called!
-
- def do_get_property(self, key):
- return self._properties[key]
- def do_set_property(self, key, value):
- self._properties[key] = value
-
- def set(self, value):
- self.gconf.set_string(self.gconfkey, value)
-
- def _update(self, *args):
- """Called when the value of the key is changed (hooked into GConf); overwrite this."""
- pass
-
-
-class KeyBindingButton(GConfButton):
- """GConfButton that will interpret the value as a keybinding and ask for a new keybinding when pressed."""
- __gproperties__ = {
- 'bound': (gobject.TYPE_BOOLEAN, 'bound', 'slot is bound to a key', False, gobject.PARAM_READWRITE),
- }
-
- def __init__(self, *args, **kwords):
- super(KeyBindingButton, self).__init__(*args, **kwords)
-
- self.connect('clicked', self.on_clicked)
- self.connect('key-press-event', self.on_keypress)
-
- def _update(self, *args):
- s = self.gconf.get_string(self.gconfkey)
-
- if s == "disabled":
- self.props.label = _("disabled")
- self.props.bound = False
- else:
- self.props.label = s
- self.props.bound = True
-
- self.editing = False
-
- def abort_editing(self):
- self.editing = False
- self._update()
-
- def on_clicked(self, widget):
- if not self.editing:
- self.editing = True
- self.props.label = _("New accelerator...")
- else:
- self.abort_editing()
-
- def on_keypress(self, widget, event): # modified from gnome deskbar-applet's DeskbarPreferencesUI.py
- if not self.editing:
- return
-
- keymap = gtk.gdk.keymap_get_default()
- translation = keymap.translate_keyboard_state(event.hardware_keycode, event.state, event.group)
- if translation == None: # FIXME: metacity can also handle raw keycodes with modifiers (but can compiz?)
- accel_name = "%#x"%event.hardware_keycode
- else:
- (keyval, egroup, level, consumed_modifiers) = translation
- upper = event.keyval
- accel_keyval = gtk.gdk.keyval_to_lower(upper)
-
- # Put shift back if it changed the case of the key, not otherwise.
- if upper != accel_keyval and (consumed_modifiers & gtk.gdk.SHIFT_MASK):
- consumed_modifiers &= ~(gtk.gdk.SHIFT_MASK)
-
- # filter consumed/ignored modifiers
- ignored_modifiers = gtk.gdk.MOD2_MASK | gtk.gdk.MOD5_MASK
- accel_mods = event.state & gtk.gdk.MODIFIER_MASK & ~(consumed_modifiers | ignored_modifiers)
-
- if accel_mods == 0 and accel_keyval == gtk.keysyms.Escape:
- self.abort_editing()
- return
- if accel_mods == 0 and accel_keyval == gtk.keysyms.BackSpace:
- self.set('disabled')
- return
-
- if not gtk.accelerator_valid(accel_keyval, accel_mods):
- return # just modifiers
-
- accel_name = gtk.accelerator_name(accel_keyval, accel_mods)
- #self.set_accelerator(accel_keyval, event.hardware_keycode, accel_mods)
- #self.__old_value = None
- #self.emit('accel-edited', accel_name, accel_keyval, accel_mods, event.hardware_keycode)
-
- self.set(accel_name)
-
-class ActionWidget(GConfButton):
- """GConfButton that will interpret the value as a command and allow changing it if it is a screenlayout script or a collection thereof."""
- __gproperties__ = {
- 'editable': (gobject.TYPE_BOOLEAN, 'editable', 'true if property can be managed by MetacityWidget', False, gobject.PARAM_READWRITE),
- }
-
- def __init__(self, *args, **kwords):
- super(ActionWidget, self).__init__(*args, **kwords)
-
- self.connect('clicked', self.on_clicked)
-
- def _update(self, *args):
- s = self.gconf.get_string(self.gconfkey)
-
- if s.startswith('"'+SCRIPTSDIR) and s.endswith('.sh"'):
- text = s[len(SCRIPTSDIR)+1:-4]
-
- self.props.label = text
- self.props.editable = True
- self.items = [text]
- elif s == "":
- self.props.label = _("no action")
- self.props.editable = True
- self.items = []
- elif s.startswith(CYCLINGPATTERN_RECOGNITION[0]):
- try:
- left = s[len(CYCLINGPATTERN_RECOGNITION[0]):]
- index = left.index(CYCLINGPATTERN_RECOGNITION[1])
- # countfile = left[:index] # not needed because not configurable. differing count files will be reset to the global one on change.
- left = left[index+len(CYCLINGPATTERN_RECOGNITION[1]):]
- index = left.index(CYCLINGPATTERN_RECOGNITION[2])
- length = int(left[:index])
- left = left[index+len(CYCLINGPATTERN_RECOGNITION[2]):]
- index = left.index(CYCLINGPATTERN_RECOGNITION[3])
- cases = left[:index]
- left = left[index+len(CYCLINGPATTERN_RECOGNITION[3]):]
- if left!="":
- raise ValueError("Not my syntax.")
-
- # countfile, length, cases
- counter, scripts = zip(*[part.split(") ") for part in cases.split(" ;; ")])
- if counter != tuple(str(i) for i in range(length)):
- raise ValueError("Not my syntax.")
-
- self.items = []
- for s in scripts:
- if s.startswith('"'+SCRIPTSDIR) and s.endswith('.sh"'):
- self.items.append(s[len(SCRIPTSDIR)+1:-4])
- else:
- raise ValueError("Not my syntax.");
- except (ValueError, ):
- self.props.label = _("incompatible configuration")
- self.props.editable = False
- self.items = None
- raise
- self.props.label = ", ".join(self.items)
- self.props.editable = True
- else:
- self.props.label = _("other application")
- self.props.editable = False
- self.items = None
-
- def on_clicked(self, widget):
- m = gtk.Menu()
- try:
- for f in os.listdir(SCRIPTSDIR):
- if not f.endswith('.sh'):
- continue
- text = f[:-3]
- i = gtk.CheckMenuItem(text)
- if text in self.items:
- i.props.active = True
- i.connect('activate', lambda menuitem, script: self.toggle(script), text)
- m.add(i)
- except OSError: # no such directory
- pass
-
- if not m.get_children():
- i = gtk.MenuItem(_("No files in %(folder)r. Save a layout first.")%{'folder':SCRIPTSDIR})
- i.props.sensitive = False
- m.add(i)
- else:
- m.add(gtk.MenuItem())
-
- i = gtk.ImageMenuItem(gtk.STOCK_CLEAR)
- i.connect('activate', lambda menuitem: self.set(""))
- m.add(i)
-
- m.show_all()
- m.popup(None, None, None, 1, 0)
-
- def toggle(self, item):
- if item in self.items:
- self.items.remove(item)
- else:
- self.items.append(item)
- if len(self.items) == 0:
- self.set("")
- elif len(self.items) == 1:
- self.set('"%s%s.sh"'%(SCRIPTSDIR, self.items[0]))
- else:
- self.set(CYCLINGPATTERN%{'length':len(self.items), 'countfile':'/tmp/screenlayout_count.%s'%os.environ['USER'], 'cases':" ;; ".join('%d) "%s.sh"'%(i,SCRIPTSDIR+script) for (i,script) in enumerate(self.items))})
-
-
-def show_keybinder():
- if not gconf:
- d = gtk.MessageDialog(None, gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE)
- d.props.text = _("gconf not available.")
- d.props.secondary_text = _("In order to configure metacity, you need to have the python gconf module installed.")
- d.run()
- d.destroy()
- return
-
- d = gtk.Window()
- d.props.modal = True
- d.props.title = _("Keybindings (via Metacity)")
-
- close = gtk.Button(gtk.STOCK_CLOSE)
- close.props.use_stock = True
- close.connect('clicked', lambda *args: d.destroy())
- buttons = gtk.HBox() # FIXME: use HButtonBox
- buttons.props.border_width = 5
- buttons.pack_end(close, expand=False)
-
- t = MetacityWidget()
-
- contents = gtk.VBox()
- contents.pack_start(t)
- l = gtk.Label(_('Click on a button in the left column and press a key combination you want to bind to a certain screen layout. (Use backspace to clear accelerators, escape to abort editing.) Then, select one or more layouts in the right column.\n\nThis will only work if you use metacity or another program reading its configuration.'))
- l.props.wrap = True
- contents.pack_start(l)
- contents.pack_end(buttons, expand=False)
- d.add(contents)
- d.show_all()
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/snap.py b/extra/arandr/arandr-0.1.3/screenlayout/snap.py
deleted file mode 100644
index b08223f38..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/snap.py
+++ /dev/null
@@ -1,30 +0,0 @@
-from .auxiliary import Position
-
-class Snap(object):
- """Snap-to-edges manager"""
- def __init__(self, size, tolerance, list):
- self.tolerance = tolerance
-
- self.horizontal = set()
- self.vertical = set()
- for i in list:
- self.vertical.add(i[0].left)
- self.vertical.add(i[0].left+i[1].width)
- self.horizontal.add(i[0].top)
- self.horizontal.add(i[0].top+i[1].height)
-
- self.vertical.add(i[0].left-size.width)
- self.vertical.add(i[0].left+i[1].width-size.width)
- self.horizontal.add(i[0].top-size.height)
- self.horizontal.add(i[0].top+i[1].height-size.height)
-
- def suggest(self, position):
- vertical = [x for x in self.vertical if abs(x-position[0])<self.tolerance]
- horizontal = [y for y in self.horizontal if abs(y-position[1])<self.tolerance]
-
- if vertical:
- position = Position((vertical[0], position[1]))
- if horizontal:
- position = Position((position[0], horizontal[0]))
-
- return position
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/widget.py b/extra/arandr/arandr-0.1.3/screenlayout/widget.py
deleted file mode 100644
index 391d33779..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/widget.py
+++ /dev/null
@@ -1,406 +0,0 @@
-from __future__ import division
-import os
-import stat
-import pango
-import pangocairo
-import gobject, gtk
-from .auxiliary import Position, Size, NORMAL, ROTATIONS, InadequateConfiguration
-from .xrandr import XRandR
-from .snap import Snap
-
-import gettext
-gettext.install('arandr')
-
-class ARandRWidget(gtk.DrawingArea):
- __gsignals__ = {
- 'expose-event':'override', # FIXME: still needed?
- 'changed':(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
- }
-
- def __init__(self, factor=8, display=None, force_version=False):
- super(ARandRWidget, self).__init__()
-
- self._factor = factor
-
- self.set_size_request(1024//self.factor, 1024//self.factor) # best guess for now
-
- self.connect('button-press-event', self.click)
- self.set_events(gtk.gdk.BUTTON_PRESS_MASK)
-
- self.setup_draganddrop()
-
- self._xrandr = XRandR(display=display, force_version=force_version)
-
- #################### widget features ####################
-
- def _set_factor(self, f):
- self._factor = f
- self._update_size_request()
- self._force_repaint()
-
- factor = property(lambda self: self._factor, _set_factor)
-
- def abort_if_unsafe(self):
- if not len([x for x in self._xrandr.configuration.outputs.values() if x.active]):
- d = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_YES_NO, _("Your configuration does not include an active monitor. Do you want to apply the configuration?"))
- result = d.run()
- d.destroy()
- if result == gtk.RESPONSE_YES:
- return False
- else:
- return True
- return False
-
- def error_message(self, message):
- d = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE, message)
- d.run()
- d.destroy()
-
- def _update_size_request(self):
- max_gapless = sum(max(o.size) if o.active else 0 for o in self._xrandr.configuration.outputs.values()) # this ignores that some outputs might not support rotation, but will always err at the side of caution.
- # have some buffer
- usable_size = int(max_gapless * 1.1)
- # don't request too large a window, but make sure very possible compination fits
- xdim = min(self._xrandr.state.virtual.max[0], usable_size)
- ydim = min(self._xrandr.state.virtual.max[1], usable_size)
- self.set_size_request(xdim//self.factor, ydim//self.factor)
-
- #################### loading ####################
-
- def load_from_file(self, file):
- data = open(file).read()
- template = self._xrandr.load_from_string(data)
- self._xrandr_was_reloaded()
- return template
-
- def load_from_x(self):
- self._xrandr.load_from_x()
- self._xrandr_was_reloaded()
- return self._xrandr.DEFAULTTEMPLATE
-
- def _xrandr_was_reloaded(self):
- self.sequence = sorted(self._xrandr.outputs)
- self._lastclick = (-1,-1)
-
- self._update_size_request()
- if self.window:
- self._force_repaint()
- self.emit('changed')
-
- def save_to_x(self):
- self._xrandr.save_to_x()
- self.load_from_x()
-
- def save_to_file(self, file, template=None, additional=None):
- data = self._xrandr.save_to_shellscript_string(template, additional)
- open(file, 'w').write(data)
- os.chmod(file, stat.S_IRWXU)
- self.load_from_file(file)
-
- #################### doing changes ####################
-
- def _set_something(self, which, on, data):
- old = getattr(self._xrandr.configuration.outputs[on], which)
- setattr(self._xrandr.configuration.outputs[on], which, data)
- try:
- self._xrandr.check_configuration()
- except InadequateConfiguration:
- setattr(self._xrandr.configuration.outputs[on], which, old)
- raise
-
- self._force_repaint()
- self.emit('changed')
-
- def set_position(self, on, pos):
- self._set_something('position', on, pos)
- def set_rotation(self, on, rot):
- self._set_something('rotation', on, rot)
- def set_resolution(self, on, res):
- self._set_something('mode', on, res)
-
- def set_active(self, on, active):
- v = self._xrandr.state.virtual
- o = self._xrandr.configuration.outputs[on]
-
- if not active and o.active:
- o.active = False
- # don't delete: allow user to re-enable without state being lost
- if active and not o.active:
- if hasattr(o, 'position'):
- o.active = True # nothing can go wrong, position already set
- else:
- pos = Position((0,0))
- for m in self._xrandr.state.outputs[on].modes:
- # determine first possible mode
- if m[0]<=v.max[0] and m[1]<=v.max[1]:
- mode = m
- break
- else:
- raise InadequateConfiguration("Smallest mode too large for virtual.")
-
- o.active = True
- o.position = pos
- o.mode = mode
- o.rotation = NORMAL
-
- self._force_repaint()
- self.emit('changed')
-
- #################### painting ####################
-
- def do_expose_event(self, event):
- cr = pangocairo.CairoContext(self.window.cairo_create())
- cr.rectangle(event.area.x, event.area.y, event.area.width, event.area.height)
- cr.clip()
-
- # clear
- cr.set_source_rgb(0,0,0)
- cr.rectangle(0,0,*self.window.get_size())
- cr.fill()
- cr.save()
-
- cr.scale(1/self.factor, 1/self.factor)
- cr.set_line_width(self.factor*1.5)
-
- self._draw(self._xrandr, cr)
-
- def _draw(self, xrandr, cr):
- cfg = xrandr.configuration
- state = xrandr.state
-
- cr.set_source_rgb(0.25,0.25,0.25)
- cr.rectangle(0,0,*state.virtual.max)
- cr.fill()
-
- cr.set_source_rgb(0.5,0.5,0.5)
- cr.rectangle(0,0,*cfg.virtual)
- cr.fill()
-
- for on in self.sequence:
- o = cfg.outputs[on]
- if not o.active: continue
-
- rect = (o.tentative_position if hasattr(o, 'tentative_position') else o.position) + o.size
- center = rect[0]+rect[2]/2, rect[1]+rect[3]/2
-
- # paint rectangle
- cr.set_source_rgba(1,1,1,0.7)
- cr.rectangle(*rect)
- cr.fill()
- cr.set_source_rgb(0,0,0)
- cr.rectangle(*rect)
- cr.stroke()
-
- # set up for text
- cr.save()
- textwidth = rect[3 if o.rotation.is_odd else 2]
- widthperchar = textwidth/len(on)
- textheight = int(widthperchar * 0.8) # i think this looks nice and won't overflow even for wide fonts
-
- newdescr = pango.FontDescription("sans")
- newdescr.set_size(textheight * pango.SCALE)
-
- # create text
- layout = cr.create_layout()
- layout.set_font_description(newdescr)
- layout.set_text(on)
-
- # position text
- layoutsize = layout.get_pixel_size()
- layoutoffset = -layoutsize[0]/2, -layoutsize[1]/2
- cr.move_to(*center)
- cr.rotate(o.rotation.angle)
- cr.rel_move_to(*layoutoffset)
-
- # pain text
- cr.show_layout(layout)
- cr.restore()
-
- def _force_repaint(self):
- # using self.allocation as rect is offset by the menu bar.
- self.window.invalidate_rect(gtk.gdk.Rectangle(0,0,self._xrandr.state.virtual.max[0]//self.factor,self._xrandr.state.virtual.max[1]//self.factor), False)
- # this has the side effect of not painting out of the available region on drag and drop
-
- #################### click handling ####################
-
- def click(self, widget, event):
- undermouse = self._get_point_outputs(event.x, event.y)
- if event.button == 1 and undermouse:
- which = self._get_point_active_output(event.x, event.y)
- if self._lastclick == (event.x, event.y): # this was the second click to that stack
- # push the highest of the undermouse windows below the lowest
- newpos = min(self.sequence.index(a) for a in undermouse)
- self.sequence.remove(which)
- self.sequence.insert(newpos,which)
- # sequence changed
- which = self._get_point_active_output(event.x, event.y)
- # pull the clicked window to the absolute top
- self.sequence.remove(which)
- self.sequence.append(which)
-
- self._lastclick = (event.x, event.y)
- self._force_repaint()
- if event.button == 3:
- if undermouse:
- target = [a for a in self.sequence if a in undermouse][-1]
- m = self._contextmenu(target)
- m.popup(None, None, None, event.button, event.time)
- else:
- m = self.contextmenu()
- m.popup(None, None, None, event.button, event.time)
-
- self._lastclick = (event.x, event.y) # deposit for drag and drop until better way found to determine exact starting coordinates
-
- def _get_point_outputs(self, x, y):
- x,y = x*self.factor, y*self.factor
- outputs = set()
- for on,o in self._xrandr.configuration.outputs.items():
- if not o.active: continue
- if o.position[0]-self.factor <= x <= o.position[0]+o.size[0]+self.factor and o.position[1]-self.factor <= y <= o.position[1]+o.size[1]+self.factor:
- outputs.add(on)
- return outputs
-
- def _get_point_active_output(self, x, y):
- undermouse = self._get_point_outputs(x, y)
- if not undermouse: raise IndexError("No output here.")
- active = [a for a in self.sequence if a in undermouse][-1]
- return active
-
- #################### context menu ####################
-
- def contextmenu(self):
- m = gtk.Menu()
- for on in self._xrandr.outputs:
- i = gtk.MenuItem(on)
- i.props.submenu = self._contextmenu(on)
- m.add(i)
- m.show_all()
- return m
-
- def _contextmenu(self, on):
- m = gtk.Menu()
- oc = self._xrandr.configuration.outputs[on]
- os = self._xrandr.state.outputs[on]
-
- enabled = gtk.CheckMenuItem(_("Active"))
- enabled.props.active = oc.active
- if not oc.active and not os.connected:
- enabled.props.sensitive = False
- enabled.connect('activate', lambda menuitem: self.set_active(on, menuitem.props.active))
-
- m.add(enabled)
-
- if oc.active:
- res_m = gtk.Menu()
- for r in os.modes:
- i = gtk.CheckMenuItem("%sx%s"%r)
- i.props.draw_as_radio = True
- i.props.active = (oc.mode == r)
- def _res_set(menuitem, on, r):
- try:
- self.set_resolution(on, r)
- except InadequateConfiguration, e:
- self.error_message(_("Setting this resolution is not possible here: %s")%e.message)
- i.connect('activate', _res_set, on, r)
- res_m.add(i)
-
- or_m = gtk.Menu()
- for r in ROTATIONS:
- i = gtk.CheckMenuItem("%s"%r)
- i.props.draw_as_radio = True
- i.props.active = (oc.rotation == r)
- def _rot_set(menuitem, on, r):
- try:
- self.set_rotation(on, r)
- except InadequateConfiguration, e:
- self.error_message(_("This orientation is not possible here: %s")%e.message)
- i.connect('activate', _rot_set, on, r)
- if r not in os.rotations:
- i.props.sensitive = False
- or_m.add(i)
-
- res_i = gtk.MenuItem(_("Resolution"))
- res_i.props.submenu = res_m
- or_i = gtk.MenuItem(_("Orientation"))
- or_i.props.submenu = or_m
-
- m.add(res_i)
- m.add(or_i)
-
- m.show_all()
- return m
-
- #################### drag&drop ####################
-
- def setup_draganddrop(self):
- self.drag_source_set(gtk.gdk.BUTTON1_MASK, [('screenlayout-output', gtk.TARGET_SAME_WIDGET, 0)], 0)
- self.drag_dest_set(0, [('screenlayout-output', gtk.TARGET_SAME_WIDGET, 0)], 0)
- #self.drag_source_set(gtk.gdk.BUTTON1_MASK, [], 0)
- #self.drag_dest_set(0, [], 0)
-
- self._draggingfrom = None
- self._draggingoutput = None
- self.connect('drag-begin', self._dragbegin_cb)
- self.connect('drag-motion', self._dragmotion_cb)
- self.connect('drag-drop', self._dragdrop_cb)
- self.connect('drag-end', self._dragend_cb)
-
- self._lastclick = (0,0)
-
- def _dragbegin_cb(self, widget, context):
- try:
- output = self._get_point_active_output(*self._lastclick)
- except IndexError:
- # FIXME: abort?
- context.set_icon_stock(gtk.STOCK_CANCEL, 10,10)
- return None
-
- self._draggingoutput = output
- self._draggingfrom = self._lastclick
- context.set_icon_stock(gtk.STOCK_FULLSCREEN, 10,10)
-
- self._draggingsnap = Snap(
- self._xrandr.configuration.outputs[self._draggingoutput].size,
- self.factor*5,
- [(Position((0,0)),self._xrandr.state.virtual.max)]+[
- (v.position, v.size) for (k,v) in self._xrandr.configuration.outputs.items() if k!=self._draggingoutput and v.active
- ]
- )
-
- def _dragmotion_cb(self, widget, context, x, y, time):
- if not 'screenlayout-output' in context.targets: # from outside
- return False
- if not self._draggingoutput: # from void; should be already aborted
- return False
-
- context.drag_status(gtk.gdk.ACTION_MOVE, time)
-
- rel = x-self._draggingfrom[0], y-self._draggingfrom[1]
-
- oldpos = self._xrandr.configuration.outputs[self._draggingoutput].position
- newpos = Position((oldpos[0]+self.factor*rel[0], oldpos[1]+self.factor*rel[1]))
- self._xrandr.configuration.outputs[self._draggingoutput].tentative_position = self._draggingsnap.suggest(newpos)
- self._force_repaint()
-
- return True
-
- def _dragdrop_cb(self, widget, context, x, y, time):
- if not self._draggingoutput:
- return
-
- try:
- self.set_position(self._draggingoutput, self._xrandr.configuration.outputs[self._draggingoutput].tentative_position)
- except InadequateConfiguration:
- context.finish(False, False, time)
- #raise # snapping back to the original position should be enought feedback
-
- context.finish(True, False, time)
-
- def _dragend_cb(self, widget, context):
- try:
- del self._xrandr.configuration.outputs[self._draggingoutput].tentative_position
- except KeyError:
- pass # already reloaded
- self._draggingoutput = None
- self._draggingfrom = None
- self._force_repaint()
diff --git a/extra/arandr/arandr-0.1.3/screenlayout/xrandr.py b/extra/arandr/arandr-0.1.3/screenlayout/xrandr.py
deleted file mode 100644
index 4d0c0c5a3..000000000
--- a/extra/arandr/arandr-0.1.3/screenlayout/xrandr.py
+++ /dev/null
@@ -1,267 +0,0 @@
-"""Wrapper around command line xrandr (only 1.2 per output features supported)"""
-
-import os
-import subprocess
-import warnings
-
-from .auxiliary import BetterList, Size, Position, Geometry, FileLoadError, FileSyntaxError, InadequateConfiguration, Rotation, ROTATIONS, NORMAL
-
-import gettext
-gettext.install('arandr')
-
-SHELLSHEBANG='#!/bin/sh'
-
-class XRandR(object):
- DEFAULTTEMPLATE = [SHELLSHEBANG, '%(xrandr)s']
-
- def __init__(self, display=None, force_version=False):
- """Create proxy object and check for xrandr at `display`. Fail with
- untested versions unless `force_version` is True."""
- self.environ = dict(os.environ)
- if display:
- self.environ['DISPLAY'] = display
-
- version_output = self._output("--version")
- if not ("1.2" in version_output or "1.3" in version_output) and not force_version:
- raise Exception("XRandR 1.2/1.3 required.")
-
- def _get_outputs(self):
- assert self.state.outputs.keys() == self.configuration.outputs.keys()
- return self.state.outputs.keys()
- outputs = property(_get_outputs)
-
- #################### calling xrandr ####################
-
- def _output(self, *args):
- p = subprocess.Popen(("xrandr",)+args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=self.environ)
- ret, err = p.communicate()
- status = p.wait()
- if status!=0:
- raise Exception("XRandR returned error code %d: %s"%(status,err))
- if err:
- warnings.warn("XRandR wrote to stderr, but did not report an error (Message was: %r)"%err)
- return ret
-
- def _run(self, *args):
- self._output(*args)
-
- #################### loading ####################
-
- def load_from_string(self, data):
- data = data.replace("%","%%")
- lines = data.split("\n")
- if lines[-1] == '': lines.pop() # don't create empty last line
-
- if lines[0] != SHELLSHEBANG:
- raise FileLoadError('Not a shell script.')
-
- xrandrlines = [i for i,l in enumerate(lines) if l.strip().startswith('xrandr ')]
- if len(xrandrlines)==0:
- raise FileLoadError('No recognized xrandr command in this shell script.')
- if len(xrandrlines)>1:
- raise FileLoadError('More than one xrandr line in this shell script.')
- self._load_from_commandlineargs(lines[xrandrlines[0]].strip())
- lines[xrandrlines[0]] = '%(xrandr)s'
-
- return lines
-
- def _load_from_commandlineargs(self, commandline):
- self.load_from_x()
-
- args = BetterList(commandline.split(" "))
- if args.pop(0) != 'xrandr':
- raise FileSyntaxError()
- options = dict((a[0], a[1:]) for a in args.split('--output') if a) # first part is empty, exclude empty parts
-
- for on,oa in options.items():
- o = self.configuration.outputs[on]
- if oa == ['--off']:
- o.active = False
- else:
- if len(oa)%2 != 0:
- raise FileSyntaxError()
- parts = [(oa[2*i],oa[2*i+1]) for i in range(len(oa)//2)]
- for p in parts:
- if p[0] == '--mode':
- o.mode = Size(p[1])
- elif p[0] == '--pos':
- o.position = Position(p[1])
- elif p[0] == '--rotate':
- if p[1] not in ROTATIONS:
- raise FileSyntaxError()
- o.rotation = Rotation(p[1])
- else:
- raise FileSyntaxError()
- o.active = True
-
- def load_from_x(self): # FIXME -- use --verbose or, better, a library
- self.configuration = self.Configuration()
- self.state = self.State()
-
- screenline, items = self._load_raw_lines()
-
- self._load_parse_screenline(screenline)
-
- for headline,details in items:
- if headline.startswith(" "): continue # a currently disconnected part of the screen i can't currently get any info out of
- if headline == "": continue # noise
-
- hsplit = headline.split(" ")
- o = self.state.Output(hsplit[0])
- assert hsplit[1] in ("connected","disconnected")
-
- o.connected = (hsplit[1] == 'connected')
-
- if not hsplit[2].startswith("("):
- active = True
-
- geometry = Geometry(hsplit[2])
-
- if hsplit[3] in ROTATIONS: rotation = Rotation(hsplit[3])
- else: rotation = NORMAL
- else:
- active = False
- geometry = None
- rotation = None
-
- o.rotations = set()
- for r in ROTATIONS:
- if r in headline:
- o.rotations.add(r)
-
- for d in details:
- o.modes.append(Size(int(a) for a in d.strip().split(" ")[0].split("x")))
-
- self.state.outputs[o.name] = o
- self.configuration.outputs[o.name] = self.configuration.OutputConfiguration(active, geometry, rotation)
-
- def _load_raw_lines(self):
- output = self._output("-q")
- items = []
- screenline = None
- for l in output.split('\n'):
- if l.startswith("Screen "):
- assert screenline is None
- screenline = l
- elif l.startswith(" "): # mode
- items[-1][1].append(l)
- else:
- items.append([l, []])
- return screenline, items
-
- def _load_parse_screenline(self, screenline):
- assert screenline is not None
- ssplit = screenline.split(" ")
-
- ssplit_expect = ["Screen",None,"minimum",None,"x",None,"current",None,"x",None,"maximum",None,"x",None]
- assert all(a==b for (a,b) in zip(ssplit,ssplit_expect) if b is not None)
-
- self.state.virtual = self.state.Virtual(
- min = Size((int(ssplit[3]),int(ssplit[5][:-1]))),
- max = Size((int(ssplit[11]),int(ssplit[13])))
- )
- self.configuration.virtual = Size((int(ssplit[7]),int(ssplit[9][:-1])))
-
- #################### saving ####################
-
- def save_to_shellscript_string(self, template=None, additional=None):
- """Return a shellscript that will set the current configuration. Output can be parsed by load_from_string.
-
- You may specify a template, which must contain a %(xrandr)s parameter and optionally others, which will be filled from the additional dictionary."""
- if not template:
- template = self.DEFAULTTEMPLATE
- template = '\n'.join(template)+'\n'
-
- d = {'xrandr': "xrandr "+" ".join(self.configuration.commandlineargs())}
- if additional:
- d.update(additional)
-
- return template%d
-
- def save_to_x(self):
- self.check_configuration()
- self._run(*self.configuration.commandlineargs())
-
- def check_configuration(self):
- vmax = self.state.virtual.max
-
- for on in self.outputs:
- oc = self.configuration.outputs[on]
- #os = self.state.outputs[on]
-
- if not oc.active:
- continue
-
- # we trust users to know what they are doing (e.g. widget: will accept current mode, but not offer to change it lacking knowledge of alternatives)
- #if oc.rotation not in os.rotations:
- # raise InadequateConfiguration("Rotation not allowed.")
- #if oc.mode not in os.modes:
- # raise InadequateConfiguration("Mode not allowed.")
-
- x = oc.position[0] + oc.size[0]
- y = oc.position[1] + oc.size[1]
-
- if x > vmax[0] or y > vmax[1]:
- raise InadequateConfiguration(_("A part of an output is outside the virtual screen."))
-
- if oc.position[0] < 0 or oc.position[1] < 0:
- raise InadequateConfiguration(_("An output is outside the virtual screen."))
-
- #################### sub objects ####################
-
- class State(object):
- """Represents everything that can not be set by xrandr."""
- def __init__(self):
- self.outputs = {}
-
- def __repr__(self):
- return '<%s for %d Outputs, %d connected>'%(type(self).__name__, len(self.outputs), len([x for x in self.outputs.values() if x.connected]))
-
- class Virtual(object):
- def __init__(self, min, max):
- self.min = min
- self.max = max
-
- class Output(object):
- def __init__(self, name):
- self.name = name
- self.modes = []
-
- def __repr__(self):
- return '<%s %r (%d modes)>'%(type(self).__name__, self.name, len(self.modes))
-
- class Configuration(object):
- """Represents everything that can be set by xrand (and is therefore subject to saving and loading from files)"""
- def __init__(self):
- self.outputs = {}
-
- def __repr__(self):
- return '<%s for %d Outputs, %d active>'%(type(self).__name__, len(self.outputs), len([x for x in self.outputs.values() if x.active]))
-
- def commandlineargs(self):
- args = []
- for on,o in self.outputs.items():
- args.append("--output")
- args.append(on)
- if not o.active:
- args.append("--off")
- else:
- args.append("--mode")
- args.append(str(o.mode))
- args.append("--pos")
- args.append(str(o.position))
- args.append("--rotate")
- args.append(o.rotation)
- return args
-
- class OutputConfiguration(object):
- def __init__(self, active, geometry, rotation):
- self.active = active
- if active:
- self.position = geometry.position
- self.rotation = rotation
- if rotation.is_odd:
- self.mode = Size(reversed(geometry.size))
- else:
- self.mode = geometry.size
- size = property(lambda self: Size(reversed(self.mode)) if self.rotation.is_odd else self.mode)
diff --git a/extra/arandr/arandr-0.1.3/setup.py b/extra/arandr/arandr-0.1.3/setup.py
deleted file mode 100755
index 7c19242dd..000000000
--- a/extra/arandr/arandr-0.1.3/setup.py
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import operator
-import subprocess
-import glob
-import gzip
-
-import docutils.core
-import docutils.writers.manpage
-
-from distutils.core import setup
-from distutils.dep_util import newer
-from distutils.log import info, warn
-from distutils.cmd import Command
-from distutils.command.build import build as _build
-from distutils.command.install_data import install_data as _install_data
-from distutils.command.install import install as _install
-from distutils.command.sdist import sdist as _sdist
-from distutils.dir_util import remove_tree
-from distutils.command.clean import clean as _clean
-
-
-PO_DIR = 'data/po'
-POT_FILE = os.path.join(PO_DIR, 'messages.pot')
-
-PACKAGENAME = "arandr"
-PACKAGEVERSION = "0.1.3"
-AUTHOR = "chrysn"
-AUTHOR_MAIL = "chrysn@fsfe.org"
-URL = "http://christian.amsuess.com/tools/arandr/"
-LICENSE = "GNU GPL 3"
-DESCRIPTION = "Screen layout editor for xrandr (Another XRandR gui)"
-
-class NoOptionCommand(Command):
- """Command that doesn't take any options"""
- user_options = []
-
- def initialize_options(self): pass
- def finalize_options(self): pass
-
-class update_pot(NoOptionCommand):
- description = 'Update the .pot translation template'
-
- def run(self):
- all_py_files = sorted(reduce(operator.add, [[os.path.join(dn, f) for f in fs if f.endswith('.py')] for (dn,ds,fs) in os.walk('.')])) # sort to make diffs easier
- # not working around xgettext not substituting for PACKAGE everywhere in the header; it's just a template and usually worked on using tools that ignore much of it anyway
- if not self.dry_run:
- info('Creating %s' % POT_FILE)
- subprocess.check_call(['xgettext', '-LPython', '-o', POT_FILE, '--copyright-holder', AUTHOR, '--package-name', PACKAGENAME, '--package-version', PACKAGEVERSION, '--msgid-bugs-address', AUTHOR_MAIL, '--add-comments=#'] + all_py_files)
-
-class update_po(NoOptionCommand):
- description = 'Update the .po translations from .pot translation template'
-
- def run(self):
- # msgmerge data/po/da.po data/po/messages.pot -U
- for po in glob.glob(os.path.join(PO_DIR, '*.po')):
- if not self.dry_run:
- info('Updating %s' % po)
- subprocess.check_call(['msgmerge', '-U', po, POT_FILE])
-
-class build_trans(NoOptionCommand):
- description = 'Compile .po files into .mo files'
-
- def run(self):
- for po in glob.glob(os.path.join(PO_DIR,'*.po')):
- lang = os.path.basename(po[:-3])
- mo = os.path.join('build', 'locale', lang, 'LC_MESSAGES', 'arandr.mo')
-
- directory = os.path.dirname(mo)
- self.mkpath(directory)
-
- if newer(po, mo):
- cmd = ['msgfmt', '-o', mo, po]
- info('compiling %s -> %s' % (po, mo))
- if not self.dry_run:
- subprocess.check_call(cmd)
-
-class build_man(NoOptionCommand):
- description = 'Generate and compress man page'
-
- def run(self):
- self.mkpath('build')
-
- sourcefile = 'data/arandr.1.txt'
- gzfile = os.path.join('build', 'arandr.1.gz')
-
- if newer(sourcefile, gzfile):
- rst_source = open(sourcefile).read()
- manpage = docutils.core.publish_string(rst_source, writer=docutils.writers.manpage.Writer())
- info('compressing man page to %s', gzfile)
-
- if not self.dry_run:
- compressed = gzip.open(gzfile, 'w', 9)
- compressed.write(manpage)
- compressed.close()
-
-class build(_build):
- sub_commands = _build.sub_commands + [('build_trans', None), ('build_man', None)]
- def run(self):
- _build.run(self)
-
-class install_data(_install_data):
- def run(self):
- for lang in os.listdir('build/locale/'):
- lang_dir = os.path.join('share', 'locale', lang, 'LC_MESSAGES')
- lang_file = os.path.join('build', 'locale', lang, 'LC_MESSAGES', 'arandr.mo')
- self.data_files.append((lang_dir, [lang_file]))
-
- _install_data.run(self)
-
-class sdist(_sdist):
- def run(self):
- warn("WARNING: Usually, arandr's source tarballs are generated from `git archive`!")
- _sdist.run(self)
-
-class clean(_clean):
- def run(self):
- if self.all:
- dirs = ['build/locale']
- files = ['build/arandr.1.gz']
- for directory in dirs:
- if os.path.exists(directory):
- remove_tree(directory, dry_run=self.dry_run)
- else:
- warn("%r does not exist -- can't clean it", directory)
- if not self.dry_run:
- for file in files:
- if os.path.exists(file):
- os.unlink(file)
- else:
- warn("%r does not exist -- can't clean it", file)
- _clean.run(self)
-
-
-setup(name = PACKAGENAME,
- version = PACKAGEVERSION,
- description = DESCRIPTION,
- author = AUTHOR,
- author_email = AUTHOR_MAIL,
- url = URL,
- packages = ['screenlayout'],
- license = LICENSE,
- package_data = {
- 'screenlayout': [
- 'data/gpl-3.txt',
- ],
- },
- cmdclass = {
- 'build_trans': build_trans,
- 'build_man': build_man,
- 'build': build,
- 'install_data': install_data,
- 'sdist': sdist,
- 'clean': clean,
- 'update_pot': update_pot,
- 'update_po': update_po,
- },
- data_files = [
- ('share/applications', ['data/arandr.desktop']),
- ('share/man/man1', ['build/arandr.1.gz']),
- ],
- scripts = ['arandr'],
-)