diff options
author | Case Duckworth | 2022-07-22 15:18:35 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-22 15:18:35 -0500 |
commit | 6f251b32c45c58bc512800e07ef45f643b209ad6 (patch) | |
tree | 4161a77b3b002456a8052142cf2cc607821260f4 | |
parent | Initial commit (well, sort of) (diff) | |
download | radish-6f251b32c45c58bc512800e07ef45f643b209ad6.tar.gz radish-6f251b32c45c58bc512800e07ef45f643b209ad6.zip |
Add README
-rw-r--r-- | README.md | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..578c90a --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,79 @@ | |||
1 | # RADISH | ||
2 | ## radio player in sh | ||
3 | |||
4 | I just want a simple script to play radio sometimes, or shuffle music on my | ||
5 | computer, or play noise. I don't need tagging, playlist building, blah blah | ||
6 | blah. So, I wrote RADISH. | ||
7 | |||
8 | ## Usage | ||
9 | |||
10 | Copied from `radish -h`: | ||
11 | |||
12 | ``` | ||
13 | RADISH: radio, music, static | ||
14 | USAGE: radish [-h|-k|-r|-s|-S] | ||
15 | radish -l [NAME] | ||
16 | radish [STATION] | ||
17 | |||
18 | FLAGS: | ||
19 | -h Show this help and exit. | ||
20 | -s Show radish's status and exit. | ||
21 | -S Show radish's status indefinitely. | ||
22 | -k Kill the currently-playing radish invocation. | ||
23 | -r Replay most recently-played station. | ||
24 | |||
25 | OPTIONS: | ||
26 | -l [NAME] List available stations. | ||
27 | If NAME is given, narrow the list to those matching it. | ||
28 | |||
29 | PARAMETERS: | ||
30 | STATION Which configured station to play. | ||
31 | Stations are defined in the $RADISH_STATION_FILE | ||
32 | (default: /home/case/etc/radish/stations). | ||
33 | If STATION is not present, or if it matches | ||
34 | more than one station, radish will present a menu. | ||
35 | ``` | ||
36 | |||
37 | ## Configuration | ||
38 | |||
39 | A default `radish.stations` is provided in this repo; save it to | ||
40 | `$XDG_CONFIG_HOME/radish/stations` and edit as you see fit. | ||
41 | |||
42 | Radish's `station` file is a tab-separated file with the following schema: | ||
43 | |||
44 | ``` | ||
45 | URL DESCRIPTION TAGS | ||
46 | ``` | ||
47 | |||
48 | Lines starting with `#` are ignored as comments. | ||
49 | |||
50 | A `URL` can be the URL of an internet radio or other stream, or one of | ||
51 | `file://<FOLDER>`, `shuf://<FOLDER>`, or `noise://<NOISE-SPEC>`. The `file:` | ||
52 | protocol simply finds all music files underneath `FOLDER` and plays them in | ||
53 | order. `shuf:` does the same, but shuffles the files. `noise:` uses SoX's | ||
54 | `play` binary to generate noise. | ||
55 | |||
56 | **NOTE**: Currently the `noise:` URL parsing doesn't work. Patches welcome! | ||
57 | |||
58 | **NOTE**: I'm looking at using a previously-existing playlist format, like `pls` | ||
59 | or `m3u`, instead of this ad-hoc tab-separated deal. Expect change in this area. | ||
60 | |||
61 | ## Installation | ||
62 | |||
63 | ``` | ||
64 | # make install | ||
65 | ``` | ||
66 | |||
67 | ## Uninstallation | ||
68 | |||
69 | ``` | ||
70 | # make uninstall | ||
71 | ``` | ||
72 | |||
73 | ## Contributing | ||
74 | |||
75 | Patches, comments, complaints are welcome. You can email me at the address | ||
76 | listed on the bottom of this page. | ||
77 | |||
78 | RADISH and its associated files are licensed under the Fair License. See | ||
79 | COPYING for more details. | ||