CplaySkip

Main Page | Recent changes | Random | Special
Edit this page | Page history | Discuss this page
 


Page type: Uncategorised

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

  1. Save the above code somewhere handy
  2. chmod +r the file
  3. Create a new launcher that runs the code
  4. Give the launcher a snazzy icon

Image:Skip.png