Shop Mobile More Submit  Join Login
Nookie Slideshow Conky by alecive Nookie Slideshow Conky by alecive
This is a slideshow made with conky. It's easy to setup and to customize, and it comes with three different dimensions (to fit all necessities).
Actually, it's a porting of the slideshow rainmeter conky by JavaJosh82 [link] . Thanks to iacoporosso for the tip, and JavaJosh82 for the instpiration.

************************************************

Dependencies:
  • imagemagick is mandatory. Be sure to check if it's installed to run the script properly.

************************************************

Installation:
To suit your needs, you have to extract the archive, and modify few things.
  • slideshow.sh -> This is the script that manages images. In the beginning of the file there are two variables you can change. The former is "directory", and it handles the directory in which there are images to slide. The latter is "dim", and it manages the dimension of the slideshow itself; it can be set to "big", "medium" or "small" (default is "medium").

  • NookieSlideshowConky -> This is a simple conky made to run the slideshow script. Change the value after "${execpi" to increase or reduce the refresh rate. Default is 60 (seconds).

************************************************

2012-02-10 Update:
  • Modified form factor of the frame to better match the majority of images (that generally are in 4:3 ratio).

  • Improved the script, and added more shadow to the frames.
Add a Comment:
 
:iconarktika13:
arktika13 Featured By Owner Oct 27, 2013
great work thank you!!
Reply
:iconalecive:
alecive Featured By Owner Oct 28, 2013   Interface Designer
:)
Reply
:iconmatiasolmusic:
MatiasOlmusic Featured By Owner Mar 31, 2013
Thank you ! :)
Reply
:icondahmoo:
Dahmoo Featured By Owner Mar 2, 2013
Thank you
Reply
:iconalecive:
alecive Featured By Owner Mar 17, 2013   Interface Designer
You're welcome! :)
Reply
:iconyosaze:
yosaze Featured By Owner Feb 21, 2013  Student Artist
not working for me, what should i do ?

Conky: desktop window (a8) is root window
Conky: window type - normal
Conky: drawing to created window (0x1e00001)
Conky: drawing to double buffer
convert: unable to open image `pix/photobg_bg_medium.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_bg_medium.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_bg_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
convert: unable to open image `result.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `result.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `result.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `pix/photobg_shadow_medium.png': dules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489 @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_shadow_medium.png': ToOpenFile @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_shadow_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
Conky: Unable to load image 'result.png'
Reply
:iconyosaze:
yosaze Featured By Owner Feb 21, 2013  Student Artist
not working for me, what should i do ?

Conky: desktop window (a8) is root window
Conky: window type - normal
Conky: drawing to created window (0x1e00001)
Conky: drawing to double buffer
convert: unable to open image `pix/photobg_bg_medium.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_bg_medium.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_bg_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
convert: unable to open image `result.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `result.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `result.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `pix/photobg_shadow_medium.png': dules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489 @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_shadow_medium.png': ToOpenFile @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_shadow_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
Conky: Unable to load image 'result.png'
Reply
:iconyosaze:
yosaze Featured By Owner Feb 21, 2013  Student Artist
hallo bro, i've got errors when i running:

conky -c ~/.conky/Slideshow
Conky: desktop window (a8) is root window
Conky: window type - normal
Conky: drawing to created window (0x2e00001)
Conky: drawing to double buffer
convert: unable to open image `pics/*.*': (�k���� @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `current.png' @ error/convert.c/ConvertImageCommand/2940.
convert: unable to open image `pix/photobg_bg_medium.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_bg_medium.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_bg_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
convert: unable to open image `result.png': /usr/lib/ImageMagick-6.6.0/modules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489.
convert: unable to open image `result.png': @ error/blob.c/OpenBlob/2489.
convert: unable to open file `result.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `pix/photobg_shadow_medium.png': dules-Q16/coders/png.la @ error/blob.c/OpenBlob/2489 @ error/blob.c/OpenBlob/2489.
convert: unable to open image `pix/photobg_shadow_medium.png': ToOpenFile @ error/blob.c/OpenBlob/2489.
convert: unable to open file `pix/photobg_shadow_medium.png' @ error/png.c/ReadPNGImage/2951.
convert: missing an image filename `result.png' @ error/convert.c/ConvertImageCommand/2940.
Conky: Unable to load image 'result.png'

what should i do ?
Reply
:iconjyounin:
jyounin Featured By Owner Nov 3, 2012  Hobbyist General Artist
yeah, this is what I want B)
cool..!
Reply
:icondasfox:
DasFox Featured By Owner May 1, 2012
One last thing I forgot, the slideshow randomly plays the images, but what I've noticed is that it will always at some point show an image, then another one and then play these two, or like another one over and over in some kind of loop, then move on and start showing other images. But sooner or later it gets stuck in this loop going back and forth with a few images being displayed over and over before moving on and showing the others...

It would be nice if the slideshow can be made to just start at a beginning and then go to the end and when it's done showing everything, start from the beginning again, because right now the random displaying of images isn't working very well....

THANKS
Reply
:iconalecive:
alecive Featured By Owner May 2, 2012   Interface Designer
For a bit of documentation:

[link]
Reply
:icondasfox:
DasFox Featured By Owner May 2, 2012
Sorry what does that Link have to do with any of this?


Thanks...
Reply
:iconalecive:
alecive Featured By Owner May 2, 2012   Interface Designer
It's the reason for which you cannot actually have a real random number generator, but a pseudorandom generator. And this makes the errors you told me before. Any further trick is either too complex to be implemented (at least for me) or too useless for such a simple application :)
Reply
:icondasfox:
DasFox Featured By Owner May 9, 2012
Ok, wasn't sure if something could be done to start at the beginning of the images and play all of them, and then loop back...

Hey I love this, THANKS, don't take me wrong, but it's to bad something can't be done, it's just that for me the same images constantly play over and over...


THANKS
Reply
:icondasfox:
DasFox Featured By Owner May 1, 2012
LOL, I got it alecive for keeping the images in the ~/.conky path;

[link]

Sorry for all this and just one last request, even though this is suppose to be more for 4:3 aspect ratio images, do you think you can make an update to this, so that no matter what aspect the image is in, it will fill the window and not leave gaps on the top and bottom, or sides?

Right now even with 4:3 aspect ratio images taken from a camera I still have to crop them to get them to look nice and fill up the entire window and leave no gaps... And sometimes it's not just a simple crop one time and be done, I've had to do this several times for one image, spending as much as 3-5 mins an image to get it right....


THANKS
Reply
:iconalecive:
alecive Featured By Owner May 2, 2012   Interface Designer
As I told you, I'm not going to fill the image into the containing frame since I'd rather prefer a black contour than a stretched image with ugly faces or distortions that prevent an user to appreciate it completely. And I'd rather prefer a black contour than a cropped (but with the correct ratio) image :)
Reply
:icondasfox:
DasFox Featured By Owner May 2, 2012
Sorry for any misunderstanding, I'm talking about maintaining the aspect ratio and not having images stretch and look ugly, but simply also having them fill the window...

Why would anyone want to have black borders on the sides or top and bottom of an image, when you can simply have them fill the window with the correct aspect ratios?

Anyhow I hope I've been clearer with this now...

The thing is, if we were talking about a movie watching it in some movie cinema in some wide screen format, then I can understand having some borders on the screen, but these are just pictures we're talking about...

THANKS
Reply
:iconalecive:
alecive Featured By Owner May 2, 2012   Interface Designer
So your proposal is to modify the aspect ratio of the surrounding frame rather then of the image itself?
Reply
:icondasfox:
DasFox Featured By Owner May 9, 2012
I'm just saying, can't something be done, so no matter what aspect ratio an image is, it fills the window and it looks good?

Here's are screen shots of images I cropped so they fill the window;

[link]
[link]
[link]
[link]

None of these images look stretched, or with improper looking aspect ratios, they look good and it would be nice to have any image do this, fill the window...

Don't those screen shots look good to you? I'd rather see as much of the image as possible, instead of having it look cropped off with borders around it.

In my mind having borders around the image, is like trying to give it some artistic look, which I don't need, I just want to see as much of the picture as possible...

To me, those images in the screen shots look great and I hope you think so to and can see my point...

THANKS
Reply
:iconalecive:
alecive Featured By Owner May 10, 2012   Interface Designer
Ok, try to stretch this image: [link]

Or, better, this: [link]

(just random images found on google). What happens?
Reply
:icondasfox:
DasFox Featured By Owner May 23, 2012
Of course you can't do this with those images they are to tall...

Of course there will be many times someone will take a picture in Portrait mode on their camera and if it's like this then the slideshow is going to show the borders on the left and right.

But for images shot in a normal or widescreen mode this can be done easily by cropping them...

Anyhow, with the image of the girl I would not want to use the slideshow like this with borders on the sides, I'm not sure why you like this too.

Why do you like, or want to have borders on the sides of your images, why would you want the image to fill the screen?

There really isn't a way to do this for any image and keep the scale?


THANKS
Reply
:iconalecive:
alecive Featured By Owner Jun 4, 2012   Interface Designer
I have to find it, but eventually I'll win ! :)
Reply
(1 Reply)
:icondasfox:
DasFox Featured By Owner May 1, 2012
Did you get a chance to figure out why it's creating the images in my HOME?

THANKS
Reply
:icondasfox:
DasFox Featured By Owner Apr 30, 2012
SORRY alecive I replied after I logged in and thought it was going to a private message not here... :(
Reply
:iconalecive:
alecive Featured By Owner May 1, 2012   Interface Designer
No prob
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
SORRY forgot to post an screenshot showing 'small' window showing a black gap on the left and right of the image;

[link]

Now this doesn't happen for all images, here's another screen shot of an image filling the window with no gaps;

[link]

So we need some sort of a fill/scale option to have it better scale the images when using this...

I haven't tested this out on 'medium' and 'big', so far this is a problem I see for small, but maybe it's also on those sizes too...


THANKS
Reply
:iconalecive:
alecive Featured By Owner Apr 30, 2012   Interface Designer
I thought a lot about this, but in my opinion is better having images with the correct aspect ratio and a black margin rather than a perfectly fitted image but stretched and not so nice to see.

Problem is that I should adapt the frame to the image itself, but I don't know how to do this.
Reply
:icondasfox:
DasFox Featured By Owner Apr 30, 2012
I went and cropped the images and then they worked, so maybe you can compare these sizes to see why they worked, unless these are of course as
4:3 ratio?

My point before is that it would be nice to have them simply scale to fit no matter what aspect ratio they are. Even as 4:3 from pictures
taken from a camera I am finding I still need to crop them, otherwise they don't fit into the frame nicely, after all who wants to have nice
images, only to have them with black borders around them... :(

After cropping these sizes worked;
1680x1049
608x392
720x450
1422x890
772x489

Also this is the path I use to place my conky configs/scripts into;

/home/foo/.conky

In that directory for conky I placed the NookieSlideshowConky with everything in it...

foo@box:~/.conky/NookieSlideshowConky$ ls
NookieSlideshowConky current.png pix/ result.png slideshow.sh*

Now in /home/foo/.conky I have a startup script to start all my conky configurations I want to run;

conky_start.sh;

-------------------------------------------------------------------

#!/bin/sh

# start / stop Conky

#conky -c ~/.conky/conkyrc-clock &
#conky -c ~/.conky/conkyrc-pricedown.dk.grey &
conky -c ~/.conky/conkyrc-pricedown.lt.grey &
#conky -c ~/.conky/conkyrc-stats.dk.grey &
conky -c ~/.conky/conkyrc-stats.lt.grey &

# Conky Slideshow

conky -c ~/.conky/NookieSlideshowConky/NookieSlideshowConky &

-------------------------------------------------------------------


Then I use OpenBox and in the OpenBox menu I have an entry to run Conky and when I click on that menu entry it's creating the current.png and
results.png in my HOME path instead of using them from the NookieSlideshowConky directory.

Here's a screen shot of that;

[link]

Here's how the conky config looks for the slideshow:

${execpi 60 ~/.conky/NookieSlideshowConky/slideshow.sh}

Here's the slideshow.sh for the images with changes paths so it will work;

# Sets picture for conky to use
convert $randomfile -resize $geometry\> -size $geometry xc:black +swap -gravity center -composite current.png
convert ~/.conky/NookieSlideshowConky/pix/photobg_bg_$dim.png current.png -geometry +11+11 -composite result.png
convert result.png ~/.conky/NookieSlideshowConky/pix/photobg_shadow_$dim.png -composite result.png
echo "\${image result.png -p $pos}"
exit

So why is this thing creating the current.png and results.png in my HOME path instead of using them from the NookieSlideshowConky directory?


THANKS
Reply
:iconalecive:
alecive Featured By Owner May 1, 2012   Interface Designer
Because the openbox menutitem is in your home directory when launching the conky, even though it should be in NookieSlideshowConky directory. But I don't know openbox, so I can't help you :(
Reply
:icondasfox:
DasFox Featured By Owner May 1, 2012
Since I believe you run Gnome, please try this then;

Place all your files in ~/.conky

Then create a startup script in ~./conky to start it, then create a 'Launcher' in Gnome that points to the startup script and then see if it gives you the same problem?

The thing is, if an end-user wants to start many instances of conky to run all at once, then you need to create a menu/launcher like this to a startup script, the end result should be the same on any desktop...


THANKS
Reply
:icondasfox:
DasFox Featured By Owner May 1, 2012
Of course the OpenBox configurations are in ~/.config like most configurations for any desktop under the /home/user/.config path...

I don't think OpenBox has anything to do with this since it's configuration paths are typical, this seem to be more an issue with the slideshow.sh configuration and the imagemagick options, with the command; conky -c NookieSlideshowConky needing to be run within that directory...

Not sure what should be in the NookieSlideshowConky directory that you are talking about?

This is the command I use in the OpenBox menu with points to the ~/.conky path;

~/.conky/conky_start.sh

As I mentioned before I have this command in that conky_start.sh script to start the slideshow;

conky -c ~/.conky/NookieSlideshowConky

If I run the command also from the terminal like this below, I also have the same problem with the images appearing in my HOME;

conky -c /home/sar/.conky/NookieSlideshowConky &

The only way you can run this slideshow is directly from within the ~./conky path where all the files are at, running the command, then it will use the current.png and results.png in that directory...

The script simply doesn't like running the command outside the directory, so hopefully you can figure out the imagemagick options to use the images in the directory path you place them in and choose to have them...


THANKS
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
Also the images aren't filling the window, there are gaps on the left and right... :(


THANKS
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
I figured out why it won't move like it should...

You need to change this from;

own_window_type normal

and make it;

own_window_type desktop

:)

THANKS
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
There's a bug somewhere in this script, you can't use;

alignment top_left

And then get the images to appear in the upper top left of the screen...

I can get the 'big' images over to the left, but then they are like 25% from the top, just can't get it to go all the way to to the top...

This is as good as I can get it for the different sizes, only the big one goes all the way to the left but then all of them won't go to the very top;

Small;
[link]

Medium;
[link]

Big:
[link]

I hope you can fix this script so I can place all the images in the very top left...


THANKS
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
With no disrespect to Alecive's GREAT WORK!

In the meantime while we wait on an update, I've made the white frames with square edges for myself and anyone that might like that look better...

I uploaded this as a tar.gz, called pix.tar.gz at ZippyShare;

[link]

THANKS again for your great work !
Reply
:icondasfox:
DasFox Featured By Owner Apr 29, 2012
Really nice alecive THANKS! :)

The white how can we remove that? I'd rather not have the white border...

Also if you like making the borders can you just make a square shaped one next time?

This one the edges are a bit jagged looking, not smooth....


THANKS
Reply
:iconjoeday4:
joeday4 Featured By Owner Mar 5, 2012
thanks bro.

good job.
Reply
:iconalecive:
alecive Featured By Owner Mar 6, 2012   Interface Designer
Thanks to you! :)
Reply
:iconpassaralho:
Passaralho Featured By Owner Feb 16, 2012
You did it again!

Congratulation on another great work!

Best regards!
Reply
:iconalecive:
alecive Featured By Owner Feb 17, 2012   Interface Designer
Thanks man! Very very appreciated! :)
Reply
:iconbluebyt:
bluebyt Featured By Owner Feb 12, 2012
Yes work wonderfully now!
Reply
:iconbluebyt:
bluebyt Featured By Owner Feb 11, 2012
Thank you for the update!
Reply
:iconalecive:
alecive Featured By Owner Feb 12, 2012   Interface Designer
Did it solve the problem?
Reply
:iconbluebyt:
bluebyt Featured By Owner Feb 8, 2012
Thank you that solved the problem, but I have no shadow now!
Reply
:iconalecive:
alecive Featured By Owner Feb 9, 2012   Interface Designer
Wasn't that the problem? Actually, the frame has some sort of shadow itself.. but it's too thin, I have to increase it (probably in next version :) )!
Reply
:iconbluebyt:
bluebyt Featured By Owner Feb 7, 2012
I have like a square shadow?
See screenshot:
[link]
Reply
:iconalecive:
alecive Featured By Owner Feb 8, 2012   Interface Designer
at line #10 of NookieSlideshowConky replace its content with this:

own_window_type override


Unfortunately, it depends on your custom setup so I can have this option correctly working for all computers! :)
Reply
:iconpaz-1:
Paz-1 Featured By Owner Feb 6, 2012
Awesome! going to try it! =D
Thank you!
Reply
:iconalecive:
alecive Featured By Owner Feb 7, 2012   Interface Designer
Thanks to you my friend!
And thanks for the :+fav:!

Btw, keep synchronized with this since I'm going to upload a new version in these days :)
Reply
:iconpaz-1:
Paz-1 Featured By Owner Feb 7, 2012
You're most welcome Alessandro!

can you please help me with simple instructions for running it?
1. I have imagemagick installed
2. Extructed it to my home.
3. Changed the directory.
...AND NOW..?!
Reply
Add a Comment:
 
×
Download ZIP download, 617 KB




Details

Submitted on
February 5, 2012
File Size
617 KB
Link
Thumb
Embed

Stats

Views
10,184 (5 today)
Favourites
36 (who?)
Comments
71
Downloads
1,468 (1 today)

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×