Coder Social home page Coder Social logo

wintersoldier13 / 20-20-20-rule Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 78 KB

Using the 20-20-20 rule can help to prevent eye-strain problem. The rule says that for every 20 minutes spent looking at a screen, a person should look at something 20 feet away for 20 seconds. Following the rule is a great way to remember to take frequent breaks.

License: MIT License

Python 100.00%

20-20-20-rule's Introduction

20-20-20-Rule

Using the 20-20-20 rule can help to prevent eye-strain problem. The rule says that for every 20 minutes spent looking at a screen, a person should look at something 20 feet away for 20 seconds. Following the rule is a great way to remember to take frequent breaks.

Windows

This repo additionaly needs 'win10toast' for Python. You can install it using: pip install win10toast.

You can use the Pyinstaller to compile it to an exe file, then place it in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp along with a icon.ico file.

LINUX


You additionally need to install notify2 and dbus.

pip2 install notify2

pip2 install python-dbus

To make this file execute on startup

sudo cp -i ~/Desktop/test_code.py /bin


sudo crontab -e
Add the following line and save it: @reboot python /bin/test_code.py &

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.