karts13 / DeskWatch

This project actively monitors desktop applications and websites in real time, logging the duration of each session.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# DeskWatch

Description

DeskWatch is a Python-based productivity program that helps users track and evaluate your computer usage patterns. DeskWatch gives users insights into everyday activities by analyzing the amount of time they spend on various websites and applications. This helps see patterns, manage time more effectively, and increase productivity.

How to Use This Code

  1. Clone this Repository:
https://github.com/karts13/DeskWatch.git
cd deskwatch
  1. Install required Python Libraries:
pip install pygetwindow pyautogui pyperclip
  1. Do the necessary customizations.
  2. Run deskwatch.py in your terminal:
python deskwatch.py
  1. DeskWatch will continuously monitor your activity in the background.
  2. To stop DeskWatch and save activity logs, press Ctrl + C.
  3. Activity logs will be saved in activity_log.json in the project directory.

Customization

  1. Provide Multi-Browser Support: At the moment, deskwatch.py only pulls URLs from the Brave browser. To make the code work with other browsers like Edge, Firefox, or Chrome, you could extend it.
  2. Custom Activity Logging Format: The result is initially displayed as Output, you can modify the structure of the activity logs stored in the activity_log.json file.
  3. Multiple Platform Support: Currently, this code is limited to Windows; in order to run it on Linux or Mac, additional libraries must be installed. (Refer Python Docs).

Sample Outputs

deskwatch.py
Text Editor (deskwatch.py)
activity.py
Text Editor (activity.py)
activity_log.json
Output (activity_log.json)

Contribution

If you find any issues or have suggestions for improvement, or bug fixes, please open an issue or create a pull request.

About

This project actively monitors desktop applications and websites in real time, logging the duration of each session.


Languages

Language:Python 100.0%