Block distractions during work hours!
Set appropriate values in defaults.py
- Websites to block
- Start and end time (in 24 hours)
- Polling rate (in seconds)
Supports -
- Windows
- Linux
- macOS
Windows (as administrator) -
- python blocker.py
Linux/macOS -
- sudo python blocker.py
Windows (as administrator) -
- Change extension of blocker.py to .pyw
- Use Task Scheduler to run on startup (Check off 'Run with highest privileges')
Linux/macOS -
- sudo crontab -e
- Add line -
@reboot python3 ${path_to_blocker.py}/blocker.py
to run on startup