Skip to main content

Terminal Think Music

Project description

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.

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 long:

think sleep 120

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

think-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

think-0.1.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file think-0.1.0.tar.gz.

File metadata

  • Download URL: think-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for think-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7184e9f679b0d6b0bcb306a81e2130e9ad93d420d010b3225a34c0d90a38f83f
MD5 4d5f931942326f6b3e2f520ddcdd0808
BLAKE2b-256 5e3feebe076087640be7a4eea625668912416702c338840ed5d7f000e2940275

See more details on using hashes here.

File details

Details for the file think-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for think-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a748c73a0e88da97c0b0d82950006758c44736b2440a3936e9f78c4ce9756abc
MD5 05665758194ee027331673daddfcafb6
BLAKE2b-256 b2284a96a790a376f14e3ba1e055d01dbe2e456edc3ccc1631bf89b1bfd527f5

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