Skip to main content

Terminal Think Music

Are you executing a process that takes a long time? Do you want to know that it’s still working while you are in another terminal/making coffee? Do you have a favorite game show tune to play while doing something?

If yes: think is just for you.

Installation

You can install think from PyPI (with pip install think). Arch Linux users can install the think package from the AUR.

Configuration

Create a file named ~/.config/think.conf (or wherever your XDG_CONFIG_HOME is) with the following four lines:

[Think]
command = play
file = /home/kwpolska/Dropbox/Media/Wielka Gra.mp3
behavior = wait
  • command is the command of the player that will be executed. You can use play (from sox) or any other fast CLI music player.

  • file is the filename that will be given as the sole argument to the play command. No escaping is necessary. I’m using the Wielka Gra theme, Americans might want Jeopardy! Think Music (also the namesake for this command), Brits might want the Countdown theme.

  • behavior can be one of:

    • return — return control to the terminal as soon as the program finishes, without stopping the music

    • wait — wait until music stops before returning control

    • stop — stop the music and return control immediately

Usage

Prepend think before the command that takes too long to execute:

think sleep 120

Metadata

Release files for think 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for think 0.1.2
File Size Uploaded Provenance
think-0.1.2.tar.gz 6.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for think 0.1.2
File Interpreter ABI Platform
think-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.5 kB

Release files / think-0.1.2.tar.gz

Download URL think-0.1.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
979645af77469cfa3c0bd8093c9e969149ebfb9e3e3fc3f16ed03a708d4e1e81
BLAKE2b-256 checksum
How to use checksums
ba83b609c0dc8433a6fd7ef9578cc860ffc258a5443892ba263f0aa053fdd0d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / think-0.1.2-py2.py3-none-any.whl

Download URL think-0.1.2-py2.py3-none-any.whl
Size 5.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
66303f86e56cba1e01b340cb65b9bcd20d7862fa587627d1d37376bfaaeeca10
BLAKE2b-256 checksum
How to use checksums
05d7f78b60fec19e0aee2f823178a9d6b680adfd8e8985da2c08ca6ecd8b50b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for think 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page