HOME | DD

1inux — Night Shade Clock for Conky

Published: 2012-12-08 16:07:46 +0000 UTC; Views: 23796; Favourites: 42; Downloads: 4903
Redirect to original
Description Conky version of Night Shade Clock

Favs and Comments appreciated!
Related content
Comments: 21

p181153 [2019-01-28 10:36:21 +0000 UTC]

conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value

👍: 0 ⏩: 0

PerlinNoise [2016-04-03 12:29:34 +0000 UTC]

Do the seconds of this clock move smooth? Or does it do click, click, click?

👍: 0 ⏩: 0

s0meguy4567 [2016-01-12 22:21:59 +0000 UTC]

Hi, I know that I am late, but I would really love to use this clock. The problem is that I just get a black square instead of the clock. Maybe the conky devs changed the syntax so that old ones dont work anymore?

👍: 0 ⏩: 0

TheDeviantLjv [2014-03-25 01:04:59 +0000 UTC]

Nice !

👍: 0 ⏩: 0

Fishbertus [2013-09-02 22:27:57 +0000 UTC]

I don't know much about Conky, but this is definitely one of the best looking clocks I've seen!

👍: 0 ⏩: 1

1inux In reply to Fishbertus [2013-09-19 20:08:18 +0000 UTC]

Thank you!!

👍: 0 ⏩: 0

Risto24 [2013-01-15 12:46:32 +0000 UTC]

Hey,i have question about this clock.Yesterday i downloaded a theme,in folder i downloaded i also got few more items and clock same like this.I applied theme and all other items,also changed entire desktop including icons.But i only dont know how to apply damn clock. Because i need this one to fit with my theme. I feel kind of stupid but i dont see other way to find out how to apply that.I searched on YT too but i cant find anything helpful.

👍: 0 ⏩: 1

1inux In reply to Risto24 [2013-01-15 16:16:12 +0000 UTC]

For this clock, all you need to do is put the three files inside the folder (if you cannot see them, press +H and they should appear). After that run the following commands:
pkill conky
conky -c ~/.conky_ns

👍: 0 ⏩: 0

Pergerine [2012-12-18 05:33:44 +0000 UTC]

Looks great!
How do you change the colour of the clock hands and the hour marks? I'm not very familiar with lua.

👍: 0 ⏩: 1

1inux In reply to Pergerine [2012-12-18 20:39:14 +0000 UTC]

Thanks! Very easily btw, open up two files:

- .crings_ns.lua --> clock_colour=0x000000
clock_alpha=0.5

- .mark_ns.lua --> graduation_fg_colour=0x000000,
graduation_fg_alpha=0.6,

change 000000 to the desired color code
alpha means transparency on a scale of 0 to 1.

👍: 0 ⏩: 0

dechaux [2012-12-14 12:42:03 +0000 UTC]

Nice!

👍: 0 ⏩: 1

1inux In reply to dechaux [2012-12-14 19:55:16 +0000 UTC]

thanks!

👍: 0 ⏩: 1

dechaux In reply to 1inux [2012-12-14 19:57:57 +0000 UTC]

My pleasure!

👍: 0 ⏩: 0

dgoeduardo [2012-12-10 22:49:41 +0000 UTC]

It looks fantastic and it works sweet. What if I want to resize the clock, just a little bit smaller, where is the code that I must change?

👍: 0 ⏩: 1

1inux In reply to dgoeduardo [2012-12-11 00:50:32 +0000 UTC]

thanks!.. Ok, so there are two files that you need to change

.marks_ns.lua --> change 'graduation_radius=120,' to something like 100 or 60 (depending on how small you want it.) This will change how close or far the clock tick marks are.

.crings_ns.lua --> this one is a little complicated..
Hour hand ---> xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
change 0.7 to a smaller number (o.5)

Minute hand --> xm=xc+clock_r*math.sin(mins_arc)
ym=yc-clock_r*math.cos(mins_arc)
insert a number (like 0.5 or 0.7) between + or - and 'clock'

Second hand --> xs=xc+clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
insert a number (like 0.5 or 0.7) between + or - and 'clock'

Let me know if it doesnt work, and i will upload a modified .lua script.

👍: 0 ⏩: 1

dgoeduardo In reply to 1inux [2012-12-11 02:25:05 +0000 UTC]

It worked!, thanks for the replay

👍: 0 ⏩: 1

1inux In reply to dgoeduardo [2012-12-11 21:23:50 +0000 UTC]

no problem man!

👍: 0 ⏩: 0

Elchacmool [2012-12-10 06:57:32 +0000 UTC]

Great work!!! :3

👍: 0 ⏩: 1

1inux In reply to Elchacmool [2012-12-10 19:54:42 +0000 UTC]

thanks!

👍: 0 ⏩: 0

llewton [2012-12-08 16:21:57 +0000 UTC]

beautiful!

👍: 0 ⏩: 1

1inux In reply to llewton [2012-12-08 16:27:24 +0000 UTC]

thanks!

👍: 0 ⏩: 0