Skip to content

asura-cr/FocusLock

Repository files navigation

Caution

The only official place to download Focuslock are this GitHub repository and through the links provided through discord . Any other websites offering downloads or claiming to be us are not controlled by us.

Warning

Once you start there is no going back, so once you before you set the timer make sure you are ready

Tip

This version is only for Windows, get the apk at Focus-Lock Android

Tip

Sometimes it may bug out and close everythig , restart your pc/lap and open the application again

Downloads Version Discord


FocusLock

FocusLock is a study monitoring application that helps users maintain focus during study sessions by detecting and closing non-study-related applications using AI-powered content analysis.

Features

  • Customizable study duration
  • Automatic closing of non-study applications
  • Modern dark-themed GUI
  • Activity logging

Installation

From Installer

  1. Download the latest release from the releases page
  2. Run the installer (requires administrator privileges)
  3. Follow the installation wizard

From Source

  1. Clone the repository
git clone https://github.com/psycho980/FocusLock.git
  1. Install required package
pip install -r requirements.txt
  1. Run the application
python focuslock.py

Building from Source

Prerequisites

  • Python 3.8 or higher
  • PyInstaller
  • Inno Setup (for creating installer)

Build Steps

  1. Install build dependencies
pip install pyinstaller
  1. Build executable
pyinstaller focuslock.spec
  1. Create installer (optional)
  • Install Inno Setup
  • Open FocusLock.iss in Inno Setup Compiler
  • Click Compile or press F9

Usage

  1. Launch FocusLock (requires administrator privileges)
  2. Set your desired study duration in hours and minutes
  3. Click "Start Monitoring"
  4. The application will run in the system tray
  5. View logs anytime using the "View Logs" button

Configuration

The application creates a config file at %USERPROFILE%\FocusLock\config.json where you can customize:

  • Screenshot interval
  • Ignored processes

Requirements

  • Windows 10/11
  • Administrator privileges
  • 4GB RAM minimum
  • Internet connection (first run only, for model download)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published