Precursor to a more fully fledged control gnome-applet (perhaps). Allows you to skip the current playing track with just one click.
#!/usr/bin/env python
import os
import sys
cfifo = "%s/cplay-%s/cplay_control" % (os.environ.get("TMPDIR", "/tmp"), os.environ["USER"])
f = open(cfifo,'w')
f.write("next\n")
f.close()
Note: Probably only works with the ubuntu version
- Save the above code somewhere handy
- chmod +r the file
- Create a new launcher that runs the code
- Give the launcher a snazzy icon