Deviation Actions

Flamer-Shaftglutton's avatar

Sands of Time Linux desktop

29 Comments
16K Views
Saw this for Mac at [link] and wondered how easy it would be with Mint Linux. Turns out very easy if you know what you're doing, although it took me a week to figure out what I was doing.

This was my first venture into Conky (and Lua), but I'll definitely be doing more.

If you want to do this yourself (Linux only), just click 'download' and follow the readme. Sorry it's a .zip file; apparently DA doesn't like tarballs.
Published:
© 2012 - 2021 Flamer-Shaftglutton
Comments29
Join the community to add your comment. Already a deviant? Log In
i need help, when i try this conky on ubuntu 12.04
this message show on the terminal
Conky: invalid configuration file 'clock'

Conky: desktop window (1800095) is subwindow of root window (aa)
Conky: window type - desktop
Conky: drawing to created window (0x3a00001)
Conky: drawing to single buffer

can u help me to fix it
can any one help me, i apply this conky on ubuntu 12.04
i think i did do any of that clue by change path
but i get this in the terminal

Conky: invalid configuration file 'clock'

Conky: desktop window (1800095) is subwindow of root window (aa)
Conky: window type - desktop
Conky: drawing to created window (0x3a00001)
Conky: drawing to single buffer
davevato's avatar
Anybody try to get this working on dual screen? when I try to move the clock over to the right hand screen the overlay is way out of alignment.
davevato's avatar
I found it, its in the overlay.lua, I had to adjust this line into the negatives to bring the overlay up:

imlib_context_set_image(image)
imlib_render_image_on_drawable(0,-455) <------ Original value was (0,171)
imlib_free_image()
Awsome work!!
But I was hoping that you could help me out to set the clock on a 24-hour time, not am/pm.?
Flamer-Shaftglutton's avatar
That's pretty easy to do. Open up the Clock file and alter the last line: change the I to an H, ${time %I:%M} to ${time %H:%M}.
the desktop icons behind the text and overlay are blocked by it on mine. any way to fix this?
Flamer-Shaftglutton's avatar
As far as I know, Conky will always cover up your icons. You can try changing the size of the Conky window and moving the overlay around, but that will just reduce the area Conky covers up.

Unfortunately, I don't think there's any way around it. If I find anything I'll let you know.
CrustyBarnacle's avatar
Looks awesome!
Thanks for porting this to conky :-).

------------
Absolute paths are necessary, but you can use "~" for your /home/<username>/ in "clock" and "conky_start.sh".

Assuming you unzipped all to "~/.config/conky":
clock: lua_load ~/.config/conky/overlay.lua
conky_start.sh: sleep 20 && conky -c ~/.config/conky/clock


Put "overlay.png" in the same folder, and simply use the name of the overlay file in "overlay.lua":
image = imlib_load_image("overlay.png")
ace4ker's avatar
I Installed this on Xubuntu 11.10.
The background of the clock was not transparent so I had to edit the following in the script:
own_window_argb_visual yes (added line)
own_window_argb_value 0 (added line)
own_window_type normal (used to be 'override')

But now the overlay .png file is also transparent
Any suggestions on how to fix this?
I Installed this on Xubuntu 11.10. The background of the clock was not transparent so I had to edit the following in the script:
own_window_argb_visual yes (added line)
own_window_argb_value 0 (added line)
own_window_type normal (used to be 'override')

But now the overlay .png file is also transparent
Any suggestions on how to fix this?
Flamer-Shaftglutton's avatar
That must be a Xubuntu thing; I never heard of any problem with the text. Weird.

Disregarding Conky pains, any advantages to Xubuntu over Ubuntu so far?
LinuxRants's avatar
I had to remove the override option from the own_window_type before I could see anything. Since I've got about 10 minutes cumulative conky experience, I can't say why that is. After that, a few small ajustments to the gap_y value, and it was perfect. Thank you!
Flamer-Shaftglutton's avatar
Glad you got it working. I've found that pretty desktops are a good way to get people interested in Linux.
Dupwnt's avatar
Killer work man.... Hell of a job!
Flamer-Shaftglutton's avatar
Thanks. Credit for the idea goes to Ian Smith from the link up top, although I do seem to be the first to attempt it with Linux.
ubuntu93's avatar
There's just one thing I don't get in your script. Why did you put the sleep command before actually executing the script? is there any benfit you get from waiting 20 secs?
Other than that....GREAT WORK :D
I'm actually talking to some friends to try and implement this as a lock screen background for ubuntu with the unlock password dialog embedded into the design.
...We'll see how that works out ;)
Flamer-Shaftglutton's avatar
The sleep command is to make sure X server is running first. If it's not and Conky tries to start, it'll just crash which defeats the purpose. You can tweak it based on how long it actually takes your machine to start up.

Also that lock-screen background sounds awesome. Give me a shout if you actually get that working.
Dupwnt's avatar
Putting the sleep command allow you to run this conky setup in your startup programs. If you dont put a delay on conky when executing from startup it just shuts itself down before you even get a chance to see it. The 20 seconds gives your desktop time to load all of the system functions conky depends on so that shortly after you log in you are greeted by the hasty arrival your conky setup.
Hi, I have your exact resolution, but the overlay won't show at all ...

the error I get is

"Conky: llua_do_call: function conky_start execution failed: attempt to call a nil value"

Any idea what I did wrong?
Sorry, false alarm ... fixed it.

But for some reason the overlay is a bit off even though it should fit nicely ...

Also, does the wallpaper have a 1366x768 size or did you crop/resize it yourself?
How did you fix it? I got the same error :(

(Please add always solutions to "I fixed it" posts. Goes for everyone out there! Thanks;-) )
ubuntu93's avatar
Yo need to fix the 'lua_load' path in the "clock" script.
to easily find it set gedit so it displays line numbers, then it's on line 27
lua_load /home/travis/.conky/overlay.lua

you need to put the correct path pointing to the location of the 'overlay.lua'
script.
So if you have copied the folder to your home and put a dot in front of it it should be 'lua_load /home/your_usrname/.conky/overlay.lua'
Join the community to add your comment. Already a deviant? Log In