Get work done when you need to, goof off when you don't.
Project description
Concentration
Read Latest Documentation - Browse GitHub Code Repository
Stay focused on work when you want, and goof off when you don't. Concentration is a simple Python 3 console utility to block distracting sites when you need to focus, while allowing you to easily take timed breaks. Concentration uses the /etc/hosts file as the mechanism to block sites, and works on Linux, Macintosh, and Windows.
Installing Concentration
pip3 install concentration
# Or if pip is already set to use Python 3
pip install concentration
Using Concentration
To keep focused (blocking distracting sites):
sudo concentration improve
To take a small 5 minute timed break:
sudo concentration break
To take a long 60 minute timed break:
sudo concentration break -m 60
You can cancel breaks with Ctrl-C
.
To disable blocking until you explicitly enable it again:
sudo concentration lose
Configuring Concentration
You can add more files to the blocked list by putting them in the following files (new line delimited):
- ~/.concentration.distractors
- /etc/concentration.distractors
You can make sure sites are visible even if concentration is enabled by putting them in the following files (new line delimited):
- ~/.concentration.safe
- /etc/concentration.safe
Thanks and I hope you find concentration useful in your effort to get more done!
~Timothy Crosley
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for concentration-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe8f44145ad8492b41976b451f41de5c3801082f4c4d8fc02c314781ec22fbc9 |
|
MD5 | 79a60ff515ff5421bedf40b980931095 |
|
BLAKE2b-256 | 6768e17707ab013c2cb66fa6cc3f43fd5d32a26adb2fbd854fcab8aaab0385a6 |