https://github.com/yaph/procrust
Limit the time you procrastinate by blocking websites via the hosts file.
https://github.com/yaph/procrust
block cli command-line-tool hosts procrastination productivity python-package
Last synced: 4 months ago
JSON representation
Limit the time you procrastinate by blocking websites via the hosts file.
- Host: GitHub
- URL: https://github.com/yaph/procrust
- Owner: yaph
- License: mit
- Created: 2019-12-17T23:20:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-21T19:53:11.000Z (over 5 years ago)
- Last Synced: 2025-02-08T20:17:59.614Z (4 months ago)
- Topics: block, cli, command-line-tool, hosts, procrastination, productivity, python-package
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# procrust
Limit the time you procrastinate by blocking websites via the hosts file.
# Usage
## Edit block list
Open the list of host names to block when not procrastinating for editing:
procrust edit
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 `-E` option.
sudo -E procrust start
sudo -E procrust stop
# Installation
Install the `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## Authors
`procrust` was written by [Ramiro Gómez](https://ramiro.org/).