![]() |
| |||||||
| Home | Forums | Rules | All Albums | Blogs | Subscriptions | Register | Mark Forums Read |
| Software & OSs Operating Systems, Anti-Virus, Utilities and Programs. |
![]() |
| | LinkBack (5) | Thread Tools |
| |
#1 |
| Banned Join Date: Jun 2006 Location: /home/yurimxpxman
Posts: 1,695
| 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 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
Code: sudo chmod a+x gaim-amarok 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 |
| | |
| | #2 |
| Join Date: Jan 2007 Location: Higher than you!
Posts: 179
| 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=- -------------------------------- |
| | |
| | #3 | |
| Join Date: May 2006 Location: Rhode Island USA
Posts: 1,716
| Quote:
Opteron 64 165--1.5GB DDR--ECS KA1 MVP(thanks HL!)--x1800GTO 256MB--Seagate 320GB SATA--Antec 550 Watt--Antec P180 | |
| | |
| | #4 |
| ButtHead Join Date: Mar 2006
Posts: 5,062
| Maybe some day I'll venture back into linux. |
| | |
| | #5 |
| i love bawls Join Date: Mar 2006 Location: teh_Earth
Posts: 828
| 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 |
| | |
| | #6 | |
| Banned Join Date: Jun 2006 Location: /home/yurimxpxman
Posts: 1,695
| Quote:
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. | |
| | |
| | #7 | |
| Join Date: May 2006 Location: Rhode Island USA
Posts: 1,716
| Quote:
Opteron 64 165--1.5GB DDR--ECS KA1 MVP(thanks HL!)--x1800GTO 256MB--Seagate 320GB SATA--Antec 550 Watt--Antec P180 | |
| | |
| | #8 |
| Beer Drinking Association Join Date: Feb 2007 Location: Longview, Texas
Posts: 200
| 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 |
| | |
![]() |
|
| Tags |
| gaim, listening, script |
| Thread Tools | |
|
|
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 |