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.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for concentration-1.0.4.tar.gz
Algorithm Hash digest
SHA256 158ee0b65c6143eefa0817913b2e5ee83cbfe149f65f99bd2cab0769e1cc93fb
MD5 6f8523654d142df5cfd6b166d2c031e2
BLAKE2b-256 5dee0a8836c0335e3769f52678be3fae2d439cd7fcc758619af03fec1b3c833d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for concentration-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e6f3efe703196ad529c1d60ee94b1169c401fee1759df51dc7052d5497c6cfb
MD5 19a69db536540b7874342ffe8dbea25b
BLAKE2b-256 e060b1c2da7b369acd3295bef5166a6dc2f462e22e046e7eab8f518a4165a4b6

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