Search:  
Gentoo Wiki

TIP_Gaim_Autoprofile_plugin

Gaim Autoprofile

Contents

Installing

# emerge autoprofile

If you don`t have gaim installed, now would be a good time ;)

# emerge gaim

Usage

Start gaim , activate the plugin [ Tools -> Plugins ].

Tools -> Autoprofile -> Preferences. Make your update time 120 seconds.

Tools -> Autoprofile -> Edit Contents.

Create a new widget. Add a timestamp and rename it to Time.

Create a new widget. Add a command line and rename it to Fortune.

add the command `fortune`.

Please discover the rest of the widgets by yourself. :)


Now change your status to `[Time] -- [Fortune]` , without the quotes , and you`ll see a new quote every 2 mintues.

Try it , and contribue your experience to this page.

Current Song

There used to be a really cool plugin for gaim that would let you show your current song in your info. That has died and been resurrected lots of times now. Well, I switched to amaroK and there was nothing like that for amaroK. With this tool, you can just use the generic command thing and make a short script to put in the song title:

#!/bin/bash
echo `dcop amarok player artist` - `dcop amarok player title`

If you don't mind a bit of extra complication, and would like your script to gracefully fail if no song is playing, then this is for you:

#!/bin/bash
player_artist=`dcop amarok player artist`
player_song=`dcop amarok player title`
if [[ "$player_artist" != "" ]] || [[ "$player_song" != "" ]]
  then echo "Currently listening to: $player_artist - $player_song"
fi

I made a little change, I hope you like it:

#!/bin/bash
player_artist=`dcop amarok player artist`
player_song=`dcop amarok player title`
if [[ "$player_artist" != "" ]] || [[ "$player_song" != "" ]]
  then 
   echo "Currently listening to: $player_artist - $player_song"
else
   echo "I'm not using Amarok"
fi

--201.245.211.22 01:13, 15 November 2006 (UTC)

Some more features can be added such as the amount of time currently played in the song as well as whether the song is currently paused:

#!/bin/bash
player_artist=`dcop amarok player artist`
player_song=`dcop amarok player title`
player_status=`dcop amarok player status`
player_totalTime=`dcop amarok player totalTime`
player_timePlayed=`dcop amarok player trackCurrentTime`
player_minutes=`echo "$player_timePlayed/60"|bc`
player_seconds=`echo "$player_timePlayed-60*$player_minutes"|bc`
if [[ "$player_artist" != "" ]] || [[ "$player_song" != "" ]]
then
        echo -n "Currently listening to: \"$player_artist: $player_song\" "
        printf "[%d:%02d/%s]" $player_minutes $player_seconds "$player_totalTime"
        if [[ "$player_status" == "1" ]]
        then
                echo -n " (Paused)"
        fi
        echo ""
else
        echo -n ""
        # Not using amarok
fi

--68.55.235.80 20:24, 1 January 2007 (UTC)

See Also

Retrieved from "http://www.gentoo-wiki.info/TIP_Gaim_Autoprofile_plugin"

Last modified: Fri, 05 Sep 2008 05:45:00 +0000 Hits: 7,591