Limit the time you procrastinate by blocking websites via the hosts file
Limit the time you procrastinate by blocking websites via the hosts file.
Edit block list
Open the list of host names to block when not procrastinating for editing:
Add one host name per line.
Start and stop procrastinating
When you start and stop procrastinating the hosts file will be changed, so you need to run the command with root privileges. If you ran the
edit command without
sudo you need to preserve the environment with the
sudo -E procrust start sudo -E procrust stop
procrust command globally so it is accessible by the root user.
git clone https://github.com/yaph/procrust.git cd procrust sudo python3 setup.py install
procrust was written by Ramiro Gómez.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.