comparison vixm/ui.py @ 17:1c769ae67af4 v0.12

Implemented the zxcvb xmms controls In case you are playing a crapy song and you want to skip it. Play/Pause/Stop are useful as well. Previous is little odd, but it is provided for completeness.
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Sun, 20 Aug 2006 00:19:41 -0400
parents 447b47ab396f
children a3385f616b53
comparison
equal deleted inserted replaced
16:447b47ab396f 17:1c769ae67af4
136 "h": 136 "h":
137 (control.cmd_help, 137 (control.cmd_help,
138 False, 138 False,
139 "h", 139 "h",
140 "this help list"), 140 "this help list"),
141 # the following commands are there do allow some,
142 # more direct control over xmms
143 "z":
144 (control.cmd_prev,
145 "z",
146 "previous item in playlist"),
147 "x":
148 (control.cmd_play,
149 False,
150 "x",
151 "play"),
152 "c":
153 (control.cmd_pause,
154 False,
155 "c",
156 "pause"),
157 "v":
158 (control.cmd_stop,
159 False,
160 "v",
161 "stop"),
162 "b":
163 (control.cmd_next,
164 False,
165 "b",
166 "next item in playlist"),
141 } 167 }
142 168
143 def __cmd(self, txt): 169 def __cmd(self, txt):
144 range_str = "(%|\\$|(\\$|[0-9]+){,1}(,(\\$|[0-9]+)){,1}){,1}" 170 range_str = "(%|\\$|(\\$|[0-9]+){,1}(,(\\$|[0-9]+)){,1}){,1}"
145 171