HOME | DD

Flamer-Shaftglutton — Sands of Time Linux desktop

Published: 2012-01-03 01:34:05 +0000 UTC; Views: 17073; Favourites: 50; Downloads: 3998
Redirect to original
Description 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.
Related content
Comments: 29

boeday [2012-12-23 05:27:10 +0000 UTC]

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

👍: 0 ⏩: 0

boeday [2012-12-23 05:24:21 +0000 UTC]

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

👍: 0 ⏩: 0

davevato [2012-06-08 13:05:33 +0000 UTC]

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.

👍: 0 ⏩: 1

davevato In reply to davevato [2012-06-08 13:32:13 +0000 UTC]

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()

👍: 0 ⏩: 0

crashusa666 [2012-02-18 16:27:20 +0000 UTC]

Awsome work!!
But I was hoping that you could help me out to set the clock on a 24-hour time, not am/pm.?

👍: 0 ⏩: 1

Flamer-Shaftglutton In reply to crashusa666 [2012-03-26 03:46:22 +0000 UTC]

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}.

👍: 0 ⏩: 0

dustmop725 [2012-02-10 01:55:54 +0000 UTC]

the desktop icons behind the text and overlay are blocked by it on mine. any way to fix this?

👍: 0 ⏩: 1

Flamer-Shaftglutton In reply to dustmop725 [2012-03-26 03:17:58 +0000 UTC]

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.

👍: 0 ⏩: 0

CrustyBarnacle [2012-02-08 21:32:37 +0000 UTC]

Looks awesome!
Thanks for porting this to conky .

------------
Absolute paths are necessary, but you can use "~" for your /home// 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")

👍: 0 ⏩: 0

ace4ker [2012-02-04 16:24:40 +0000 UTC]

Excellent

👍: 0 ⏩: 0

basseur [2012-02-02 14:19:43 +0000 UTC]

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?

👍: 0 ⏩: 0

basseur [2012-02-02 14:18:18 +0000 UTC]

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?

👍: 0 ⏩: 1

Flamer-Shaftglutton In reply to basseur [2012-02-03 05:41:43 +0000 UTC]

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?

👍: 0 ⏩: 0

LinuxRants [2012-02-02 04:38:47 +0000 UTC]

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!

👍: 0 ⏩: 1

Flamer-Shaftglutton In reply to LinuxRants [2012-02-03 05:48:03 +0000 UTC]

Glad you got it working. I've found that pretty desktops are a good way to get people interested in Linux.

👍: 0 ⏩: 0

Dupwnt [2012-02-01 14:50:03 +0000 UTC]

Killer work man.... Hell of a job!

👍: 0 ⏩: 1

Flamer-Shaftglutton In reply to Dupwnt [2012-02-03 05:55:38 +0000 UTC]

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.

👍: 0 ⏩: 0

ubuntu93 [2012-02-01 13:04:02 +0000 UTC]

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
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

👍: 0 ⏩: 2

Flamer-Shaftglutton In reply to ubuntu93 [2012-02-03 05:49:49 +0000 UTC]

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.

👍: 0 ⏩: 0

Dupwnt In reply to ubuntu93 [2012-02-01 14:49:26 +0000 UTC]

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.

👍: 0 ⏩: 0

laithk50 [2012-02-01 00:29:07 +0000 UTC]

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?

👍: 0 ⏩: 1

laithk50 In reply to laithk50 [2012-02-01 00:33:25 +0000 UTC]

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?

👍: 0 ⏩: 1

apoapoapo In reply to laithk50 [2012-02-01 12:20:50 +0000 UTC]

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 )

👍: 0 ⏩: 1

ubuntu93 In reply to apoapoapo [2012-02-01 13:48:54 +0000 UTC]

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'

👍: 0 ⏩: 2

apoapoapo In reply to ubuntu93 [2012-02-05 20:33:49 +0000 UTC]

I did change all the path. I may try this again in a few weeks.. my conky seems to be corrupted somehow.

👍: 0 ⏩: 1

teldric In reply to apoapoapo [2014-08-25 22:16:05 +0000 UTC]

Did you get it to work? I'm having the same problem...

👍: 0 ⏩: 0

Flamer-Shaftglutton In reply to ubuntu93 [2012-02-03 05:53:28 +0000 UTC]

Yeah, unfortunately Conky/Lua demand absolute paths, which means you have to change a few things. Glad you got it working. If it still looks a bit off, play with the gap_x and gap_y variables until it looks right.

Oh and yes, I had to crop/resize it myself if I remember correctly.

👍: 0 ⏩: 0

EternalKernel [2012-01-03 10:27:51 +0000 UTC]

Nice work!

👍: 0 ⏩: 0

Dobbie03 [2012-01-03 02:38:06 +0000 UTC]

Excellent work with the conky

👍: 0 ⏩: 0