Mercurial > vixm
comparison vixm/control.py @ 19:a3385f616b53
Implemented the run shell command command
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sun, 20 Aug 2006 00:31:33 -0400 |
parents | 1c769ae67af4 |
children | f39963e96ca1 |
comparison
equal
deleted
inserted
replaced
18:e87e577cc32f | 19:a3385f616b53 |
---|---|
1 import xmms | 1 import os, xmms |
2 | 2 |
3 import playlist, util | 3 import playlist, util |
4 | 4 |
5 def cmd_quit(ui, start, stop, args): | 5 def cmd_quit(ui, start, stop, args): |
6 ui.shutdown = True | 6 ui.shutdown = True |
104 xmms.control.playlist_prev() | 104 xmms.control.playlist_prev() |
105 | 105 |
106 def cmd_next(ui, start, stop, args): | 106 def cmd_next(ui, start, stop, args): |
107 xmms.control.playlist_next() | 107 xmms.control.playlist_next() |
108 | 108 |
109 def cmd_shell(ui, start, stop, args): | |
110 if args[0]: | |
111 os.system(args[0]) | |
112 print "!" | |
113 |