Hi everybody! It's trendy nowadays to have the song that you listen show in the status of your messenger account. So, I'm writing this little howto, which probably won't contain very new stuff for many of you, but stuff that some might not know. So... Here we go.
1. First of all, follow this great HOWTO to get your Gaim 2.0 up and running
http://ubuntuforums.org/showthread.php?t=100899
2. Next, you need autoprofile. I compiled a working binary, which I am attaching here. It's compiled against today's Gaim CVS but I don't think they will make changes that would cause it not to work anytime soon. I'm not a very experienced programmer, so I had to disable the HTTP component feature, which we don't need. After downloading it, install it:
3. Now, with xmms. We will use the song_change plugin, which performs a shell action on various events in XMMS. So, go to XMMS/Preferences/General plugins. Select SongChange, click enable, and then configure. In the first edit box: "shell-command to run when XMMS starts a new song" insertCode:mkdir ~/.gaim/plugins/ cd <directory where you downloaded autoprofile.so.zip> unzip autoprofile.so.zip -d ~/.gaim/plugins/
Then click ok for the plugin settings and then apply in the XMMS preferences window. This plugin comes with standard XMMS.Code:echo "%n" > "<path to home folder>/xmms_song.txt"
4. Now... Restart Gaim. Go to the plugins screen (right click on the tray icon, select plugins). There, enable autoprofile, and then click "configure plugin". In the autoprofile configuration window, go to "Output text" tab and click Add. In the window that appears, enter the title "XMMS song info" then click OK. Now you will have this option among the Output text entries. Select it and click "Edit Text". The only thing you really need to enter in the big edit box is %x , which will be replaced with the song title but it would be nice to enter something customized, like: "Now listenning to ..:: %x ::.." or whatever you like.
5. Last step... In the autoprofile settings window, go to "Component settings" tab then under component list choose option "Text file/Songs" and you will have a browse button which you will use to select the file xmms_song.txt from your home directory. Make sure to change the song in XMMS at least once before this, to cause XMMS to create the file; otherwise, of course, it won't be there.
That's pretty much it. To enable the status, open the buddy list window of Gaim,go to Tools/Autoprofile/Away and in the window that shows up select option "XMMS song info" then click "use'. Et voila! The plugin will refresh the status message at intervals which you can select in the plugin configuration screen, under behavior tab. I use 1 minute, which is the shortest interval. It won't be instantaneous, but it will do (I doubt any of you have songs shorter than 1 minute ).
Tip: You can also use, let's say, "context specifc" text if you like. What I do is, under the Output text of autoprofile, enter
Now listenning to ..:: %x ::.. %a
Then, when I enable the away message, there is a small edit box there where I can enter the message which will replace %a. So for example, by entering "and studying" I will have the status:
Now listenning to ..:: song title ::.. and studying
If you enter nothing, then it will be just Now listenning to ..:: song title ::..
Well... that's it for the first howto I ever write. Hope someone will find it useful. I am of course open to any criticism and suggestions, so, please, "don't hold back" (yes, that is from a song by The Chemical Brothers).
Bookmarks