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.
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
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 think-0.1.1.tar.gz
.
File metadata
- Download URL: think-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4630c3da6292982c9e9a642f65584b9b956a3542b805bae58e23108768572e8d |
|
MD5 | 9aa19f2add8f11e3d51a21075a8d2f38 |
|
BLAKE2b-256 | ad346fe7cda675fafac053525590425c5a19694ee29063a3630943a0885142c6 |
File details
Details for the file think-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: think-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f77b2dcf6d259a0303f825c6ec6721e967854d95bb477198591682d7ed0ec4 |
|
MD5 | 01431cedd3bc472bc22579e84c72e9d7 |
|
BLAKE2b-256 | 99c1906c9da5dd046a9e8e0dfd91dec23d381684cc7f93551ade96e271048ad4 |