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

Contributors 2

  •  
  •  

Languages