spchat (NO FILES. JUST A SCREENSHOT)

Karamba & Superkaramba

Source (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
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?? :)

lostson

15 years ago

Thats pretty slick gonna try it out

Report

p0z3r

15 years ago

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.

Report

C

johnnyelvis

15 years ago

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

Report

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
.01a
updated Mar 15 2005
added Mar 15 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0