Deviation Actions

1inux's avatar

Minimal Conky Clock

Published:
By
30 Comments
38K Views
Simple conky clock

Some code from [link]

Shows current time, as well as the system's uptime.

Rate, Comment, and Fave!
© 2012 - 2021 1inux
Comments30
Join the community to add your comment. Already a deviant? Log In

I managed to get this working on conky 1.10.8. The new version only supports one lua script from what I can see and from the limited documentation. So, I just put the marks.lua at the bottom of the clock_rings.lua file and got it working. I spent way too much time on it but was excited to get it working.

Alright, so it works perfectly. However, the documentation on Conky is hell. Turns out that the new Conky > 1.9 has new syntax and I tried to adapt it w/o success. Use 1.9 with lua support github.com/brndnmtthws/conky/r…. Also, in .clock_rings.lua it is written /home/karl change this to ~/ to point to your home. Afterwards, follow the readme and voila! Happy hacking! p.s. is there any license for this or cc0 with gplv3 for code? Great work!
$ conky -c .conkyrc
conky: Syntax error (.conkyrc:2: unexpected symbol near '#') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (600017) is subwindow of root window (c1)
conky: window type - normal
conky: drawing to created window (0x1400002)
conky: drawing to double buffer
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
conky: llua_do_call: function conky_clock_rings execution failed: attempt to call a nil value
PerlinNoise's avatar
Do the seconds of this clock move smooth? Or does it do click, click, click?
Crime-Dog's avatar
nice one , I have used it ay desktop screenshot [link]
1inux's avatar
Thanks man! Nice screenshot btw.
wifixcort's avatar
Looks so elegant, I like it
1inux's avatar
Thanks man, glad you like it!
LovelyBacon's avatar
1inux's avatar
LovelyBacon's avatar
your big nuts welcome
Youmy001's avatar
Nice work. It has exactly the style I was looking for, but how can I move it toward the left side of the screen?
1inux's avatar
thanks man! Ok, in .conkyrc file, there are two variables 'gap_x' and 'gap_y', these two control the coordinate position of the conky window on the screen. If you cannot move the the conky clock, the [invisible] window in which conky is displayed is touching the edge of the screen, and it cannot be moved offscreen. If this happens, you will have to make the window smaller (size variables near the top), and then change the position of it. Hope this helps.
ciao, bello
si puo' mostrare uptime con minuti e secondi ?
1inux's avatar
sì, si poteva, l'anello più esterno indica il tempo di attività (penso di set di anello in modo che un giro dell'anello è di 10 ore). Se si vuole, è possibile creare due anelli supplementari (minuti e secondi) per tempi di attività e impostare entrambi a 60.

Ci dispiace per il mio italiano, sto utilizzando Google Translate.
ElderVLaCoste's avatar
1inux's avatar
troikas's avatar
Very nice work i love it!!!
1inux's avatar
thanks bro!
mmesantos1's avatar
Awesome job on the clock!! :-)
1inux's avatar
Thanks Marc!
mmesantos1's avatar
Your most welcome bro! :-)
Elchacmool's avatar
thank you for share it
Join the community to add your comment. Already a deviant? Log In