-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16d6c08
commit 1a44388
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# ComAdd | ||
This script prevent you from distractions | ||
|
||
## How this work? | ||
The scripts will kill the programs in blocklist if they exist, add websites in blocklist to hostfile and track the usuage time of them. | ||
<br>Between the session, there will be a small break for you. | ||
|
||
## Requirement | ||
- Python 3.7 | ||
|
||
## Installation | ||
```bash | ||
git clone https://github.com/raspiduino/comadd.git | ||
cd comadd | ||
pip install pywin32 | ||
pip install pywin32 matplotlib numpy==1.19.3 | ||
sudo apt-get install -y xdotool # If you are on Linux | ||
comadd.py | ||
``` | ||
Or you can goto <a href="https://github.com/raspiduino/comadd/releases">Release</a> | ||
<br>Don't use the extension yet! | ||
## Todo | ||
- Add time tracker | ||
- Fix extension | ||
</br>Note: You need to change the setting the first time you use this script. | ||
### Install the extension | ||
- Goto chrome://extensions/ and click Developer mode | ||
- Click on Load unpacked and choose the extension folder in the repo | ||
- Done! | ||
|
||
## Warnings | ||
- You need to run this script as <b>Administrator</b>/<b>root</b> | ||
- Some time the Windows Defender may warn this script as <b><i>HostsFileHijack</i></b>. This is wrong positive because this script need to edit the hostfile for blocking websites in block list. So allow the script to do that. <br>Note: if you see another program flag at this, be careful that it maybe the true virus. So please backup your hostfile. | ||
|
||
## License | ||
Under <a href="https://github.com/raspiduino/comadd/blob/master/LICENSE">GPL-v3</a> | ||
Under <a href="https://github.com/raspiduino/comadd/blob/master/LICENSE">GPL-v3</a> |