Mercurial > vixm
diff 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 |
line wrap: on
line diff
--- a/vixm/control.py Sun Aug 20 00:19:49 2006 -0400 +++ b/vixm/control.py Sun Aug 20 00:31:33 2006 -0400 @@ -1,4 +1,4 @@ -import xmms +import os, xmms import playlist, util @@ -106,3 +106,8 @@ def cmd_next(ui, start, stop, args): xmms.control.playlist_next() +def cmd_shell(ui, start, stop, args): + if args[0]: + os.system(args[0]) + print "!" +