Skip to main content

Get work done when you need to, goof off when you don't.

Project description

Concentration

Join the chat at https://gitter.im/timothycrosley/concentration

Stay focused on work when you want, and goof off when you don’t. Concentration is a simple 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

concentration-1.0.3.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

concentration-1.0.3-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file concentration-1.0.3.tar.gz.

File metadata

File hashes

Hashes for concentration-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c032d9eebbc26f6661deb839ffbcff2a49da88ed0587ba7ff5119b7f992261b7
MD5 a3be9c5b4addaf3188e6e35c05c6be50
BLAKE2b-256 922fcb3f5b9d24ace9909ec82ed861c711b6d529cf3f5eaa14789077f2c041fb

See more details on using hashes here.

File details

Details for the file concentration-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for concentration-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4de2a431aa13d3a05e123907aa2b52df11648fec34caca3327c504cce581c46e
MD5 456ab59fcf3b3555279670c15cd7103a
BLAKE2b-256 42c97fa8a6a82c94dd1fc1c4a050f71fe63fd63b6c8d3e5c8f4d0ae3b8b6f318

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page