#!/bin/bash# Author: Silian Della Ragione# Version: 0.0.1# 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.#############################################################################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='Listens:' now_playing="${message} ${artist} - ${title}" echo hello gajimstatus=`gajim-remote get_status`# gaim-remote "setstatus?message=${now_playing}" if [ "${?}" = "0" ]; then if [ ! "${gajimstatus}" = "offline" ]; then accounts=`gajim-remote list_accounts` for account in ${accounts}; do gajim-remote change_status "${gajimstatus}" "${now_playing}" "${account}" done fi fi fidone