A simple Python script to block all distracting websites and also Telegram. Currently only supports MacOS
- Simply modify the
websites
array within theconcentrate.py
script by adding the websites you want to block.
- Install python3.
- Run using
sudo
by doingsudo python3 concentrate.py
in the directory where the file is located.
- Move the script to
/usr/local/bin
- Make it executable by running
chmod +x /usr/local/bin/concentrate.py
- Run using
sudo concentrate.py
from anywhere :)
- Add a pomodoro timer, and do not allow to disable the script until the pomodoro finishes
- Make it an application that can be pinned in the list in MacOs
- Super-focused mode - Blocks ALL websites - except those that are in the list.
UI:
- show a timer of how much time is left for focusing
Making it hard to disable the blocking:
- Hold the disable button for 60 seconds to disable
- 5 minutes after disabling is pressed - the blocking is still in effect, and there is a button to "Disable the disabling" and return to blocking the websites.