Skip to main content

soundify exitcodes

Project description

Soundify

Soundify can play sounds according to exit codes.

Installation

For stable version:

$ pip3 install soundify

Or manual installation (not necessarily stable):

$ git clone git@github.com:amiremohamadi/Soundify.git
$ cd Soundify
$ pip3 install .

Configure

You need a config file to tell soundify, play which music for what exit code.

  1. check config path by:
$ soundify -c
  1. create config file
$ vim $(soundify -c)

it's a yaml file. syntax is like this:

0: 'path/to/sound/file'
1: 'path/to/sound/file'
2: 'path/to/sound/file'
error_code: 'path/to/sound/file'

NOTE: You can test your config:

$ soundify -t 0
$ soundify -t 1

And check if all the configured sounds are playing well or not.

That's it!

You can find cool sounds from here.

Usage

$ soundify your_command

NOTE: Don't forget to put quotes around your command, if the command contains spaces.

$ soundify "gcc main.c -o main"

Or you can use it inside a build automation tool (such as Makefile). assume we have a Makefile like this:

main: main.c
    soundify "gcc main.c -o main"

So then just:

$ make

Hooray! :D

NOTE: Also soundify doesn't change exit code:

$ soundify "ls a_file_that_does_not_exist"
$ echo $? # print exit code

Contribute

Soundify is a new small weekend project, it may have lots of problems. So feel free to contribute.

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

soundify-0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

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