Home » Featured, Internet, tricks

i’m hearing to Pink Floyd-Comfortably Numb

7 January 2008 773 views 2 CommentsEmail This Post Email This Post

The other day when i was on some mailing list someone posed me a question.He wanted to add a line at the end of his emails telling about what song was currently playing on his XMMS.

Something like “Currently listening to Pink Floyd-Comfortably Numb”. This is what I did.First create a file SongSignature.sh ss.sh with the following lines

#!/bin/bash
echo Now listening to $@ > mysong.txt

Put it in your home directory and then do a chmod a+x ss.sh on it so that everyone has execute permissions on it. Next, start XMMS, goto Preferences, and in the Effect/General Plugins tab, select the Song Change plugin’s properties. Specify ~/.ss.sh %s in the properties box. What happens now is that whenever a song changes, its name is put in the mysong.txt file (in your home directory).

The next part is dependent on your email client. In most good mail clients (like Mozilla Thunderbird) you can attach a file as a signature. Use mysong.txt as your signature file and ur done with.

PS 1:Me listening to Iron_Maiden-Brave_New_World

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

2 Comments »

  • Chris7mas said:

    Nice tip, thanks for sharing I’ll try this later, even though I use Amarok. I’m a Pink Floyd fan myself.

  • Kranny (author) said:

    Tanq..Evn I Becum numb when i hear to comfortably numb

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.