File: lircrc.advanced

package info (click to toggle)
irmp3 0.4.3pre6-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 584 kB
  • ctags: 374
  • sloc: ansic: 3,955; makefile: 212; pascal: 39
file content (181 lines) | stat: -rw-r--r-- 3,168 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
##########################################################################
# $Id: lircrc.advanced,v 1.5 2000/02/07 18:50:50 dpotter Exp $
#
# lircrc.advanced -- Advanced lircrc for use with LIRC and IRMP3
#                    (this is actually the configuration I use)
#
# Copyright (C) by Andreas Neuhaus <andy@fasta.fh-dortmund.de>
#

##########################################################################
# Notice: This is an advanced example and maybe difficult
# to understand. For a much easier example, see lircrc.simple.
#

#
# Stop playing when the STOP or POWER button is pressed
begin
	prog = irmp3
	button = STOP
	config = stop
end
begin
	prog = irmp3
	button = POWER
	config = stop
end

#
# Button PAUSE is used to pause/resume the playing
begin
	prog = irmp3
	button = PAUSE
	config = pause
end

#
# Buttons 1-6 will load playlists
begin
	prog = irmp3
	button = 1
	config = playlist load /home/MP3/cd1.m3u
end
begin
	prog = irmp3
	button = 2
	config = playlist load /home/MP3/cd2.m3u
end
begin
	prog = irmp3
	button = 3
	config = playlist load /home/MP3/cd3.m3u
end
begin
	prog = irmp3
	button = 4
	config = playlist load /home/MP3/cd4.m3u
end
begin
	prog = irmp3
	button = 5
	config = playlist load /home/MP3/cd5.m3u
end
begin
	prog = irmp3
	button = 6
	config = playlist load /home/MP3/cd6.m3u
end

#
# Buttons 7-9 will scan some directories for my favorite songs
begin
	prog = irmp3
	button = 7
	config = playlist loaddir /home/MP3/*/*Metal/*.mp3
end
begin
	prog = irmp3
	button = 8
	config = playlist loaddir /home/MP3/*/*Pop/*.mp3
end
begin
	prog = irmp3
	button = 9
	config = playlist loaddir /home/MP3/*/Soft*/*.mp3
end

#
# Button 0 plays my temporary song directory
begin
	prog = irmp3
	button = 0
	config = playlist loaddir /home/MP3/tmp/*.mp3
end

#
# Button X2 will shuffle the playlist thus providing
# a random play order of the current playlist
begin
	prog = irmp3
	button = X2
	config = playlist shuffle
end

#
# Button X1 will switch repeat mode
begin
	prog = irmp3
	button = X1
	config = playlist repeat
end

#
# Buttons CHAN+ and CHAN- are used to skip a song forward
# or back in the current playlist.
begin
	prog = irmp3
	button = CHAN+
	config = playlist jump +1
end
begin
	prog = irmp3
	button = CHAN-
	config = playlist jump -1
end

#
# Buttons FF and REW are used to seek 2 seconds in the
# currently playing song.
begin
	prog = irmp3
	button = FF
	repeat = 1
	config = seek +2
end
begin
	prog = irmp3
	button = REW
	repeat = 1
	config = seek -2
end

#
# Buttons VOL+ and VOL- are used to control the mixer
# and thus increasing/decreasing the master volume.
begin
	prog = irmp3
	button = VOL+
	repeat = 1
	config = mixer volume +2
end
begin
	prog = irmp3
	button = VOL-
	repeat = 1
	config = mixer volume -2
end

#
# Button X3 is used to activate the sleep function
begin
	prog = irmp3
	button = X3
	config = sleep 5 2
	config = sleep 15 5
	config = sleep 30 5
	config = sleep 45 10
	config = sleep 60 10
	config = sleep 0
end

#
# Button INFO is used to switch the time display
begin
	prog = irmp3
	button = INFO
	config = displaymode
end

##########################################################################
# EOF
#