Get work done when you need to, goof off when you don't.
Project description
Concentration
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. Internally uses /etc/hosts file as the mechanism to block sites.
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
To access all sites:
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.1.tar.gz
.
File metadata
- Download URL: concentration-1.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55620a267828a2d54a150b23e36013263b779a103eba0f3564b1e0f83f1af926 |
|
MD5 | 8e31b80ee965a17ef2148da47c17abe6 |
|
BLAKE2b-256 | dd2ee2a005aa41962506fa1c2c269cc82ad1ca9704f03708c6ead854d8917dd9 |
File details
Details for the file concentration-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: concentration-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cbee6244e43d02191ac5e18028edcf1b40d913c7553faf9a79b8e69b698f74a |
|
MD5 | 5336fae8c10294e8185684d5204ecea5 |
|
BLAKE2b-256 | f829eb2acb729f4197622c2da1c90473431438d9bac18897ddfc05aa1c88dfd1 |