spchat (NO FILES. JUST A SCREENSHOT)

Karamba & Superkaramba

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
Ok, this is something I doubt anyone would want (my code is sloppy), but it does work and I thought maybe someone would be inspired to make it better.

I basically just created a widget that displays images (which I made on southparkstudios.com) based on my contacts status. The black and white means Offline, eyes closed is away, and the other is Online. I wrote a little bash script to swap the images:

#!/bin/bash
#Image change script

basefolder=/home/kris/spchat
status="dcop kopete default contactsStatus"

#start with all offline
cp -f $basefolder/offline/* $basefolder

#main loop (if kopete is running)

while [ `dcop |grep -c kopete` != 0 ]

do

statuslist="`$status`"

while read contact
do
if
[ `echo $statuslist |grep -c "$contact (Online)"` != 0 ]
then cp -f $basefolder/online/"$contact"* $basefolder

elif
[ `echo $statuslist |grep -c "$contact (Away)"` != 0 ]
then cp -f $basefolder/away/"$contact"* $basefolder

elif
[ `echo $statuslist |grep -c "$contact (Offline)"` != 0 ]
then cp -f $basefolder/offline/"$contact"* $basefolder
fi


done < $basefolder/contacts.txt

sleep 30;

done
________

so, the widget displays whatever image is in the basefolder and the script copies the appropriate image to that folder (from the away, online, and offline subfolders).

Anyway, I thought it turned out looking ok (although, I might change the widget background

Also, I'll eventually add more dcop functions so i can drag n drop files, or start a chat.. maybe grab the incoming message and use convert to place it on top of a cartoon text balloon and draw that next to the appropriate avatar.

Comments? Too much??

Ratings & Comments

3 Comments

lostson

Thats pretty slick gonna try it out

p0z3r

This is a very fun idea. Sounds like it could be very plugin oriented for any chat client. Managing all the contacts and having enough different images for all your contacts may be challenging though.

johnnyelvis

Agreed. I have about 200 ppl on my various contact lists, so there's only a few who warranted an avatar :D I would post the theme and script, but god.. what a mess. Also, I doubt kde-look would want me to post those avatars. I'm not sure how that works. I made them using the sp character generator at southparkstudios.com. Like I said, I'm hoping somebody gets inspired and makes some kinda cool kopete` sk widget :D

Pling
0 Affiliates
Details
license
version .01a
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

Other Karamba & Superkaramba:

Evolution Task Theme (for Karamba)
L0rclA5CII
last update date: 22 years ago

Score 5.0

Karambaqua
manor
last update date: 22 years ago

Score 5.0

Karamba Print Queue Monitor
Praxxus
last update date: 22 years ago

Score 5.0

The DarkGirl wallpaper and Karamba theme
xray
last update date: 22 years ago

Score 5.0

TecnoBar for Karamba
ZIOlele
last update date: 22 years ago

Score 5.0

Karamba Ink Level Monitor
Praxxus
last update date: 22 years ago

Score 5.0