pax_global_header00006660000000000000000000000064131677136150014524gustar00rootroot0000000000000052 comment=acb34d782a7a9a3f197b93b84bbc7a3e9f6a22de SafeEyes-2.0.0/000077500000000000000000000000001316771361500132275ustar00rootroot00000000000000SafeEyes-2.0.0/.gitignore000066400000000000000000000022171316771361500152210ustar00rootroot00000000000000# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Glade temporary files *.glade~ # Distribution / packaging .Python env/ build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ *.egg-info/ .installed.cfg *.egg # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *,cover .hypothesis/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # pyenv .python-version # celery beat schedule file celerybeat-schedule # SageMath parsed files *.sage.py # dotenv .env # virtualenv .venv venv/ ENV/ # Spyder project settings .spyderproject # Rope project settings .ropeproject # Visual Studio Code settings .vscode/SafeEyes-2.0.0/LICENSE000066400000000000000000001045051316771361500142410ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {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 . 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: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . SafeEyes-2.0.0/MANIFEST.in000066400000000000000000000000421316771361500147610ustar00rootroot00000000000000include LICENSE include README.md SafeEyes-2.0.0/README.md000066400000000000000000000213401316771361500145060ustar00rootroot00000000000000# Safe Eyes [![GitHub version](https://badge.fury.io/gh/slgobinath%2FSafeEyes.svg)](https://badge.fury.io/gh/slgobinath%2FSafeEyes) [![PyPI version](https://badge.fury.io/py/safeeyes.svg)](https://badge.fury.io/py/safeeyes) [![Translation status](https://hosted.weblate.org/widgets/safe-eyes/-/translations/svg-badge.svg)](https://hosted.weblate.org/engage/safe-eyes/?utm_source=widget) Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder. A Free and Open Source Linux alternative to EyeLeo. Visit to the official site: http://slgobinath.github.io/SafeEyes/ for more details. ## Safe Eyes command-line arguements ``` usage: safeeyes [-h] [-a | -d | -e | -q | -s | -t] [--debug] [--version] Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer. optional arguments: -h, --help show this help message and exit -a, --about show the about dialog -d, --disable disable the currently running safeeyes instance -e, --enable enable the currently running safeeyes instance -q, --quit quit the running safeeyes instance and exit -s, --settings show the settings dialog -t, --take-break take a break now --debug start safeeyes in debug mode --version show program's version number and exit ``` ## Installation guide Safe Eyes is available in Ubuntu PPA, Arch AUR and Python PyPI. You can choose any installation source and install on any Linux system with Python 3. To see how to install Safe Eyes, visit [Getting Started](http://slgobinath.github.io/SafeEyes/#introduction) ### Compile from source Ensure to meet the following dependencies when compiling from source: - gir1.2-appindicator3-0.1 - gir1.2-notify-0.7 - libappindicator-gtk3 - python3-psutil - xprintidle (optional) ## Features - Remind you to take breaks - Disable keyboard during breaks - Notification before and after breaks - Smart pause if system is idle - Customizable using plug-ins - Multi-screen support - Customizable user interface - RPC API to control externally - Command-line arguments to control the running instance ## Writing Safe Eyes plug-in A plugin is a combination of two files: `plugin.py` and `config.json`. These two files must be placed in a directory: `~/.config/safeeyes/plugins/`. Optionally a plugin also can have an image file `icon.png` which is used to represent the plugin in the Settings dialog. For example, a Weather plugin may have the following file structure: ``` ~ └── .config └── safeeyes └── plugins └── weather ├── config.json ├── icon.png └── plugin.py ``` The `icon.png` must be `24x24` pixels size. If `icon.png` is not available, the default gear icon will be shown in the Settings dialog. A sample `config.json` is provided below: ```json { "meta": { "name": "Weather", "description": "Show the current weather on break screen", "version": "0.0.1" }, "dependencies": { "python_modules": ["pyowm"], "shell_commands": [], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [ { "id": "api", "label": "OpenWeatherMap API Key", "type": "TEXT", "default": "" }, { "id": "location", "label": "Location", "type": "TEXT", "default": "" } ], "break_override_allowed": true } ``` The `meta` properties must provide the name of the plugin, a short description and the current version of the plugin. The `dependencies` property defines various dependency constraints of the plugin. The dependencies can be Python modules, commandline tools, desktop environments or Safe Eyes resources. The `operating_systems` property is reserved for operating system dependency but not checked for at the moment. If a dependency is not available, the Safe Eyes will not load the plugin. The Settings dialog will show a warning symbol and a message to install/check the missing dependencies. Dependencies are checked in the order of *Desktop Environment*, *Python Modules*, *Commandline Tools* and *Resources*. If a dependency is not available, Safe Eyes will stop looking for the rest. The configurations related to the plugin must be defined in `settings`. Each setting must have an `id`, `label`, `type` and a default value matching the `type`. Safe Eyes 2.0.0 supports only the following types: `INT`, `TEXT` and `BOOL`. According to the types, Settings dialog will show a *Spin*, *Text Field* or *Switch Button* as the input field. The optional `break_override_allowed` property lets users to override the status of plugins by enable or disable based on break. The `plugin.py` can have one or more of the following functions: ```python def on_init(context, safeeyes_config, plugin_config): """ Executes after loading the plugin for the first time and after every changes in configuration. """ pass def on_start(): """ Executes when Safe Eyes is enabled. """ pass def on_stop(): """ Executes when Safe Eyes is disabled. """ pass def enable(): """ Executes after plugin.py is loaded as a module. """ pass def disable(): """ Executes after disabling the plugin at the runtime. """ pass def update_next_break(date_time): """ Update the next break time. """ pass def on_pre_break(break_obj): """ Executes before on_start_break break. """ pass def on_start_break(break_obj): """ Executes when starting a break. """ pass def on_countdown(countdown, seconds): """ Keep track of seconds passed from the beginning of break. """ pass def on_stop_break(): """ Executes at the end of breaks. """ pass def on_exit(): """ Executes before Safe Eyes exits """ pass def get_widget_title(break_obj): """ Return the widget title. """ return 'Widget Title' def get_widget_content(break_obj): """ Return the widget content. """ return 'Widget Content' ``` All the above functions are optional and it is the developer's choice to choose the functions to implement. The `pre_break` and `start_break` methods can return `True` if they want to skip the specific break. If a plugin skips the break by returning `True`, the corresponding lifecycle method will not be invoked from the upcoming plugins. The execution order of plugins is not predefined so the plugins should not make any assumption about other plugins. Plugins willing to show an entry in the break screen must implement both `get_widget_title` and `get_widget_content`. They should return a single line string as the output. If either the title or content is an empty string, the message will not be displayed in the break screen. It is added as an option to skip selective breaks depending on the domain. A sample `plugin.py` is shown below to disaplay the current weather information: ```python import logging import pyowm api = None location = None owm = None weather_details = None def init(ctx, safeeyes_config, plugin_config): """ Initialize the plugin. """ logging.debug('Initialize Weather plugin') global api global location global owm api = plugin_config['api'] location = plugin_config['location'] if api != "" and location != "": owm = pyowm.OWM(api) def get_widget_title(break_obj): """ Return the widget title. """ logging.debug('Get the weather information') global weather_details if owm: try: observation = owm.weather_at_place(location) weather = observation.get_weather() temp = weather.get_temperature('celsius').get('temp') humidity = weather.get_humidity() wind_speed = weather.get_wind().get('speed') weather_details = 'Temperature: %s℃\t\tHumidity: %s\tWind Speed: %s' % (temp, humidity, wind_speed) except BaseException: # Can be a network error weather_details = None if weather_details: return 'Weather' def get_widget_content(break_obj): """ Return the weather details. """ return weather_details ``` To get more ideas, go through the existing plugins available in [system plugins](https://github.com/slgobinath/SafeEyes/tree/master/safeeyes/plugins). ## License GNU General Public License v3 SafeEyes-2.0.0/debian/000077500000000000000000000000001316771361500144515ustar00rootroot00000000000000SafeEyes-2.0.0/debian/changelog000066400000000000000000000030101316771361500163150ustar00rootroot00000000000000safeeyes (2.0.0-1) xenial; urgency=low * Completely rededesigned architecture and user interface * Show next break time in tray icon in supported environments * Enable keyboard shortcuts * Fix screen flickering in KDE * Show the break type in the notification * Make pyaudio optional * Support postponing the break * Handle configuration update efficiently * Move to Python 3 * Add plugin support * Add custom breaks * Add optional break image feature * Add lock screen support * Prevent disabling Safe Eyes after notification * Fix random crash * Use system language if available * Fix disable menu issue in Elementary OS * Fix long breaks in hours * Fix locale time format issue * Advanced configurations and disable for given time * Optional audible alert and pause Safe Eyes if system is idle * Bug fix for no breaks after 1st one * Add about dialog and language selection to Settings dialog * Fixing bug in multiscreen support * Add next break information to tray menu * Support translation * Adding multiscreen support & handling system suspend * Fixing bug in Ubuntu MATE environment * Removing apscheduler dependency * Fixing seconds instead of minutes bug * Bug fixes for Ubuntu 14.04 and keyboard lock during break * Reducing minimal Python requirement * Fixing appindicator version mismatch * Fixing apscheduler version mismatch * Initial release -- Gobinath Loganathan Sat, 15 Oct 2016 06:28:40 +0530 SafeEyes-2.0.0/debian/compat000066400000000000000000000000021316771361500156470ustar00rootroot000000000000009 SafeEyes-2.0.0/debian/control000066400000000000000000000023431316771361500160560ustar00rootroot00000000000000Source: safeeyes Section: utils Priority: optional Maintainer: Gobinath Loganathan Build-Depends: debhelper (>= 9), python3, python3-setuptools Standards-Version: 3.9.6 X-Python3-Version: >= 3.4 Homepage: https://github.com/slgobinath/SafeEyes/ Package: safeeyes Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, gir1.2-appindicator3-0.1, python3 (>= 3.4.0), python3-xlib, python3-dbus, gir1.2-notify-0.7, python3-babel, x11-utils, xprintidle, alsa-utils, python3-psutil Description: Safe Eyes Safe Eyes is a simple tool to remind you to take periodic breaks for your eyes. This is essential for anyone spending more time on the computer to avoid eye strain and other physical problems. . Features: - Short breaks with eye exercises - Long breaks to change physical position and to warm up - Strict break for those who are addicted to computer - Do not disturb when working with full-screen applications( Eg: Watching movies) - Notifications before every break - Optional audible alert at the end of break - Option to lock screen after long breaks - Smart pause and resume based on system idle time - Multi-monitor support - Plugins to utilize Safe Eyes - Elegant and customizable design SafeEyes-2.0.0/debian/copyright000066400000000000000000000020031316771361500163770ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: uget-chrome-wrapper Source: https://github.com/slgobinath/SafeEyes/ Files: * Copyright: 2016 Gobinath Loganathan License: GPL-3.0+ License: GPL-3.0+ 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 package 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 . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".SafeEyes-2.0.0/debian/rules000077500000000000000000000001021316771361500155220ustar00rootroot00000000000000#!/usr/bin/make -f %: dh $@ --with python3 --buildsystem=pybuild SafeEyes-2.0.0/safeeyes/000077500000000000000000000000001316771361500150335ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/AboutDialog.py000066400000000000000000000040171316771361500176010ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2016 Gobinath # 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 . """ This module creates the AboutDialog which shows the version and license. """ import os from safeeyes import Utility ABOUT_DIALOG_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/about_dialog.glade") class AboutDialog(object): """ AboutDialog reads the about_dialog.glade and build the user interface using that file. It shows the application name with version, a small description, license and the GitHub url. """ def __init__(self, version): builder = Utility.create_gtk_builder(ABOUT_DIALOG_GLADE) builder.connect_signals(self) self.window = builder.get_object('window_about') builder.get_object('lbl_decription').set_label(_('description')) builder.get_object('lbl_license').set_label(_('License') + ':') # Set the version at the runtime builder.get_object('lbl_app_name').set_label('Safe Eyes ' + version) def show(self): """ Show the About dialog. """ self.window.show_all() def on_window_delete(self, *args): """ Window close event handler. """ self.window.destroy() def on_close_clicked(self, *args): """ Close button click event handler. """ self.window.destroy() SafeEyes-2.0.0/safeeyes/BreakScreen.py000066400000000000000000000217351316771361500176010ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2016 Gobinath # 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 . import logging import os import threading import time import gi from safeeyes import Utility from Xlib.display import Display from Xlib.display import X gi.require_version('Gtk', '3.0') from gi.repository import Gdk from gi.repository import GLib from gi.repository import Gtk BREAK_SCREEN_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/break_screen.glade") class BreakScreen(object): """ The fullscreen window which prevents users from using the computer. This class reads the break_screen.glade and build the user interface. """ def __init__(self, context, on_skip, on_postpone, style_sheet_path): self.context = context self.count_labels = [] self.display = Display() self.enable_postpone = False self.enable_shortcut = False self.is_pretified = False self.keycode_shortcut_postpone = 65 self.keycode_shortcut_skip = 9 self.on_postpone = on_postpone self.on_skip = on_skip self.shortcut_disable_time = 2 self.strict_break = False self.windows = [] # Initialize the theme css_provider = Gtk.CssProvider() css_provider.load_from_path(style_sheet_path) Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) def initialize(self, config): """ Initialize the internal properties from configuration """ logging.info("Initialize the break screen") self.enable_postpone = config.get('allow_postpone', False) self.keycode_shortcut_postpone = config.get('shortcut_postpone', 65) self.keycode_shortcut_skip = config.get('shortcut_skip', 9) self.shortcut_disable_time = config.get('shortcut_disable_time', 2) self.strict_break = config.get('strict_break', False) def skip_break(self): """ Skip the break from the break screen """ logging.info("User skipped the break") # Must call on_skip before close to lock screen before closing the break screen self.on_skip() self.close() def postpone_break(self): """ Postpone the break from the break screen """ logging.info("User postponed the break") self.on_postpone() self.close() def on_window_delete(self, *args): """ Window close event handler. """ logging.info("Closing the break screen") self.__release_keyboard() self.close() def on_skip_clicked(self, button): """ Skip button press event handler. """ self.skip_break() def on_postpone_clicked(self, button): """ Postpone button press event handler. """ self.postpone_break() def show_count_down(self, countdown, seconds): """ Show/update the count down on all screens. """ self.enable_shortcut = not self.strict_break and self.shortcut_disable_time <= seconds mins, secs = divmod(countdown, 60) timeformat = '{:02d}:{:02d}'.format(mins, secs) GLib.idle_add(lambda: self.__update_count_down(timeformat)) def show_message(self, break_obj, widget): """ Show the break screen with the given message on all displays. """ message = break_obj.name image_path = break_obj.image self.enable_shortcut = not self.strict_break and self.shortcut_disable_time <= 0 GLib.idle_add(lambda: self.__show_break_screen(message, image_path, widget)) def close(self): """ Hide the break screen from active window and destroy all other windows """ logging.info("Close the break screen(s)") self.__release_keyboard() # Destroy other windows if exists GLib.idle_add(lambda: self.__destroy_all_screens()) def __show_break_screen(self, message, image_path, widget): """ Show an empty break screen on all screens. """ # Lock the keyboard thread = threading.Thread(target=self.__lock_keyboard) thread.start() logging.info("Show break screens in all displays") screen = Gtk.Window().get_screen() no_of_monitors = screen.get_n_monitors() for monitor in range(no_of_monitors): monitor_gemoetry = screen.get_monitor_geometry(monitor) x = monitor_gemoetry.x y = monitor_gemoetry.y builder = Gtk.Builder() builder.add_from_file(BREAK_SCREEN_GLADE) builder.connect_signals(self) window = builder.get_object("window_main") lbl_message = builder.get_object("lbl_message") lbl_count = builder.get_object("lbl_count") lbl_widget = builder.get_object("lbl_widget") img_break = builder.get_object("img_break") box_buttons = builder.get_object("box_buttons") # Add the buttons if not self.strict_break: # Add postpone button if self.enable_postpone: btn_postpone = Gtk.Button(_('Postpone')) btn_postpone.get_style_context().add_class('btn_postpone') btn_postpone.connect('clicked', self.on_postpone_clicked) btn_postpone.set_visible(True) box_buttons.pack_start(btn_postpone, True, True, 0) # Add the skip button btn_skip = Gtk.Button(_('Skip')) btn_skip.get_style_context().add_class('btn_skip') btn_skip.connect('clicked', self.on_skip_clicked) btn_skip.set_visible(True) box_buttons.pack_start(btn_skip, True, True, 0) # Set values if image_path: img_break.set_from_file(image_path) lbl_message.set_label(message) lbl_widget.set_markup(widget) self.windows.append(window) self.count_labels.append(lbl_count) # Set visual to apply css theme. It should be called before show method. window.set_visual(window.get_screen().get_rgba_visual()) if self.context['desktop'] == 'kde': # Fix flickering screen in KDE by setting opacity to 1 window.set_opacity(0.9) window.stick() window.set_keep_above(True) window.present() window.move(x, y) window.fullscreen() def __update_count_down(self, count): """ Update the countdown on all break screens. """ for label in self.count_labels: label.set_text(count) def __lock_keyboard(self): """ Lock the keyboard to prevent the user from using keyboard shortcuts """ logging.info("Lock the keyboard") self.lock_keyboard = True # Grab the keyboard root = self.display.screen().root root.change_attributes(event_mask=X.KeyPressMask | X.KeyReleaseMask) root.grab_keyboard(True, X.GrabModeAsync, X.GrabModeAsync, X.CurrentTime) # Consume keyboard events while self.lock_keyboard: if self.display.pending_events() > 0: # Avoid waiting for next event by checking pending events event = self.display.next_event() if self.enable_shortcut and event.type == X.KeyPress: if event.detail == self.keycode_shortcut_skip: self.skip_break() break elif self.enable_postpone and event.detail == self.keycode_shortcut_postpone: self.postpone_break() break else: # Reduce the CPU usage by sleeping for a second time.sleep(1) def __release_keyboard(self): """ Release the locked keyboard. """ logging.info("Unlock the keyboard") self.lock_keyboard = False self.display.ungrab_keyboard(X.CurrentTime) self.display.flush() def __destroy_all_screens(self): """ Close all the break screens. """ for win in self.windows: win.destroy() del self.windows[:] del self.count_labels[:] SafeEyes-2.0.0/safeeyes/PluginManager.py000066400000000000000000000311431316771361500201400ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ PluginManager loads all enabled plugins and call their lifecycle methods. A plugin must have the following directory structure: |- config.json |- plugin.py |- icon.png (Optional) The plugin.py can have following methods but all are optional: - description() If a custom description has to be displayed, use this function - on_init(context, safeeyes_config, plugin_config) Initialize the plugin. Will be called after loading and after every changes in configuration - on_start() Executes when Safe Eyes is enabled - on_stop() Executes when Safe Eyes is disabled - enable() Executes once the plugin.py is loaded as a module - disable() Executes if the plugin is disabled at the runtime by the user - on_exit() Executes before Safe Eyes exits """ import importlib import inspect import logging import os import sys from safeeyes import Utility sys.path.append(os.path.abspath(Utility.SYSTEM_PLUGINS_DIR)) sys.path.append(os.path.abspath(Utility.USER_PLUGINS_DIR)) HORIZONTAL_LINE_LENGTH = 64 class PluginManager(object): """ Imports the Safe Eyes plugins and calls the methods defined in those plugins. """ def __init__(self, context, config): logging.info('Load all the plugins') self.__plugins = {} self.__plugins_on_init = [] self.__plugins_on_start = [] self.__plugins_on_stop = [] self.__plugins_on_exit = [] self.__plugins_on_pre_break = [] self.__plugins_on_start_break = [] self.__plugins_on_stop_break = [] self.__plugins_on_countdown = [] self.__plugins_update_next_break = [] self.__widget_plugins = [] self.last_break = None self.horizontal_line = '─' * HORIZONTAL_LINE_LENGTH def init(self, context, config): """ Initialize all the plugins with init(context, safeeyes_config, plugin_config) function. """ # Load the plugins for plugin in config.get('plugins'): try: self.__load_plugin(plugin, context) except BaseException: logging.error('Error in loading the plugin: %s', plugin['id']) continue # Initialize the plugins for plugin in self.__plugins_on_init: plugin['module'].init(context, config, plugin['config']) return True def start(self): """ Execute the on_start() function of plugins. """ for plugin in self.__plugins_on_start: plugin['module'].on_start() return True def stop(self): """ Execute the on_stop() function of plugins. """ for plugin in self.__plugins_on_stop: plugin['module'].on_stop() return True def exit(self): """ Execute the on_exit() function of plugins. """ for plugin in self.__plugins_on_exit: plugin['module'].on_exit() return True def pre_break(self, break_obj): """ Execute the on_pre_break(break_obj) function of plugins. """ for plugin in self.__plugins_on_pre_break: if break_obj.plugin_enabled(plugin['id'], plugin['enabled']): if plugin['module'].on_pre_break(break_obj): return False return True def start_break(self, break_obj): """ Execute the start_break(break_obj) function of plugins. """ self.last_break = break_obj for plugin in self.__plugins_on_start_break: if break_obj.plugin_enabled(plugin['id'], plugin['enabled']): if plugin['module'].on_start_break(break_obj): return False return True def stop_break(self): """ Execute the stop_break() function of plugins. """ for plugin in self.__plugins_on_stop_break: if self.last_break.plugin_enabled(plugin['id'], plugin['enabled']): plugin['module'].on_stop_break() def countdown(self, countdown, seconds): """ Execute the on_countdown(countdown, seconds) function of plugins. """ for plugin in self.__plugins_on_countdown: if self.last_break.plugin_enabled(plugin['id'], plugin['enabled']): plugin['module'].on_countdown(countdown, seconds) def update_next_break(self, break_time): """ Execute the update_next_break(break_time) function of plugins. """ for plugin in self.__plugins_update_next_break: plugin['module'].update_next_break(break_time) return True def get_break_screen_widgets(self, break_obj): """ Return the HTML widget generated by the plugins. The widget is generated by calling the get_widget_title and get_widget_content functions of plugins. """ widget = '' for plugin in self.__widget_plugins: if break_obj.plugin_enabled(plugin['id'], plugin['enabled']): try: title = plugin['module'].get_widget_title(break_obj).upper().strip() if title == '': continue content = plugin['module'].get_widget_content(break_obj) if content == '': continue widget += '{}\n{}\n{}\n\n\n'.format(title, self.horizontal_line, content) except BaseException: continue return widget.strip() def __has_method(self, module, method_name, no_of_args=0): """ Check whether the given function is defined in the module or not. """ if hasattr(module, method_name): if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args: return True return False def __remove_if_exists(self, list_of_items, item): """ Remove the item from the list_of_items it it exists. """ if item in list_of_items: list_of_items.remove(item) def __load_plugin(self, plugin, context): """ Load the given plugin. """ plugin_enabled = plugin['enabled'] if plugin['id'] in self.__plugins and not plugin_enabled: # A disabled plugin but that was loaded earlier plugin_obj = self.__plugins[plugin['id']] if plugin_obj['enabled']: # Previously enabled but now disabled plugin_obj['enabled'] = False self.__remove_if_exists(self.__plugins_on_start, plugin_obj) self.__remove_if_exists(self.__plugins_on_stop, plugin_obj) self.__remove_if_exists(self.__plugins_on_exit, plugin_obj) self.__remove_if_exists(self.__plugins_update_next_break, plugin_obj) # Call the plugin.disable method if available if self.__has_method(plugin_obj['module'], 'disable'): plugin_obj['module'].disable() logging.info("Successfully unloaded the plugin '%s'", plugin['id']) if not plugin_obj['break_override_allowed']: # Remaining methods also should be removed self.__remove_if_exists(self.__plugins_on_init, plugin_obj) self.__remove_if_exists(self.__plugins_on_pre_break, plugin_obj) self.__remove_if_exists(self.__plugins_on_start_break, plugin_obj) self.__remove_if_exists(self.__plugins_on_stop_break, plugin_obj) self.__remove_if_exists(self.__plugins_on_countdown, plugin_obj) self.__remove_if_exists(self.__widget_plugins, plugin_obj) del self.__plugins[plugin['id']] return # Look for plugin.py plugin_dir = None if os.path.isfile(os.path.join(Utility.SYSTEM_PLUGINS_DIR, plugin['id'], 'plugin.py')): plugin_dir = Utility.SYSTEM_PLUGINS_DIR elif os.path.isfile(os.path.join(Utility.USER_PLUGINS_DIR, plugin['id'], 'plugin.py')): plugin_dir = Utility.USER_PLUGINS_DIR else: logging.error('plugin.py not found for the plugin: %s', plugin['id']) return # Look for config.json plugin_config_path = os.path.join(plugin_dir, plugin['id'], 'config.json') if not os.path.isfile(plugin_config_path): logging.error('config.json not found for the plugin: %s', plugin['id']) return plugin_config = Utility.load_json(plugin_config_path) if plugin_config is None: return if (plugin_enabled or plugin_config.get('break_override_allowed', False)): if plugin['id'] in self.__plugins: # The plugin is already enabled or partially loaded due to break_override_allowed # Use the existing plugin object plugin_obj = self.__plugins[plugin['id']] if plugin_obj['enabled']: # Already loaded completely return # Plugin was partially loaded due to break_override_allowed if plugin_enabled: # Load the rest of the methods plugin_obj['enabled'] = True module = plugin_obj['module'] if self.__has_method(module, 'on_start'): self.__plugins_on_start.append(plugin_obj) if self.__has_method(module, 'on_stop'): self.__plugins_on_stop.append(plugin_obj) if self.__has_method(module, 'on_exit'): self.__plugins_on_exit.append(plugin_obj) if self.__has_method(module, 'update_next_break', 1): self.__plugins_update_next_break.append(plugin_obj) else: # This is the first time to load the plugin # Check for dependencies if Utility.check_plugin_dependencies(plugin_config): return # Load the plugin module module = importlib.import_module((plugin['id'] + '.plugin')) logging.info("Successfully loaded %s", str(module)) plugin_obj = {'id': plugin['id'], 'module': module, 'config': plugin.get('settings', {}), 'enabled': plugin_enabled, 'break_override_allowed': plugin_config.get('break_override_allowed', False)} self.__plugins[plugin['id']] = plugin_obj if self.__has_method(module, 'enable'): module.enable() if plugin_enabled: if self.__has_method(module, 'on_start'): self.__plugins_on_start.append(plugin_obj) if self.__has_method(module, 'on_stop'): self.__plugins_on_stop.append(plugin_obj) if self.__has_method(module, 'on_exit'): self.__plugins_on_exit.append(plugin_obj) if self.__has_method(module, 'update_next_break', 1): self.__plugins_update_next_break.append(plugin_obj) if self.__has_method(module, 'init', 3): self.__plugins_on_init.append(plugin_obj) if self.__has_method(module, 'on_pre_break', 1): self.__plugins_on_pre_break.append(plugin_obj) if self.__has_method(module, 'on_start_break', 1): self.__plugins_on_start_break.append(plugin_obj) if self.__has_method(module, 'on_stop_break', 0): self.__plugins_on_stop_break.append(plugin_obj) if self.__has_method(module, 'on_countdown', 2): self.__plugins_on_countdown.append(plugin_obj) if self.__has_method(module, 'get_widget_title', 1) and self.__has_method(module, 'get_widget_content', 1): self.__widget_plugins.append(plugin_obj) SafeEyes-2.0.0/safeeyes/SafeEyes.py000066400000000000000000000235461316771361500171230ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ SafeEyes connects all the individual components and provide the complete application. """ import atexit import logging from threading import Timer import dbus import gi from dbus.mainloop.glib import DBusGMainLoop from safeeyes import Utility from safeeyes.AboutDialog import AboutDialog from safeeyes.BreakScreen import BreakScreen from safeeyes.model import State from safeeyes.rpc import RPCServer from safeeyes.PluginManager import PluginManager from safeeyes.SafeEyesCore import SafeEyesCore from safeeyes.settings import SettingsDialog gi.require_version('Gtk', '3.0') from gi.repository import Gtk SAFE_EYES_VERSION = "2.0.0" class SafeEyes(object): """ This class represents a runnable Safe Eyes instance. """ def __init__(self, system_locale, config): self.active = False self.break_screen = None self.safe_eyes_core = None self.config = config self.context = {} self.plugins_manager = None self.settings_dialog_active = False self.rpc_server = None # Initialize the Safe Eyes Context self.context['version'] = SAFE_EYES_VERSION self.context['desktop'] = Utility.desktop_environment() self.context['locale'] = system_locale self.context['api'] = {} self.context['api']['show_settings'] = lambda: Utility.execute_main_thread(self.show_settings) self.context['api']['show_about'] = lambda: Utility.execute_main_thread(self.show_about) self.context['api']['enable_safeeyes'] = lambda next_break_time=-1: Utility.execute_main_thread(self.enable_safeeyes, next_break_time) self.context['api']['disable_safeeyes'] = lambda: Utility.execute_main_thread(self.disable_safeeyes) self.context['api']['quit'] = lambda: Utility.execute_main_thread(self.quit) if self.config.get('persist_state'): self.context['session'] = Utility.open_session() else: self.context['session'] = {'plugin': {}} self.break_screen = BreakScreen(self.context, self.on_skipped, self.on_postponed, Utility.STYLE_SHEET_PATH) self.break_screen.initialize(self.config) self.plugins_manager = PluginManager(self.context, self.config) self.safe_eyes_core = SafeEyesCore(self.context) self.safe_eyes_core.on_pre_break += self.plugins_manager.pre_break self.safe_eyes_core.on_start_break += self.start_break self.safe_eyes_core.on_count_down += self.countdown self.safe_eyes_core.on_stop_break += self.stop_break self.safe_eyes_core.on_update_next_break += self.update_next_break self.safe_eyes_core.initialize(self.config) self.context['api']['take_break'] = lambda: Utility.execute_main_thread(self.safe_eyes_core.take_break) self.context['api']['has_breaks'] = self.safe_eyes_core.has_breaks self.plugins_manager.init(self.context, self.config) atexit.register(self.persist_session) self.rpc_server = RPCServer(self.config.get('rpc_port'), self.context) self.rpc_server.start() def start(self): """ Start Safe Eyes """ if self.safe_eyes_core.has_breaks(): self.active = True self.context['state'] = State.START self.plugins_manager.start() # Call the start method of all plugins self.safe_eyes_core.start() self.handle_system_suspend() def show_settings(self): """ Listen to tray icon Settings action and send the signal to Settings dialog. """ if not self.settings_dialog_active: logging.info("Show Settings dialog") self.settings_dialog_active = True settings_dialog = SettingsDialog(self.config, self.save_settings) settings_dialog.show() def show_about(self): """ Listen to tray icon About action and send the signal to About dialog. """ logging.info("Show About dialog") about_dialog = AboutDialog(SAFE_EYES_VERSION) about_dialog.show() def quit(self): """ Listen to the tray menu quit action and stop the core, notification and the app itself. """ logging.info("Quit Safe Eyes") self.context['state'] = State.QUIT self.plugins_manager.stop() self.safe_eyes_core.stop() self.plugins_manager.exit() self.rpc_server.stop() Gtk.main_quit() def handle_suspend_callback(self, sleeping): """ If the system goes to sleep, Safe Eyes stop the core if it is already active. If it was active, Safe Eyes will become active after wake up. """ if sleeping: # Sleeping / suspending if self.active: logging.info("Stop Safe Eyes due to system suspend") self.plugins_manager.stop() self.safe_eyes_core.stop() else: # Resume from sleep if self.active and self.safe_eyes_core.has_breaks(): logging.info("Resume Safe Eyes after system wakeup") self.plugins_manager.start() self.safe_eyes_core.start() def handle_system_suspend(self): """ Setup system suspend listener. """ DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() bus.add_signal_receiver(self.handle_suspend_callback, 'PrepareForSleep', 'org.freedesktop.login1.Manager', 'org.freedesktop.login1') def on_skipped(self): """ Listen to break screen Skip action and send the signal to core. """ logging.info("User skipped the break") self.safe_eyes_core.skip() self.plugins_manager.stop_break() def on_postponed(self): """ Listen to break screen Postpone action and send the signal to core. """ logging.info("User postponed the break") self.safe_eyes_core.postpone() self.plugins_manager.stop_break() def save_settings(self, config): """ Listen to Settings dialog Save action and write to the config file. """ self.settings_dialog_active = False logging.info("Saving settings to safeeyes.json") # Stop the Safe Eyes core if self.active: self.plugins_manager.stop() self.safe_eyes_core.stop() # Write the configuration to file config.save() self.persist_session() logging.info("Initialize SafeEyesCore with modified settings") # Restart the core and intialize the components self.config = config self.safe_eyes_core.initialize(config) self.break_screen.initialize(config) self.plugins_manager.init(self.context, self.config) if self.active and self.safe_eyes_core.has_breaks(): # 1 sec delay is required to give enough time for core to be stopped Timer(1.0, self.safe_eyes_core.start).start() self.plugins_manager.start() def enable_safeeyes(self, scheduled_next_break_time=-1): """ Listen to tray icon enable action and send the signal to core. """ if not self.active and self.safe_eyes_core.has_breaks(): self.active = True self.safe_eyes_core.start(scheduled_next_break_time) self.plugins_manager.start() def disable_safeeyes(self): """ Listen to tray icon disable action and send the signal to core. """ if self.active: self.active = False self.plugins_manager.stop() self.safe_eyes_core.stop() def start_break(self, break_obj): """ Pass the break information to plugins and break screen. """ if not self.plugins_manager.start_break(break_obj): return False # Get the HTML widgets content from plugins widget = self.plugins_manager.get_break_screen_widgets(break_obj) self.break_screen.show_message(break_obj, widget) return True def countdown(self, countdown, seconds): """ Pass the countdown to plugins and break screen. """ self.break_screen.show_count_down(countdown, seconds) self.plugins_manager.countdown(countdown, seconds) return True def update_next_break(self, break_time): """ Update the next break to plugins and save the session. """ self.plugins_manager.update_next_break(break_time) if self.config.get('persist_state'): Utility.write_json(Utility.SESSION_FILE_PATH, self.context['session']) def stop_break(self): """ Stop the current break. """ self.break_screen.close() self.plugins_manager.stop_break() return True def take_break(self): """ Take a break now. """ self.safe_eyes_core.take_break() def persist_session(self): """ Save the session object to the session file. """ if self.config.get('persist_state'): Utility.write_json(Utility.SESSION_FILE_PATH, self.context['session']) else: Utility.delete(Utility.SESSION_FILE_PATH) SafeEyes-2.0.0/safeeyes/SafeEyesCore.py000066400000000000000000000304601316771361500177250ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2016 Gobinath # 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 . """ SafeEyesCore provides the core functionalities of Safe Eyes. """ import datetime import logging import threading import time from safeeyes import Utility from safeeyes.model import Break from safeeyes.model import BreakType from safeeyes.model import EventHook from safeeyes.model import State class SafeEyesCore(object): """ Core of Safe Eyes runs the scheduler and notifies the breaks. """ def __init__(self, context): """ Create an instance of SafeEyesCore and initialize the variables. """ self.break_count = 0 self.break_interval = 0 self.breaks = None self.long_break_duration = 0 self.next_break_index = context['session'].get('next_break_index', 0) self.postpone_duration = 0 self.pre_break_warning_time = 0 self.running = False self.short_break_duration = 0 self.scheduled_next_break_time = -1 # This event is fired before for a break self.on_pre_break = EventHook() # This event is fired at the start of a break self.on_start_break = EventHook() # This event is fired during every count down self.on_count_down = EventHook() # This event is fired at the end of a break self.on_stop_break = EventHook() # This event is fired when deciding the next break time self.on_update_next_break = EventHook() self.waiting_condition = threading.Condition() self.lock = threading.Lock() self.context = context self.context['skipped'] = False self.context['postponed'] = False self.context['state'] = State.WAITING self.context['new_cycle'] = False def initialize(self, config): """ Initialize the internal properties from configuration """ logging.info("Initialize the core") self.breaks = [] self.pre_break_warning_time = config.get('pre_break_warning_time') self.long_break_duration = config.get('long_break_duration') self.short_break_duration = config.get('short_break_duration') self.break_interval = config.get('break_interval') self.postpone_duration = config.get('postpone_duration') self.__init_breaks(BreakType.SHORT_BREAK, config.get('short_breaks'), config.get('no_of_short_breaks_per_long_break')) self.__init_breaks(BreakType.LONG_BREAK, config.get('long_breaks'), config.get('no_of_short_breaks_per_long_break')) self.break_count = len(self.breaks) if self.break_count == 0: # No breaks found return self.next_break_index = (self.next_break_index) % self.break_count self.context['session']['next_break_index'] = self.next_break_index def start(self, next_break_time=-1): """ Start Safe Eyes is it is not running already. """ if not self.has_breaks(): return with self.lock: if not self.running: logging.info("Start Safe Eyes core") self.running = True self.scheduled_next_break_time = int(next_break_time) Utility.start_thread(self.__scheduler_job) def stop(self): """ Stop Safe Eyes if it is running. """ with self.lock: if not self.running: return logging.info("Stop Safe Eye core") # Prevent resuming from a long break if self.has_breaks() and self.__is_long_break(): # Next break will be a long break. self.__select_next_break() # Stop the break thread self.waiting_condition.acquire() self.running = False if self.context['state'] != State.QUIT: self.context['state'] = State.STOPPED self.waiting_condition.notify_all() self.waiting_condition.release() def skip(self): """ User skipped the break using Skip button """ self.context['skipped'] = True def postpone(self): """ User postponed the break using Postpone button """ self.context['postponed'] = True def take_break(self): """ Calling this method stops the scheduler and show the next break screen """ if not self.has_breaks(): return if not self.context['state'] == State.WAITING: return Utility.start_thread(self.__take_break) def has_breaks(self): """ Check whether Safe Eyes has breaks or not. """ return bool(self.breaks) def __take_break(self): """ Show the next break screen """ logging.info('Take a break due to external request') with self.lock: if not self.running: return logging.info("Stop the scheduler") # Stop the break thread self.waiting_condition.acquire() self.running = False self.waiting_condition.notify_all() self.waiting_condition.release() time.sleep(1) # Wait for 1 sec to ensure the sceduler is dead self.running = True self.context['new_cycle'] = self.next_break_index == 0 Utility.execute_main_thread(self.__fire_start_break) def __scheduler_job(self): """ Scheduler task to execute during every interval """ if not self.running: return self.context['state'] = State.WAITING time_to_wait = self.break_interval # In minutes if self.context['postponed']: # Wait until the postpone time time_to_wait = self.postpone_duration self.context['postponed'] = False current_time = datetime.datetime.now() current_timestamp = int(current_time.timestamp()) if current_timestamp < self.scheduled_next_break_time: time_to_wait = int((self.scheduled_next_break_time - current_timestamp) / 60) self.scheduled_next_break_time = -1 next_break_time = current_time + datetime.timedelta(minutes=time_to_wait) self.on_update_next_break.fire(next_break_time) if self.__is_long_break(): self.context['break_type'] = 'long' else: self.context['break_type'] = 'short' # Wait for the pre break warning period logging.info("Waiting for %s minutes until next break", time_to_wait) self.__wait_for(time_to_wait * 60) # Convert to seconds logging.info("Pre-break waiting is over") if not self.running: return self.context['new_cycle'] = self.next_break_index == 0 Utility.execute_main_thread(self.__fire_pre_break) def __fire_pre_break(self): """ Show the notification and start the break after the notification. """ self.context['state'] = State.PRE_BREAK if not self.on_pre_break.fire(self.breaks[self.next_break_index]): # Plugins wanted to ignore this break self.__start_next_break() return Utility.start_thread(self.__wait_until_prepare) def __wait_until_prepare(self): logging.info("Wait for %d seconds before the break", self.pre_break_warning_time) # Wait for the pre break warning period self.__wait_for(self.pre_break_warning_time) if not self.running: return Utility.execute_main_thread(self.__fire_start_break) def __fire_start_break(self): # Show the break screen if not self.on_start_break.fire(self.breaks[self.next_break_index]): # Plugins wanted to ignore this break self.__start_next_break() return Utility.start_thread(self.__start_break) def __start_break(self): """ Start the break screen. """ self.context['state'] = State.BREAK break_obj = self.breaks[self.next_break_index] countdown = break_obj.time total_break_time = countdown while countdown and self.running and not self.context['skipped'] and not self.context['postponed']: seconds = total_break_time - countdown self.on_count_down.fire(countdown, seconds) time.sleep(1) # Sleep for 1 second countdown -= 1 Utility.execute_main_thread(self.__fire_stop_break) def __fire_stop_break(self): # Loop terminated because of timeout (not skipped) -> Close the break alert if not self.context['skipped'] and not self.context['postponed']: logging.info("Break is terminated automatically") self.on_stop_break.fire() # Reset the skipped flag self.context['skipped'] = False self.__start_next_break() def __wait_for(self, duration): """ Wait until someone wake up or the timeout happens. """ self.waiting_condition.acquire() self.waiting_condition.wait(duration) self.waiting_condition.release() def __select_next_break(self): """ Select the next break. """ self.next_break_index = (self.next_break_index + 1) % self.break_count self.context['session']['next_break_index'] = self.next_break_index def __is_long_break(self): """ Check if the next break is long break. """ return self.breaks[self.next_break_index].type is BreakType.LONG_BREAK def __start_next_break(self): if not self.context['postponed']: self.__select_next_break() if self.running: # Schedule the break again Utility.start_thread(self.__scheduler_job) def __init_breaks(self, break_type, break_configs, short_breaks_per_long_break=0): """ Fill the self.breaks using short and local breaks. """ # Defin the default break time default_break_time = self.short_break_duration # Duplicate short breaks to equally distribute the long breaks if break_type is BreakType.LONG_BREAK: if self.breaks: default_break_time = self.long_break_duration required_short_breaks = short_breaks_per_long_break * len(break_configs) no_of_short_breaks = len(self.breaks) short_break_index = 0 while no_of_short_breaks < required_short_breaks: self.breaks.append(self.breaks[short_break_index]) short_break_index += 1 no_of_short_breaks += 1 else: # If there are no short breaks, extend the break interval according to long break interval self.break_interval = int(self.break_interval * short_breaks_per_long_break) iteration = 1 for break_config in break_configs: name = _(break_config['name']) break_time = break_config.get('duration', default_break_time) image = break_config.get('image') plugins = break_config.get('plugins', None) # Validate time value if not isinstance(break_time, int) or break_time <= 0: logging.error('Invalid time in break: ' + str(break_config)) continue break_obj = Break(break_type, name, break_time, image, plugins) if break_type is BreakType.SHORT_BREAK: self.breaks.append(break_obj) else: # Long break index = iteration * (short_breaks_per_long_break + 1) - 1 self.breaks.insert(index, break_obj) iteration += 1 SafeEyes-2.0.0/safeeyes/Utility.py000066400000000000000000000401041316771361500170470ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ This module contains utility functions for Safe Eyes and its plugins. """ import errno import imp import json import locale import logging import os import shutil import subprocess import threading from distutils.version import LooseVersion from logging.handlers import RotatingFileHandler import babel.dates import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import GLib gi.require_version('Gdk', '3.0') BIN_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) HOME_DIRECTORY = os.path.expanduser('~') CONFIG_DIRECTORY = os.path.join(HOME_DIRECTORY, '.config/safeeyes') CONFIG_FILE_PATH = os.path.join(CONFIG_DIRECTORY, 'safeeyes.json') CONFIG_RESOURCE = os.path.join(CONFIG_DIRECTORY, 'resource') SESSION_FILE_PATH = os.path.join(CONFIG_DIRECTORY, 'session.json') STYLE_SHEET_PATH = os.path.join(CONFIG_DIRECTORY, 'style/safeeyes_style.css') SYSTEM_CONFIG_FILE_PATH = os.path.join(BIN_DIRECTORY, "config/safeeyes.json") SYSTEM_STYLE_SHEET_PATH = os.path.join(BIN_DIRECTORY, "config/style/safeeyes_style.css") LOG_FILE_PATH = os.path.join(CONFIG_DIRECTORY, 'safeeyes.log') SYSTEM_PLUGINS_DIR = os.path.join(BIN_DIRECTORY, 'plugins') USER_PLUGINS_DIR = os.path.join(CONFIG_DIRECTORY, 'plugins') LOCALE_PATH = os.path.join(BIN_DIRECTORY, 'config/locale') DESKTOP_ENVIRONMENT = None def get_resource_path(resource_name): """ Return the user-defined resource if a system resource is overridden by the user. Otherwise, return the system resource. Return None if the specified resource does not exist. """ if resource_name is None: return None resource_location = os.path.join(CONFIG_RESOURCE, resource_name) if not os.path.isfile(resource_location): resource_location = os.path.join(BIN_DIRECTORY, 'resource', resource_name) if not os.path.isfile(resource_location): # Resource not found resource_location = None return resource_location def start_thread(target_function, **args): """ Execute the function in a separate thread. """ thread = threading.Thread(target=target_function, kwargs=args) thread.start() def execute_main_thread(target_function, args=None): """ Execute the given function in main thread. """ if args: GLib.idle_add(lambda: target_function(args)) else: GLib.idle_add(target_function) def system_locale(): """ Return the system locale. If not available, return en_US.UTF-8. """ try: locale.setlocale(locale.LC_ALL, '') sys_locale = locale.getlocale(locale.LC_TIME)[0] if not sys_locale: sys_locale = 'en_US.UTF-8' return sys_locale except BaseException: # Some systems does not return proper locale return 'en_US.UTF-8' def format_time(time): """ Format time based on the system time. """ sys_locale = system_locale() return babel.dates.format_time(time, format='short', locale=sys_locale) def mkdir(path): """ Create directory if not exists. """ try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else: logging.error('Error while creating ' + str(path)) raise def load_json(json_path): """ Load the JSON file from the given path. """ json_obj = None if os.path.isfile(json_path): try: with open(json_path) as config_file: json_obj = json.load(config_file) except BaseException: pass return json_obj def write_json(json_path, json_obj): """ Write the JSON object at the given path """ try: with open(json_path, 'w') as json_file: json.dump(json_obj, json_file, indent=4, sort_keys=True) except BaseException: pass def delete(file_path): """ Delete the given file or directory """ try: os.remove(file_path) except OSError: pass def check_plugin_dependencies(plugin_config): """ Check the plugin dependencies. """ # Check the desktop environment if plugin_config['dependencies']['desktop_environments']: # Plugin has restrictions on desktop environments if DESKTOP_ENVIRONMENT not in plugin_config['dependencies']['desktop_environments']: return _('Plugin does not support %s desktop environment') % DESKTOP_ENVIRONMENT # Check the Python modules for module in plugin_config['dependencies']['python_modules']: if not module_exist(module): return _("Please install the Python module '%s'") % module # Check the shell commands for command in plugin_config['dependencies']['shell_commands']: if not command_exist(command): return _("Please install the command-line tool '%s'") % command # Check the resources for resource in plugin_config['dependencies']['resources']: if get_resource_path(resource) is None: return _('Please add the resource %(resource)s to %(config_resource)s directory') % {'resource': resource, 'config_resource': CONFIG_RESOURCE} return None def load_plugins_config(safeeyes_config): """ Load all the plugins from the given directory. """ configs = [] for plugin in safeeyes_config.get('plugins'): plugin_path = os.path.join(SYSTEM_PLUGINS_DIR, plugin['id']) if not os.path.isdir(plugin_path): # User plugin plugin_path = os.path.join(USER_PLUGINS_DIR, plugin['id']) plugin_config_path = os.path.join(plugin_path, 'config.json') plugin_icon_path = os.path.join(plugin_path, 'icon.png') plugin_module_path = os.path.join(plugin_path, 'plugin.py') if not os.path.isfile(plugin_module_path): return icon = None if os.path.isfile(plugin_icon_path): icon = plugin_icon_path else: icon = get_resource_path('ic_plugin.png') config = load_json(plugin_config_path) if config is None: continue dependency_description = check_plugin_dependencies(config) if dependency_description: plugin['enabled'] = False config['error'] = True config['meta']['description'] = dependency_description icon = get_resource_path('ic_warning.png') else: config['error'] = False config['id'] = plugin['id'] config['icon'] = icon config['enabled'] = plugin['enabled'] for setting in config['settings']: setting['safeeyes_config'] = plugin['settings'] configs.append(config) return configs def desktop_environment(): """ Detect the desktop environment. """ global DESKTOP_ENVIRONMENT desktop_session = os.environ.get('DESKTOP_SESSION') current_desktop = os.environ.get('XDG_CURRENT_DESKTOP') env = 'unknown' if desktop_session is not None: desktop_session = desktop_session.lower() if desktop_session in ['gnome', 'unity', 'budgie-desktop', 'cinnamon', 'mate', 'xfce4', 'lxde', 'pantheon', 'fluxbox', 'blackbox', 'openbox', 'icewm', 'jwm', 'afterstep', 'trinity', 'kde']: env = desktop_session elif desktop_session.startswith('xubuntu') or (current_desktop is not None and 'xfce' in current_desktop): env = 'xfce' elif desktop_session.startswith('lubuntu'): env = 'lxde' elif 'plasma' in desktop_session or desktop_session.startswith('kubuntu') or os.environ.get('KDE_FULL_SESSION') == 'true': env = 'kde' elif os.environ.get('GNOME_DESKTOP_SESSION_ID'): env = 'gnome' elif desktop_session.startswith('ubuntu'): env = 'unity' DESKTOP_ENVIRONMENT = env return env def execute_command(command, args=[]): """ Execute the shell command without waiting for its response. """ if command: command_to_execute = [] if isinstance(command, str): command_to_execute.append(command) else: command_to_execute.extend(command) if args: command_to_execute.extend(args) try: subprocess.Popen(command_to_execute) except BaseException: logging.error('Error in executing the command ' + str(command)) def command_exist(command): """ Check whether the given command exist in the system or not. """ if shutil.which(command): return True return False def module_exist(module): """ Check wther the given Python module exists or not. """ try: imp.find_module(module) return True except ImportError: return False def merge_configs(new_config, old_config): """ Merge the values of old_config into the new_config. """ new_config = new_config.copy() new_config.update(old_config) return new_config def initialize_safeeyes(): """ Create the config file and style sheet in ~/.config/safeeyes directory. """ logging.info('Copy the config files to ~/.config/safeeyes') style_dir_path = os.path.join(HOME_DIRECTORY, '.config/safeeyes/style') startup_dir_path = os.path.join(HOME_DIRECTORY, '.config/autostart') # Remove the ~/.config/safeeyes directory delete(os.path.join(CONFIG_DIRECTORY, 'safeeyes.json')) # Remove the startup file delete(os.path.join(HOME_DIRECTORY, os.path.join(startup_dir_path, 'safeeyes.desktop'))) # Create the ~/.config/safeeyes/style directory mkdir(style_dir_path) mkdir(startup_dir_path) # Copy the safeeyes.json shutil.copy2(SYSTEM_CONFIG_FILE_PATH, CONFIG_FILE_PATH) # Copy the new startup file try: os.symlink("/usr/share/applications/safeeyes.desktop", os.path.join(startup_dir_path, 'safeeyes.desktop')) except OSError: pass # Copy the new style sheet if not os.path.isfile(STYLE_SHEET_PATH): shutil.copy2(SYSTEM_STYLE_SHEET_PATH, STYLE_SHEET_PATH) def intialize_logging(debug): """ Initialize the logging framework using the Safe Eyes specific configurations. """ # Create the directory to store log file if not exist if not os.path.exists(CONFIG_DIRECTORY): try: os.makedirs(CONFIG_DIRECTORY) except OSError: pass # Configure logging. root_logger = logging.getLogger() log_formatter = logging.Formatter('%(asctime)s [%(levelname)s]:[%(threadName)s] %(message)s') # Append the logs and overwrite once reached 5MB file_handler = RotatingFileHandler(LOG_FILE_PATH, mode='a', maxBytes=5 * 1024 * 1024, backupCount=2, encoding=None, delay=0) file_handler.setFormatter(log_formatter) if debug: file_handler.setLevel(logging.DEBUG) root_logger.setLevel(logging.DEBUG) console_handler = logging.StreamHandler() console_handler.setFormatter(log_formatter) root_logger.addHandler(console_handler) else: file_handler.setLevel(logging.INFO) root_logger.setLevel(logging.INFO) root_logger.addHandler(file_handler) def __open_plugin_config(plugins_dir, plugin_id): """ Open the given plugin's configuration. """ plugin_config_path = os.path.join(plugins_dir, plugin_id, 'config.json') plugin_module_path = os.path.join(plugins_dir, plugin_id, 'plugin.py') if not os.path.isfile(plugin_config_path) or not os.path.isfile(plugin_module_path): # Either the config.json or plugin.py is not available return None return load_json(plugin_config_path) def __update_plugin_config(plugin, plugin_config, config): """ Update the plugin configuration. """ if plugin_config is None: config['plugins'].remove(plugin) else: if LooseVersion(plugin.get('version', '0.0.0')) != LooseVersion(plugin_config['meta']['version']): # Update the configuration plugin['version'] = plugin_config['meta']['version'] setting_ids = [] # Add the new settings for setting in plugin_config['settings']: setting_ids.append(setting['id']) if plugin['settings'].get(setting['id'], None) is None: plugin['settings'][setting['id']] = setting['default'] # Remove the removed ids keys_to_remove = [] for key in plugin.get('settings', []): if key not in setting_ids: keys_to_remove.append(key) for key in keys_to_remove: del plugin['settings'][key] def __add_plugin_config(plugin_id, plugin_config, safe_eyes_config): """ """ if plugin_config is None: return config = {} config['id'] = plugin_id config['enabled'] = False # By default plugins are disabled config['version'] = plugin_config['meta']['version'] if plugin_config['settings']: config['settings'] = {} for setting in plugin_config['settings']: config['settings'][setting['id']] = setting['default'] safe_eyes_config['plugins'].append(config) def merge_plugins(config): """ Merge plugin configurations with Safe Eyes configuration. """ system_plugins = None user_plugins = None # Load system plugins id if os.path.isdir(SYSTEM_PLUGINS_DIR): system_plugins = os.listdir(SYSTEM_PLUGINS_DIR) else: system_plugins = [] # Load user plugins id if os.path.isdir(USER_PLUGINS_DIR): user_plugins = os.listdir(USER_PLUGINS_DIR) else: user_plugins = [] # Create a list of existing plugins for plugin in config['plugins']: plugin_id = plugin['id'] if plugin_id in system_plugins: plugin_config = __open_plugin_config(SYSTEM_PLUGINS_DIR, plugin_id) __update_plugin_config(plugin, plugin_config, config) system_plugins.remove(plugin_id) elif plugin_id in user_plugins: plugin_config = __open_plugin_config(USER_PLUGINS_DIR, plugin_id) __update_plugin_config(plugin, plugin_config, config) user_plugins.remove(plugin_id) else: config['plugins'].remove(plugin) # Add all system plugins for plugin_id in system_plugins: plugin_config = __open_plugin_config(SYSTEM_PLUGINS_DIR, plugin_id) __add_plugin_config(plugin_id, plugin_config, config) # Add all user plugins for plugin_id in user_plugins: plugin_config = __open_plugin_config(USER_PLUGINS_DIR, plugin_id) __add_plugin_config(plugin_id, plugin_config, config) def open_session(): """ Open the last session. """ logging.info('Reading the session file') session = load_json(SESSION_FILE_PATH) if session is None: session = {'plugin': {}} return session def create_gtk_builder(glade_file): """ Create a Gtk builder and load the glade file. """ builder = Gtk.Builder() builder.set_translation_domain('safeeyes') builder.add_from_file(glade_file) # Tranlslate all sub components for obj in builder.get_objects(): if (not isinstance(obj, Gtk.SeparatorMenuItem)) and hasattr(obj, "get_label"): label = obj.get_label() if label is not None: obj.set_label(_(label)) elif hasattr(obj, "get_title"): title = obj.get_title() if title is not None: obj.set_title(_(title)) return builder SafeEyes-2.0.0/safeeyes/__init__.py000066400000000000000000000000001316771361500171320ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/__main__.py000077500000000000000000000121111316771361500171240ustar00rootroot00000000000000#!/usr/bin/env python3 # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2016 Gobinath # 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 . """ Safe Eyes is a utility to remind you to take break frequently to protect your eyes from eye strain. """ import argparse import gettext import locale import logging import sys from threading import Timer import gi import psutil from safeeyes import Utility from safeeyes.model import Config from safeeyes.SafeEyes import SafeEyes from safeeyes.SafeEyes import SAFE_EYES_VERSION from safeeyes.rpc import RPCClient gi.require_version('Gtk', '3.0') from gi.repository import Gtk gettext.install('safeeyes', Utility.LOCALE_PATH) def __running(): """ Check if SafeEyes is already running. """ process_count = 0 for proc in psutil.process_iter(): if not proc.cmdline: continue try: # Check if safeeyes is in process arguments if callable(proc.cmdline): # Latest psutil has cmdline function cmd_line = proc.cmdline() else: # In older versions cmdline was a list object cmd_line = proc.cmdline if ('python3' in cmd_line[0] or 'python' in cmd_line[0]) and ('safeeyes' in cmd_line[1] or 'safeeyes' in cmd_line): process_count += 1 if process_count > 1: return True # Ignore if process does not exist or does not have command line args except (IndexError, psutil.NoSuchProcess): pass return False def __evaluate_arguments(args, safe_eyes): """ Evaluate the arguments and execute the operations. """ if args.about: Utility.execute_main_thread(safe_eyes.show_about) elif args.disable: Utility.execute_main_thread(safe_eyes.disable_safeeyes) elif args.enable: Utility.execute_main_thread(safe_eyes.enable_safeeyes) elif args.settings: Utility.execute_main_thread(safe_eyes.show_settings) elif args.take_break: Utility.execute_main_thread(safe_eyes.take_break) def main(): """ Start the Safe Eyes. """ system_locale = gettext.translation('safeeyes', localedir=Utility.LOCALE_PATH, languages=[Utility.system_locale(), 'en_US'], fallback=True) system_locale.install() # locale.bindtextdomain is required for Glade files # gettext.bindtextdomain(gettext.textdomain(), Utility.LOCALE_PATH) locale.bindtextdomain('safeeyes', Utility.LOCALE_PATH) parser = argparse.ArgumentParser(prog='safeeyes', description=_('description')) group = parser.add_mutually_exclusive_group() group.add_argument('-a', '--about', help=_('show the about dialog'), action='store_true') group.add_argument('-d', '--disable', help=_('disable the currently running safeeyes instance'), action='store_true') group.add_argument('-e', '--enable', help=_('enable the currently running safeeyes instance'), action='store_true') group.add_argument('-q', '--quit', help=_('quit the running safeeyes instance and exit'), action='store_true') group.add_argument('-s', '--settings', help=_('show the settings dialog'), action='store_true') group.add_argument('-t', '--take-break', help=_('Take a break now').lower(), action='store_true') parser.add_argument('--debug', help=_('start safeeyes in debug mode'), action='store_true') parser.add_argument('--version', action='version', version='%(prog)s ' + SAFE_EYES_VERSION) args = parser.parse_args() # Initialize the logging Utility.intialize_logging(args.debug) config = Config() if __running(): logging.info("Safe Eyes is already running") rpc_client = RPCClient(config.get('rpc_port')) if args.about: rpc_client.show_about() elif args.disable: rpc_client.disable_safeeyes() elif args.enable: rpc_client.enable_safeeyes() elif args.settings: rpc_client.show_settings() elif args.take_break: rpc_client.take_break() elif args.quit: rpc_client.quit() else: # Default behavior is opening settings rpc_client.show_settings() sys.exit(0) elif not args.quit: logging.info("Starting Safe Eyes") safeeyes = SafeEyes(system_locale, config) safeeyes.start() Timer(1.0, lambda: __evaluate_arguments(args, safeeyes)).start() Gtk.main() if __name__ == '__main__': main() SafeEyes-2.0.0/safeeyes/config/000077500000000000000000000000001316771361500163005ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/000077500000000000000000000000001316771361500175375ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ca/000077500000000000000000000000001316771361500201225ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ca/LC_MESSAGES/000077500000000000000000000000001316771361500217075ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ca/LC_MESSAGES/safeeyes.po000066400000000000000000000156131316771361500240610ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2017-10-08 12:42+0000\n" "Last-Translator: Gobinath L \n" "Language-Team: Catalan \n" "Language: ca\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: Weblate 2.17-dev\n" # Short break msgid "Tightly close your eyes" msgstr "Tanqueu fortament els ulls" # Short break msgid "Roll your eyes a few times to each side" msgstr "Moveu els ulls a banda i banda" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "Gireu els ulls en sentit horari" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "Gireu els ulls en sentit antihorari" # Short break msgid "Blink your eyes" msgstr "Parpallegeu" # Short break msgid "Focus on a point in the far distance" msgstr "Fixeu la mirada en un punt llunyà" # Short break msgid "Have some water" msgstr "Bebeu una mica d'aigua" # Long break msgid "Walk for a while" msgstr "Camineu una estona" # Long break msgid "Lean back at your seat and relax" msgstr "Reclineu-vos sobre la cadira i relaxeu-vos" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "Tanca" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" "Safe Eyes protegeix els vostres ulls de la fatiga visual (astenopia) " "recordant-vos que feu petits descansos mentre esteu treballant amb " "l'ordinador" # About dialog msgid "License" msgstr "Llicència" # Break screen msgid "Skip" msgstr "Omet" # Break screen msgid "Postpone" msgstr "Posposa" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "Durada d'una posposició (en minuts)" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/cs/000077500000000000000000000000001316771361500201445ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/cs/LC_MESSAGES/000077500000000000000000000000001316771361500217315ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/cs/LC_MESSAGES/safeeyes.po000066400000000000000000000222531316771361500241010ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2017-10-08 12:42+0000\n" "Last-Translator: Gobinath L \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Weblate 2.17-dev\n" # Short break msgid "Tightly close your eyes" msgstr "Zavřete oči" # Short break msgid "Roll your eyes a few times to each side" msgstr "Zakroužete očima (několikrát na každou stranu)" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "Zakroužete očima ve směru hodinových ručiček" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "Zakroužete očima proti směru hodinových ručiček" # Short break msgid "Blink your eyes" msgstr "Zamrkejte" # Short break msgid "Focus on a point in the far distance" msgstr "Zaostřete pohled na nějaký vzdálený objekt" # Short break msgid "Have some water" msgstr "Napijte se vody" # Long break msgid "Walk for a while" msgstr "Na chvíli se projděte" # Long break msgid "Lean back at your seat and relax" msgstr "Opřete se zády do židle a uvolněte se" # Commandline arg description msgid "show the about dialog" msgstr "zobrazit dialog O programu" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "zakázat spuštěnou instanci safeeyes" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "povolit spuštěnou instanci safeeyes" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "ukončit spuštěnou instanci safeeyes" # Commandline arg description msgid "show the settings dialog" msgstr "zobrazit dialog nastavení" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "spustit safeeyes v módu pro ladění" # About dialog msgid "Close" msgstr "Zavřít" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" "Safe Eyes chrání vaše oči před následky přetěžování (asthenopie), když " "dlouho hledíte do obrazovky počítače, připomínáním potřebných přestávek" # About dialog msgid "License" msgstr "Licence" # Break screen msgid "Skip" msgstr "Přeskočit" # Break screen msgid "Postpone" msgstr "Odložit" # Settings dialog msgid "Break duration (in seconds)" msgstr "Délka přestávky (v sekundách)" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "Interval mezi dvěma přestávkami (v minutách)" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "Čas pro přípravu na přestávku (v sekundách)" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "Zakázat klávesové zkratky po dobu (v sekundách)" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "Odložit trvání (v minutách)" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "Přísné přestávky (nelze je přeskočit)" # Settings dialog msgid "Allow postponing breaks" msgstr "Povolit přeskakování přestávek" # Settings dialog msgid "Persist the internal state" msgstr "Zachovat vnitřní stav" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Dlouhé přestávky musí být násobkem krátkých přestávek" # Settings dialog msgid "Options" msgstr "Možností" # Settings dialog msgid "Short Breaks" msgstr "Krátké přestávky" # Settings dialog msgid "Long Breaks" msgstr "Dlouhé přestávky" # Settings dialog msgid "Break" msgstr "Přestávka" # Settings dialog msgid "Breaks" msgstr "Přestávky" # Settings dialog msgid "Plugins" msgstr "Rozšíření" # Settings dialog msgid "Type" msgstr "Typ" # Settings dialog msgid "Short" msgstr "Krátká" # Settings dialog msgid "Long" msgstr "Dlouhá" # Settings dialog msgid "Image" msgstr "Obrázek" # Settings dialog msgid "Select" msgstr "Vybrat" # Settings dialog msgid "Please select an image" msgstr "Vyberte obrázek" # Settings dialog msgid "Duration" msgstr "Trvání" # Settings dialog msgid "Override" msgstr "Převážit" # Settings dialog msgid "Time (in seconds)" msgstr "Čas (v sekundách)" # Settings dialog msgid "Break Settings" msgstr "Nastavení přestávek" # Settings dialog msgid "Plugin Settings" msgstr "Nastavení rozšíření" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "Rozšíření nepodporuje pracovní prostředí %s" # Settings dialog msgid "Please install the Python module '%s'" msgstr "Prosím nainstalujte si modul pro Python '%s'" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "Prosím nainstalujte si nástroj pro příkazový řádek'%s'" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "Prosím přidejte prostředek %(resource)s do adresáře %(config_resource)s" # Settings dialog msgid "New Break" msgstr "Nová přestávka" # Settings dialog msgid "Remove" msgstr "Odstranit" # Settings dialog msgid "Discard" msgstr "Zahodit" # Settings dialog msgid "Save" msgstr "Uložit" # plugin/audiblealert msgid "Audible Alert" msgstr "Zvukové upozornění" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "Přehrát na konci přestávek zvukové upozornění" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "Nerušit" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "Přeskočit přestávku, pokud je spuštěný program přes celou obrazovku" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "Tato okna nikdy nepřerušovat" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "Přerušovat tato okna nehledě na jejich stav" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "Přepnout nepřerušitelná okna do normálního módu" # plugin/healthstats msgid "Health Statistics" msgstr "Statistiky o zdraví" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "Zobrazit statistiky o zdraví založené na používání Safe Eyes" # plugin/notification msgid "Notification" msgstr "Oznámení" # plugin/notification msgid "Show a system notification before breaks" msgstr "Zobrazit oznámení před přestávkami" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "Připravte se na přestávku za %s sekund" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "Připravte se na dlouhou přestávku za %s sekund" # plugin/screensaver msgid "Screensaver" msgstr "Spořič obrazovky" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "Zamknout obrazovku spořičem obrazovky po dlouhých přestávkách" # plugin/screensaver msgid "Custom screensaver command" msgstr "Vlastní spořič obrazovky" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "Minimum sekund do zapnutí spořiče" # plugin/smartpause msgid "Smart Pause" msgstr "Chytrá pauza" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "Pozastavit Safe Eyes když je systém v klidu" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "Minimální čas v klidu na pozastavení Safe Eyes" #: plugins/trayicon msgid "Tray Icon" msgstr "Systémová oblast" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "Zobrazit ikonu v systémové oblasti" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "Zobrazit čas příští přestávky v systémové oblasti" #: plugins/trayicon msgid "About" msgstr "O programu" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "Zakázat Safe Eyes" #: plugins/trayicon msgid "Disabled until %s" msgstr "Zakázat do %s" #: plugins/trayicon msgid "Disabled until restart" msgstr "Zakázat do restartu" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "Povolit Safe Eyes" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "Na %d hodinu" msgstr[1] "Na %d hodiny" msgstr[2] "Na %d hodin" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "Na %d minutu" msgstr[1] "Na %d minuty" msgstr[2] "Na %d minut" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "Na %d sekundu" msgstr[1] "Na %d sekundy" msgstr[2] "Na %d sekund" #: plugins/trayicon msgid "Next break at %s" msgstr "Příští přestávka v %s" #: plugins/trayicon msgid "No Breaks Available" msgstr "Žádné přestávky" #: plugins/trayicon msgid "Settings" msgstr "Nastavení" #: plugins/trayicon msgid "Take a break now" msgstr "Dát si přestávku" #: plugins/trayicon msgid "Until restart" msgstr "Do restartu" #: plugins/trayicon msgid "Quit" msgstr "Ukončit" SafeEyes-2.0.0/safeeyes/config/locale/de/000077500000000000000000000000001316771361500201275ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/de/LC_MESSAGES/000077500000000000000000000000001316771361500217145ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/de/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500240700ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: de\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/en_US/000077500000000000000000000000001316771361500205505ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/en_US/LC_MESSAGES/000077500000000000000000000000001316771361500223355ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/en_US/LC_MESSAGES/safeeyes.po000066400000000000000000000214331316771361500245040ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2017-09-17 07:59-0400\n" "PO-Revision-Date: 2017-10-08 12:42+0000\n" "Last-Translator: Gobinath L \n" "Language-Team: English (United States) \n" "Language: en_US\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: Weblate 2.17-dev\n" "Generated-By: pygettext.py 1.5\n" # Short break msgid "Tightly close your eyes" msgstr "Tightly close your eyes" # Short break msgid "Roll your eyes a few times to each side" msgstr "Roll your eyes a few times to each side" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "Rotate your eyes in clockwise direction" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "Rotate your eyes in counterclockwise direction" # Short break msgid "Blink your eyes" msgstr "Blink your eyes" # Short break msgid "Focus on a point in the far distance" msgstr "Focus on a point in the far distance" # Short break msgid "Have some water" msgstr "Have some water" # Long break msgid "Walk for a while" msgstr "Walk for a while" # Long break msgid "Lean back at your seat and relax" msgstr "Lean back at your seat and relax" # Commandline arg description msgid "show the about dialog" msgstr "show the about dialog" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "disable the currently running safeeyes instance" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "enable the currently running safeeyes instance" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "quit the running safeeyes instance and exit" # Commandline arg description msgid "show the settings dialog" msgstr "show the settings dialog" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "start safeeyes in debug mode" # About dialog msgid "Close" msgstr "Close" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" "Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you " "to take breaks while you're working long hours at the computer" # About dialog msgid "License" msgstr "License" # Break screen msgid "Skip" msgstr "Skip" # Break screen msgid "Postpone" msgstr "Postpone" # Settings dialog msgid "Break duration (in seconds)" msgstr "Break duration (in seconds)" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "Interval between two breaks (in minutes)" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "Time to prepare for a break (in seconds)" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "Keyboard shortcuts disabled period (in seconds)" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "Postpone duration (in minutes)" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "Strict break (No way to skip breaks)" # Settings dialog msgid "Allow postponing breaks" msgstr "Allow postponing breaks" # Settings dialog msgid "Persist the internal state" msgstr "Persist the internal state" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "Long break interval must be a multiple of short break interval" # Settings dialog msgid "Options" msgstr "Options" # Settings dialog msgid "Short Breaks" msgstr "Short Breaks" # Settings dialog msgid "Long Breaks" msgstr "Long Breaks" # Settings dialog msgid "Break" msgstr "Break" # Settings dialog msgid "Breaks" msgstr "Breaks" # Settings dialog msgid "Plugins" msgstr "Plugins" # Settings dialog msgid "Type" msgstr "Type" # Settings dialog msgid "Short" msgstr "Short" # Settings dialog msgid "Long" msgstr "Long" # Settings dialog msgid "Image" msgstr "Image" # Settings dialog msgid "Select" msgstr "Select" # Settings dialog msgid "Please select an image" msgstr "Please select an image" # Settings dialog msgid "Duration" msgstr "Duration" # Settings dialog msgid "Override" msgstr "Override" # Settings dialog msgid "Time (in seconds)" msgstr "Time (in seconds)" # Settings dialog msgid "Break Settings" msgstr "Break Settings" # Settings dialog msgid "Plugin Settings" msgstr "Plugin Settings" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "Plugin does not support %s desktop environment" # Settings dialog msgid "Please install the Python module '%s'" msgstr "Please install the Python module '%s'" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "Please install the command-line tool '%s'" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "Please add the resource %(resource)s to %(config_resource)s directory" # Settings dialog msgid "New Break" msgstr "New Break" # Settings dialog msgid "Remove" msgstr "Remove" # Settings dialog msgid "Discard" msgstr "Discard" # Settings dialog msgid "Save" msgstr "Save" # plugin/audiblealert msgid "Audible Alert" msgstr "Audible Alert" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "Play an audible alert at the end of breaks" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "Do Not Disturb" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "Skip the break if the active window is in fullscreen mode" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "Do not interrupt these windows anytime" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "Interrupt these windows regardless of their state" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "Switch the interruptible windows to normal mode" # plugin/healthstats msgid "Health Statistics" msgstr "Health Statistics" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "Show statistics based on how you use Safe Eyes" # plugin/notification msgid "Notification" msgstr "Notification" # plugin/notification msgid "Show a system notification before breaks" msgstr "Show a system notification before breaks" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "Ready for a short break in %s seconds" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "Ready for a long break in %s seconds" # plugin/screensaver msgid "Screensaver" msgstr "Screensaver" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "Lock the screen after long breaks by starting screensaver" # plugin/screensaver msgid "Custom screensaver command" msgstr "Custom screensaver command" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "Minimum seconds to skip without screensaver" # plugin/smartpause msgid "Smart Pause" msgstr "Smart Pause" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "Pause Safe Eyes if the system is idle" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "Minimum idle time to pause Safe Eyes" #: plugins/trayicon msgid "Tray Icon" msgstr "Tray Icon" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "Show a tray icon in the notification area" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "Show next break time in tray icon" #: plugins/trayicon msgid "About" msgstr "About" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "Disable Safe Eyes" #: plugins/trayicon msgid "Disabled until %s" msgstr "Disabled until %s" #: plugins/trayicon msgid "Disabled until restart" msgstr "Disabled until restart" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "Enable Safe Eyes" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "For %d Hour" msgstr[1] "For %d Hours" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "For %d Minute" msgstr[1] "For %d Minutes" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "For %d Second" msgstr[1] "For %d Seconds" #: plugins/trayicon msgid "Next break at %s" msgstr "Next break at %s" #: plugins/trayicon msgid "No Breaks Available" msgstr "No Breaks Available" #: plugins/trayicon msgid "Settings" msgstr "Settings" #: plugins/trayicon msgid "Take a break now" msgstr "Take a break now" #: plugins/trayicon msgid "Until restart" msgstr "Until restart" #: plugins/trayicon msgid "Quit" msgstr "Quit" SafeEyes-2.0.0/safeeyes/config/locale/es/000077500000000000000000000000001316771361500201465ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/es/LC_MESSAGES/000077500000000000000000000000001316771361500217335ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/es/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241070ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: es\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/et/000077500000000000000000000000001316771361500201475ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/et/LC_MESSAGES/000077500000000000000000000000001316771361500217345ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/et/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241100ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: et\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/fa/000077500000000000000000000000001316771361500201255ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/fa/LC_MESSAGES/000077500000000000000000000000001316771361500217125ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/fa/LC_MESSAGES/safeeyes.po000066400000000000000000000144141316771361500240620ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" "Language: fa\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/fr/000077500000000000000000000000001316771361500201465ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/fr/LC_MESSAGES/000077500000000000000000000000001316771361500217335ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/fr/LC_MESSAGES/safeeyes.po000066400000000000000000000144711316771361500241060ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "Language: fr\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/hi/000077500000000000000000000000001316771361500201375ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/hi/LC_MESSAGES/000077500000000000000000000000001316771361500217245ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/hi/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241000ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: hi\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/hu/000077500000000000000000000000001316771361500201535ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/hu/LC_MESSAGES/000077500000000000000000000000001316771361500217405ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/hu/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241140ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: hu\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/id/000077500000000000000000000000001316771361500201335ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/id/LC_MESSAGES/000077500000000000000000000000001316771361500217205ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/id/LC_MESSAGES/safeeyes.po000066400000000000000000000144141316771361500240700ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" "Language: id\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/it/000077500000000000000000000000001316771361500201535ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/it/LC_MESSAGES/000077500000000000000000000000001316771361500217405ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/it/LC_MESSAGES/safeeyes.po000066400000000000000000000220231316771361500241030ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2017-10-10 17:46+0000\n" "Last-Translator: Guglielmo Wilmup \n" "Language-Team: Italian \n" "Language: it\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: Weblate 2.17-dev\n" # Short break msgid "Tightly close your eyes" msgstr "Serra gli occhi" # Short break msgid "Roll your eyes a few times to each side" msgstr "Muovi a piccoli intervalli gli occhi ruotandoli verso ogni lato" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "Ruota gli occhi in senso orario" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "Ruota gli occhi in senso antiorario" # Short break msgid "Blink your eyes" msgstr "Apri e chiudi velocemente le palpebre" # Short break msgid "Focus on a point in the far distance" msgstr "Focalizza un punto in lontananza" # Short break msgid "Have some water" msgstr "Bevi dell'acqua" # Long break msgid "Walk for a while" msgstr "Cammina per un pò" # Long break msgid "Lean back at your seat and relax" msgstr "Torna a sederti e rilassati" # Commandline arg description msgid "show the about dialog" msgstr "Mostra la finestra Informazioni" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "interrompe l'istanza corrente di Safe Eyes" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "abilità l'istanza corrente di Safe Eyes" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "chiude l'istanza corrente di Safe Eyes ed esce" # Commandline arg description msgid "show the settings dialog" msgstr "mostra la finestra delle preferenze" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "avvia Safe Eyes in modalità debug" # About dialog msgid "Close" msgstr "Esci" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" "Descrizione nella finestra informazioni\n" "Safe Eyes protegge gli occhi dall'affaticamento (asthenopia) ricordandoti di " "fare una pausa mentre lavori per lunghe ore al computer" # About dialog msgid "License" msgstr "Licenza" # Break screen msgid "Skip" msgstr "Salta" # Break screen msgid "Postpone" msgstr "Posponi" # Settings dialog msgid "Break duration (in seconds)" msgstr "Durata pausa (in secondi)" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "Intervallo fra due pause (in minuti)" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "Tempo prima di una pausa (in secondi)" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "Durata della disattivazione per le scorciatoie da tastiera (in secondi)" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "Posponi durata (in minuti)" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "Pausa ferrea (non c'è modo di saltarla)" # Settings dialog msgid "Allow postponing breaks" msgstr "Consenti di posporre le pause" # Settings dialog #, fuzzy msgid "Persist the internal state" msgstr "Persistenza dello stato interno" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" "L'intervallo per la pausa lunga deve essere un multiplo dell'intervallo per " "la pausa breve" # Settings dialog msgid "Options" msgstr "Preferenze" # Settings dialog msgid "Short Breaks" msgstr "Pause brevi" # Settings dialog msgid "Long Breaks" msgstr "Pause lunghe" # Settings dialog msgid "Break" msgstr "Pausa" # Settings dialog msgid "Breaks" msgstr "Pause" # Settings dialog msgid "Plugins" msgstr "Estensioni" # Settings dialog msgid "Type" msgstr "Modello" # Settings dialog msgid "Short" msgstr "Breve" # Settings dialog msgid "Long" msgstr "Lunga" # Settings dialog msgid "Image" msgstr "Immagine" # Settings dialog msgid "Select" msgstr "Seleziona" # Settings dialog msgid "Please select an image" msgstr "Seleziona una immagine" # Settings dialog msgid "Duration" msgstr "Durata" # Settings dialog msgid "Override" msgstr "Sovrascrive" # Settings dialog msgid "Time (in seconds)" msgstr "Tempo (in secondi)" # Settings dialog msgid "Break Settings" msgstr "Preferenze per la pausa" # Settings dialog msgid "Plugin Settings" msgstr "Preferenze delle estensioni" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "L'estensione non supporta %s l'ambiente desktop" # Settings dialog msgid "Please install the Python module '%s'" msgstr "Devi installare il modulo Python '%s'" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "Devi installare lo strumento a riga di comando '%s'" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" "Aggiungi la/le risorse %(resource) nella/e cartella/e %(config_resource)" # Settings dialog msgid "New Break" msgstr "Nuova pausa" # Settings dialog msgid "Remove" msgstr "Togli" # Settings dialog msgid "Discard" msgstr "Abbandona" # Settings dialog msgid "Save" msgstr "Salva" # plugin/audiblealert msgid "Audible Alert" msgstr "Avviso sonoro" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "Emette un avviso acustico alla fine delle pause" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "Non disturbare" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "Salta la pausa se la finestra attiva è a schermo intero" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "Non interrompe le finestre in oggetto (sempre)" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "Interrompe le finestre in oggetto in base al loro stato" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "Passa le finestre interrompibili a modalità normale" # plugin/healthstats msgid "Health Statistics" msgstr "Statistiche" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "Mostra le statistiche basate su come viene usato Safe Eyes" # plugin/notification msgid "Notification" msgstr "Notifiche" # plugin/notification msgid "Show a system notification before breaks" msgstr "Mostra una notifica di sistema prima della pausa" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "Pausa breve tra %s secondi" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "Pausa lunga tra %s secondi" # plugin/screensaver msgid "Screensaver" msgstr "Salvaschermo" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "Blocca lo schermo dopo una pausa lunga avviando il salvaschermo" # plugin/screensaver msgid "Custom screensaver command" msgstr "Comando personalizzato per il salvaschermo" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "Tempo minimo per il salto senza salvaschermo (in secondi)" # plugin/smartpause msgid "Smart Pause" msgstr "Pausa intelligente" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "Sospendi Safe Eyes quando il sistema è inattivo" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "Tempo minimo di inattività per mettere in pausa Safe Eyes" #: plugins/trayicon msgid "Tray Icon" msgstr "Icona" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "Mostra l'icona nell'area di notifica" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "Mostra la prossima pausa accanto all'icona" #: plugins/trayicon msgid "About" msgstr "Informazioni" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "Disabilita Safe Eyes" #: plugins/trayicon msgid "Disabled until %s" msgstr "Disabilita fino a %s" #: plugins/trayicon msgid "Disabled until restart" msgstr "Disabilita fino al riavvio" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "Abilita Safe Eyes" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "Per un'ora" msgstr[1] "Per %d ore" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "Per un minuto" msgstr[1] "Per %d minuti" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "Per un secondo" msgstr[1] "Per %d secondi" #: plugins/trayicon msgid "Next break at %s" msgstr "Prossima pausa tra %s" #: plugins/trayicon msgid "No Breaks Available" msgstr "Non sono previste pause" #: plugins/trayicon msgid "Settings" msgstr "Preferenze" #: plugins/trayicon msgid "Take a break now" msgstr "Fai una pausa adesso" #: plugins/trayicon msgid "Until restart" msgstr "Fino al riavvio" #: plugins/trayicon msgid "Quit" msgstr "Esci" SafeEyes-2.0.0/safeeyes/config/locale/mk/000077500000000000000000000000001316771361500201465ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/mk/LC_MESSAGES/000077500000000000000000000000001316771361500217335ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/mk/LC_MESSAGES/safeeyes.po000066400000000000000000000145301316771361500241020ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" "Language: mk\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/nl/000077500000000000000000000000001316771361500201505ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/nl/LC_MESSAGES/000077500000000000000000000000001316771361500217355ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/nl/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241110ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: nl\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/pl/000077500000000000000000000000001316771361500201525ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/pl/LC_MESSAGES/000077500000000000000000000000001316771361500217375ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/pl/LC_MESSAGES/safeeyes.po000066400000000000000000000146331316771361500241120ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "Language: pl\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/pt/000077500000000000000000000000001316771361500201625ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/pt/LC_MESSAGES/000077500000000000000000000000001316771361500217475ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/pt/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241230ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: pt\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/ru/000077500000000000000000000000001316771361500201655ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ru/LC_MESSAGES/000077500000000000000000000000001316771361500217525ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ru/LC_MESSAGES/safeeyes.po000066400000000000000000000146531316771361500241270ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "Language: ru\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/sk/000077500000000000000000000000001316771361500201545ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/sk/LC_MESSAGES/000077500000000000000000000000001316771361500217415ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/sk/LC_MESSAGES/safeeyes.po000066400000000000000000000145741316771361500241200ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "Language: sk\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/ta/000077500000000000000000000000001316771361500201435ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ta/LC_MESSAGES/000077500000000000000000000000001316771361500217305ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/ta/LC_MESSAGES/safeeyes.po000066400000000000000000000341601316771361500241000ustar00rootroot00000000000000# SAFE EYES TAMIL TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2017-09-17 07:59-0400\n" "PO-Revision-Date: 2017-10-08 12:42+0000\n" "Last-Translator: Gobinath L \n" "Language-Team: Tamil \n" "Language: ta\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: Weblate 2.17-dev\n" "Generated-By: pygettext.py 1.5\n" # Short break msgid "Tightly close your eyes" msgstr "உங்கள் கண்களை இறுக்கமாக மூடுங்கள்" # Short break msgid "Roll your eyes a few times to each side" msgstr "உங்கள் கண்களை இடம் வலமாக உருட்டுங்கள்" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "உங்கள் கண்களை வலஞ்சுழியாக சுழற்றுங்கள்" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "உங்கள் கண்களை இடஞ்சுழியாக சுழற்றுங்கள்" # Short break msgid "Blink your eyes" msgstr "உங்கள் கண்களை சிமிட்டுங்கள்" # Short break msgid "Focus on a point in the far distance" msgstr "தூரத்தில் உள்ள ஒரு பொருளை பாருங்கள்" # Short break msgid "Have some water" msgstr "கொஞ்சம் தண்ணீர் குடியுங்கள்" # Long break msgid "Walk for a while" msgstr "சிறிது தூரம் நடவுங்கள்" # Long break msgid "Lean back at your seat and relax" msgstr "கதிைரயில் பின்பக்கமாக சாய்ந்து ஓய்வெடுங்கள்" # Commandline arg description msgid "show the about dialog" msgstr "தகவல் சாளரத்தை காண்பி" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "செயற்பட்டு கொண்டிருக்கும் Safe Eyes ஐ முடக்கு" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "முடக்க பட்டிருக்கும் Safe Eyes ஐ செயல்படுத்துக" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "செயற்பட்டு கொண்டிருக்கும் Safe Eyes ஐ நிறுத்துக" # Commandline arg description msgid "show the settings dialog" msgstr "அமைப்புகள் சாளரத்தை காண்பி" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "வழு நீக்கும் முறையில் Safe Eyes ஐ ஆரம்பிக்குக" # About dialog msgid "Close" msgstr "மூடு" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" "அடிக்கடி ஓய்வெடுக்க அறிவுறுத்துவதன் மூலம் Safe Eyes கணனியில் நீண்ட நேரம் " "பணியாற்றுவதால் ஏற்படும் கண் சோர்வை தடுக்கிறது" # About dialog msgid "License" msgstr "மென்பொருள் உரிமம்" # Break screen msgid "Skip" msgstr "தவிர்" # Break screen msgid "Postpone" msgstr "ஒத்தி வை" # Settings dialog msgid "Break duration (in seconds)" msgstr "இடைவேளையின் கால அளவு (விநாடிகளில்)" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "இரண்டு இடைவேளைகளுக்கிடையிலான இடைவெளி (நிமிடங்களில்)" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "இடைவேளைக்கு தயாராக தேவைப்படும் நேரம் (விநாடிகளில்)" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "விசைப்பலகை குறுக்குவழிகள் முடக்கப்பட்டிருக்கும் காலம் (விநாடிகளில்)" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "இடைவேளையை ஒத்தி வைக்கும் காலம் (நிமிடங்களில்)" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "கட்டாய இடைவேளை (இடைவேளையை தவிர்க்க முடியாது)" # Settings dialog msgid "Allow postponing breaks" msgstr "இடைவேளையை ஒத்திவைக்க அனுமதிக்கவும்" # Settings dialog msgid "Persist the internal state" msgstr "உள்ளக நிலையை தக்கவைத்து கொள்ளவும்" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "நீண்ட இடைவேளைகளுக்கிடையிலான நேரம் குறுகிய இடைவேளைகளுக்கிடையிலான நேரத்தின் மடங்காக இருக்க வேண்டும்" # Settings dialog msgid "Options" msgstr "தேர்வுகள்" # Settings dialog msgid "Short Breaks" msgstr "குறுகிய இடைவேளைகள்" # Settings dialog msgid "Long Breaks" msgstr "நீண்ட இடைவேளைகள்" # Settings dialog msgid "Break" msgstr "இடைவேளை" # Settings dialog msgid "Breaks" msgstr "இடைவேளைகள்" # Settings dialog msgid "Plugins" msgstr "நீட்சிகள்" # Settings dialog msgid "Type" msgstr "வகை" # Settings dialog msgid "Short" msgstr "குறுகியது" # Settings dialog msgid "Long" msgstr "நீண்டது" # Settings dialog msgid "Image" msgstr "படம்" # Settings dialog msgid "Select" msgstr "தேர்ந்தெடு" # Settings dialog msgid "Please select an image" msgstr "ஒரு படத்தைத் தேர்ந்தெடுக்கவும்" # Settings dialog msgid "Duration" msgstr "கால அளவு" # Settings dialog msgid "Override" msgstr "இயல்புநிலை அமைப்புகளை மீறவும்" # Settings dialog msgid "Time (in seconds)" msgstr "நேரம் (விநாடிகளில்)" # Settings dialog msgid "Break Settings" msgstr "இடைவேளை அமைப்புகள்" # Settings dialog msgid "Plugin Settings" msgstr "நீட்சி அமைப்புகள்" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "இந்த நீட்சி %s முகத்திரை சூழலை ஆதரிக்கவில்லை" # Settings dialog msgid "Please install the Python module '%s'" msgstr "தயவுசெய்து '%s' Python தொகுப்பை நிறுவவும்" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "தயவுசெய்து '%s' முனைய கட்டளையை நிறுவுக" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "தயவுசெய்து %(resource)s வளத்தை %(config_resource)s கோப்புறையில் சேர்க்கவும்" # Settings dialog msgid "New Break" msgstr "புதிய இடைவேளை" # Settings dialog msgid "Remove" msgstr "அகற்று" # Settings dialog msgid "Discard" msgstr "நிராகரி" # Settings dialog msgid "Save" msgstr "சேமி" # plugin/audiblealert msgid "Audible Alert" msgstr "ஒலிச் சமிக்ஞய்" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "இடைவேளைகளின் முடிவில் ஒலிச் சமிக்ஞய்" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "தொந்தரவு செய்ய வேண்டாம்" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "பாவனையிலுள்ள சாளரம் முழுத்திரையில் இருப்பின் இடைவேளையை தவிர்" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "இந்த சாளரங்கள் எந்த நிலையிலிருந்தாலும் குறுக்கிட வேண்டாம்" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "இந்த சாளரங்களின் நிலையை பொருட்படுத்தாது குறுக்கிடுக" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "குறுக்கீடு செய்யும் போது சாளரங்களை சாதாரண நிலைக்கு மாற்றுக" # plugin/healthstats msgid "Health Statistics" msgstr "ஆரோக்கிய புள்ளிவிவரங்கள்" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "Safe Eyes பயன்பாடு அடிப்படையிலான ஆரோக்கிய புள்ளிவிவரங்கள்" # plugin/notification msgid "Notification" msgstr "முன்னறிவிப்பு" # plugin/notification msgid "Show a system notification before breaks" msgstr "இடைவேளைகளின் முன் தயார்படுத்தலுக்கான அறிவிப்பு" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "%s விநாடிகளில் குறுகிய இடைவேளைக்கு தயாராகுங்கள்" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "{} விநாடிகளில் நீண்ட இடைவேளைக்கு தயாராகுங்கள்" # plugin/screensaver msgid "Screensaver" msgstr "திரைக் காப்பு" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "நீண்ட இடைவேளைகளின் பின் திரைக்காப்பு மென்பொருள் இயக்கம்" # plugin/screensaver msgid "Custom screensaver command" msgstr "மாறுபட்ட திரைக்காப்பு கட்டளை" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "திரைக்காப்பு மென்பொருளை செயற்படுத்தாமல் தவிர்ப்பதற்கான வினாடிகள்" # plugin/smartpause msgid "Smart Pause" msgstr "நுண்ணறிவு இடைநிறுத்தம்" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "கணினி செயலற்று இருந்தால் Safe Eyesஐ இடைநிறுத்துக" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "Safe Eyesஐ இடைநிறுத்துவதற்கான குறைந்தபட்ச செயலற்ற வினாடிகள்" #: plugins/trayicon msgid "Tray Icon" msgstr "Safe Eyes சின்னம்" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "அறிவிப்பு பகுதியில் Safe Eyes சின்னம்" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "அடுத்த இடைவேளை நேரத்தை Safe Eyes சின்னத்திற்கு அருகில் காண்பிக்கவும்" #: plugins/trayicon msgid "About" msgstr "Safe Eyes குறித்த தகவல்கள்" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "Safe Eyes ஐ நிறுத்துக" #: plugins/trayicon msgid "Disabled until %s" msgstr "%s வரை நிறுத்தி வைக்கப்பட்டுள்ளது" #: plugins/trayicon msgid "Disabled until restart" msgstr "மறுதுவக்கம் வரை நிறுத்தி வைக்கப்பட்டுள்ளது" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "Safe Eyes ஐ செயல்படுத்துக" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "%d மணித்தியாலத்திற்கு" msgstr[1] "%d மணித்தியாலங்களுக்கு" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "%d நிமிடத்திற்கு" msgstr[1] "%d நிமிடங்களுக்கு" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "%d வினாடிக்கு" msgstr[1] "%d வினாடிகளுக்கு" #: plugins/trayicon msgid "Next break at %s" msgstr "அடுத்த இடைவேளை %s" #: plugins/trayicon msgid "No Breaks Available" msgstr "இடைவேளைகள் வரையறுக்கப்படவில்லை" #: plugins/trayicon msgid "Settings" msgstr "அமைப்பு" #: plugins/trayicon msgid "Take a break now" msgstr "சுயவிருப்பிலான இடைவேளை" #: plugins/trayicon msgid "Until restart" msgstr "மீள ஆரம்பிக்கும் வரை" #: plugins/trayicon msgid "Quit" msgstr "நிறுத்து" SafeEyes-2.0.0/safeeyes/config/locale/tr/000077500000000000000000000000001316771361500201645ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/tr/LC_MESSAGES/000077500000000000000000000000001316771361500217515ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/tr/LC_MESSAGES/safeeyes.po000066400000000000000000000144721316771361500241250ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Language: tr\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/uk/000077500000000000000000000000001316771361500201565ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/uk/LC_MESSAGES/000077500000000000000000000000001316771361500217435ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/uk/LC_MESSAGES/safeeyes.po000066400000000000000000000146531316771361500241200ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "Language: uk\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" msgstr[1] "" msgstr[2] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/vi/000077500000000000000000000000001316771361500201555ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/vi/LC_MESSAGES/000077500000000000000000000000001316771361500217425ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/vi/LC_MESSAGES/safeeyes.po000066400000000000000000000144141316771361500241120ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.7.1\n" "Last-Translator: \n" "Plural-Forms: nplurals=1; plural=0;\n" "Language: vi\n" # Short break msgid "Tightly close your eyes" msgstr "" # Short break msgid "Roll your eyes a few times to each side" msgstr "" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "" # Short break msgid "Blink your eyes" msgstr "" # Short break msgid "Focus on a point in the far distance" msgstr "" # Short break msgid "Have some water" msgstr "" # Long break msgid "Walk for a while" msgstr "" # Long break msgid "Lean back at your seat and relax" msgstr "" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "" # Break screen msgid "Postpone" msgstr "" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/locale/zh_CN/000077500000000000000000000000001316771361500205405ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/zh_CN/LC_MESSAGES/000077500000000000000000000000001316771361500223255ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/locale/zh_CN/LC_MESSAGES/safeeyes.po000066400000000000000000000154641316771361500245030ustar00rootroot00000000000000# SAFE EYES ENGLISH TRANSLATION. # Copyright (C) 2017 Gobinath # Gobinath slgobinath@gmail.com, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: 2017-10-08 12:42+0000\n" "Last-Translator: Gobinath L \n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 2.17-dev\n" # Short break msgid "Tightly close your eyes" msgstr "闭上您的眼睛休息一会" # Short break msgid "Roll your eyes a few times to each side" msgstr "左右滚动一下您的眼珠" # Short break msgid "Rotate your eyes in clockwise direction" msgstr "顺时针方向转动您的眼珠" # Short break msgid "Rotate your eyes in counterclockwise direction" msgstr "逆时针方向转动您的眼珠" # Short break msgid "Blink your eyes" msgstr "眨眨眼" # Short break msgid "Focus on a point in the far distance" msgstr "望远:将视线聚焦到远处物体上" # Short break msgid "Have some water" msgstr "喝一点水" # Long break msgid "Walk for a while" msgstr "站起来走走" # Long break msgid "Lean back at your seat and relax" msgstr "靠在椅背上休息一会" # Commandline arg description msgid "show the about dialog" msgstr "" # Commandline arg description msgid "disable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "enable the currently running safeeyes instance" msgstr "" # Commandline arg description msgid "quit the running safeeyes instance and exit" msgstr "" # Commandline arg description msgid "show the settings dialog" msgstr "" # Commandline arg description msgid "start safeeyes in debug mode" msgstr "" # About dialog msgid "Close" msgstr "关闭" # Description in about dialog # Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer msgid "description" msgstr "当您持续使用电脑办公太长时间时,Safe Eyes 会提醒您休息一下,通过这种方式来保护您的眼睛,使您远离视疲劳" # About dialog msgid "License" msgstr "" # Break screen msgid "Skip" msgstr "跳过" # Break screen msgid "Postpone" msgstr "推迟休息" # Settings dialog msgid "Break duration (in seconds)" msgstr "" # Settings dialog msgid "Interval between two breaks (in minutes)" msgstr "" # Settings dialog msgid "Time to prepare for a break (in seconds)" msgstr "" # Settings dialog msgid "Keyboard shortcuts disabled period (in seconds)" msgstr "" # Settings dialog msgid "Postpone duration (in minutes)" msgstr "" # Settings dialog msgid "Strict break (No way to skip breaks)" msgstr "" # Settings dialog msgid "Allow postponing breaks" msgstr "" # Settings dialog msgid "Persist the internal state" msgstr "" # Settings dialog msgid "Long break interval must be a multiple of short break interval" msgstr "" # Settings dialog msgid "Options" msgstr "" # Settings dialog msgid "Short Breaks" msgstr "" # Settings dialog msgid "Long Breaks" msgstr "" # Settings dialog msgid "Break" msgstr "" # Settings dialog msgid "Breaks" msgstr "" # Settings dialog msgid "Plugins" msgstr "" # Settings dialog msgid "Type" msgstr "" # Settings dialog msgid "Short" msgstr "" # Settings dialog msgid "Long" msgstr "" # Settings dialog msgid "Image" msgstr "" # Settings dialog msgid "Select" msgstr "" # Settings dialog msgid "Please select an image" msgstr "" # Settings dialog msgid "Duration" msgstr "" # Settings dialog msgid "Override" msgstr "" # Settings dialog msgid "Time (in seconds)" msgstr "" # Settings dialog msgid "Break Settings" msgstr "" # Settings dialog msgid "Plugin Settings" msgstr "" # Settings dialog msgid "Plugin does not support %s desktop environment" msgstr "" # Settings dialog msgid "Please install the Python module '%s'" msgstr "" # Settings dialog msgid "Please install the command-line tool '%s'" msgstr "" # Settings dialog msgid "Please add the resource %(resource)s to %(config_resource)s directory" msgstr "" # Settings dialog msgid "New Break" msgstr "" # Settings dialog msgid "Remove" msgstr "" # Settings dialog msgid "Discard" msgstr "" # Settings dialog msgid "Save" msgstr "" # plugin/audiblealert msgid "Audible Alert" msgstr "" # plugin/audiblealert msgid "Play an audible alert at the end of breaks" msgstr "" # plugin/donotdisturb msgid "Do Not Disturb" msgstr "" # plugin/donotdisturb msgid "Skip the break if the active window is in fullscreen mode" msgstr "" # plugin/donotdisturb msgid "Do not interrupt these windows anytime" msgstr "" # plugin/donotdisturb msgid "Interrupt these windows regardless of their state" msgstr "" # plugin/donotdisturb msgid "Switch the interruptible windows to normal mode" msgstr "" # plugin/healthstats msgid "Health Statistics" msgstr "" # plugin/healthstats msgid "Show statistics based on how you use Safe Eyes" msgstr "" # plugin/notification msgid "Notification" msgstr "" # plugin/notification msgid "Show a system notification before breaks" msgstr "" # plugin/notification msgid "Ready for a short break in %s seconds" msgstr "" # plugin/notification msgid "Ready for a long break in %s seconds" msgstr "" # plugin/screensaver msgid "Screensaver" msgstr "" # plugin/screensaver msgid "Lock the screen after long breaks by starting screensaver" msgstr "" # plugin/screensaver msgid "Custom screensaver command" msgstr "" # plugin/screensaver msgid "Minimum seconds to skip without screensaver" msgstr "" # plugin/smartpause msgid "Smart Pause" msgstr "" # plugin/smartpause msgid "Pause Safe Eyes if the system is idle" msgstr "" # plugin/smartpause msgid "Minimum idle time to pause Safe Eyes" msgstr "" #: plugins/trayicon msgid "Tray Icon" msgstr "" #: plugins/trayicon msgid "Show a tray icon in the notification area" msgstr "" #: plugins/trayicon msgid "Show next break time in tray icon" msgstr "" #: plugins/trayicon msgid "About" msgstr "" #: plugins/trayicon msgid "Disable Safe Eyes" msgstr "" #: plugins/trayicon msgid "Disabled until %s" msgstr "" #: plugins/trayicon msgid "Disabled until restart" msgstr "" #: plugins/trayicon msgid "Enable Safe Eyes" msgstr "" #: plugins/trayicon msgid "For %d Hour" msgid_plural "For %d Hours" msgstr[0] "" #: plugins/trayicon msgid "For %d Minute" msgid_plural "For %d Minutes" msgstr[0] "" #: plugins/trayicon msgid "For %d Second" msgid_plural "For %d Seconds" msgstr[0] "" #: plugins/trayicon msgid "Next break at %s" msgstr "" #: plugins/trayicon msgid "No Breaks Available" msgstr "" #: plugins/trayicon msgid "Settings" msgstr "" #: plugins/trayicon msgid "Take a break now" msgstr "" #: plugins/trayicon msgid "Until restart" msgstr "" #: plugins/trayicon msgid "Quit" msgstr "" SafeEyes-2.0.0/safeeyes/config/safeeyes.json000066400000000000000000000055721316771361500210100ustar00rootroot00000000000000{ "meta": { "config_version": "6.0.0" }, "allow_postpone": false, "break_interval": 15, "long_break_duration": 60, "no_of_short_breaks_per_long_break": 5, "pre_break_warning_time": 10, "short_break_duration": 15, "persist_state": false, "postpone_duration": 5, "rpc_port": 7200, "shortcut_disable_time": 2, "shortcut_skip": 9, "shortcut_postpone": 65, "strict_break": false, "short_breaks": [ { "name": "Tightly close your eyes" }, { "name": "Roll your eyes a few times to each side" }, { "name": "Rotate your eyes in clockwise direction" }, { "name": "Rotate your eyes in counterclockwise direction" }, { "name": "Blink your eyes" }, { "name": "Focus on a point in the far distance" }, { "name": "Have some water" } ], "long_breaks": [ { "name": "Walk for a while" }, { "name": "Lean back at your seat and relax" } ], "plugins": [ { "id": "donotdisturb", "enabled": true, "version": "0.0.1", "settings": { "skip_break_windows": "", "take_break_windows": "", "unfullscreen": true } }, { "id": "notification", "enabled": true, "version": "0.0.1" }, { "id": "audiblealert", "enabled": true, "version": "0.0.1" }, { "id": "trayicon", "enabled": true, "version": "0.0.1", "settings": { "show_time_in_tray": false, "disable_options": [ { "time": 30, "unit": "minute" }, { "time": 1, "unit": "hour" }, { "time": 2, "unit": "hour" }, { "time": 3, "unit": "hour" } ] } }, { "id": "smartpause", "enabled": true, "version": "0.0.1", "settings": { "idle_time": 3 } }, { "id": "screensaver", "enabled": true, "version": "0.0.1", "settings": { "command": "", "min_seconds": 3 } }, { "id": "healthstats", "enabled": false, "version": "0.0.1" } ] } SafeEyes-2.0.0/safeeyes/config/style/000077500000000000000000000000001316771361500174405ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/config/style/safeeyes_style.css000066400000000000000000000035741316771361500232070ustar00rootroot00000000000000/* * Safe Eyes is a utility to remind you to take break frequently * to protect your eyes from eye strain. * Copyright (C) 2016 Gobinath * 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 . */ .window_main { background: black; opacity: 0.9; } .btn_skip { color: white; font-size: 10pt; border-radius: 25px; padding-top: 10px; padding-bottom: 10px; padding-left: 25px; padding-right: 25px; border-color: white; background: transparent; border-width: 2px; border-image: none; } .btn_skip:hover { background: white; color: black; } .btn_postpone{ color: white; font-size: 10pt; border-radius: 25px; padding-top: 10px; padding-bottom: 10px; padding-left: 25px; padding-right: 25px; border-color: white; background: transparent; border-width: 2px; border-image: none; } .btn_postpone:hover { background: white; color: black; } .lbl_message { font-size: 22pt; color: white; font-weight: bold; } .lbl_count { font-size: 12pt; color: white; } .lbl_widget { font-size: 9pt; color: white; } .btn_properties { border-radius: 15px; } .lbl_plugin_name { font-weight: bold; } .lbl_plugin_description { color: #9B9B9B; } .info_bar_long_break { opacity: 0.9; border-radius: 5px; }SafeEyes-2.0.0/safeeyes/glade/000077500000000000000000000000001316771361500161075ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/glade/about_dialog.glade000066400000000000000000000224211316771361500215370ustar00rootroot00000000000000 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/>. False Safe Eyes False center-always safeeyes dialog center True False 5 5 5 5 True True vertical top True False start True vertical True False center center 10 10 Safe Eyes 2.0.0 center True True 0 True False 4 Safe Eyes protects your eyes from eye strain (asthenopia) by reminding you to take breaks while you're working long hours at the computer. fill True 60 60 False True 1 True False start center 10 License: False True 2 True True True True False word text_buffer_license False True True 3 http://slgobinath.github.io/SafeEyes True True False True center none http://slgobinath.github.io/SafeEyes False True 4 False True 0 True False 5 5 False True 1 True False start 5 end Close True True True True True 1 False True 2 SafeEyes-2.0.0/safeeyes/glade/break_screen.glade000066400000000000000000000213001316771361500215240ustar00rootroot00000000000000 False center True safeeyes True True False False False center True False True True True False 0 0 True False vertical 10 True False center center 10 True False 0 0 True False center center True 15 True False Hello World center 0 0 3 True False center 0.20000000298023224 True False 00 1 1 True False center 50 True 1 3 0 1 3 False True 0 True False Widget 0.25 True True end 1 0 1 2 SafeEyes-2.0.0/safeeyes/glade/item_bool.glade000066400000000000000000000044271316771361500210650ustar00rootroot00000000000000 True False 5 5 5 5 10 True False center label 0 True True 0 True True end center False False end 1 SafeEyes-2.0.0/safeeyes/glade/item_break.glade000066400000000000000000000052041316771361500212100ustar00rootroot00000000000000 True False 5 5 5 5 True False center label 0 True True 0 True True True center center img_properties True False True 1 True False gtk-properties SafeEyes-2.0.0/safeeyes/glade/item_int.glade000066400000000000000000000047661316771361500207320ustar00rootroot00000000000000 100 1 10 True False 5 5 5 5 10 True False center label 0 True True 0 True True end center adjustment_value False True 1 SafeEyes-2.0.0/safeeyes/glade/item_plugin.glade000066400000000000000000000132071316771361500214240ustar00rootroot00000000000000 True False gtk-properties True False 5 5 5 5 True False center center gtk-about False True 0 True False 5 vertical True False start end Plugin Name 0.05000000074505806 1 True True 0 True False start start Plugin Description 0.05000000074505806 0 True True 1 True True 1 True False 5 True True end center False True 0 True True True center center img_properties True False False 1 False True 2 SafeEyes-2.0.0/safeeyes/glade/item_text.glade000066400000000000000000000043401316771361500211100ustar00rootroot00000000000000 True False 5 5 5 5 10 True False center label 0 True True 0 True True end center False True 1 SafeEyes-2.0.0/safeeyes/glade/new_break.glade000066400000000000000000000230351316771361500210450ustar00rootroot00000000000000 100 1 10 Short Long False Properties False True center-on-parent 500 50 True safeeyes dialog True center True False 10 10 10 10 vertical 5 True False 0 True False 12 True False 10 5 10 vertical 3 True True center 64 False True 0 True False 10 True False start center Type False True 0 True False lst_break_types 0 0 0 False True end 1 False True 1 True False Break False False 0 True False 10 True top end Discard True True True True True 0 Save True True True True True True 1 False False 3 SafeEyes-2.0.0/safeeyes/glade/settings_break.glade000066400000000000000000000556121316771361500221220ustar00rootroot00000000000000 100 1 10 True False gtk-missing-image Short Long False Properties False True center-on-parent 500 50 True safeeyes dialog True center True False 10 10 10 10 vertical 5 True False 0 True False 12 True False 10 5 10 vertical 3 True True center False True 0 True False 10 True False start center Type False True 0 True False lst_break_types 0 0 0 False True end 1 False True 1 True False 10 True False start center Image False True 0 Select True True True img_break True False True end 1 False True 2 True False Break False False 0 True False 0 True False 12 True False 10 5 10 vertical 3 True False 10 True False start center Override False True 0 True True end center False True end 1 False True 0 True False 100 True False start center Time (in seconds) False True 0 True True end center adjustment_duration False True end 1 False True 1 True False Duration False False 1 True False 0 True False 12 True False 5 10 vertical 3 True False 10 5 10 10 True False start center Override False True 0 True True end center False True end 1 False True 0 True False 10 10 True True False True 1 True False Plugins False False 2 True False top end Remove True True True True True 0 False False 3 SafeEyes-2.0.0/safeeyes/glade/settings_dialog.glade000066400000000000000000001521031316771361500222660ustar00rootroot00000000000000 15 1 5 1 600 5 10 120 1 5 1 15 1 5 1 60 1 5 1 60 1 5 1 60 1 5 True False gtk-add False Safe Eyes center 450 600 safeeyes center True True False True False 10 10 10 10 vertical 15 True False 0 in True False 12 True False 10 10 10 vertical 15 True True False 5 True False Interval between two breaks (in minutes) False True 0 True True end center 1 number adjust_short_break_interval 1 True if-valid 1 False False end 1 False True 0 True False 5 True False Break duration (in seconds) False True 0 True True end center 1 number adjust_short_break_duration 1 True if-valid 1 False False end 1 False True 1 True False Short Breaks False True 0 True False 0 in True False 12 True False 10 10 10 vertical 15 True True False True True False 6 start False False 0 False 16 True False gtk-info False True 0 True False Long break interval must be a multiple of short break interval 0 False True 1 False False 0 True True 0 True False 5 True False Interval between two breaks (in minutes) False True 0 True True end center 1 number adjust_long_break_interval 1 True True True if-valid 1 False False end 1 False True 1 True False 5 True False Break duration (in seconds) False True 0 True True end center 1 number adjust_long_break_duration 1 True if-valid 1 False False end 1 False True 2 True False Long Breaks False True 1 True False 0 in True False 12 True False 10 10 10 vertical 15 True True False 5 True False Time to prepare for a break (in seconds) False True 0 True True end center 1 number adjust_time_to_prepare 1 True if-valid 1 False False end 1 False True 0 True False 5 True False Strict break (No way to skip breaks) False True 0 True True end center False False end 1 False True 1 True False 5 True False Allow postponing breaks False True 0 True True end center False False end 1 False True 2 True False 5 True False Postpone duration (in minutes) False True 0 True True end center 1 number adjust_postpone_duration 1 True if-valid 1 False False end 1 False True 3 True False 5 True False Keyboard shortcuts disabled period (in seconds) False True 0 True True end center 1 number adjust_disable_keyboard_shortcut_duration 1 True if-valid 1 False False end 1 False True 4 True False 5 True False Persist the internal state False True 0 True True end center False False end 1 False True 5 True False Options False True 2 True True False Settings lbl_settings True False True False vertical True True never True False none True False 10 10 10 10 vertical True False vertical True True True True False vertical 5 True False Short Breaks False True 0 True False 10 False True 1 True True True False vertical 5 True False Long Breaks False True 2 True True 0 True True 0 True False 5 5 10 10 end True True True end img_add True True 1 False True end 1 True False 10 False True 2 1 True True False Breaks 1 True False True True never in True False True False 10 10 10 10 vertical 5 2 True True False Plugins 2 True False SafeEyes-2.0.0/safeeyes/glade/settings_plugin.glade000066400000000000000000000044151316771361500223270ustar00rootroot00000000000000 False Properties False True center-on-parent 400 10 True safeeyes dialog True center True False 10 10 vertical 15 True SafeEyes-2.0.0/safeeyes/model.py000066400000000000000000000121321316771361500165040ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ This module contains the entity classes used by Safe Eyes and its plugins. """ from distutils.version import LooseVersion from enum import Enum from safeeyes import Utility class Break(object): """ An entity class which represents a break. """ def __init__(self, break_type, name, time, image, plugins): self.type = break_type self.name = name self.time = time self.image = image self.plugins = plugins def __str__(self): return 'Break: {{name: "{}", type: {}, time: {}}}\n'.format(self.name, self.type, self.time) def __repr__(self): return str(self) def is_long_break(self): """ Check whether this break is a long break. """ return self.type == BreakType.LONG_BREAK def is_short_break(self): """ Check whether this break is a short break. """ return self.type == BreakType.SHORT_BREAK def plugin_enabled(self, plugin_id, is_plugin_enabled): """ Check whether this break supports the given plugin. """ if self.plugins: return plugin_id in self.plugins else: return is_plugin_enabled class BreakType(Enum): """ Type of Safe Eyes breaks. """ SHORT_BREAK = 1 LONG_BREAK = 2 class State(Enum): """ Possible states of Safe Eyes. """ START = 0, WAITING = 1, PRE_BREAK = 2, BREAK = 3, STOPPED = 4, QUIT = 5 class EventHook(object): """ Hook to attach and detach listeners to system events. """ def __init__(self): self.__handlers = [] def __iadd__(self, handler): self.__handlers.append(handler) return self def __isub__(self, handler): self.__handlers.remove(handler) return self def fire(self, *args, **keywargs): """ Fire all listeners attached with. """ for handler in self.__handlers: if not handler(*args, **keywargs): return False return True class Config(object): """ The configuration of Safe Eyes. """ def __init__(self): # Read the config files self.__user_config = Utility.load_json(Utility.CONFIG_FILE_PATH) self.__system_config = Utility.load_json(Utility.SYSTEM_CONFIG_FILE_PATH) if self.__user_config is None: Utility.initialize_safeeyes() self.__user_config = self.__system_config self.save() else: system_config_version = self.__system_config['meta']['config_version'] meta_obj = self.__user_config.get('meta', None) if meta_obj is None: # Corrupted user config self.__user_config = self.__system_config else: user_config_version = str(meta_obj.get('config_version', '0.0.0')) if LooseVersion(user_config_version) != LooseVersion(system_config_version): # Update the user config self.__merge_dictionary(self.__user_config, self.__system_config) self.__user_config = self.__system_config Utility.merge_plugins(self.__user_config) self.save() def __merge_dictionary(self, old_dict, new_dict): """ Merge the dictionaries. """ for key in new_dict: if key == "meta": continue if key in old_dict: new_value = new_dict[key] old_value = old_dict[key] if type(new_value) is type(old_value): # Both properties have same type if isinstance(new_value, dict): self.__merge_dictionary(old_value, new_value) else: new_dict[key] = old_value def save(self): """ Save the configuration to file. """ Utility.write_json(Utility.CONFIG_FILE_PATH, self.__user_config) def get(self, key, default_value=None): """ Get the value. """ value = self.__user_config.get(key, default_value) if value is None: value = self.__system_config.get(key, None) return value def set(self, key, value): """ Set the value. """ self.__user_config[key] = value SafeEyes-2.0.0/safeeyes/plugins/000077500000000000000000000000001316771361500165145ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/audiblealert/000077500000000000000000000000001316771361500211515ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/audiblealert/config.json000066400000000000000000000006301316771361500233100ustar00rootroot00000000000000{ "meta": { "name": "Audible Alert", "description": "Play an audible alert at the end of breaks", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": ["aplay"], "operating_systems": [], "desktop_environments": [], "resources": ["alert.wav"] }, "settings": [], "break_override_allowed": true }SafeEyes-2.0.0/safeeyes/plugins/audiblealert/icon.png000066400000000000000000000006741316771361500226160ustar00rootroot00000000000000PNG  IHDRשPLTE>D4tRNS  !"#9>M^chikpqstu|xIDATB@GE)E[ft/iEdPfj%m JlJ.!)B\2*L T~F,K#e1OV4M+_Vl g(f;v:_:d:`IENDB`SafeEyes-2.0.0/safeeyes/plugins/audiblealert/plugin.py000066400000000000000000000031701316771361500230220ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ Audible Alert plugin plays a sound after each breaks to notify the user that the break has end. """ import logging from safeeyes import Utility context = None def init(ctx, safeeyes_config, plugin_config): """ Initialize the plugin. """ global context logging.debug('Initialize Audible Alert plugin') context = ctx def on_stop_break(): """ After the break, play the alert sound """ # Do not play if the break is skipped or postponed if context['skipped'] or context['postponed']: return logging.info('Playing audible alert') try: # Open the sound file path = Utility.get_resource_path('alert.wav') if path is None: return Utility.execute_command('aplay', ['-q', path]) except BaseException: logging.error('Failed to play audible alert') SafeEyes-2.0.0/safeeyes/plugins/donotdisturb/000077500000000000000000000000001316771361500212345ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/donotdisturb/config.json000066400000000000000000000017071316771361500234010ustar00rootroot00000000000000{ "meta": { "name": "Do Not Disturb", "description": "Skip the break if the active window is in fullscreen mode", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": ["xprop"], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [ { "id": "skip_break_windows", "label": "Do not interrupt these windows anytime", "type": "TEXT", "default": "" }, { "id": "take_break_windows", "label": "Interrupt these windows regardless of their state", "type": "TEXT", "default": "" }, { "id": "unfullscreen", "label": "Switch the interruptible windows to normal mode", "type": "BOOL", "default": true } ], "break_override_allowed": true }SafeEyes-2.0.0/safeeyes/plugins/donotdisturb/icon.png000066400000000000000000000003251316771361500226720ustar00rootroot00000000000000PNG  IHDRש3PLTEFtRNS .1toOAIDAT(c`y0/;#V]A XF+`VŹys31 X3BAIENDB`SafeEyes-2.0.0/safeeyes/plugins/donotdisturb/plugin.py000066400000000000000000000063451316771361500231140ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ Skip Fullscreen plugin skips the break if the active window is fullscreen. NOTE: Do not remove the unused import 'GdkX11' becuase it is required in Ubuntu 14.04 """ import logging import re import subprocess import gi gi.require_version('Gdk', '3.0') from gi.repository import Gdk from gi.repository import GdkX11 context = None skip_break_window_classes = [] take_break_window_classes = [] unfullscreen_allowed = True def is_active_window_skipped(): """ Check for full-screen applications. This method must be executed by the main thread. If not, it will cause to random failure. """ logging.info('Searching for full-screen application') screen = Gdk.Screen.get_default() active_window = screen.get_active_window() if active_window: active_xid = str(active_window.get_xid()) cmdlist = ['xprop', '-root', '-notype', '-id', active_xid, 'WM_CLASS', '_NET_WM_STATE'] try: stdout = subprocess.check_output(cmdlist).decode('utf-8') except subprocess.CalledProcessError: logging.warning('Error in finding full-screen application') else: if stdout: is_fullscreen = 'FULLSCREEN' in stdout # Extract the process name process_names = re.findall('"(.+?)"', stdout) if process_names: process = process_names[1].lower() if process in skip_break_window_classes: return True elif process in take_break_window_classes: if is_fullscreen and unfullscreen_allowed: try: active_window.unfullscreen() except BaseException: logging.error('Error in unfullscreen the window ' + process) return False return is_fullscreen return False def init(ctx, safeeyes_config, plugin_config): global context global skip_break_window_classes global take_break_window_classes global unfullscreen_allowed logging.debug('Initialize Skip Fullscreen plugin') context = ctx skip_break_window_classes = plugin_config['skip_break_windows'].split() take_break_window_classes = plugin_config['take_break_windows'].split() unfullscreen_allowed = plugin_config['unfullscreen'] def on_start_break(break_obj): """ """ return is_active_window_skipped() SafeEyes-2.0.0/safeeyes/plugins/healthstats/000077500000000000000000000000001316771361500210405ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/healthstats/config.json000066400000000000000000000006161316771361500232030ustar00rootroot00000000000000{ "meta": { "name": "Health Statistics", "description": "Show statistics based on how you use Safe Eyes", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": [], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [], "break_override_allowed": true }SafeEyes-2.0.0/safeeyes/plugins/healthstats/icon.png000066400000000000000000000011371316771361500225000ustar00rootroot00000000000000PNG  IHDRשPLTE#KtRNS  "*-4567;<=>ABFGLOQRY[]^dghoqx{G~IDAT:Qw+EA |J`*ߏ={A?ƽ2 V//@OhPUy3PL[EsË"3f,Sdȃp-q%瞆 *%4H eMJp)+H@:"e)Zib_N. """ Show health statistics on the break screen. """ import logging context = None no_of_skipped_breaks = 0 no_of_breaks = 0 no_of_cycles = -1 session = None def init(ctx, safeeyes_config, plugin_config): """ Initialize the plugin. """ global context global session global no_of_skipped_breaks global no_of_breaks global no_of_cycles logging.debug('Initialize Health Stats plugin') context = ctx if session is None: session = context['session']['plugin'].get('healthstats', None) if session is None: session = {'no_of_skipped_breaks': 0, 'no_of_breaks': 0, 'no_of_cycles': -1} context['session']['plugin']['healthstats'] = session no_of_skipped_breaks = session.get('no_of_skipped_breaks', 0) no_of_breaks = session.get('no_of_breaks', 0) no_of_cycles = session.get('no_of_cycles', -1) def on_stop_break(): """ After the break, play the alert sound """ global no_of_skipped_breaks if context['skipped']: no_of_skipped_breaks += 1 session['no_of_skipped_breaks'] = no_of_skipped_breaks def get_widget_title(break_obj): """ Return the widget title. """ global no_of_breaks global no_of_cycles no_of_breaks += 1 if context['new_cycle']: no_of_cycles += 1 session['no_of_breaks'] = no_of_breaks session['no_of_cycles'] = no_of_cycles return _('Health Statistics') def get_widget_content(break_obj): """ Return the statistics. """ return 'BREAKS: {}\tSKIPPED: {}\tCYCLES: {}'.format(no_of_breaks, no_of_skipped_breaks, no_of_cycles) SafeEyes-2.0.0/safeeyes/plugins/notification/000077500000000000000000000000001316771361500212025ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/notification/config.json000066400000000000000000000005371316771361500233470ustar00rootroot00000000000000{ "meta": { "name": "Notification", "description": "Show a system notification before breaks", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": [], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [] }SafeEyes-2.0.0/safeeyes/plugins/notification/icon.png000066400000000000000000000003361316771361500226420ustar00rootroot00000000000000PNG  IHDRY 'PLTE tRNS 0@]aiobZIDATc`Z+l:`rNAL^KLe@l$2(ts1 q$!.GuPIENDB`SafeEyes-2.0.0/safeeyes/plugins/notification/plugin.py000066400000000000000000000045431316771361500230600ustar00rootroot00000000000000# Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . import logging import gi from safeeyes.model import BreakType gi.require_version('Notify', '0.7') from gi.repository import Notify """ Safe Eyes Notification plugin """ APPINDICATOR_ID = 'safeeyes' notification = None context = None Notify.init(APPINDICATOR_ID) def init(ctx, safeeyes_config, plugin_config): """ Initialize the plugin. """ global context logging.debug('Initialize Notification plugin') context = ctx def on_pre_break(break_obj): """ Show the notification """ # Construct the message based on the type of the next break global notification logging.info('Show the notification') message = '\n' warning_time = 10 if break_obj.type == BreakType.SHORT_BREAK: message += (_('Ready for a short break in %s seconds') % warning_time) else: message += (_('Ready for a long break in %s seconds') % warning_time) notification = Notify.Notification.new('Safe Eyes', message, icon='safeeyes_enabled') try: notification.show() except BaseException: logging.error('Failed to show the notification') def on_start_break(break_obj): """ Close the notification. """ global notification logging.info('Close pre-break notification') if notification: try: notification.close() notification = None except BaseException: # Some operating systems automatically close the notification. pass def on_exit(): """ Uninitialize the registered notificaion. """ logging.debug('Stop Notification plugin') Notify.uninit() SafeEyes-2.0.0/safeeyes/plugins/screensaver/000077500000000000000000000000001316771361500210345ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/screensaver/config.json000066400000000000000000000014151316771361500231750ustar00rootroot00000000000000{ "meta": { "name": "Screensaver", "description": "Lock the screen after long breaks by starting screensaver", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": [], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [ { "id": "command", "label": "Custom screensaver command", "type": "TEXT", "default": "" }, { "id": "min_seconds", "label": "Minimum seconds to skip without screensaver", "type": "INT", "default": 3, "max": 60, "min": 0 } ], "break_override_allowed": true }SafeEyes-2.0.0/safeeyes/plugins/screensaver/icon.png000066400000000000000000000006161316771361500224750ustar00rootroot00000000000000PNG  IHDRשPLTE/-tRNS  !#,-./9GRTkmtk{MIDAT(I@DZy@PQl޹*Ed;FnE \7Ac޽a^@o#`(Ija]AV&iB$yNqQ$2BI+Г$͛$E7Ґ7mIENDB`SafeEyes-2.0.0/safeeyes/plugins/screensaver/plugin.py000066400000000000000000000110541316771361500227050ustar00rootroot00000000000000#!/usr/bin/env python # Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . """ Screensaver plugin locks the desktop using native screensaver application, after long breaks. """ import logging import os from safeeyes import Utility context = None lock_screen = False lock_screen_command = None min_seconds = 0 seconds_passed = 0 def __lock_screen_command(): """ Function tries to detect the screensaver command based on the current envinroment Possible results: Gnome, Unity, Budgie: ['gnome-screensaver-command', '--lock'] Cinnamon: ['cinnamon-screensaver-command', '--lock'] Pantheon, LXDE: ['light-locker-command', '--lock'] Mate: ['mate-screensaver-command', '--lock'] KDE: ['qdbus', 'org.freedesktop.ScreenSaver', '/ScreenSaver', 'Lock'] XFCE: ['xflock4'] Otherwise: None """ desktop_session = os.environ.get('DESKTOP_SESSION') current_desktop = os.environ.get('XDG_CURRENT_DESKTOP') if desktop_session is not None: desktop_session = desktop_session.lower() if ('xfce' in desktop_session or desktop_session.startswith('xubuntu') or (current_desktop is not None and 'xfce' in current_desktop)) and Utility.command_exist('xflock4'): return ['xflock4'] elif desktop_session == 'cinnamon' and Utility.command_exist('cinnamon-screensaver-command'): return ['cinnamon-screensaver-command', '--lock'] elif (desktop_session == 'pantheon' or desktop_session.startswith('lubuntu')) and Utility.command_exist('light-locker-command'): return ['light-locker-command', '--lock'] elif desktop_session == 'mate' and Utility.command_exist('mate-screensaver-command'): return ['mate-screensaver-command', '--lock'] elif desktop_session == 'kde' or 'plasma' in desktop_session or desktop_session.startswith('kubuntu') or os.environ.get('KDE_FULL_SESSION') == 'true': return ['qdbus', 'org.freedesktop.ScreenSaver', '/ScreenSaver', 'Lock'] elif desktop_session in ['gnome', 'unity', 'budgie-desktop'] or desktop_session.startswith('ubuntu'): if Utility.command_exist('gnome-screensaver-command'): return ['gnome-screensaver-command', '--lock'] # From Gnome 3.8 no gnome-screensaver-command return ['dbus-send', '--type=method_call', '--dest=org.gnome.ScreenSaver', '/org/gnome/ScreenSaver', 'org.gnome.ScreenSaver.Lock'] elif os.environ.get('GNOME_DESKTOP_SESSION_ID'): if 'deprecated' not in os.environ.get('GNOME_DESKTOP_SESSION_ID') and Utility.command_exist('gnome-screensaver-command'): # Gnome 2 return ['gnome-screensaver-command', '--lock'] return None def init(ctx, safeeyes_config, plugin_config): """ Initialize the screensaver plugin. """ global context global lock_screen_command global min_seconds logging.debug('Initialize Screensaver plugin') context = ctx min_seconds = plugin_config['min_seconds'] if plugin_config['command']: lock_screen_command = plugin_config['command'].split() else: lock_screen_command = __lock_screen_command() def on_start_break(break_obj): """ Determine the break type and only if it is a long break, enable the lock_screen flag. """ global lock_screen global seconds_passed seconds_passed = 0 if lock_screen_command: lock_screen = break_obj.is_long_break() def on_countdown(countdown, seconds): """ Keep track of seconds passed from the beginning of long break. """ global seconds_passed seconds_passed = seconds def on_stop_break(): """ Lock the screen after a long break if the user has not skipped within min_seconds. """ if lock_screen and seconds_passed >= min_seconds: Utility.execute_command(lock_screen_command) SafeEyes-2.0.0/safeeyes/plugins/smartpause/000077500000000000000000000000001316771361500207005ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/smartpause/config.json000066400000000000000000000010751316771361500230430ustar00rootroot00000000000000{ "meta": { "name": "Smart Pause", "description": "Pause Safe Eyes if the system is idle", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": ["xprintidle"], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [ { "id": "idle_time", "label": "Minimum idle time to pause Safe Eyes", "type": "INT", "default": 3, "max": 60, "min": 1 } ] }SafeEyes-2.0.0/safeeyes/plugins/smartpause/icon.png000066400000000000000000000010531316771361500223350ustar00rootroot00000000000000PNG  IHDRשPLTEWZGtRNS $'*,2578;=?@AET^dipy{~eI$IDATmR0@ b"ܷ** ̛N`p3 sRX3?8SLֳfb6ZOc0}):o4]/wŸ3^oZX:k0)S-:%f"ȓS"g*9|UM"MetEm1U?y(.0bIENDB`SafeEyes-2.0.0/safeeyes/plugins/smartpause/plugin.py000066400000000000000000000106671316771361500225620ustar00rootroot00000000000000# Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . import datetime import logging import subprocess import threading from safeeyes import Utility from safeeyes.model import State """ Safe Eyes smart pause plugin """ context = None idle_condition = threading.Condition() lock = threading.Lock() active = False idle_time = 0 enable_safe_eyes = None disable_safe_eyes = None smart_pause_activated = False idle_start_time = None next_break_time = None break_interval = 0 def __system_idle_time(): """ Get system idle time in minutes. Return the idle time if xprintidle is available, otherwise return 0. """ try: return int(subprocess.check_output(['xprintidle']).decode('utf-8')) / 60000 # Convert to minutes except BaseException: return 0 def __is_active(): """ Thread safe function to see if this plugin is active or not. """ is_active = False with lock: is_active = active return is_active def __set_active(is_active): """ Thread safe function to change the state of the plugin. """ global active with lock: active = is_active def init(ctx, safeeyes_config, plugin_config): """ Initialize the plugin. """ global context global enable_safe_eyes global disable_safe_eyes global idle_time global break_interval logging.debug('Initialize Smart Pause plugin') context = ctx enable_safe_eyes = context['api']['enable_safeeyes'] disable_safe_eyes = context['api']['disable_safeeyes'] idle_time = plugin_config['idle_time'] break_interval = safeeyes_config.get('break_interval') * 60 def __start_idle_monitor(): """ Continuously check the system idle time and pause/resume Safe Eyes based on it. """ global smart_pause_activated global idle_start_time while __is_active(): # Wait for 2 seconds idle_condition.acquire() idle_condition.wait(2) idle_condition.release() if __is_active(): # Get the system idle time system_idle_time = __system_idle_time() if system_idle_time >= idle_time and context['state'] == State.WAITING: smart_pause_activated = True idle_start_time = datetime.datetime.now() logging.info('Pause Safe Eyes due to system idle') disable_safe_eyes() elif system_idle_time < idle_time and context['state'] == State.STOPPED: logging.info('Resume Safe Eyes due to user activity') smart_pause_activated = False idle_period = (datetime.datetime.now() - idle_start_time) if idle_period.total_seconds() < break_interval: next_break = next_break_time + idle_period enable_safe_eyes(next_break.timestamp()) else: enable_safe_eyes() def on_start(): """ Start a thread to continuously call xprintidle. """ global active if not __is_active(): # If SmartPause is already started, do not start it again logging.debug('Start Smart Pause plugin') __set_active(True) Utility.start_thread(__start_idle_monitor) def on_stop(): """ Stop the thread from continuously calling xprintidle. """ global active global smart_pause_activated if smart_pause_activated: # Safe Eyes is stopped due to system idle smart_pause_activated = False return logging.debug('Stop Smart Pause plugin') __set_active(False) idle_condition.acquire() idle_condition.notify_all() idle_condition.release() def update_next_break(dateTime): """ Update the next break time. """ global next_break_time next_break_time = dateTime SafeEyes-2.0.0/safeeyes/plugins/trayicon/000077500000000000000000000000001316771361500203445ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/plugins/trayicon/config.json000066400000000000000000000021251316771361500225040ustar00rootroot00000000000000{ "meta": { "name": "Tray Icon", "description": "Show a tray icon in the notification area", "version": "0.0.1" }, "dependencies": { "python_modules": [], "shell_commands": [], "operating_systems": [], "desktop_environments": [], "resources": [] }, "settings": [ { "id": "show_time_in_tray", "label": "Show next break time in tray icon", "type": "BOOL", "default": false }, { "id": "disable_options", "label": "Disable options", "type": "HIDDEN", "default": [ { "time": 30, "unit": "minute" }, { "time": 1, "unit": "hour" }, { "time": 2, "unit": "hour" }, { "time": 3, "unit": "hour" } ] } ] }SafeEyes-2.0.0/safeeyes/plugins/trayicon/icon.png000066400000000000000000000006551316771361500220100ustar00rootroot00000000000000PNG  IHDRשPLTE#j2tRNS  !"#&47JLPRdl|~k\^IDAT`M(r!BP/Nqc-bnekd%$:k| %#eMGASxI "1E( h!E}K0f24bCCi/[d*u TN0?<FTg(IENDB`SafeEyes-2.0.0/safeeyes/plugins/trayicon/plugin.py000066400000000000000000000337101316771361500222200ustar00rootroot00000000000000# Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2017 Gobinath # 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 . import datetime import gi gi.require_version('Gtk', '3.0') gi.require_version('AppIndicator3', '0.1') from gi.repository import AppIndicator3 as appindicator from gi.repository import Gtk import logging from safeeyes import Utility import threading """ Safe Eyes tray icon plugin """ APPINDICATOR_ID = 'safeeyes_2' context = None tray_icon = None safeeyes_config = None class TrayIcon(object): """ Create and show the tray icon along with the tray menu. """ def __init__(self, context, plugin_config): self.context = context self.on_show_settings = context['api']['show_settings'] self.on_show_about = context['api']['show_about'] self.quit = context['api']['quit'] self.on_enable = context['api']['enable_safeeyes'] self.on_disable = context['api']['disable_safeeyes'] self.take_break = context['api']['take_break'] self.has_breaks = context['api']['has_breaks'] self.plugin_config = plugin_config self.date_time = None self.active = True self.wakeup_time = None self.idle_condition = threading.Condition() self.lock = threading.Lock() # Construct the tray icon self.indicator = appindicator.Indicator.new( APPINDICATOR_ID, "safeeyes_enabled", appindicator.IndicatorCategory.APPLICATION_STATUS) self.indicator.set_status(appindicator.IndicatorStatus.ACTIVE) # Construct the context menu self.menu = Gtk.Menu() # Next break info menu item self.item_info = Gtk.ImageMenuItem() img_timer = Gtk.Image() img_timer.set_from_icon_name("safeeyes_timer", 16) self.item_info.set_image(img_timer) self.item_separator = Gtk.SeparatorMenuItem() self.item_enable = Gtk.MenuItem() self.item_enable.connect('activate', self.on_enable_clicked) self.item_disable = Gtk.MenuItem() self.item_disable.connect('activate', self.on_disable_clicked) self.sub_menu_disable = Gtk.Menu() self.sub_menu_items = [] # Read disable options and build the sub menu for disable_option in plugin_config['disable_options']: time_in_minutes = disable_option['time'] label = [] # Validate time value if not isinstance(time_in_minutes, int) or time_in_minutes <= 0: logging.error('Invalid time in disable option: ' + str(time_in_minutes)) continue time_unit = disable_option['unit'].lower() if time_unit == 'seconds' or time_unit == 'second': time_in_minutes = int(time_in_minutes / 60) label = ['For %d Second', 'For %d Seconds'] elif time_unit == 'minutes' or time_unit == 'minute': time_in_minutes = int(time_in_minutes * 1) label = ['For %d Minute', 'For %d Minutes'] elif time_unit == 'hours' or time_unit == 'hour': time_in_minutes = int(time_in_minutes * 60) label = ['For %d Hour', 'For %d Hours'] else: # Invalid unit logging.error('Invalid unit in disable option: ' + str(disable_option)) continue # Create submenu sub_menu_item = Gtk.MenuItem() sub_menu_item.connect('activate', self.on_disable_clicked, time_in_minutes) self.sub_menu_items.append([sub_menu_item, label, disable_option['time']]) self.sub_menu_disable.append(sub_menu_item) # Disable until restart submenu self.sub_menu_item_until_restart = Gtk.MenuItem() self.sub_menu_item_until_restart.connect('activate', self.on_disable_clicked, -1) self.sub_menu_disable.append(self.sub_menu_item_until_restart) # Add the sub menu to the enable/disable menu self.item_disable.set_submenu(self.sub_menu_disable) # Settings menu item self.item_manual_break = Gtk.MenuItem() self.item_manual_break.connect('activate', self.on_manual_break_clicked) # Settings menu item self.item_settings = Gtk.MenuItem() self.item_settings.connect('activate', self.show_settings) # About menu item self.item_about = Gtk.MenuItem() self.item_about.connect('activate', self.show_about) # Quit menu item self.item_quit = Gtk.MenuItem() self.item_quit.connect('activate', self.quit_safe_eyes) self.set_labels() # At startup, no need for activate menu self.item_enable.set_sensitive(False) # Append all menu items and show the menu self.menu.append(self.item_info) self.menu.append(self.item_separator) self.menu.append(self.item_enable) self.menu.append(self.item_disable) self.menu.append(self.item_manual_break) self.menu.append(self.item_settings) self.menu.append(self.item_about) self.menu.append(self.item_quit) self.menu.show_all() self.indicator.set_menu(self.menu) def initialize(self, plugin_config): """ Initialize the tray icon by setting the config. """ self.plugin_config = plugin_config self.set_labels() def set_labels(self): """ Update the text of menu items based on the selected language. """ for entry in self.sub_menu_items: # print(self.context['locale'].ngettext('For %d Hour', 'For %d Hours', 1) % 1) entry[0].set_label(self.context['locale'].ngettext(entry[1][0], entry[1][1], entry[2]) % entry[2]) self.sub_menu_item_until_restart.set_label(_('Until restart')) self.item_enable.set_label(_('Enable Safe Eyes')) self.item_disable.set_label(_('Disable Safe Eyes')) breaks_found = self.has_breaks() if breaks_found: if self.active: if self.date_time: self.__set_next_break_info() self.indicator.set_icon("safeeyes_enabled") else: if self.wakeup_time: self.item_info.set_label(_('Disabled until %s') % Utility.format_time(self.wakeup_time)) else: self.item_info.set_label(_('Disabled until restart')) self.indicator.set_label('', '') self.indicator.set_icon("safeeyes_disabled") else: self.item_info.set_label(_('No Breaks Available')) self.indicator.set_label('', '') self.indicator.set_icon("safeeyes_disabled") self.item_info.set_sensitive(breaks_found and self.active) self.item_enable.set_sensitive(breaks_found and not self.active) self.item_disable.set_sensitive(breaks_found and self.active) self.item_manual_break.set_sensitive(breaks_found and self.active) self.item_manual_break.set_label(_('Take a break now')) self.item_settings.set_label(_('Settings')) self.item_about.set_label(_('About')) self.item_quit.set_label(_('Quit')) def show_icon(self): """ Show the tray icon. """ self.indicator.set_status(appindicator.IndicatorStatus.ACTIVE) def hide_icon(self): """ Hide the tray icon. """ self.indicator.set_status(appindicator.IndicatorStatus.PASSIVE) def quit_safe_eyes(self, *args): """ Handle Quit menu action. This action terminates the application. """ self.quit() with self.lock: self.active = True # Notify all schedulers self.idle_condition.acquire() self.idle_condition.notify_all() self.idle_condition.release() def show_settings(self, *args): """ Handle Settings menu action. This action shows the Settings dialog. """ self.on_show_settings() def show_about(self, *args): """ Handle About menu action. This action shows the About dialog. """ self.on_show_about() def next_break_time(self, dateTime): """ Update the next break time to be displayed in the menu and optionally in the tray icon. """ logging.info("Update next break information") self.date_time = dateTime self.__set_next_break_info() def __set_next_break_info(self): """ A private method to be called within this class to update the next break information using self.dateTime. """ formatted_time = Utility.format_time(self.date_time) message = _('Next break at %s') % (formatted_time) # Update the menu item label Utility.execute_main_thread(self.item_info.set_label, message) # Update the tray icon label if self.plugin_config.get('show_time_in_tray', False): self.indicator.set_label(formatted_time, '') else: self.indicator.set_label('', '') def on_manual_break_clicked(self, *args): """ Trigger a break manually. """ self.take_break() def on_enable_clicked(self, *args): """ Handle 'Enable Safe Eyes' menu action. This action enables the application if it is currently disabled. """ # active = self.item_enable.get_active() if not self.active: with self.lock: self.enable_ui() self.on_enable() # Notify all schedulers self.idle_condition.acquire() self.idle_condition.notify_all() self.idle_condition.release() def on_disable_clicked(self, *args): """ Handle the menu actions of all the sub menus of 'Disable Safe Eyes'. This action disables the application if it is currently active. """ # active = self.item_enable.get_active() if self.active and len(args) > 1: self.disable_ui() self.on_disable() time_to_wait = args[1] if time_to_wait <= 0: self.wakeup_time = None self.item_info.set_label(_('Disabled until restart')) else: self.wakeup_time = datetime.datetime.now() + datetime.timedelta(minutes=time_to_wait) Utility.start_thread(self.__schedule_resume, time_minutes=time_to_wait) self.item_info.set_label(_('Disabled until %s') % Utility.format_time(self.wakeup_time)) def lock_menu(self): """ This method is called by the core to prevent user from disabling Safe Eyes after the notification. """ if self.active: self.menu.set_sensitive(False) def unlock_menu(self): """ This method is called by the core to activate the menu after the the break. """ if self.active: self.menu.set_sensitive(True) def disable_ui(self): """ Change the UI to disabled state. """ if self.active: logging.info('Disable Safe Eyes') self.active = False self.indicator.set_icon("safeeyes_disabled") self.item_info.set_label(_('Disabled until restart')) self.indicator.set_label('', '') self.item_info.set_sensitive(False) self.item_enable.set_sensitive(True) self.item_disable.set_sensitive(False) self.item_manual_break.set_sensitive(False) def enable_ui(self): """ Change the UI to enabled state. """ if not self.active: logging.info('Enable Safe Eyes') self.active = True self.indicator.set_icon("safeeyes_enabled") self.item_info.set_sensitive(True) self.item_enable.set_sensitive(False) self.item_disable.set_sensitive(True) self.item_manual_break.set_sensitive(True) def __schedule_resume(self, time_minutes): """ Schedule a local timer to enable Safe Eyes after the given timeout. """ self.idle_condition.acquire() self.idle_condition.wait(time_minutes * 60) # Convert to seconds self.idle_condition.release() with self.lock: if not self.active: Utility.execute_main_thread(self.item_enable.activate) def init(ctx, safeeyes_cfg, plugin_config): """ Initialize the tray icon. """ global context global tray_icon global safeeyes_config logging.debug('Initialize Tray Icon plugin') context = ctx safeeyes_config = safeeyes_cfg if not tray_icon: tray_icon = TrayIcon(context, plugin_config) else: tray_icon.initialize(plugin_config) def update_next_break(dateTime): """ Update the next break time. """ tray_icon.next_break_time(dateTime) def on_pre_break(break_obj): """ Disable the menu if strict_break is enabled """ if safeeyes_config.get('strict_break'): tray_icon.lock_menu() threading.Timer(safeeyes_config.get('pre_break_warning_time'), __unlock_menu).start() def __unlock_menu(): """ Unlock the menu """ Utility.execute_main_thread(tray_icon.unlock_menu) def on_start(): """ Enable the tray icon. """ tray_icon.enable_ui() def on_stop(): """ Disable the tray icon. """ tray_icon.disable_ui()SafeEyes-2.0.0/safeeyes/resource/000077500000000000000000000000001316771361500166625ustar00rootroot00000000000000SafeEyes-2.0.0/safeeyes/resource/alert.wav000066400000000000000000002012221316771361500205070ustar00rootroot00000000000000RIFFWAVEfmt DXdataf                        #,,(  +ELB$   ,Xf*^Yav1x\z7ler[Z0||pfu> !Q#-kJ? "cy \>G,WV}z7oPP$|ek|e]Z\() EX2 O" c?"LUe70w(47 1v|*f@X(%j+>@ H?AOKQ-AQJLNSX]ktnV^K9i, ()$5ނC/Nԫѫցݶ:z S d  #+R{ {5 '8Cn qt)1~ q>) i[,'#xe(h O@WV|-w,٬Q%A@AM,Ka5M]S# k Iz t4% J'  N j N hh #i 'e@W;{V 2`Z z- .:~i._58"!e'}sC]- XFifm F<C >Oo@ qe< uA{l[ @ B ,?0(Y`Wn\\|%Z.17H%}]B  A f!~ s3 < w tU  XK5& | fF  u  Q. o7w= B`HZK=6JY40]|+H^T I$ M ) 0?>ib H(t;|/v H 'qEcJ_UUU>o rKKbDo~VQhAIs%8'5_,[aM> L wR6Q  6B Qw%o\W"S  %Am4Qdsn@{ 6,M-5hm'%} .  LPC  ^ z BS Y K i^| 5zUz IE )i?DoXP'(qSE?u)wx=nU mm]p a N#93(  ` b 9  iG   DI19 Y XA.D ci> n3bu#22l!^q>Dg-\ p 1o }l=P Q  mv }(  ,Y/ <IaFn P;I]W?J|`R{#!)VK4~Nse)"$h ui 1  D o3E ! NpN O   ei] ) q ) \6>zV&k`.3x0B{&)# 4>zh4 x} Y8 g\6~){ F 0Knr 3r Qc B ( * ^ E <|S{yJLJ~a 6idGiRiv%HIQ~R%f0|j6) f 4  Q [%K]j85%,E  o  q z s XHFdu4}g?SfVLz4F $!^,&6_=` { W W ;G] .@c "   c   ]U 9:<":c9(H8|,9{^fV)N&AT J  9G %  k~p{FYH>] S  } B42"AT=XU^+ r /?UEr o^YzaV95SI S Z d x  }*g  T mIr*  (P# j Z\r N6Kq<t og H:{-eEt)o F?I6>:j ? f   B ~/LMlq= 3:7$RD \ | qo n  #:vYiuSH<_N!"S /%%*qXPDQ;Y-|_ S O5Q D]e2d3|rMs [ Y : "*`%#-Y^w1IS@z,k*V ] _ Y p (  J F y& +[Zy~ P F p n'>x x9"T9.v9o15~, 0s  c  ATKL3XPtW2 * T"\!C.l[HCQ Z 9CsdGRX ,KPYE % Q =  G l  ~ ~'%bg#4M;G r T   g~W/8aZHS%F3[<7?Sh5~:,wr,(} Q  e g \65- {lr1 ( b J S I~R| JMcwIIH: V`j(i/YZUViQH@i{ES=hDxj  + r  G7'Y0hu=[b  D O M oI/FM%PF%-cAgG3iV$/LQGkz;be=#]P\Qu>a ` G > V 2 R ~ U[Si)  / x z8bBY7&.LyTqY[ !\(U1IK=fGTGkRA X  T   " de/1d5 F  b (  } 6oWD',BKUe@hFW@p%'j&6X&vcmHhkz+Re b @ c " 6 V F %%M#$!} | V ` x43g;Jf!+>tOf9$w*_YCCw$r4dm|yGJ   . > }^F$89  8 R  M}2+E$^=az\/Gtgh,VM"%#*{o1lA Q < t  . u  y nf<d % 9 ]3E5nk9L{dNPDN@PwE2OS[1?a 978KVW:: < a 0 W  =}z;A-_3 k > b  +  ET(~0EYj@yX;u|v:%=[8`Pgt&Ui VE0 oVQH  y61h_ L I \ u = (8x.chr O:T/a$OzZ:I=LF\1=OGs3Nrks`8ynJHd'!v 5 " c   ;p9 >L  8 e +[T#hf=?w)`^0V6wE%%!tjg8-J Hg{ Q } j  ) W A   3 a #8X) I j H{Z\yfB&*Ij w.t^G$;UkLPTtY]!IN'a 0+@RYUOC >  / D B ( A   {m]I( Z { l V 5  0Kig`hF3hxt4w&/o/q DJkfb@BUdjl_$Ak3lKq9 F w _ < 5bP R    %X9H B^GfzjBE 7')i(G:P2I ,^#R)v> cs2 z  J M "  p  M  5 a n k k DbPl /`O`/RxybZM#&|; >+"4a)E]Q9Uwu>t | ) 5  , V . ? g p l m V{^  ! 1 \ 1J,k1Un. 1^{R>1VQ9C<F)Q:;.g>^ pov7~0 ! U U P  _ % } * C , #JiNl  \ yC^X}2yi:EjC%lr.^j8WIYJm ~  w l l @ [  U y < S :h%dJt6 F4H# F0J (*mvtUTf}bxS `\I& Y GN[ou / g x l ^ ' L n  V  2 =\*)9YmV#,M;e\9iU3k,eRZ"TDYD"8sWi U \ )   . ^ A * e D '   } ,gBlqB8#WquH"TZ|6C:ZP9R-,BH#&q7=m+}hV-8 H 7 $ $ 8 T W  a x  za](jPo^L{2tA a}p-'@C y; e}k&Hf)vR:TRVEf  g 6 k   T g  * j 4M@n-i`0ZjDNm[H:/|Wkle]zi]WRD*&)h0RB% N b n W ) `  : o s A < ? Ez WXf bM a:vB&#IAa]gN# -@FDFzpV>- .#p"k.lFjVOz\  6 s ) @ E = T 3 N c t i : > Z ] Jv'St8D9YsXc^gm]nr>u~T<WQA;x7rR,n%zD\ j   . m  H  F ?  S  u   xVXn ;T?;?UQ\!vhF r]4z8 C%e4;j`[/8KjOdFeEP5 8 " m 1 t t ` g } w I S 3 OmtTR2X8DcDB ce8HmT`8vZRD*r#58g{=YL H = F @ G \ s | e b v { M 1 ]a5%{0 Z>F9L,C~&s%46:^lOCd.&a#|g:_LrI k#.QF  E  - ^  . + w '  iCXK)$\Pvi MuV~k.k- Bmd@;=2g-STA"$e]} d 1 q g  7 [ ` + oTLxltGw f +/Tk }S8~QJ Ej V_<*W& N 2 J  Q ! [ J J / j n R'Lq;; l Z])p9/U%Px:`\s@w|EM^"   T  J d S , q C   x 4x@%-{{D5HQl-3kN~K +n.'kp>viF, ud:KFp1D ) o  Q q c d o | t < V  PQmzA~'GAW\LFXrDe)Fd* W*#'h%:WK'ex b 6 ] @ O 0 e V   [ ? _NPs %)v9;?OGzT-\]OaP*gOSTVJ=e 0M6u   L g u ( Q   . a  r,ZjcZlA>LK@=1yA =y6h0f%z6` sl rJGE  G i 5 a  ' r " X  ?8C2;B*^~/UdTMB{F*$MUD|V w ulJ|v -j N 6 K W o 5 a p t  q K $   Nq-U7`rzsG$,LI-f[MJf~R0eg!w"8 +ES , a ) N    ( D S V W d o l R  ? J SE&D_bS8by=TXEB?AWf&i1 u=bX9GB+$ot-q Z J  # < S h 6 E ` pg+qq* Z*\%5z$ifoipD !C|i \f#f NY8%>i24g! u  ' ? Z w  : i } o S  K B uMmf0 :!TY2k r  E j | | } } x j N y Z -xQO;ZD;9K S H[:Q;RY*g =`LIGaZ!GhY a 2  2 E U n I   ftSSZP(?5V`J%I_t] JNHO[Pr G3*Q G  ^  = Y v   G 3 9 P["~Y1B&}>/6 5u${ hSU% 2ZDbe$HXu I  \7n M  L   1 K f  4 q  @ !l:+' ~d63; oWo+F;ngkCVJW]_0Dj FNc8,CB , M ^ l  + ? W m o N .  N   :-"\#}lEF0/jjBfTHRRON7^+bFfNcUUjR g # O z  < g \ & D C +gRHtmU3KeXx-S6YVA 8dB"h#~"5lb8&!GM N  ; i - X v  ~ x ` / * ; &&1|VFygk[-Qhi~^ s#c)CG(wiwa g J , [ {  * P t x T ! d ? MM>~ya6h>IU{'j mN. kQsGIO 'JbE ~|b;M  6 \  . H e m V 7 , Z E&&zE ye5jQ>D*tS(vS)N~r C5}44'3l M | % ] $ : F L R T W V Y X K ( 7 V ao y{nu z?xSWxp#9]%q&d7HYpR5r4_0y%.5rD \C{:  S  - E U Z T G ( u ( x  =B$~cI<>AD]e+q)Cp9 U+/>P{s vOknI}K{I Z T 8 c  4 G F 3  s C  S }rYJJLHeUTQI9Nn7cl!b0tos= |"F<4b+R`-G't^ J  L w  " % #   ~ @ 4 BPWMHD>,uZB@Pyn*_N`86{$}:vKRr~q>g>zN, j  F o S  v  D]fjqu|~zjI1$#1\x8~Bu7e7A1yz.])Y3/f;w4#d" [ $ H j U  - d  ~fH/-DWu TZ{4{<nG( AulGQl.[-d!}Y8 _[& ` " L r [ ! ' f| !eet*2Hs*Z y8f>#VS'&Fh;p3ZmoU lP6X/q$ U  B f z L  I /6?NWX]VOSdq S9Z>[3 0gxdo O2n3PY:bxT#z Cx > t  & > Q _ e h d a Y P 9  a  r '9400:=>@9?i&;8x4U GhH* (L{c9>a3i0m r(M/M2u ? w  1 G X h s v p h Y D *  M ;Zeemoft~uE-p#d'DVnB 8r~DmEQ^<HwHU#] G   = ] u   z s h T 8  e  [$!'%0G_T+a"Ez O [ [ Q :  K  Y&.57HUE4:MxVz Go= CwCv_QNSe?lan4Ps($l+G(0t f I t  " 0 9 < 3 ! G Bbmmjqsrtu7GX}V_`(h.~`J956Fdv?*5Pt2Xi|g+5vK5{,\0 a  & 1 4 0 )   X  Yv4=D>. %9PpR?h)t8Um\TZrh+ E`-ASV+H n?.h&e J x   # ' '   o $ vMVbpg_ZPNSXwTaUIT~gUMMYu$w>+9Jo'Eq "n&~:d#s T' [  & 1 7 6 7 .  s + %\|~  tuT5x"Hl1r5s`W^p$xG59Mg +GZS.Mg9.lGx @ o  ~ H vZ2FRjtiYYj/e?C\|3b'hWJCHZ{2VBDVs1[! x?j;O2j > g    N  /w4EYq{{ztn~ >yA6f"STyokm|c*e1?w/Ua0zi"km~ .CTgmcFv7c`0^ A a { { V ' SJ~8CGZgjs *n[LH FS5vvUN[j{7Ue\+Sz>=|Dm 4 Q k ~ ~ n V 7  h_'Ndr 5aE,7zZg`9`5q`!X 6 W v  c @  p&w:[z )1/3@Tz_F8j/l%d0[Z*0=Me~ t?QT<.a # @ Y m ~ q ` M 0  v4*Z7N^gr|$O']=Es%\(,mxTDEZo.CJ>Lj5;#T 0 S o ~ m T 6  ^i 9d ##0:Ig@)~.^[i;6sh5 );GToxL g'@\ >o 0 E V ` f d ^ T E 1  MZ;i$/8BHRi2~(ui`#^sE!9lOj_]`p)5%W dz1[-a " 7 F S Y ^ _ Y N 9  a*h!9K`mkm{ 1obR]a Pg?!N)R-(9OcY<f''|-OEq  4 D K N I A 2  H\5e.?NQWg X<&7i(]yO/QeqFPc Go9_v4W"\JS`(i+kN:.(.6F^03kH65=M[aY: h[Y_Q6[}[*|0.a;_{$I~P,tR__${^J:24=Pn Xd.x",1, o/'~2)q(ZCc~qR.E=v=b|  6Z Y'ZOv4r3KtZG:8?OjB7cLLW]hrVlm!})w(Y<`uNdoT(:Vu6Y'meG|?Z#qU>0+/>Rm>@vlly d/LX?Et(Oq~PYdBg.Sr 'W/sX_n8Nzh\WX]l99 z[DDWfokU-W bc [)b&C_yf>erKu +Jp8^,eBIz6r6O~nd`gu%i e*zpr||uq_.d[ X/W#Fd{~eJ$8AP2Qn*TL99f%n4NymimyL1U:+)('-.)z7(z pa 7e )F^o}whR1 f -q 7Wu2]7a3piBJk6}x}2o[#o\X`eh`Ey76(y\1[ @[qw_@v4L.Z|6^~!F|\OQt9X"wA]L qD% g<TF2cCo%AYo}nY?!Z~(c)Pz5Wn#P0'~1f+m.Y/ Ch$l\SRXVE)foloNAo *CYjtwqk_R<g$@0g)Ki}Aj)?MZ`c]TC-h-XR(XJt)Qc a `w6Z$W0/n5\S1_#Q}At BzVdOh5sFBt=LcMA6,j;M@,wF{ 4^%+)%{E |/+h-X.^J|ZMZW~F~W18`cuC{upfR0^l XCJ} 6^""k6s$tIr1d(T~J*x ~3g*Pd@ Es1.X3 udEp&|!ucC}/Vx *..* \([R2g/^LyBzhpDj: Y7 /XKHwXC5* f8JF2z=v;a $&&e.n$&h8j/\CtVZ hTQ oK/,Jrh i1pT>1#o>I/ u AqGo Y%guZ-b6h(Ner(;l4f5vQ6$ 0Ee<0P$ zvwiD edRJW.Uz OMM0k7l5d2iR[t-wBxEpVA948@Rj%j[xK(whT5ikMBS.W|  Y%j"'l AtJV&aA;UY'b0fO@65:FYu= u.bD0! d<esog5iJs  OW gU2g>s >lC5=E{C q@ hN:/*+3C[|R=]/ {dM9j:PD5K 1[ l=DR:vJ['R"kn|2q9\(uW>-$!$1Da&lm3tUA7+j5I7c"T 4Z}wIPZ@xD|O&]=:Bck9 yHk[QPVbt"`Hg:raP9AB!iFI},Oqb3=M;X+b/`/z'6CzCuEu]K@<@L^y0qZyI# pZ<DH8$o,^9ZykC`}%u[6qII~d e=KW)sjgny)d=EzV7rU4_V;1|4e2Qo~^6 WsmT/n GL%p~/Q]*{O%-a*z%GgN1RphTGJxDevP$|9LE.oU2f9} r#:b q> zM" Ap2TsqHp+>.qQ4rCyZVj M g4{O%BxIF pH*bD$SN'oM4]1PmpT3 t7[ b S3vV.f QQ\ w5k>d;;l)uv7pL.`1N@+xN1_!?\wuZ8u5SS:xV5oM57Kt5c6V24]PA]*vV6zH fdEcGu-Lf~oQ,Y<7~ cDY2w y,>_}N rM( )N{'mg'X*oIOidI_5b<Vk}saG)k.XZN7|b@}c ` p,j0e5Y5/U5{v5f:~Z0g#z"qHR<h4NdwuaJ)n0X[J.sZ;w`hG}@rAa?"8` PA]*jH#b3SM%d4wMu3Ndt|o^F+ K 07.x]E$dUbF};g;vT7   1Ll9n$R#gE$d(,}\0z'Q|3Ph{jQ4|Dq#z'v^H)b>7DbP{LlH)&Cj J3E sDgBu42 L[<f2I[jx~udP5j/_kbO7uJ)x#6XGvGoQ6!  !9Ry]EWS+oFr,(tJX2_%=Rft}}qcO7h-W_ [G+iC+{%5`W!^0bD,$3Mj,mP^#X+f8`fR0vHIp<VjxwiU=h*Uf]H.pP3)Bl&j2tI~bOC;:BL^uW,{)G q= sCm%zb< L+U#9LZgkmjcYH2l6l )&vbK/sgw-XPZ.hM8.((1?Sm ^:?_"T%_%:4U cDo)BUblpokbUA) _&^s ti\C]P^E|B |R&o[OHHNWeyLb e}A sCu8I@^'h-St(5?A@;0 V#k$AOSH.pQSp+g!XjDzj`\_gy*c0)@k3i8ak_3v0k 8`&9EKMJD8(d.v0LWWK:!cVp.k(g.pEpaWUZeu+b1.H o:qDs%uU)k=y<c+BTajkg`VG1yC ATRI<$dJEd"UT#qDyldcgs:rGE\ V(\y*~d;|=u1Y4EOWYYTE6_*q&76-|cB/3O H\-yP)~}(XXLZMKs)h<~BzCl)9ISXXTL>(LMelaUB)rs'RDT%xQ(I}E5De2g,PU=G K8Zz*..,$Y'r.NXWTB,umF;}Fe9}JMESs:j/Q\J\ZEj")*)!h9Q4AC@2xd c=o)k7|T'|uv|OOCRtBt=\f R'k1l'Ln|U%?m161}!h VUn)\d/V.9j"jXd$Lw=`gO%dM8[y qHr0X krrj]RY z5j,KlD &Q=!t%Ce-Vr"v\*k&_!Fg!#  ^0Ciz'}*{$vbX]{8r1IpN, I4D2l(Mn   ]2U:Q\[WG>Ek*n/}HsO* #Jv%iQWp3Vt.5^1q Q#GhmEAq'@JPN<0Ap2t2|FoM+ >eBlr+L k)>5c+hT%Fdh@t7i 8FLMC=Gi(u7R$[8 BnEifv6Y{7< h'dJ}?]wiFVMi{(.1$rz+X^ tDrM, ,Q|\96Eg*K^ [9~:w$Y >YsfCQGdv$(}%tmv&V_#tBnI' 'KsS-~+@c(I e\7{3p$_)HewY8G?[ gojfco"O\"P!bE,)@`Q#phs1Pm"|"nIP:o6TplHO?X dmqkb eFSo>fH. +CdNcY f~>^phCC}%W"A^xiJ&i/e:P^ c ]Y m$SZR*rR8"#;\T$piz8Zt,(vJD2f$?YtnR+h)a3BKNMNdK\"zJ eE+3S|O oo"~9Wv,*y K?x!V4Nf}z]<TNl}-6758YK StGhK2 &?Q j"0+z K:s$`9TmiJ%o5r+IZgqkq =p3~C h=fM5  +B]5oA9EYy8K?[S0a6MfzqZ=k4v/Pfv%0/7VI \![/ eN6)#!$0?WqIP?DYw3C;[L,_-G\oxbJ- \#g$Jex%,-7WMW[3oXF:55;EVl.d'n ZVas,;6 K4lEu7L^n|rbL3uB P y.Mapw#1TRk0d<|gSD>>FQb| :o/ybZ ey0;+vE7qHw*?Qaovz{xm_L5\'u4e9Raho EH ^%`:~hWLFFLXlKD(xv';JRFXI@n(;M\hossng[H4\(x6c5ELRaz3h*xA ~S-vaSKGKTdy*]Y;/2>LVJ[8n =h $9JWafkgbZI7k> \Mq&=N]m By:Q[3|eVGDEM\pOD'wq${.;?.vF<q>j !7K[hmplfZK8"qB [Ij1?HSo*l3JuI$vcSJDGN\q%W K/%w$~2CG4~D/i >k  3ET^dgd^TG3j9N@g5DETx5v=T~T. }iYPOQZi}/a^A76?FG5|E/d1[$6DQY\\WM>-d5RDh=T`t)SMc+oI'oediqG{2x ZMOW b aIT:t=i*;IV\__XK=(X*H{7^}0CO[~8v:W^8wka_bk{E{3y ZNNTWT9}@}&[(Qv$2?HJJC8)T&Bv3Zu);HX x1p4T^8|ojio{#R:~\MMU]YB I0j 5X}&2;AFD<2$tGn1j$Lk-8, j>h(_A`x'4Fn*wA _(c;xppu1_CaOHKLD$i'`@w 6\ &+0,$ `3a#]>^x,7Mu0n5[(kF%zx|;f JcOKNPJ.r2mQ;]|h?x>=l%Gar!9c`%|C\:{{?kO!m [VXZR2x9uQ?d"" oHH Cp(I`w(<_`(SeA{w~=iV+uc ` chbDM)\<`#" rKJ Jy2X t%9Ou0s9_*qL- 2[0oD'xqrl Z3y<x"X1Rt g>{?Cx3W t'r-Rl2Jp.v;c1|W5'P~%e:l ab ^R/s0mN/Sp  yV/h1s3h$Fc2Jp.s8e1uN--V/m=#rgd `R.r,f >p>_{qP)k2w8g Cby+Hu0u<f3^?!6_2p?$qfaXH!g#]4f2SogA[$d!V 7T p"Br1w<l9kN16_/p;i [SI;]J~Gx!Cc}tU2 O` T7Zv(Gw0t:p= hG-#Fn:xD!j[QG8W EzI},Ml`>Z&n-aGh5U G \&[)hN1!>aOS-|h ZQ;Q I%[6TrkH [$k)aCf3WGX!T"`C*=a Y]<#tg \N$eNP#=XpcE#tA VL|7\z/PBMQcH- 'Fi%]_:naS<R;p5f ,Kg~cCo9OIu.Sr&E{:NS!}aD,+Jl"XW0zg[N2zG4m <j *CZqiM/ _-C@r*Q w.R AN~NfK20Ot.e"d<#pbT>T CwAq5Ph}nW6g3H Cs-T w*K>RV%hN4)GiTU's \L: k:}0g+[7PezybF%S y<{8g!Jk#J=LP"nR:#3Sv*b]3~h ZH2{G2h*Y8Rfys[?!V"z<z:m(R y-S FZ#b6 x\E. %>]~2k&h?!naK3{F1f'V4Nex~gN0 a,ECv/Z7bVk6p@sZE0!  (o+X:e!^ s? zKrZE0   %:UsF}4uG)waK,r7wN :f(>Qap{wjXC) xHr8y:q,W{2[Ti7uDrXC2!  1Ha~O:{M+wbN4~G,_!Mv3GYiv}paN8 i; g,t3n)Z;c^"yHT'jS?. %5KbN9|I$o [D%k3pO9e  7HZfpz||wqgYE1]0Xb!ZEm%Q Nm7|P%qZI:,%"$+4F[t3c IZ2|aD$j-iBs&U.AP_lu{|xpfXG2h8 e*p0h$W8f"d*Mc9ygUF8/+(.9H[r+_@J%r W;d+iDu)R}5HYfr|wobP9"pAq6}?{7f"Hu2m,Kc7~iXK=4.,2?K]t.^=}IlM5])gFu0\ %:O_pyuhVB( zN~BK>r,U =}A_.wN&m]QIDEJTat=k K O&oV;g-hCs'R|*>LXclpomdXI7# Y,_$o1n+^Fs2v:[+uJ#o\PHEDGP_p9hH N$lP0~ RS,]7`$4BNW]_^YPC1Z-a*t3r,aHw4{>a.V/ ueYOJHMT_q 5dBHiL0~YZ1`:b+<HT[bda[RD3\0f.y8s/bN ~=Gp?e?pb[VUW`oBrK L"iK.wOP&X 3\%6FNVZ^[TI<+}U+d.z:w6l&T@Ik: \5yl_WSSXam}AnJ O iH)sHJ'X 6^$5AMV[^]XOA/\1h0|<}<o,]OUvCf>tha[X\bpGsPP iE i=AxKz$Ko#.9CHJKF=0$~W-h2EFy7eTZ"NvM) rjdadkw@n D~= O-x U+n'`3dBf .<EKQPKC8+`4 n8H H}7d Wb*\+~Z5yusx 3YT IX2z QbU(\1Z~ (5?DGFA8- {W0m5J J Ez4m.u?oAmI'~ 0ZT K\8^/s.kBsEm"1<DKONKB7'[3q=TXMZV/a5Y~ .;FNRTOH>/d;H_`UCu5FvHwR.;b&]Q`4| P"g X)Z&Jm#*,.(!lH h3S\TIASO#yU0~{~'OzF>KiC[Q"PGj  ',,)"kEd.G PPH@OzM ~[7 /YRFS)pG^S P}@d"!`;U!y>L L >x9PZ-c@":bUGQ%j? P E|It>a }Y5 Pw<I L ED[%a5 lK,>eRE N f= P F|HvBf  f@^+KTXUUn7pD}Y: (Im%YELc9~ L?w@l5[~ $(''  sP*uC `$l.k+a!a#zCT)hH+ )In"XDG^2xE:r 8e,Ot jF l:Xc%`SPj5uL#gF+7Y|.dL M^+q8u(b*W Ee   {\;c4Xg)j)h'l1QY/nN1+Ko$VA? Oa+kTJt5VwtU1 a-Uf(i)h&i/V"hAdF+ #@^0cD?J]"aIDm /QouT1 ]+Rh)p.n.q3U$kAaE+4Rv!V9x8{FY!^I~@m /QpxY6c/Wi+m/l)p5Z(oG!gG+7Wz'[:x5w>LQ >u 9f#FewX8i8e-z?B|;~D i8W0 vW<% $?^*\;y5w? SVD{;g%GgSafeEyes-2.0.0/safeeyes/resource/ic_plugin.png000066400000000000000000000007511316771361500213440ustar00rootroot00000000000000PNG  IHDRשPLTEL3tRNS ,-.38:>@ACioeIDAT(} 0 E" "rP )ImL;誨n~Ts.3n). """ RPC server and client implementation. """ import logging from threading import Thread from safeeyes import Utility from xmlrpc.server import SimpleXMLRPCServer from xmlrpc.client import ServerProxy class RPCServer(object): """ An aynchronous RPC server. """ def __init__(self, port, context): self.__running = False logging.info('Setting up an RPC server on port %d', port) self.__server = SimpleXMLRPCServer(("localhost", port), logRequests=False, allow_none=True) self.__server.register_function(context['api']['show_settings'], 'show_settings') self.__server.register_function(context['api']['show_about'], 'show_about') self.__server.register_function(context['api']['enable_safeeyes'], 'enable_safeeyes') self.__server.register_function(context['api']['disable_safeeyes'], 'disable_safeeyes') self.__server.register_function(context['api']['take_break'], 'take_break') self.__server.register_function(context['api']['quit'], 'quit') def start(self): """ Start the RPC server. """ if not self.__running: self.__running = True logging.info('Start the RPC server') server_thread = Thread(target=self.__server.serve_forever) server_thread.start() def stop(self): """ Stop the server. """ if self.__running: logging.info('Stop the RPC server') self.__running = False self.__server.shutdown() class RPCClient(object): """ An RPC client to communicate with the RPC server. """ def __init__(self, port): self.port = port def show_settings(self): """ Show the settings dialog. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: proxy.show_settings() def show_about(self): """ Show the about dialog. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: return proxy.show_about() def enable_safeeyes(self): """ Enable Safe Eyes. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: return proxy.enable_safeeyes() def disable_safeeyes(self): """ Disable Safe Eyes. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: return proxy.disable_safeeyes() def take_break(self): """ Take a break now. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: return proxy.take_break() def quit(self): """ Quit Safe Eyes. """ with ServerProxy('http://localhost:%d/' % self.port, allow_none=True) as proxy: return proxy.quit()SafeEyes-2.0.0/safeeyes/settings.py000066400000000000000000000576301316771361500172600ustar00rootroot00000000000000# Safe Eyes is a utility to remind you to take break frequently # to protect your eyes from eye strain. # Copyright (C) 2016 Gobinath # 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 . import math import os import gi from safeeyes import Utility gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import GdkPixbuf SETTINGS_DIALOG_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/settings_dialog.glade") SETTINGS_DIALOG_PLUGIN_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/settings_plugin.glade") SETTINGS_DIALOG_BREAK_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/settings_break.glade") SETTINGS_DIALOG_NEW_BREAK_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/new_break.glade") SETTINGS_BREAK_ITEM_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/item_break.glade") SETTINGS_PLUGIN_ITEM_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/item_plugin.glade") SETTINGS_ITEM_INT_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/item_int.glade") SETTINGS_ITEM_TEXT_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/item_text.glade") SETTINGS_ITEM_BOOL_GLADE = os.path.join(Utility.BIN_DIRECTORY, "glade/item_bool.glade") class SettingsDialog(object): """ Create and initialize SettingsDialog instance. """ def __init__(self, config, on_save_settings): self.config = config self.on_save_settings = on_save_settings self.plugin_switches = {} self.plugin_map = {} self.last_short_break_interval = config.get('break_interval') self.initializing = True self.infobar_long_break_shown = False builder = Utility.create_gtk_builder(SETTINGS_DIALOG_GLADE) builder.connect_signals(self) self.window = builder.get_object('window_settings') self.box_short_breaks = builder.get_object('box_short_breaks') self.box_long_breaks = builder.get_object('box_long_breaks') box_plugins = builder.get_object('box_plugins') for short_break in config.get('short_breaks'): self.__create_break_item(short_break, True) for long_break in config.get('long_breaks'): self.__create_break_item(long_break, False) for plugin_config in Utility.load_plugins_config(config): box_plugins.pack_start(self.__create_plugin_item(plugin_config), False, False, 0) self.spin_short_break_duration = builder.get_object('spin_short_break_duration') self.spin_long_break_duration = builder.get_object('spin_long_break_duration') self.spin_short_break_interval = builder.get_object('spin_short_break_interval') self.spin_long_break_interval = builder.get_object('spin_long_break_interval') self.spin_time_to_prepare = builder.get_object('spin_time_to_prepare') self.spin_postpone_duration = builder.get_object('spin_postpone_duration') self.spin_disable_keyboard_shortcut = builder.get_object('spin_disable_keyboard_shortcut') self.switch_strict_break = builder.get_object('switch_strict_break') self.switch_postpone = builder.get_object('switch_postpone') self.switch_persist = builder.get_object('switch_persist') self.info_bar_long_break = builder.get_object("info_bar_long_break") self.info_bar_long_break.hide() # Set the current values of input fields self.spin_short_break_duration.set_value(config.get('short_break_duration')) self.spin_long_break_duration.set_value(config.get('long_break_duration')) self.spin_short_break_interval.set_value(config.get('break_interval')) self.spin_long_break_interval.set_value(config.get('no_of_short_breaks_per_long_break') * config.get('break_interval')) self.spin_time_to_prepare.set_value(config.get('pre_break_warning_time')) self.spin_postpone_duration.set_value(config.get('postpone_duration')) self.spin_disable_keyboard_shortcut.set_value(config.get('shortcut_disable_time')) self.switch_strict_break.set_active(config.get('strict_break')) self.switch_postpone.set_active(config.get('allow_postpone') and not config.get('strict_break')) self.switch_persist.set_active(config.get('persist_state')) # Update relative states # GtkSwitch state-set signal is available only from 3.14 if Gtk.get_minor_version() >= 14: self.switch_strict_break.connect('state-set', self.on_switch_strict_break_activate) self.switch_postpone.connect('state-set', self.on_switch_postpone_activate) self.on_switch_strict_break_activate(self.switch_strict_break, self.switch_strict_break.get_active()) self.on_switch_postpone_activate(self.switch_postpone, self.switch_postpone.get_active()) self.initializing = False def __create_break_item(self, break_config, is_short): """ Create an entry for break to be listed in the break tab. """ parent_box = self.box_long_breaks if is_short: parent_box = self.box_short_breaks builder = Utility.create_gtk_builder(SETTINGS_BREAK_ITEM_GLADE) box = builder.get_object('box') lbl_name = builder.get_object('lbl_name') lbl_name.set_label(_(break_config['name'])) btn_properties = builder.get_object('btn_properties') btn_properties.connect( 'clicked', lambda button: self.__show_break_properties_dialog( break_config, is_short, self.config, lambda: parent_box.remove(box), lambda cfg: lbl_name.set_label(_(cfg['name'])), lambda is_short, break_config: self.__create_break_item(break_config, is_short) ) ) box.set_visible(True) parent_box.pack_start(box, False, False, 0) return box def __create_plugin_item(self, plugin_config): """ Create an entry for plugin to be listed in the plugin tab. """ builder = Utility.create_gtk_builder(SETTINGS_PLUGIN_ITEM_GLADE) lbl_plugin_name = builder.get_object('lbl_plugin_name') lbl_plugin_description = builder.get_object('lbl_plugin_description') switch_enable = builder.get_object('switch_enable') btn_properties = builder.get_object('btn_properties') lbl_plugin_name.set_label(_(plugin_config['meta']['name'])) switch_enable.set_active(plugin_config['enabled']) if plugin_config['error']: lbl_plugin_description.set_label(_(plugin_config['meta']['description'])) lbl_plugin_name.set_sensitive(False) lbl_plugin_description.set_sensitive(False) switch_enable.set_sensitive(False) else: lbl_plugin_description.set_label(_(plugin_config['meta']['description'])) self.plugin_switches[plugin_config['id']] = switch_enable if plugin_config.get('break_override_allowed', False): self.plugin_map[plugin_config['id']] = plugin_config['meta']['name'] if plugin_config['icon']: builder.get_object('img_plugin_icon').set_from_file(plugin_config['icon']) if plugin_config['settings']: btn_properties.set_sensitive(True) btn_properties.connect('clicked', lambda button: self.__show_plugins_properties_dialog(plugin_config)) else: btn_properties.set_sensitive(False) box = builder.get_object('box') box.set_visible(True) return box def __show_plugins_properties_dialog(self, plugin_config): """ Show the PluginProperties dialog """ dialog = PluginSettingsDialog(plugin_config) dialog.show() def __show_break_properties_dialog(self, break_config, is_short, parent, on_remove, on_close, on_add): """ Show the BreakProperties dialog """ dialog = BreakSettingsDialog(break_config, is_short, parent, self.plugin_map, on_remove, on_close, on_add) dialog.show() def show(self): """ Show the SettingsDialog. """ self.window.show_all() def on_switch_strict_break_activate(self, switch, state): """ Event handler to the state change of the postpone switch. Enable or disable the self.spin_postpone_duration based on the state of the postpone switch. """ strict_break_enable = state self.switch_postpone.set_sensitive(not strict_break_enable) self.spin_disable_keyboard_shortcut.set_sensitive(not strict_break_enable) def on_switch_postpone_activate(self, switch, state): """ Event handler to the state change of the postpone switch. Enable or disable the self.spin_postpone_duration based on the state of the postpone switch. """ self.spin_postpone_duration.set_sensitive(self.switch_postpone.get_active()) def on_spin_short_break_interval_change(self, spin_button, *value): """ Event handler for value change of short break interval. """ short_break_interval = self.spin_short_break_interval.get_value_as_int() long_break_interval = self.spin_long_break_interval.get_value_as_int() self.spin_long_break_interval.set_range(short_break_interval, 120) self.spin_long_break_interval.set_increments(short_break_interval, short_break_interval * 2) self.spin_long_break_interval.set_value(short_break_interval * math.ceil(long_break_interval / self.last_short_break_interval)) self.last_short_break_interval = short_break_interval if not self.initializing and not self.infobar_long_break_shown: self.infobar_long_break_shown = True self.info_bar_long_break.show() def on_spin_long_break_interval_change(self, spin_button, *value): """ Event handler for value change of long break interval. """ if not self.initializing and not self.infobar_long_break_shown: self.infobar_long_break_shown = True self.info_bar_long_break.show() def on_info_bar_long_break_close(self, infobar, *user_data): """ Event handler for info bar close action. """ self.info_bar_long_break.hide() def add_break(self, button): """ Event handler for add break button. """ dialog = NewBreakDialog(self.config, lambda is_short, break_config: self.__create_break_item(break_config, is_short)) dialog.show() def on_window_delete(self, *args): """ Event handler for Settings dialog close action. """ self.config.set('short_break_duration', self.spin_short_break_duration.get_value_as_int()) self.config.set('long_break_duration', self.spin_long_break_duration.get_value_as_int()) self.config.set('break_interval', self.spin_short_break_interval.get_value_as_int()) self.config.set('no_of_short_breaks_per_long_break', math.floor(self.spin_long_break_interval.get_value_as_int() / self.spin_short_break_interval.get_value_as_int())) self.config.set('pre_break_warning_time', self.spin_time_to_prepare.get_value_as_int()) self.config.set('postpone_duration', self.spin_postpone_duration.get_value_as_int()) self.config.set('shortcut_disable_time', self.spin_disable_keyboard_shortcut.get_value_as_int()) self.config.set('strict_break', self.switch_strict_break.get_active()) self.config.set('allow_postpone', self.switch_postpone.get_active()) self.config.set('persist_state', self.switch_persist.get_active()) for plugin in self.config.get('plugins'): if plugin['id'] in self.plugin_switches: plugin['enabled'] = self.plugin_switches[plugin['id']].get_active() self.on_save_settings(self.config) # Call the provided save method self.window.destroy() class PluginSettingsDialog(object): """ Builds a settings dialog based on the configuration of a plugin. """ def __init__(self, config): self.config = config self.property_controls = [] builder = Utility.create_gtk_builder(SETTINGS_DIALOG_PLUGIN_GLADE) builder.connect_signals(self) self.window = builder.get_object('dialog_settings_plugin') box_settings = builder.get_object('box_settings') self.window.set_title(_('Plugin Settings')) for setting in config.get('settings'): if setting['type'].upper() == 'INT': box_settings.pack_start(self.__load_int_item(setting['label'], setting['id'], setting['safeeyes_config'], setting.get('min', 0), setting.get('max', 120)), False, False, 0) elif setting['type'].upper() == 'TEXT': box_settings.pack_start(self.__load_text_item(setting['label'], setting['id'], setting['safeeyes_config']), False, False, 0) elif setting['type'].upper() == 'BOOL': box_settings.pack_start(self.__load_bool_item(setting['label'], setting['id'], setting['safeeyes_config']), False, False, 0) def __load_int_item(self, name, key, settings, min_value, max_value): """ Load the UI control for int property. """ builder = Utility.create_gtk_builder(SETTINGS_ITEM_INT_GLADE) builder.get_object('lbl_name').set_label(_(name)) spin_value = builder.get_object('spin_value') spin_value.set_range(min_value, max_value) spin_value.set_value(settings[key]) box = builder.get_object('box') box.set_visible(True) self.property_controls.append({'key': key, 'settings': settings, 'value': spin_value.get_value}) return box def __load_text_item(self, name, key, settings): """ Load the UI control for text property. """ builder = Utility.create_gtk_builder(SETTINGS_ITEM_TEXT_GLADE) builder.get_object('lbl_name').set_label(_(name)) txt_value = builder.get_object('txt_value') txt_value.set_text(settings[key]) box = builder.get_object('box') box.set_visible(True) self.property_controls.append({'key': key, 'settings': settings, 'value': txt_value.get_text}) return box def __load_bool_item(self, name, key, settings): """ Load the UI control for boolean property. """ builder = Utility.create_gtk_builder(SETTINGS_ITEM_BOOL_GLADE) builder.get_object('lbl_name').set_label(_(name)) switch_value = builder.get_object('switch_value') switch_value.set_active(settings[key]) box = builder.get_object('box') box.set_visible(True) self.property_controls.append({'key': key, 'settings': settings, 'value': switch_value.get_active}) return box def on_window_delete(self, *args): """ Event handler for Properties dialog close action. """ for property_control in self.property_controls: property_control['settings'][property_control['key']] = property_control['value']() self.window.destroy() def show(self): """ Show the Properties dialog. """ self.window.show_all() class BreakSettingsDialog(object): """ Builds a settings dialog based on the configuration of a plugin. """ def __init__(self, break_config, is_short, parent_config, plugin_map, on_remove, on_close, on_add): self.break_config = break_config self.parent_config = parent_config self.plugin_check_buttons = {} self.on_remove = on_remove self.on_close = on_close self.is_short = is_short self.on_add = on_add builder = Utility.create_gtk_builder(SETTINGS_DIALOG_BREAK_GLADE) builder.connect_signals(self) self.window = builder.get_object('dialog_settings_break') self.txt_break = builder.get_object('txt_break') self.switch_override_duration = builder.get_object('switch_override_duration') self.switch_override_plugins = builder.get_object('switch_override_plugins') self.spin_duration = builder.get_object('spin_duration') self.img_break = builder.get_object('img_break') self.cmb_type = builder.get_object('cmb_type') # User cannot remove the last break not_last_break = (len(parent_config.get('short_breaks')) + len(parent_config.get('long_breaks'))) > 1 builder.get_object('btn_remove').set_sensitive(not_last_break) grid_plugins = builder.get_object('grid_plugins') list_types = builder.get_object('lst_break_types') duration_overriden = break_config.get('duration', None) is not None plugins_overriden = break_config.get('plugins', None) is not None # Set the values self.window.set_title(_('Break Settings')) self.txt_break.set_text(_(break_config['name'])) self.switch_override_duration.set_active(duration_overriden) self.switch_override_plugins.set_active(plugins_overriden) self.cmb_type.set_active(0 if is_short else 1) list_types[0][0] = _(list_types[0][0]) list_types[1][0] = _(list_types[1][0]) if duration_overriden: self.spin_duration.set_value(break_config['duration']) else: if is_short: self.spin_duration.set_value(parent_config.get('short_break_duration')) else: self.spin_duration.set_value(parent_config.get('long_break_duration')) row = 0 col = 0 for plugin_id in plugin_map.keys(): chk_button = Gtk.CheckButton(_(plugin_map[plugin_id])) self.plugin_check_buttons[plugin_id] = chk_button grid_plugins.attach(chk_button, row, col, 1, 1) if plugins_overriden: chk_button.set_active(plugin_id in break_config['plugins']) else: chk_button.set_active(True) row += 1 if row > 2: col += 1 row = 0 # GtkSwitch state-set signal is available only from 3.14 if Gtk.get_minor_version() >= 14: self.switch_override_duration.connect('state-set', self.on_switch_override_duration_activate) self.switch_override_plugins.connect('state-set', self.on_switch_override_plugins_activate) self.on_switch_override_duration_activate(self.switch_override_duration, self.switch_override_duration.get_active()) self.on_switch_override_plugins_activate(self.switch_override_plugins, self.switch_override_plugins.get_active()) def on_switch_override_duration_activate(self, switch_button, state): """ switch_override_duration state change event handler. """ self.spin_duration.set_sensitive(state) def on_switch_override_plugins_activate(self, switch_button, state): """ switch_override_plugins state change event handler. """ for chk_box in self.plugin_check_buttons.values(): chk_box.set_sensitive(state) def select_image(self, button): """ Show a file chooser dialog and let the user to select an image. """ dialog = Gtk.FileChooserDialog(_('Please select an image'), self.window, Gtk.FileChooserAction.OPEN, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.OK)) png_filter = Gtk.FileFilter() png_filter.set_name("PNG files") png_filter.add_mime_type("image/png") png_filter.add_pattern("*.png") dialog.add_filter(png_filter) response = dialog.run() if response == Gtk.ResponseType.OK: self.break_config['image'] = dialog.get_filename() pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(self.break_config['image'], 16, 16, True) self.img_break.set_from_pixbuf(pixbuf) elif response == Gtk.ResponseType.CANCEL: self.break_config.pop('image', None) self.img_break.set_from_stock('gtk-missing-image', Gtk.IconSize.BUTTON) dialog.destroy() def remove_break(self, button): """ Remove the break """ if self.is_short: self.parent_config.get('short_breaks').remove(self.break_config) else: self.parent_config.get('long_breaks').remove(self.break_config) self.on_remove() self.window.destroy() def on_window_delete(self, *args): """ Event handler for Properties dialog close action. """ break_name = self.txt_break.get_text().strip() if break_name: self.break_config['name'] = break_name if self.switch_override_duration.get_active(): self.break_config['duration'] = int(self.spin_duration.get_value()) else: self.break_config.pop('duration', None) if self.switch_override_plugins.get_active(): selected_plugins = [] for plugin_id in self.plugin_check_buttons: if self.plugin_check_buttons[plugin_id].get_active(): selected_plugins.append(plugin_id) self.break_config['plugins'] = selected_plugins else: self.break_config.pop('plugins', None) if self.is_short and self.cmb_type.get_active() == 1: # Changed from short to long self.parent_config.get('short_breaks').remove(self.break_config) self.parent_config.get('long_breaks').append(self.break_config) self.on_remove() self.on_add(not self.is_short, self.break_config) elif not self.is_short and self.cmb_type.get_active() == 0: # Changed from long to short self.parent_config.get('long_breaks').remove(self.break_config) self.parent_config.get('short_breaks').append(self.break_config) self.on_remove() self.on_add(not self.is_short, self.break_config) else: self.on_close(self.break_config) self.window.destroy() def show(self): """ Show the Properties dialog. """ self.window.show_all() class NewBreakDialog(object): """ Builds a new break dialog. """ def __init__(self, parent_config, on_add): self.parent_config = parent_config self.on_add = on_add builder = Utility.create_gtk_builder(SETTINGS_DIALOG_NEW_BREAK_GLADE) builder.connect_signals(self) self.window = builder.get_object('dialog_new_break') self.txt_break = builder.get_object('txt_break') self.cmb_type = builder.get_object('cmb_type') list_types = builder.get_object('lst_break_types') list_types[0][0] = _(list_types[0][0]) list_types[1][0] = _(list_types[1][0]) # Set the values self.window.set_title(_('New Break')) def discard(self, button): """ Close the dialog. """ self.window.destroy() def save(self, button): """ Event handler for Properties dialog close action. """ break_config = {'name': self.txt_break.get_text().strip()} if self.cmb_type.get_active() == 0: self.parent_config.get('short_breaks').append(break_config) self.on_add(True, break_config) else: self.parent_config.get('long_breaks').append(break_config) self.on_add(False, break_config) self.window.destroy() def on_window_delete(self, *args): """ Event handler for dialog close action. """ self.window.destroy() def show(self): """ Show the Properties dialog. """ self.window.show_all() SafeEyes-2.0.0/setup.cfg000066400000000000000000000000471316771361500150510ustar00rootroot00000000000000[metadata] description-file = README.mdSafeEyes-2.0.0/setup.py000066400000000000000000000052661316771361500147520ustar00rootroot00000000000000import os import subprocess import setuptools requires = [ 'python-xlib', 'psutil', 'babel'] _ROOT = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(_ROOT, 'README.md')) as f: long_description = '\n' + f.read() def __compile_po_files(): """ Compile the *.po trainslation files. """ localedir = 'safeeyes/config/locale' po_dirs = [localedir + '/' + l + '/LC_MESSAGES/' for l in next(os.walk(localedir))[1]] for po_dir in po_dirs: po_files = [f for f in next(os.walk(po_dir))[2] if os.path.splitext(f)[1] == '.po'] for po_file in po_files: filename, ext = os.path.splitext(po_file) mo_file = filename + '.mo' msgfmt_cmd = 'msgfmt {} -o {}'.format(po_dir + po_file, po_dir + mo_file) subprocess.call(msgfmt_cmd, shell=True) def _data_files(path): """ Collect the data files. """ for root, dirs, files in os.walk(path): if not files: continue yield (os.path.join('/usr', root), [os.path.join(root, f) for f in files]) def __package_files(directory): """ Collect the package files. """ paths = [] for (path, dirs, filenames) in os.walk(directory): for filename in filenames: paths.append(os.path.join('..', path, filename)) return paths __compile_po_files() __package_data = ['glade/*.glade', 'resource/*'] __package_data.extend(__package_files('safeeyes/config')) __package_data.extend(__package_files('safeeyes/plugins')) __data_files = list(_data_files('share')) setuptools.setup( name="safeeyes", version="2.0.0", description="Protect your eyes from eye strain using this continuous breaks reminder.", long_description=long_description, author="Gobinath Loganathan", author_email="slgobinath@gmail.com", url="https://github.com/slgobinath/SafeEyes", download_url="https://github.com/slgobinath/SafeEyes/archive/v2.0.0.tar.gz", packages=setuptools.find_packages(), package_data={'safeeyes': __package_data}, data_files=__data_files, install_requires=requires, entry_points={'console_scripts': ['safeeyes = safeeyes.__main__:main']}, keywords='linux utility health eye-strain safe-eyes', classifiers=[ "Operating System :: POSIX :: Linux", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Development Status :: 5 - Production/Stable", "Environment :: X11 Applications :: GTK", "Intended Audience :: End Users/Desktop", "Topic :: Utilities"] + [ ('Programming Language :: Python :: %s' % x) for x in '3 3.4 3.5 3.6'.split()] ) SafeEyes-2.0.0/share/000077500000000000000000000000001316771361500143315ustar00rootroot00000000000000SafeEyes-2.0.0/share/applications/000077500000000000000000000000001316771361500170175ustar00rootroot00000000000000SafeEyes-2.0.0/share/applications/safeeyes.desktop000077500000000000000000000026411316771361500222240ustar00rootroot00000000000000[Desktop Entry] Name=Safe Eyes Comment=Protect your eyes from eye strain Comment[ca]=Protegiu-vos els ulls de la fatiga visual Comment[cs]=Chraňte své oči před únavou Comment[de]=Schützt die Augen vor Überanstrengung Comment[es]=Protege tus ojos de la fatiga ocular Comment[et]=Kaitse oma silmi väsimuse eest Comment[fa]=محافظت چشم هااز ضعیف شدن Comment[fr]=Protégez vos yeux de la fatigue Comment[ge]=დაიცავით თქვენი თვალები დაღლილობისაგან Comment[hi]=तनाव से आंखों की रक्षा Comment[hu]=Protect your eyes from eye strain Comment[id]=Melindungi mata Anda dari kelelahan Comment[mk]=Заштитете се од замор на очите Comment[pl]=Chroń oczy przed zmęczeniem Comment[pt]=Proteja seus olhos da tensão ocular Comment[ru]=Защитите свои глаза от зрительного перенапряжения Comment[sk]=Chráňte svoje oči pred únavou Comment[ta]=உங்கள் கண்களை சோர்வடையாது பாதுகாத்திடுங்கள் Comment[tr]=Gözünüzü yorgunluğa karşı koruyun Comment[uk]=Захистіть свої очі від втоми Comment[vi]=Bảo vệ đôi mắt của bạn khỏi sự mệt mỏi Exec=env GDK_BACKEND=x11 safeeyes Icon=safeeyes Terminal=false Type=Application Categories=Utility; SafeEyes-2.0.0/share/icons/000077500000000000000000000000001316771361500154445ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/000077500000000000000000000000001316771361500171035ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/128x128/000077500000000000000000000000001316771361500200405ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/128x128/apps/000077500000000000000000000000001316771361500210035ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/128x128/apps/safeeyes.png000066400000000000000000000240141316771361500233160ustar00rootroot00000000000000PNG  IHDR>agAMA a cHRMz&u0`:pQ<bKGDC pHYs  tIME ,{&IDATxy\Utw:[w M %#2 ʫg&38#UaD_gĨT"2( IU׾=U]ݵtUw}>{{y<9ρWG eo6._pq+ Q $}8 n; @Ђ|U@Î~B~`@/pC'yGKMjAr?D0px <%yAK/.$w+Bg>"f(Jƻy a[u Ð҈!`8",,=ݍu]Qv;v&_ق.u]Gu4MBs{`ou 2,olY*ps"4 UU%)1  ,jx¶{ͦp8p:SL@?cra `. ݎ\pB$CQ)ρ?o zӝNgń^or=0PUT*e%B 0+8O w"<ވpPӉpL9wB#JJM |aN `]G> =t]'L!sji;ù;Kt=﫪J2j$/4< *NKo>|1nxp8ϥR[͂gѹ AE `:np\\.l6+O3& ,DA* *F[^ t:q\|z64M6 :"fwT$Tiề |hUۍ*KhǕ>fs$8% N뀿ExV[?,t>g1G Y$>e%@ZM>p8phR "&rlH ].hTll3Ay!/e=, oF4nUrpE g{BBS ~=ཊn7nl Jt&I'¯+EQ5:_>sgF.OQrtPgF8 i<9Ϝ́s #V4J WQB^sd+#gJM"Ʀ=nG&,g9}]LYgE2]׳V x08B؟7CJ6J0ӳHxN HEa3ȓo7WBOR! T &\.\n7C&:ߚH$"Cp{<444PSSxy@0P)( uVSUU5\iEA40>d2RUU1\=eL&D"a8^fjjjPgM̠@L%߄XR0 %`(k= xB`|>PWWGuu2 }tL& LNNbimmair9W0~H i{{e ?8&iW*BSUto) tz<iUEAuBtttP__?㽗- $*H %EfxYOوF c--TUy35H$ÄB!0XT*__^/ 455Q__?h߁@a<]]]u x\ |?Gv줹9盤 wygg$Ya*ۃe?\gL&@Qp8R)|>cccB!)[?3 ]u.ECgg'.+~(}}}n-[6~g.Y~f0)()j&6aE!300@}}=ߩA)B{pvԡ`Sش65%@W-D`vp:tvvrk\nK4 G"\sgjh!2p13EQ}8EQ|ю=KUU'##mFIߒ3;(]K wwh%DͶ6.R3ٳX" FOGɢ`Y>)1/^,(c1N9iԿc0^# aCΓ (SQ3 j1 ^/7oK.#EQC}}}\j!YBn-0;xrRB 3>>>EPǏ3111C  M9^CԞ~ x/h)x|l۶Z à+=yUWO1igB~I>A6-[fn:~.u 02 nvn~)5Md2ɾ}-t:Yt)gϞ-ԛh`A8Sz-33ffaddD~zOʩ8ٳxEQXz5===g ك `ퟠ_6Tg<:tHicc#UUU PS1@p U,ԃ $ 3G!쵚 xgt:fF狗a eZ4'>FFF7! `ɒ%Ŧ,Ԟ%2@6:+4(MMM:/K`&u>11o[p8,˯dr;;` xR mdyꩧؽ{GiabsrqQ|A>㦦F !bDa3LQO_A9KrEq25*vh4 (r a={`0X>w "`I( i^Gh7Q'0P ŽÇs4M>Čˠ!}}X#qR`CPFfm"S" #$O 5V̚yǹꪫURE} m.O9 Aċ*x:/199X|Y};FGWf@#%|-0(tjų'3 eb$Rwiz31B;qdGft|1@A'Sy3]\ѓMSNq)uZƤ}.!mLԓ.\E =NQ JziooGUU~?HD.0貚t o_470555pFy B2e֭!JL&3bۻt Fq~esc2;3::J*kUWG 1cll!?.#qW C0'ttte-[%Kh蠱TU[v"JqQTU@x<23 F+;h4=+WT0CSS˗/O>C=4%T\tÞ^yDA"^?;"f^aͧ0f7o si@<:4|&lVf{^c*RE.4@ @9^˕Jnsc3/{џ|Xߑü\SU֭[fKQ,'N͑"z˪*'0PXEz*E^N$~Cr u]C03ГqƟOF:jx`+6ssɱLxʷl* |gE0M3y#%Kp AKQlB[>~?j,Ȁ N ?!sMr SL!tŎǘxhDY 0d٦To"=9G)gŎQ.!gʥڋ=wWLq! +gr6,KcmRK Pg$0 LH՛m:2?K`[myRLx<VU@JhΣ Qꮝ_4  Ϝ{=fdGR)Yޮf ĭ@ }=~/Fٰl$ LNNR[[^IQLOZ[[97 br}d'II &L1IܬB!Jvꪨ(OQN,Y$ChtJ+6~vˬ_k-[ơCh\QͯT\zԀ探*4L) bbǚvYnri" 8J)xE#墋.~!mQtM'@p:l6RKh  9{,j[=$>h yKY=tuurJyp8,kWX 6 Fg: {sx<Κ5kXbch L4jkk+x_O?<###hl|ƍvmݻygeƍ2HQl|>jkk+(wA/ Nd1D` @KK ae]ơC*Dɖ-?K/2,{oY@CCwy';v@u:vϱcr^rqWveD90@;4 Xt}v /yfnfv!Ghᠣ0f"N'|Y *:;;jkk//xw]|AYTDOOLSP0fVZG*ɗ&"hY[ u:8NqF6mڔq܎;җ;Nl6N?9XlZG.b1~2b&k֬{eժUl߾ŋN5<2LCCCYpD8E%`ګa444H{oP 7 =jws߷~ >X%}|/A۷7Y_/%I&'V^㤷L 0@fd!3]WMM Th4*Ý;v` &3bv;d{||cUs1tX={OuG &5k/nwAˀo,WCbVa-Cs=׳g~011!\zUccc|d߾}|lݺ^xzNnfn%le˖H(0ebI)Uc&hcX-a'''ٹs'{:.SG8jjjF2('dư4~sqK@/5d` ;Rh457344$;weQhP(t \xMۤWU3gΰtҊa33PWH$2Fy{3s>|rrhLʚ1Ȭ.Z{{ arS .fOK?OK/TғO뮻MXf5]yC&?϶mH&,]]vD\عse cǎ1W? ;~6W52Cv.^$tT]Ynwu]]]E^Y൯}-W\q O6{gg'k׮Ĭ__\zyr( gΞE4I9>Ĵr tlPot:ٳqIhmٸꪫ-a/Ps!O-_[֭㳟,Ӌ^͒8Zj.?M?Fd܁G`&"XDɓS7pԧ 씽k޽lvFFxb~򫪪3wa|_dӦMRH#rʹ[a`: rn 0 -Zɓsƍ7 Ɩ-[(?~xo߾[n'yp/-[H' ?KNnS0 >3#J8hr=u=fe2 'x"N/κ_>9.o~lذ!Cy>a>Ƚgd;U˗J8yde]׾5nV=̆륧G@+sx咿 mmmqڵ+VHqBCC~8矧QcpK7Ѓ؇~ VeSǏ;?޽sm۶zٿ 7EQ ؼy3O駟ʕ+y׻M7$S8z(K.3]brѭs0>> ]]]CBF2<<#rgJnrJ]q)FFFXj\y{mlv_?OaΜ9#7d.l 9?c=Qy\kYl`6 ;v U*|$fy4H\%Aٳ+[ބ+ oi4 Z#7=+ ʝhmmR\yYú>r쀕Y4epp1jjZ"+/ wZHt0BD"imm.YM/f $:q|>###qHe;p#pyi؀|y4Y\jrrx@˅T"^!!dO>`1"|RWol#)mkn?h}?>zNH8ӯ"0K(G1YkMvyECCL‡+ UsPnFYFlY}ǰ 3#p>N{/Jȱ(? *Q@bDC*uW(z"ŠR$p7  v`@,[i(=S*.b^ \KeB" ܏ȼ A&Ŋ|(9OAH``"M;"N ",/"H0B% Zs'2Wχ9'4`-$AW: "3s뭘7 \ydR IJB̙y'dp)"xf^~<3)rbA.`#"Mj(^@E)"S gcA Kb`;b%5 "%=Y7 sϛχKEMD 1DĚЭXB*`Ll#D+x2sY| noυٰ %kD65ܶQD"M}|x6kdâ!l-QlJsH"h!VN"vT7gaW1-YtEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:14:19+06:00ɒ%tEXtdate:modify2016-10-13T16:43:21+05:00TIENDB`SafeEyes-2.0.0/share/icons/hicolor/16x16/000077500000000000000000000000001316771361500176705ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/16x16/apps/000077500000000000000000000000001316771361500206335ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/16x16/apps/safeeyes.png000066400000000000000000000026121316771361500231460ustar00rootroot00000000000000PNG  IHDR(-SgAMA a cHRMz&u0`:pQ<PLTEԳ|ӋĺȬuYWbyyylkj]p}WN@T_ZZZ΍hhhGFFBS_C|)8B988TTTMMM===)))"$ dddGGG ;;;\\\蠠###""""""fff///111gffӻ.t_tRNS&pϯn% b_ { d_)%unиwp+'hc hd +x׷v)6LbKGDH pHYs  tIME  `IDAT _`abcdefgh !"#$ijklmnopqr%&'()stuvwxyz{|}~*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^֔oXWtEXtCommentCreated with GIMPW%tEXtdate:create2017-02-12T19:04:00-05:00ѕ%tEXtdate:modify2016-12-18T07:51:03-05:00:IENDB`SafeEyes-2.0.0/share/icons/hicolor/16x16/status/000077500000000000000000000000001316771361500212135ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/16x16/status/safeeyes_disabled.png000066400000000000000000000012111316771361500253470ustar00rootroot00000000000000PNG  IHDR7gAMA a cHRMz&u0`:pQ<bKGD#2 pHYs  tIME 0 WIDAT(=jSQ߹7&F"(Fۅ .u>X_A ޢijHb[[s19.b:˙?῞w?gs[/9taˤu,R4JNGq^u5[!d|#a_j^緒‰h˪Gf464ӱm[!q^PO%vE)זUq%*~YtXP b}]C%*-WguzSKΪ;缆L}C7n06ÒjA}$yKdMxb> Òږѱ>P ,nQtEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:17:54+06:00cF%tEXtdate:modify2016-10-14T16:10:25+06:007IENDB`SafeEyes-2.0.0/share/icons/hicolor/16x16/status/safeeyes_enabled.png000066400000000000000000000024521316771361500252020ustar00rootroot00000000000000PNG  IHDR(-SgAMA a cHRMz&u0`:pQ<sPLTE\\\[[[Һ«§\bݓŅzyxctXOBOWxxxLKKET_D}*5C>d_Ŀ  faFBFBfŧd#bKGDH pHYs  tIME 0  IDATc`F&aQ1f`ec9SRUTxx32sr54 KJut+*kj [Z;:{zML'L4yig̴d5{y,\xR[;eW\zu7ltpdrr޴ymwܵŕ}} IDAT8}?hSQ^0Xi@j.h'CPEq *viiSŒ佟KZ4ls{1D\6G/8cp]Mtr4A`kf| `I1Ɓq3(i1|FPP|%MÙL&Eщqt]sss_M31{q_Vεj|$ɫR pq@ZӮT*-l6?Z^53{r\g$Ɋ^G͓.j5`f^@ZSSS~P׏Y=]g8/ipbb0i ,`V0 3Q5(9\*v1IKWWWGڍw@xp站t󼽣jUǣ ^+pbp$?R+j$LB>Ϻ렺A;i*/1[Ygo$O/B3@{|Jifgga}mh @7_ky^'NƘ~c'X]]Z kTM$"g­S;JOKKK\YI6ƴcD\ۥR ,RDXlȐ67(͌uB@>߹ho&㬭j s%jSlV,j&wuuK*%M fΟ?wm,T u#Ns=>|ȅ طo6|7 L R288ȕ+W顧g8TsM6{߁)X~L 4###tvv2:: t!󌌌0<<X\KKK9>DrL.ceeΞ&, o>']ǔs LxG|5z,RJX[ՍGm#օNo_/z/sIc&e'ز_;orN=z], p8)9!0ɖUQ$=)tEXtCommentCreated with GIMPW%tEXtdate:create2017-02-12T19:03:31-05:00Sƻ%tEXtdate:modify2016-12-18T07:51:03-05:00:IENDB`SafeEyes-2.0.0/share/icons/hicolor/24x24/status/000077500000000000000000000000001316771361500212115ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/24x24/status/safeeyes_disabled.png000066400000000000000000000016061316771361500253550ustar00rootroot00000000000000PNG  IHDRJ~sgAMA a cHRMz&u0`:pQ<bKGD#2 pHYs  tIME /()BTIDAT8˝AkunVMeP=%ɣF}7 A+b[_'dmQMٚNvffE?oXѣmykG+Qr;[,]kRfR܏W,}?}$iBҐIq88dtJbㅍH@yf+/ka)s/6PjEsVxBHӣRD2lԲBq )%nz'!by2D)m,ڿH)Rj1 cm`I`rrucxH$?lVu&@-frj 4@!!{ !zݶ aĵh}jݻw>&'Xv_g{k>͞={,kr8| `jay F~}1MqxAmbrEnms~7vmxDbxyRzBbHZZt[, 90xWЫb'<ÇmKKK6V {W}1FVΝ;ΆDfRΨT*lv{|"+Wqo]V|\֚l6;nCa RʓRL$t:2 zJšL= ,"˱cv޽€e*ffq2fuQJacYǎc޽+a@[PJJ8roFJI>gjji|ӧOPJni6ѣG9uNs_ "q-!J)bRk3d2fs/Ndo0F7E-;c߀wH gn5CyBImKM`a_f踶> by\w`cc@ݲ_[7;z8bO?@>DctEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:17:28+06:00G%%tEXtdate:modify2016-10-14T16:10:44+06:00//IENDB`SafeEyes-2.0.0/share/icons/hicolor/24x24/status/safeeyes_timer.png000066400000000000000000000015761316771361500247340ustar00rootroot00000000000000PNG  IHDRw=bKGDC pHYs  tIME  *tS}d IDATHǵUMh\ULiՂB("iT H+ Ap"uw߼ {΢BMi7R`6)ZPnnDA"fF̛YwsϹ~Ҭ%{3ƻt_0k$IV4M~owZ !dU"y=h*)I%y ǒxd?v031]Il!|`'_%Ms9ws%IǦCb1sgY6ತidYFwz>/ؘ&''$ْTֺ;% z7qzSA$c9[`~~~L~("("ۊ| C笵Q_v!f3E$"닋Ly !,jkeZ.oB(԰ZCR>HgXk "T*R.q V$<j4Fr.x=II5ͯj%Iyac2 oIJfs9!EZ1昤}s1+,څ][&yQIkNϕew #{% IM8oJ:R5lI!|`sG|q?#hOD EIH+(hl I.X'caIENDB`SafeEyes-2.0.0/share/icons/hicolor/32x32/000077500000000000000000000000001316771361500176645ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/32x32/apps/000077500000000000000000000000001316771361500206275ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/32x32/apps/safeeyes.png000066400000000000000000000040331316771361500231410ustar00rootroot00000000000000PNG  IHDR szzgAMA a cHRMz&u0`:pQ<bKGDC pHYs  tIME .-JIDATXí]lb;bc@NVAU(V~ >!RPUc"UyJJ+P UHDJyiiP#IC`c]kw흏{o,.)Gif9;d2Z8FJbb"`ssS)ukiiiζmiӦg;ơCZG,,{e}ӲMRRGkzQ)RZA\R֭l)o,kq}ĥԂcZ\gR'{{{oR)ij >N2ݻ^|>_!P$ - "2)?.ӸlR-@}h Ifff1֔J%<+:`)\|4gΜȑ#Az-AK"hUVXTΝ;Er d2 sd?0ayy/2??OTX lMQ :gY8;vڵk\t }XU] ̧ϽC~CRfhhӧOL&i hZM'sU4\|>y+Wݶ frܼyqKjӮ<ݻ#ƒ;oPz)>q18SmHMXZzP1XE&  s\>Z[[n zǾ>| 2??_-BabTmv bo7%cLK.vM055EPh\ H$hkköFMJ6/ʮp]FFF|2J\Y tuu"`6;wĉtuu%$ Wm$ FGGBpQS~>\}^~= d%g*>'ЀU l6s+K:P@k ktEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:15:54+06:00%tEXtdate:modify2016-10-13T16:43:21+05:00TIENDB`SafeEyes-2.0.0/share/icons/hicolor/32x32/status/000077500000000000000000000000001316771361500212075ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/32x32/status/safeeyes_disabled.png000066400000000000000000000022221316771361500253460ustar00rootroot00000000000000PNG  IHDR sgAMA a cHRMz&u0`:pQ<bKGD#2 pHYs  tIME /X.`IDATHǭMUe9~̘cݑI$hQ;7lQ hjS բ@Ȉ}L7Z9c2yՙ̝{=Ï!Y{?hGhy |ou\c[p6l sb%'K`Sh< _/O|z=6K'GʯE^^^H>JpFʱʡRfhK ( 9d3atuO::{K7UUhHeHx;&!\vBmXlͪUM-m݂g> {_wuZ:ZeTVeo:WyPh:ښVZt]Ò:2Y%-Z:rdRkK}ږ"A&)=Dws"A>aYsՊ4Ӗ=`9f +%.]ϥz ܨdʤE Mwwͤ2]~#- ~-hL&چE{{-wUί x7$"#rLjZd"bpPþ4?H-[pR=l:5PXjL4z{MFJGV)t]4;|Fm=[IַN_mU;: " 6{K#SF[,XDy+tndͯNh~0esN9叛׋z4tEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:16:50+06:00 %tEXtdate:modify2016-10-14T16:10:25+06:007IENDB`SafeEyes-2.0.0/share/icons/hicolor/32x32/status/safeeyes_enabled.png000066400000000000000000000035621316771361500252010ustar00rootroot00000000000000PNG  IHDR szzgAMA a cHRMz&u0`:pQ<bKGDC pHYs  tIME /X. ?c7Maal4 MkNWJ>K)I)B^YFFF^ `ff~q˲޴,뻖e1 c8ԆxD144b'OFRm-۶0M|h;BJY`T*E$8㼦yMAᅶoߎqy`)%.FuRaOX'|`ii˗/cw,z΄j5* ,,,NrD^ 9 rC;'˲i,.r9;P*<[~ ~@PP>iڧ:y |`rs޽ϟ3==MP@A6mFxsDymguu+Wp1ep#5CJaOP L&1 bHTjzZ Y͏YUz{{9s w&ɴMػw}RÇ\.S,G)8ejڿ`'Bt]'RTb l[T ٠)سgH#G0::ʅ aBl޹s'ܺu|>Ϯ]64 !߮뚦9qt/:R$Fqzzzl@ ͦΎdA(R49>|'OO:ŁPJ(cccxB/?Hh4㘦H=.sQ,Ӝ?H$FlN_ykkk\~wrM4D"A2$L&ogH B~L$DJIZ%S,cppLjp!?"-~W4fWRn-{MuC-n+@~;_l!9)yCZJ~{!^Ͳρ_Ь|/w-blէ^b _<~7с -}4Sֳ"W Qe_ #tEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:16:50+06:00 %tEXtdate:modify2016-10-14T16:10:44+06:00//IENDB`SafeEyes-2.0.0/share/icons/hicolor/48x48/000077500000000000000000000000001316771361500177025ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/48x48/apps/000077500000000000000000000000001316771361500206455ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/48x48/apps/safeeyes.png000066400000000000000000000064241316771361500231650ustar00rootroot00000000000000PNG  IHDR00WgAMA a cHRMz&u0`:pQ<bKGDC pHYs  tIME -%m7} IDATh޵{T}?KY5eb yX)e$֎!ADui+*EUTHզIT5iZnmxave_3;}{ǝ;;3V{9u~wFpR(Z#0@/h4PzRǡ7Mk1!Đפ=B!%0_QZk_k]>gR_-B@EH)WhB|QJ4[ a 'Sk(PJiԄR(^~L !RZAJ9l'l۶L\FZk("/ cZ`ID%P(6 !ed2;>`3DkMA*~ Z^5ZjBۙLfeYM5JۭƧOg?~V$hB|4ͽl0ntϫ$^3 T !ml6k~h>QJ_ H/nc !dk뀤[oϖe! xljB@WWbqmfikgJ)0$R 0*J) v>;͐m?f5J(xO*)kZ~l&`FK"Zk "_J0ɛ-۶ok" KR0 L<2{Qa\bffl6K.k:)eBc3UKu( f2ٶm bnn0f||Y<#0%QCX|~֯g5Wשntk 5Jզi>eY t|T²,att) ŀ &h@9s>"3==M>sSސP($,˒@X,b6\pqp0 cJu]-% tD2Aǥ珒oooae|u0L?PMJ.)壆atzkT^ɓ'fGJYrL\Y/+###r9bu6E S# R~",_W*J%N8 |}݄aX#8ZA7~+0>>u(A2M4OK)NNRAJ;õkp]x㍤i\.SxJdap+ξ_|i8SCZd@JYyireFGGkZvǏsa&&&p]7v#*}Cߡ|e8roLJT)0LV!b{,QՂ6Gy9jrr_~!!6Ē;&n68EJ.\RyK6${PU@?agOP"UR!Gerr\.Zn5>uzjZ)q,T*qE?80< 2?18sJfy衇;Zsq9 ˲ZzM`` (0 k׮Q*0 6j*NhQ˲PJ#fms!vٳgT*[ۘ ӧO}v^ug۶8\n)Ap- 7%$ZmbȦMxOcǎ+-Bz~ 09ٳL&0LOٹxc@ *ҖBf<]vq॔<;x}{w'|bH{GROÇ}ޙ?*!m5˖-g;7֍c .v͛7o>LDJI&Y 7]F`jϥֆ kYdhh˗sȑ+xWk `˖-|^{QJaqꢿ|[GX4ͥ-ěS?@Vߙ[Ԓg},rrƘEA>gժUd(˄aHGGRvܴ(%EA_K5!yQ }4sE.ö"qkDuR$5RB"BZ4]H)Rܡ]vO_@ E"< b Њ,4n"AU`p.gU꣮%Fa^wz{w觸Nw RՔHڀ$#MD EB&vOGIQ ]#L|ɰyo^x}oEw"X .q^ub7(R6?&>4! | a35D\ĿZy8J\Ɵ 4!"jveqC}J|TմQAtEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:15:30+06:00:%tEXtdate:modify2016-10-13T16:43:21+05:00TIENDB`SafeEyes-2.0.0/share/icons/hicolor/48x48/status/000077500000000000000000000000001316771361500212255ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/48x48/status/safeeyes_disabled.png000066400000000000000000000032601316771361500253670ustar00rootroot00000000000000PNG  IHDR00 1 gAMA a cHRMz&u0`:pQ<bKGD#2 pHYs  tIME 0ip~IDATX]\g93;3758MeՠZj/j`shA+T(Xz!j T_ BA(Z⅑`I5dgd|׋9qfluÙyE[9\9kEar8Ά\;^?u>}<37(BBKOCD='c@B?ϒ=b&RJ3O3, 3+OLzK"Gxܯdͭ mkַ%iP''}_ys%a[뵇qҝU"oMSe|hF-&>;嫪ʬnAKM 6Gˤq$6XIr!ϙXh O8\e` /+BHĥP'<`BQj)I6䂎k.hYkV~;Q ㏄R+/eO \oHż]4FA*~Tcչ142k2\g5vj:Z!/K$T> Qm$rKvHOɥRWғO՚OY,R&..ٰMVK(t>ذNn}++I}-T;^DJg+daUOTQg_DvNvi*vͺD2E]ӳ⼊v;TE<ɰjm2y[ՖavZL7"h[7N2We2spiDfɵT l7:,L| rB$: !A_[o$X] h3AT&h+B(|6$̖FM-;F[/N_+dǷ;E6rM9U&u/ AVBEbv:m&ttumDLp]d# gmwMV;gT%:B985=wau7_^u=aՙ hurH}ľBwY,6Ȫ}Іt8p{>9]D*^JلxPlٳ+pI3.i o]uV=a9?rw%Wu1-ӵms!ħEMQE{<Gu݌8ﻮyG<;F@2 ߭(#~&,D"(y8ٶv뺻# L0MvEQTUAMF"?ömm~yޠ' Ly^TQ/i=h*ِf)%R{ppf#(4msEIb5<+ _OČ~_Ӵ-kū>ծEX9'ꉨ) Ln4lu}ڕ3 , qr6`'QU@*B4,麞Cp]۶qu >Jq.RJ<ϻ|xRT0G4M],["K<86 J(Bͺ(NKR x85k4MžR+fYecbbi,+-mCF| EHRVsiZ|bMl,Ν;(\۶dRćPl}:I0 4]]|;B+񊹃]0vyƖ ͜sͼH"+'O0hhhX"4[]|?E upEv yw?>ݘԔfrP7.`ld>e%_zt:Px(` p{bQUEQWrw]4M{=2 ôx 4Zqz^$;9Y pj۶ !VU/ĉ?0L&Sa%?r eTU f> Ċc`1Smǀ8\t }?:V+akcSAfə&`…;nڀU!z3UBH!yq._`[y\ŻLޓ&c^ŒiΜ9ñcX~=RJh-  no MMaalhKK v駟H$ªUpg ɅN iӪbYW7l2y2LXTsbLLLpa6oތ+X)eXr@5gA`AJɋݨ׳c&''I&|={p8?8x?W2;(;̈́ AMh4喛-pW|ME"b{2lE̦> XSTW@&&#W"!_[ES7wJL~^/6wUbxGY@B1?O|?.>S?ْb5k%Mv\? _w_ kPEN{X&/p lՐJtEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:18:17+06:00 y%tEXtdate:modify2016-10-14T16:10:44+06:00//IENDB`SafeEyes-2.0.0/share/icons/hicolor/64x64/000077500000000000000000000000001316771361500176765ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/64x64/apps/000077500000000000000000000000001316771361500206415ustar00rootroot00000000000000SafeEyes-2.0.0/share/icons/hicolor/64x64/apps/safeeyes.png000066400000000000000000000107331316771361500231570ustar00rootroot00000000000000PNG  IHDR@@iqgAMA a cHRMz&u0`:pQ<bKGDC pHYs  tIME -v vIDATx͛l\Uv?7o<<ě@aِ@F4lBDU [FYnQ[il HZ]X6Ye,l )KJn'3x~7o<#=y<;s I$b+ &+8mmmW|l Pr+@4 !mL 8$0 8sBJr(@;[ׁuB!DHe$IB$qJeYضضuSqE2.v\2E2 x,NeEQE)Wm,²,Ll>':pˠMoƗ[ߓ$@ @ @hlk}8ibcYc۶$Ibhlɲ%UU Ht@W{4Mt]wl># dhD"qOItHT7FAWjo6c < |( uPp?t  Ȳ0Fۖ?ga8N;4`"> |G`0jMv%A+ 0+E1$I TEQ*T.]mf#&EiY J*uiFO;EY'dY.5|6,s!5 H`6$meyW(ʲ|I*^ƶHq6Bjy <,ݡP\Uq0( heY3ض,˨J(³5. 0,pp JNIT0,u](fضM   ϱm*i#Ih&@e?,e$ A@ TSSDR|]י¶m0`&LL&C6E+0L۶BD"\uUqd$]ae R%|,oBl6K.# *\1r^VR{˲- #CFc\s5tvvrd2(h>lU ! QU4M(ap~x|* GDէPscPHc6X3+V`ʕ$2gΜc׮]_w9@WEy+ ͭUuYC*")N>C**,i0['m2:MqbOELa,XP ---X7O<$CE[-QQ'ONMpQ,eQ(^a"Jj( 5$:x-d-;v_ӧOڊmLLLT^R%\Pt"ViVzl0D"$ 9m۬Y+Wbv  pFw\"st`^{ӧNڊid3يgMչxL!ey۶v'0 rXd2ɑ#G"b&,_4&Bh-sٹst̝;}T.`4_$ޠ!tP(=zd2>СCr9-[F[[4Q fwy0weS'O{n XT*Uqrjp!n,w{::UUchhhG˗`rrB0zϢ?62 ϒ%KxHhFך e!/^x>Ns 8߲,9ʱc}h6 Z1J;;AH4m7ܳg7nt:ܹsyY`1@›5Bja=.igX &'҇ߦQ(}XEoo/'a+kvh(ΩS*~k=C1Q L?Ķl,_yw{QUB@$+PUW:`8å텟FMBL0o |kXžmd裏J!Di, vlb&HBu %H0888U" '@!/D eYD"n-ZĂ 8~8ݜ:uvRTiS2Ĕ"H۽ !A_a޼ضitwwLK̸ 6e#oDv.0ٶm"27ޠ7f}ځRq@*"Hw`B!>34Mʗi(E/ɃNHcӟ3M'N~8y$&L266Vs1UxpfQ7٪c=zR;]k"V.dC=?̧g۷o===d2il6[uJT|&؊ߛ&ɾ;rضSӃx_-<9b|YA_N+rҬ71 0 eY 6B$H1u f!%9=;(um5k?ܹs^ zU9tR ØQpQ$Wl6k*2Յ 0C7x#5@K7ߌ(|hVҥKfF\ 8S>ߩ4 @UU<]d2I"`ʕl߾;vuRj|6tKK >,*?ҥKu;5k011A8@(y.^O\L$516zzzxǰm\.W){YDUU XݻwzjikkP''ہs3VjYmE!LNNrNBŲe*ޗ$믿ku]P(uV֮]Hj 5p.|Y~W,+qΪxb^~evI<qꫯ楗^d׮hmmJ}?L&A4xz(ci!|紴3p뭷V|vÆ Xq!?X.W5kֲvڊ7oQUQZ[[Ǹv`VkD  322Bgg'v{&شio߾iܓ {=06mfwTU塇cΜ9;w?pC[ p`0Yp!/O<+ 9v_OOgΜvO>3-Հ B =!lL&Ckk+MMM>|W^yX,(={fwuוYxGXjt1ZZZ.<.8-t`Ő:T`0HKK i;Ogxsaɒ%lذM6Յ8b&zU< q1d2r90xEQbhhAFGGd2!bh".\H4E4$|X,Fss\WNR QFBt,|Ihjj*N.^iL>'8Hh4J]DyP")sqKqutpRȲL0$ U^"p0Hjner޽z4 w"+U?(~d,=F9^Enmd_ ,gGxQ= {I0(ྔ\&p$ꞯ|]ńzD 2p'>X~A]KS6 ^­ /MU Bn l}䋐$\c%?xIӆnq .Ұq/i`_*}r{4􉉫ڿX 7iڼ:[iMv#0+pi}8;Gp4ƿp"p-Wj.f8Ep+\r#s+%tEXtCommentCreated with GIMPW%tEXtdate:create2016-10-15T06:14:59+06:00P%tEXtdate:modify2016-10-13T16:43:21+05:00TIENDB`