A tool to watch and analyse your PC activity.
New contributors are most welcome! Anyone intersted in the topics below, please PM. This is solely open-source project. The purpose is to make people better reflect on how they spend time of their lives and raise self-awareness.
Want to see your daily computer usage reports? This tool is intended right for this! This tool currently
- Regularly makes photos with your webcam
- Regularly stores your currently opened window in the text file
Python 3 should be installed on system and python.exe should be added to your PATH.
COMMON:
- opencv-python
WINDOWS 10:
- pywin
- Make reports of your daily PC usage
- Make pruductivity predictions (concentration, sleepiness, bad habits etc.) and recommendations using machine learning on
- the sequence of your windows and
- the webcam photos.
- Make windowed/tray icon app with user-friendly interface
- cd into this directory
- run
pip install -r requirements_linux.txt
for Linuxpip install -r requirements_windows.txt
for Windowspip install -r requirements_mac.txt
for Mac
- Done
- Right-click on
blocker.py
file - choose 'Open with...'
- Select Python (find it in the programs list or locate python.exe binary)
- Choose 'Always use this program to open .py files
- Press
Win + R
keyboard shortcut - Type
shell:startup
in the appearing dialog and pressENTER
- Drag
blocker.py
file onto this folder with right mouse/touchpad button, selectCreate shortcut
from appearing menu
Now blocker.py will autostart each time you log in!
- Kaspersky Internet Security (KIS)
- on the first run of the script, KIS should prompt you to allow webcamera and other accesses. Unless you think differently, you should mark the flag to remember the decision for this application and click "Allow".
Small details
If you change the code of the script of code manually, KIS will re-ask you about script permissions.
Make this script autostart.
- Make the script executable:
chmod +x blocker.py
- Press
Super
key - Start typing 'Startup Applications'
- Press
Add
- Put some command title, and type
gnome-terminal --working-directory=<FULL_PATH_TO_REPO_FOLDER> ./blocker.py
intocommand
field. - Press
Add
- Press
Close
Now blocker.py will autostart each time you log in!
You can provide command-line parameters when running blocker.py
or use profile.json
file.
Copy profile_example.json
as profile.json
and set parameters according to your needs (their names speak for themselves). By default, active window title and screenhost are saved when you close a window.
If your webcamera does not return good photo, try setting use_v4l2_backend
to true
.
Added blocker script - only for Linux.
Added blocker script for MacOS too.
Multiple Windows implementation fixes, updated README.