HardwareLogic

Go Back   HardwareLogic > Specific Hardware > Software & OSs
Home Forums Rules All AlbumsBlogs Subscriptions Register Mark Forums Read

Software & OSs Operating Systems, Anti-Virus, Utilities and Programs.

Reply
 
LinkBack (5) Thread Tools
Old February 25th, 2007   5 links from elsewhere to this Post. Click to view. #1
Banned
 
yurimxpxman's Avatar
 
Join Date: Jun 2006
Location: /home/yurimxpxman
Posts: 1,695
Default Gaim currently listening script for Amarok

Hey folks! I just wrote a script to change Gaim's away message to the song currently playing in Amarok. In case any of you are interested, here's how to do it:

Code:
$ sudo gedit /etc/bin/gaim-amarok
Paste this script into the file:

Code:
#!/bin/bash

while [ 1 ]; do
{
    if (` dcop amarok player isPlaying`); then
    {
        artist=` dcop amarok player artist`
        song=` dcop amarok player title`
        now_playing="Currently listening to:
${artist} - ${song}"
        gaim-remote "setstatus?message=${now_playing}"
        sleep 1
    }
    else
        gaim-remote "setstatus?message='I am currently away from the computer.'"
    fi
}
done
Make the script executable:

Code:
sudo chmod a+x gaim-amarok
Now whenever you type gaim-amarok into a terminal, it will automatically send the currently playing meta information to Gaim's away system. To do this without the annoying, extra terminal window, you'll need to make a launcher for it. You can do this by right-clicking your desktop and choosing Create Launcher... The command is "gaim-amarok" (no quotes). The rest of the information can be whatever you want. Now whenever you double-click that icon, Gaim's away message will be the song you're listening to.

To stop the program, open the GNOME task manager and find the process called "gaim-amarok". Right-click it and choose "End Task". It's as simple as that.

Cheers!

Edit: I updated the script to not display the currently listening while nothing is playing.

Last edited by gvblake22; February 25th, 2007 at 14:35. Reason: Added Links
yurimxpxman is offline   Reply With Quote
Old February 25th, 2007   #2
 
Cyberlon's Avatar
 
Join Date: Jan 2007
Location: Higher than you!
Posts: 179
Default Re: Gaim currently listening script for Amarok

I just thought I might point out some of the newer members who might be wondering what you are talking about that Gaim is an instant messenging program native to Linux and Amarok is a media player comparable to (but in my opinion superior to) Windows Media Player.



____________________________
_= AMD 2700+ OC'd to 3200 =_
-=1GB RAM, ATI 9600XT 512MB=-
--------------------------------
Cyberlon is offline   Reply With Quote
Old February 25th, 2007   #3
 
Join Date: May 2006
Location: Rhode Island USA
Posts: 1,716
Default Re: Gaim currently listening script for Amarok

Quote:
Originally Posted by Cyberlon View Post
I just thought I might point out some of the newer members who might be wondering what you are talking about that Gaim is an instant messenging program native to Linux and Amarok is a media player comparable to (but in my opinion superior to) Windows Media Player.
GAIM isn't just on Linux you know, I use it for MSN/Yahoo :)



Opteron 64 165--1.5GB DDR--ECS KA1 MVP(thanks HL!)--x1800GTO 256MB--Seagate 320GB SATA--Antec 550 Watt--Antec P180
Lead Head is offline   Reply With Quote
Old February 25th, 2007   #4
ButtHead
 
Jokerswild's Avatar
 
Join Date: Mar 2006
Posts: 5,062
Default Re: Gaim currently listening script for Amarok

Maybe some day I'll venture back into linux.



Jokerswild is offline   Reply With Quote
Old February 25th, 2007   #5
i love bawls
 
JazzyJake's Avatar
 
Join Date: Mar 2006
Location: teh_Earth
Posts: 828
Default Re: Gaim currently listening script for Amarok

a lot of you seem to sound like "but yea, that's linux"
in my opinion, after using linux, all windows is good for is my games, and the fact that i can run a couple apps that linux can't support, (yet)
nice script man, if i used gaim i'd use it, but i like kopete for the time being



JazzyJake is offline   Reply With Quote
Old February 25th, 2007   #6
Banned
 
yurimxpxman's Avatar
 
Join Date: Jun 2006
Location: /home/yurimxpxman
Posts: 1,695
Default Re: Gaim currently listening script for Amarok

Quote:
Originally Posted by JazzyJake View Post
a lot of you seem to sound like "but yea, that's linux"
in my opinion, after using linux, all windows is good for is my games, and the fact that i can run a couple apps that linux can't support, (yet)
nice script man, if i used gaim i'd use it, but i like kopete for the time being
I agree. A mere year ago I would have not recommended Linux because of the poor app support, but that's no longer a problem. Most of my games work in Linux (not that I play many anyways, but Snoopy vs. The Red Baron, HL2, and CS:S work) and it has everything else I need, plus Wine for everything I can't get for Linux.

My friend just switched to Linux and he's running his Adobe software from Wine. One of the big sells for him was Beryl.

As for using Kopete, when I have time, I'll see if I can come up with a script for that one too.
yurimxpxman is offline   Reply With Quote
Old February 25th, 2007   #7
 
Join Date: May 2006
Location: Rhode Island USA
Posts: 1,716
Default Re: Gaim currently listening script for Amarok

Quote:
Originally Posted by yurimxpxman View Post
I agree. A mere year ago I would have not recommended Linux because of the poor app support, but that's no longer a problem. Most of my games work in Linux (not that I play many anyways, but Snoopy vs. The Red Baron, HL2, and CS:S work) and it has everything else I need, plus Wine for everything I can't get for Linux.

My friend just switched to Linux and he's running his Adobe software from Wine. One of the big sells for him was Beryl.

As for using Kopete, when I have time, I'll see if I can come up with a script for that one too.
Even thought allot of games work in Linux, even with Cedega, the performance is pretty unspectacular, even with high-end hardware, but I do like Linux for the most part.



Opteron 64 165--1.5GB DDR--ECS KA1 MVP(thanks HL!)--x1800GTO 256MB--Seagate 320GB SATA--Antec 550 Watt--Antec P180
Lead Head is offline   Reply With Quote
Old February 25th, 2007   #8
Beer Drinking Association
 
Banditman's Avatar
 
Join Date: Feb 2007
Location: Longview, Texas
Posts: 200
Default Re: Gaim currently listening script for Amarok

I hope to change my internet server from windows 2000 pro to Linux. I need to learn alot of things first and along the way but I'm sure I can use this script. Thanks.



Athlon 64 4000+ 2.4 ghz 2 ghz HT
2 x 1GB PC3200 RAM
LG Lightscribe DVD/CD write 18x/48x read 16x/48x
Windows XP Pro SP 2 & Windows 2000 pro sp4
BFG Geforce 7800 GS OC 256mb running dual displays
Zalman CNPS9500 CPU Cooler
K8 Triton GA-K8U-939 Mobo w/ULI M1689 Chipset
Xion 600W PSU w/dual 12v rails

Banditman is offline   Reply With Quote
Old February 26th, 2007   #9
Banned
 
yurimxpxman's Avatar
 
Join Date: Jun 2006
Location: /home/yurimxpxman
Posts: 1,695
Default Re: Gaim currently listening script for Amarok

I found this script for Kopete & Amarok.
yurimxpxman is offline   Reply With Quote
Reply

  HardwareLogic > Specific Hardware > Software & OSs

Tags
gaim, listening, script


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://forums.hardwarelogic.com/f18/gaim-currently-listening-script-amarok-4825.html
Posted By For Type Date
Gaim currently listening script for Amarok - HardwareLogic Forums : Uvouch.com This thread Refback February 25th, 2008 11:57
i.milad's bookmarks tagged with This thread Refback July 16th, 2007 21:20
i.milad's bookmarks on del.icio.us This thread Refback March 31st, 2007 07:10
Pages tagged with This thread Refback March 22nd, 2007 12:43
Pages tagged with This thread Refback March 22nd, 2007 11:48

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listening to What Jokerswild HL Lounge 0 February 28th, 2008 12:51
differential backups script for Unix yurimxpxman Software & OSs 0 May 16th, 2007 20:37
What music are you guys listening to? Volkensmeer HL Lounge 113 January 3rd, 2007 20:03
PHP script Zambini Internet/Networking 24 November 16th, 2006 18:57
Planet Gaim yurimxpxman Internet/Networking 6 September 29th, 2006 10:23


All times are GMT -8. The time now is 18:41.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
© HardwareLogic 2005 - 2008. All Rights Reserved


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49