/20-20-20-Rule

A Python Script that creates a Notification to Remind you to look away from the screen.

Primary LanguagePython

 20-20-20-Rule

What's the 20-20-20 Rule?

Every 20 minutes spent using a screen; you should try to look away at something that is 20 feet away from you for a total of 20 seconds.

Installation

Create a folder.
Open Command Prompt.
Type in: cd The path to your new folder. (Example: C:\Users\User\Desktop\New folder)
Press enter.
After that type in: git clone https://github.com/Arisamiga/20-20-20-Rule.git
Press enter.
When you see all Github files in your folder you installed the script file successfully.
  • Note: This currently only works in Windows.

To Set the script to run every 20 minutes you can create a new task In Task Scheduler

Steps to Creating a Task to run every 20 Minutes (Task Scheduler)

Open Task Scheduler

image

On the Right Side Press on "Create Task..."

image

Write a Name and Description.

Then go to "Triggers" and Press "New..."

Make sure to have the following settings:

image

  • Note: You might not see an option on "Repeat task every:" for 20 minutes but you can click on the box and manually type "20 minutes"
  • For the Trigger to work make sure you have set the Start Date at a date in the future like 3 minutes after your actual time should be fine.

Now When you have made your Triggers Go to "Actions"

Create the "New..." Button

Make sure it follows the following:

image

  • You can find the path to your Python exe by doing where python on your Command-Line.

  • On the "Start in" you are gonna put the path to the folder where we have the .pyw File (Example: C:\Users\User\Desktop\New folder)

After that you have successfully made a task where it will run every 20 minutes.

Notices

Huge thanks to the Jason Chen (wontoncc) for the balloon Tip Module for creating the notifications https://gist.github.com/wontoncc/1808234

Code and bug reporting

You can open an issue at https://github.com/Arisamiga/20-20-20-Rule