https://github.com/gebner/mpdsep
mpd sound effect player
https://github.com/gebner/mpdsep
Last synced: 10 months ago
JSON representation
mpd sound effect player
- Host: GitHub
- URL: https://github.com/gebner/mpdsep
- Owner: gebner
- Created: 2012-09-25T18:20:25.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-10-02T20:08:54.000Z (almost 14 years ago)
- Last Synced: 2025-06-12T08:02:42.548Z (about 1 year ago)
- Language: Shell
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mpd sound effect player
=======================
`mpdsep` reads a file called `effects.txt` from the current directory and
allows the user to play a sound file with a single keystroke.
Format of effects.txt
---------------------
Each line in `effects.txt` describes a single sound effect. For example:
w "Hilarious laughing" laughtrack o
`w` is the keystroke that will trigger the effect, "Hilarious laughing" is
shown in the on-screen legend, `laughtrack` is the search term used to find the
sound track, and `o` means that the track will be played once (for repeating on
a loop use `r`). `mpdsep` uses the first result of `mpc search any $query`, a
filename is also fine.
As shown in the example, spaces can be escaped using double quotes.
Usage
-----
If you start `mpdsep` with the example `effects.txt`, you will see the following:
$ ./mpdsep
(w) Hilarious laughing
Press the indicated key to play a sound effect. Pressing space will stop the
effect immediately.