Results 1 to 3 of 3
My problem is like this: I want to change my gaim status message with my current amarok playing song. I searched the internet and found two scripts: AmarokGaim and Gaim-Gajim ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-30-2007 #1
Amarok & Gaim
My problem is like this: I want to change my gaim status message with my current amarok playing song. I searched the internet and found two scripts: AmarokGaim and Gaim-Gajim to do this, but they both need some dependicies that i can't locate anywhere: the first one needs phyton with dbus support, gaim with dbus and a DCOP client (whatever those are) and the second one depends on gaim-remote (or gajim-remote). Can anyone tell me somewhere to look for these things or another way to solve my problem? I'm a noob using Ubuntu Feisty.
Thanks.
- 04-30-2007 #2
xxx
OK, I've one some searching and found that everything needed for gaim-gajim to work is already installed on my system, but when I run the script it just freezes, and nothing happens. I've started to play with the script (testing commands all by one to see what they do) and found that the command that doesn't respond is this:
If I remove it, the script just gives out an error:Code:read NOTIFICATION || exit
Could anyone explain to me wht this command is supposed to do or something?Code:[: 61: ==: unexpected operator
- 04-30-2007 #3
xxx
OK, I figured it out. It Woks now. I guess I shouldn't have posted here
.
But just so it wasn't all in vain I'll post here the script that works for me, maybe somebody else would make use of it:
It only works with Gaim. I've cut off the Gajim part for speedCode:#!/bin/bash # Authors: Silian Della Ragione # Andres Gomez Garcia <agomez@igalia.com> # Version: 0.0.2 # License GNU/GPL ############################################################################ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # ############################################################################ #GAJIM_REMOTE=/usr/bin/gajim-remote GAIM_REMOTE=/usr/bin/gaim-remote # if [ ! -f "${GAJIM_REMOTE}" ]; then # exit -1 # fi #case ${LANG} in # C) # HEAD_MESSAGE="Listening:" # ;; # es_ES@euro) # HEAD_MESSAGE="Escuchando:" # ;; # *) HEAD_MESSAGE="Listening:" # ;; #esac while [ 1 ]; do # read NOTIFICATION || exit # if [ "x${NOTIFICATION}" == "xtrackChange" ]; then ARTIST=`dcop amarok player artist` ALBUM=`dcop amarok player album` TITLE=`dcop amarok player title` MESSAGE="${HEAD_MESSAGE} ${ARTIST} - ${ALBUM} - ${TITLE}" # if [ -x "${GAJIM_REMOTE}" ]; then # ACCOUNTS=`${GAJIM_REMOTE} list_accounts` # if [ "${?}" = "0" ]; then # for ACCOUNT in ${ACCOUNTS}; do # STATUS=`${GAJIM_REMOTE} get_status ${ACCOUNT}` # if [ ! "${STATUS}" = "offline" ]; then # ${GAJIM_REMOTE} change_status "${STATUS}" "${MESSAGE}" "${ACCOUNT}" # fi # done # fi # fi if [ -x "${GAIM_REMOTE}" ]; then ${GAIM_REMOTE} "setstatus?message=${MESSAGE}" fi # fi done # Modified by Ozzi :P
PS: It eats up a ton of CPU


Reply With Quote
