Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 186 lines (153 sloc) 4.761 kB
a4e8382 @trapd00r rmcd.conf: added POD
authored
1 =pod
2
3 =head1 NAME
4
5 rmcd.conf - rmcd configuration file
6
7 =head1 ENVIRONMENT
8
9 rmcd.conf should be placed in $XDG_CONFIG_HOME/rmcd/rmcd.conf OR
10 /etc/rmcd.conf
11
12 The FIFO is placed in $HOME/.mplayer/rmcd.fifo by default.
13
14 Note that only one process at a time can use the pipe since it'll block, so
15 dont use the same pipe as other mplayer instances.
16 =cut
56765b2 @trapd00r rmcd.conf: initial
authored
17
fb1ebbb @trapd00r rmcd: cleanup a bit
authored
18 our $fifo = "$ENV{HOME}/.mplayer/rmcd.fifo";
19
a4e8382 @trapd00r rmcd.conf: added POD
authored
20 =head1 OPTIONS
21
22 =head2 Mplayer
23
24 =head3 Default options passed to mplayer
25
26 -identify is needed for Mplayer::NowPlaying
27
28 -idle is needed for rmcd to keep waiting when the playlist is empty
29
30 -input file=$fifo is needed for the interprocess communication
31
32 =cut
fb1ebbb @trapd00r rmcd: cleanup a bit
authored
33 our $player = 'mplayer';
8912da3 @trapd00r rmcd.conf: fix formatting
authored
34 our @playopt = (
35 '-cache', 2000,
36 '-min-cache', 200,
37 '-quiet',
38 'identify',
39 '-idle',
40 'input', "file=$fifo",
41 );
fb1ebbb @trapd00r rmcd: cleanup a bit
authored
42
a4e8382 @trapd00r rmcd.conf: added POD
authored
43 =head2 rmcd
44
45 =head3 rmcd.conf variables
46
47 $dir_to_copy_to - where files will end up after using the -cp flag
48 $custom_np - a code reference that will be called upon if defined.
49
50 =head4 Custom now playing function
51
52 If you are streaming music from another box using MPD, you will not get all
53 metadata since it only sends what is commonly known as ICY INFO. Therefore you
54 might want to override the builtin now playing functionality in rmcd.
55
56 =head4 Custom now playing code reference that uses PIMPD and SSH
57
58 our $custom_np =
59 sub {
60 my $oneline = shift; # show on one line if dummy args is provided
61 my $host = '192.168.1.111';
62 my $user = 'laleh';
63 my $port = 22; # ssh port
64
65 if($oneline) {
66 exec("ssh $user\@$host -p $port '/usr/bin/pimpd -np'");
67 }
68 else {
69 exec("ssh $user\@$host -p $port '/usr/bin/pimpd -i'");
70 }
71 };
72
73 =cut
56765b2 @trapd00r rmcd.conf: initial
authored
74 our $dir_to_copy_to = "$ENV{HOME}";
a4e8382 @trapd00r rmcd.conf: added POD
authored
75 our $custom_np = undef;
76
77 =head1 RADIO
78
79 =head2 Stations
80
81 You can configure your own channels in the %channels hash. The syntax is
82
83 L<short_channel_name> => { name => 'Fullname', uri => 'http://fulluri.m3u'}
84 =cut
56765b2 @trapd00r rmcd.conf: initial
authored
85
e4f77f8 @trapd00r rmcd.conf: updated
authored
86 our %channels = (
87 psy => {
88 name => 'Digitally Imported - Psychedelic',
89 uri => 'http://listen.di.fm/public3/goapsy.pls',
90 },
91 dnb => {
92 name => 'Digitally Imported - Drum and Bass',
93 uri => 'http://listen.di.fm/public3/drumandbass.pls',
94 },
95 hardcore => {
96 name => 'Digitally Imported - Hardcore',
97 uri => 'http://listen.di.fm/public3/hardcore.pls',
98 },
99 hardstyle => {
100 name => 'Digitally Imported - Hardstyle',
101 uri => 'http://listen.di.fm/public3/hardstyle.pls',
102 },
103 gabber => {
104 name => 'Digitally Imported - Gabber',
105 uri => 'http://listen.di.fm/public3/gabber.pls',
106 },
107 psychill => {
108 name => 'Digitally Imported - Psychill',
109 uri => 'http://listen.di.fm/public3/psychill.pls',
110 },
111 dubstep => {
112 name => 'Digitally Imported - Dubstep',
113 uri => 'http://listen.di.fm/pulic3/dubstep.pls',
114 },
115 psy2 => {
116 name => 'Schizoid - Psychedelic',
117 uri => 'http://schizoid.in/schizoid-psy.pls',
118 },
119 psy3 => {
120 name => 'Psyradio - Progressive',
121 uri => 'http://streamer.psyradio.org:8010/listen.pls',
122 },
123 psy4 => {
124 name => 'Psyradio Full-On',
125 uri => 'http://streamer.psyradio.org:8030/listen.pls',
126 },
127 psy5 => {
128 name => 'Chromomanova - Psychedelic',
129 uri => 'http://85.25.86.69:8000/listen.pls',
130 },
131 kohina => {
132 name => 'Kohina - Chiptunes',
133 uri => 'http://www.kohina.com/kohinasolanum.m3u',
134 },
135 keygen => {
136 name => 'Keygen.fm',
137 uri => 'http://stream.keygen-fm.ru:8000/listen.pls',
138 },
139 sega => {
140 name => 'Radio SEGA',
141 uri => 'http://83.170.109.107:8000/listen.pls',
142 },
143 rainwave => {
144 name => 'Rainwave - Videogame Music',
145 uri => 'http://stream.gameowls.com:8000/rainwave.ogg',
146 },
147 gabber2 => {
148 name => 'Hardcast Gabber',
149 uri =>'http://www.shoutcast.com/sbin/tunein-station.pls?id=1390',
150 },
151 gabber3 => {
152 name => 'Rotterdam Terror (192kbps)',
153 uri => 'http://www.shoutcast.com/sbin/tunein-station.pls?id=784307',
154 },
155 moh => {
156 name => 'Masters of Hardcore',
157 uri => 'http://www.hardcoreradio.nl/hr.m3u',
158 },
159 hardstyle2 => {
160 name => 'Hard.fm Hardstyle (192kbps)',
161 uri => 'http://files.hard.fm/192.pls',
162 },
163 hardstyle3 => {
164 name => 'Blackout Hardstyle (320kbps)',
165 uri =>'http://yourno1hitradio.eu:8000/listen.pls',
166 },
167 '90' => {
168 name => "Hits from the 90's",
169 uri => 'http://www.shoutcast.com/sbin/tunein-station.pls?id=4384&t=.pls',
170 },
171 dnb2 => {
172 name => 'Drum and Bass Radio',
173 uri => 'http://www.dnbradio.com/hi.m3u',
174 },
175 cvgm => {
176 name => 'cvgm.net - Video Game and Demo Music',
177 uri => 'http://de.cvgm.net/cvgm128.mp3',
56765b2 @trapd00r rmcd.conf: initial
authored
178 },
179 );
180
181 1;
182
183
e4f77f8 @trapd00r rmcd.conf: updated
authored
184
56765b2 @trapd00r rmcd.conf: initial
authored
185 # vim: set ts=2 ft=perl:
Something went wrong with that request. Please try again.