Skip to content

ParmeetBhamrah/focus-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Focus Lock 🔒

A simple yet effective Python tool to boost productivity by blocking distracting apps for a set duration.

🚀 Features

  • Block one or multiple apps by name (e.g., notepad.exe, chrome.exe)
  • Custom duration: choose hours or minutes
  • Terminates running instances of selected apps
  • Keeps monitoring in the background and blocks app relaunches
  • Lightweight and command-line based

🛠️ Tech Stack

🧠 How It Works

  • The script prompts the user to input names of apps to block and a duration.
  • It checks every 2 seconds if any of the selected apps are running.
  • If found, it terminates the process.
  • The process continues until the specified duration elapses.

📦 Installation

pip install psutil

🧪 Usage

python focus_lock.py

Follow the on-screen prompts to enter:

  1. App names (comma separated)
  2. Duration format (minutes or hours)
  3. Time to block the apps

📄 License

MIT License


Built with ❤️ by Parmeet Singh Bhamrah

About

A Python-based productivity tool to block distracting apps and stay focused on deep work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages