{"id":27951785,"url":"https://github.com/parmeetbhamrah/focus-lock","last_synced_at":"2025-05-07T16:26:28.621Z","repository":{"id":289597965,"uuid":"971635387","full_name":"ParmeetBhamrah/focus-lock","owner":"ParmeetBhamrah","description":"A Python-based productivity tool to block distracting apps and stay focused on deep work.","archived":false,"fork":false,"pushed_at":"2025-04-24T03:52:26.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T04:30:54.244Z","etag":null,"topics":["app-blocker","automation","cli","deep-work","focus","productivity","psutil","python","system-tools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ParmeetBhamrah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T20:29:40.000Z","updated_at":"2025-04-24T03:52:29.000Z","dependencies_parsed_at":"2025-04-24T04:41:05.357Z","dependency_job_id":null,"html_url":"https://github.com/ParmeetBhamrah/focus-lock","commit_stats":null,"previous_names":["parmeetbhamrah/focus-lock"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmeetBhamrah%2Ffocus-lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmeetBhamrah%2Ffocus-lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmeetBhamrah%2Ffocus-lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParmeetBhamrah%2Ffocus-lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ParmeetBhamrah","download_url":"https://codeload.github.com/ParmeetBhamrah/focus-lock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252914440,"owners_count":21824383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["app-blocker","automation","cli","deep-work","focus","productivity","psutil","python","system-tools"],"created_at":"2025-05-07T16:26:27.897Z","updated_at":"2025-05-07T16:26:28.602Z","avatar_url":"https://github.com/ParmeetBhamrah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Focus Lock 🔒\n\nA simple yet effective Python tool to boost productivity by blocking distracting apps for a set duration.\n\n## 🚀 Features\n\n- Block one or multiple apps by name (e.g., `notepad.exe`, `chrome.exe`)\n- Custom duration: choose hours or minutes\n- Terminates running instances of selected apps\n- Keeps monitoring in the background and blocks app relaunches\n- Lightweight and command-line based\n\n## 🛠️ Tech Stack\n\n- [Python](https://www.python.org/)\n- [psutil](https://pypi.org/project/psutil/)\n\n## 🧠 How It Works\n\n- The script prompts the user to input names of apps to block and a duration.\n- It checks every 2 seconds if any of the selected apps are running.\n- If found, it terminates the process.\n- The process continues until the specified duration elapses.\n\n## 📦 Installation\n\n```bash\npip install psutil\n```\n\n## 🧪 Usage\n\n```bash\npython focus_lock.py\n```\n\nFollow the on-screen prompts to enter:\n1. App names (comma separated)\n2. Duration format (minutes or hours)\n3. Time to block the apps\n\n\n## 📄 License\n\nMIT License\n\n---\n\nBuilt with ❤️ by Parmeet Singh Bhamrah","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmeetbhamrah%2Ffocus-lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparmeetbhamrah%2Ffocus-lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparmeetbhamrah%2Ffocus-lock/lists"}