... chime: command line


You can run python from the command line too!

python -c "import time; time.sleep(1)"

Even if we were running a script from the command line we'd like to get our notification, so we need to add an & to chain the commands.

python -c "import time; time.sleep(1)"

The setup below will play a sound regardless of the fact that the first command succeeded or not.

# This is preferable on MacOS/Ubuntu 
python -c "import time; time.sleep(1)"; python -m chime
# This is preferable on Windows
python -c "import time; time.sleep(1)" & python -m chime

Again, for more information on the library, check out the github page here.

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider signing up for the newsletter.