
karamba photo album notifier
Source (link to git-repo or to original if based on someone elses unmodified work):
There are three themes.
albums.theme - just a slideshow
albumsclock.theme - slideshow with a small clock on it
albumsmail.theme - slideshow with small clock and small pop3 notifier on it too
The mail notifier only appears if you have mail so don't be surprised if it isn't there.
This uses vanilla karamba. I don't know if it will work with SuperKaramba.
Clicking on the picture will show the full size image using kuickshow or if you click on the
mail box (if and when it is present) kmail
will be started.
The script "pictures.pl" needs to be edited to tell it which directories to search through and the script must be in your $PATH
If using the pop3 mail notifier, the script mailcheck.pl needs to be edited too to add mail box information and be in your $PATH.
The script requires ImageMagick.
I find it relaxing, you might too!
regards
V1.5a
Threw out the control panel as it started to annoy me. Back to three individual themes. Main reason for update, however, was to move this to the karamba section on kde-look
V1.5b
Previous upload completely broken. This one actually works though ImageMagick 5.5.4 didn't work for me on a Slackware 8.0 box. An upgrade to ImageMagick solved that one.
V1.5a
bulbcheck.pl now handles the time as the clock was getting alarmingly slow
V1.5
Added control panel
Added annotation
roled three themes into one
V1.4
Improved picture scaling
Fixes to the mail notify display
V1.3
Added the mail notifier theme.
V1.2
Last update included old script. This version includes correct script and provides an alternative theme which puts a small clock on the pictures too.
V1.1
Images now look sensible with pictures of different aspect ratios.
Ratings & Comments
13 Comments
A really simple and nice karamba theme! What I was looking for, but I didn't know until I saw it :). The main con is that some details should be polished, since I've had to touch both, the theme and the script to make it work. One tip: in albums.theme, the command for ONCLICK should be "kwickshow '%v'" instead of "kwickshow %v" (note the single commas) to avoid problems with paths that have spaces inside. Thanks! You've braught more fun to KDE desktop
Would be good to allow recursing of directories by using find rather than ls: (save the following to a.patch then type 'patch -p0 < a.patch' in the directory holding pictures.pl) --- pictures.pl 2004-05-05 04:38:37.000000000 -0600 +++ pictures.pl.new 2004-05-05 04:15:25.000000000 -0600 @@ -33,8 +33,7 @@ ############ NO CHANGES REQUIRED BELOW HERE ########## -chdir "$TOP"; -@TEMPDIRS=`ls`; +@TEMPDIRS=`find $TOP -type d`; foreach $dir (@TEMPDIRS){ chomp $dir; @@ -61,9 +60,9 @@ #OK, pick a piccy -@PICS=`ls`; +@PICS=`find $TOP -type f`; $ind=rand(scalar(@PICS)); -$piccy="$TOP/$dir/$PICS[int($ind)]"; +$piccy="$PICS[int($ind)]"; chomp $piccy; # See if we are a portrait type piccy
First of all, this nice theme doesn't work with superkaramba, so use 'vanilla' karamba. An update for superkaramba would be nice. then, I found and corrected a bug in the script pictures.pl as follows: I changed the line that says: $piccy="$TOP/$dir/$PICS[int($ind)]"; into: $piccy="$TOP/$PICS[int($ind)]"; (I have never done perl before and I am lucky that I could figure this one out...) Lastly, if like me you have a 800*600 screen, don't be surprised if the theme doesn't work at all: it is just out of the field. You'll have to modify x and y in the .theme file to fit your screen. Thanks for this nice little script... Do you have any plan to keep working on it? Blessings
I am very glad you liked this theme. This and my adapted weather theme (which I never released) are the only two karamba themes I still use. I did do one more addition to the theme which included a system monitor on top of the photo, with the clock and the mail. I didn't release it but you can e-mail me if you want it. I think the bug you found must be because you have a different layout than me. I have a directory called "albums" and then sub-direcories underneath containing pictures. The script searches through all the subdirectories for pictures. If you don't have the sub-directories, then your change might be required. If you do only have the one directory though you could, change the $TOP variable to point to the directory above your picture directory and use the $include variable to only look through your picture directory. Actually I run in a much higher resolution so haven't noticed the "off the screen problem". maybe I should put it in the comment. I don't have plans to adapt it to superkaramba because I feel the way superkaramba has been implemented has completely destroyed the project. Even the original auhor has said he won't be working on karamba any more. It's a shame because the original karamba was a fantastic design but, in my view, superkaramba is just a hack that produces a million different replacements for kicker that nobody will use for more than a couple of days.
For those of you interested in using this theme with superkaramba (v .33), you'll need to convert any relative references in the theme to absolute paths. Ie. 'pictures.pl' should become '~/superkaramba/albumns/pictures.pl' (for example). For some reason, superkaramba doesn't seem to support relative paths yet (?)
hi, there is an error when i execute the mailcheck.pl: Can't locate Net/POP3.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at ./mailcheck.pl line 2. BEGIN failed--compilation aborted at ./mailcheck.pl line 2. where can i get the perl module? and where have i to put it?
You need the NET::Pop3 module. If you have the CPAN perl module install, just run "perl -MCPAN -e shell" and then at the prompt type "install Net::POP3". The whole install will be done automatically for you. If you've never used the CPAN module before, it'll go through a config thing first but automatic configuration will probably be OK. If you don't have the CPAN module, you'll have to go to http://www.cpan.org and search for Net::POP3. THe install instructions are pretty clear.
Just pulled your latest script, but I am struggling to see the difference. I didn't retain the old version of the script, so can't check. However, it only seems to resize in one direction (ie x), and doesn't test for aspect ratio, and resize accordingly. Seems to me you could test for aspect ratio, and if y is greater than x, convert to a maximum y value, rather than the current script that converts to a maximum x value regardless. Unfortunately, I don't do perl, so I'm not sure how to do it. I could do it in bash, but before I do that, thought you, or someone might have a go at it. Matt
Actually, the original script scaled all pictures to one size. This one scales to one of two sizes depending on the aspect ratio. I did have a version that scaled to a ratio instead of an absolute size but small pictures turned out really small and some large pictures got clipped by the size of the karamba window (I'm hoping Hans will include dcop calls in a future version so we can dynamicaly change the karamba window size). I'll do an update so that you can choose either fixed size correct or scaling. Regards
I Just did a test download myself and found that the wrong version of the script is on the site! I'll upload the new version again now + a small update that puts a clock on there too, if you want it.
verry nice, realy! But another question ... That background :-) Where did you get it from?
It has been already asked, but I asked it again ... :-) anyway, they already answered it: http://www.ics-studio.com.pl/qed/images/m/raro-pueblo.jpg more at http://www.designtechnika.com/board/index.php?act=ST&f=85&t=2196&s=20fecdaed54d11143400990f389ac567
Try going here :) http://images.google.com/images?q=raro-pueblo&hl=en&lr=&ie=UTF-8&oe=UTF-8&sa=N&tab=wi Regards