Contents:


  1. Introduction
  2. Installation
  3. Defining the HotKey
  4. Using playCopy as a module
  5. Enable/Disable the notification
  6. Download




1. Introduction

    Well as you may know, *playCopy* is a python script, wich is designed for the people, who like to share the music they are listening with their friends in Skype, ICQ etc, using a simple global HotKey combination.
    The script works as follows:

- Check if one of the supported players is playing
- Copy the name of the artist and the title of the song
- Combine the artist and the title in one string
- Send the end string to the clipboard

    The script supports the following players:
- Rhythmbox
- mocp
- Exaile
- Banshee
- Audacious
- Quod Libet
- Listen
- Bluemindo
- Jajuk

2. Installation

   The installation is very simple. After you have extracted the downloaded archive you need to do the following:
      - Make the playCopy script executable:

$ chmod +x playCopy
      - Copy the playCopy script to /usr/bin as root:
# cp playCopy /usr/bin

3. Defining the HotKey

Here is the tricky part. To define a global HotKey for executing the script you need to do the following steps:

1. Start gconf-editor
2. Go to apps → metacity → keybinding_commands
3. Select the variable command_1 end set value: playCopy
keybind_command.png
4. Now go to apps → metacity → global_keybinding
5. Select the variable run_command_1 end set value: <Control><Alt>c
global_key.png
You can insert your preferered key-combination, but don't forget the < and > tags

4. Using playCopy as a module

playCopy can also be used as a module for other Python scripts. To use it, simply rename playCode to playCode.py and use as follows:

import playCopy
print playCopy.cur_song() # Use playCopy.cur_song() however you wish!

But be aware that you will have to remove the notifies from the scirpt!

5. Enable/Disable the notification

Screenshot.pngIn order to enable or disable the notifications is to edit the playCopy script and set the variable show_not, where:

1 : Enabled (notification for the current playing song will be shown)
0 : Disabled (no notification will be shown)

6. Download


Latest stable release:

archive.png playCopy_1.0.tar.bz2 | md5sum

Older releases:

archive.png playCopy_0.8.tar.bz2 | md5sum
archive.png playCopy_0.7.tar.bz2 | md5sum
archive.png playCopy_0.4.tar.bz2 | md5sum
archive.png playCopy_0.4.tar.bz2 | md5sum
archive.png playCopy_0.3.tar.bz2 | md5sum

Launchpad branch:

bzr branch lp:playcopy

Have fun and don't hesitate to suggest new players or other options to the script.

Got to top ⇑

Valid XHTML 1.0 Transitional donn_lp_64.png
Author: Vladimir Kolev