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
File details
Details for the file concentration-1.1.3.tar.gz
.
File metadata
- Download URL: concentration-1.1.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7642-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb69d70999c732cb2304f73346bc0121b50204aa3dd2d86ac3e6f836c76a841 |
|
MD5 | 23b5140277de79941b1d6c9762cdafb0 |
|
BLAKE2b-256 | 39efb78254858b4f227fee95903edfe1f71dc546cbce052783004567fd8f1f19 |
File details
Details for the file concentration-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: concentration-1.1.3-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7642-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb7e92f38cc8bd2ade731043c0c3273986d1e456d9a23ff3afb049ab731a5bc |
|
MD5 | 255854d2e3b50f9cf565f1470af5122b |
|
BLAKE2b-256 | a51bedbb2886ee9a320c1dcfd10681d6b4c16ddfe18c46ac9d82bdeca8b7d01b |