Conkyclock

Moderator: Forum moderators

Post Reply
User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Conkyclock

Post by fredx181 »

*** Conkyclock ***

Made this years ago for DebianDog, now made some adjustments for KLV to work with yad GTK3 and for transparency on the XFCE4 Desktop (needs compositor enabled).
Many 'clockface' choices and in the settings you can adjust the X and/or Y position, automatically change clockfaces in random sequence (and set interval).

Requirements:
yad, conky, lua, wmctrl, hsetroot

xbps package Update 2024-08-12: v1.2 now, bug fixed, see
xbps package Update 2024-08-14: v1.3 now, bugs fixed, see viewtopic.php?p=128870#p128870
https://dl.dropboxusercontent.com/scl/f ... 3o3tl&dl=1

EDIT: See for conkyclock v2 (Deluxe edition :) ) here: viewtopic.php?p=87115#p87115
Updated 2024-08-14 xbps package conkyclock2 v2.2, bugs fixed, download:
https://dl.dropboxusercontent.com/scl/f ... xdqm6&dl=1

Image

Last edited by fredx181 on Mon Apr 17, 2023 5:12 pm, edited 1 time in total.
geo_c
Posts: 2881
Joined: Fri Jul 31, 2020 3:37 am
Has thanked: 2205 times
Been thanked: 878 times

Re: Conkyclock

Post by geo_c »

fredx181 wrote: Mon Apr 17, 2023 1:29 pm

[Requirements:
yad, conky, lua, wmctrl, hsetroot

xbps package:
https://dl.dropboxusercontent.com/s/24t ... .xbps?dl=1

In KLV I put an analogue clock in a deskbar panel and that looks pretty nice, but awhile back I was wondering about installing wmctrl in Xfce, whether that was a good idea. I take it from your post that wctrl works in Xfce.

Image

Last edited by geo_c on Tue Apr 18, 2023 12:53 am, edited 2 times in total.

geo_c
Old School Hipster, and Such

User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: Conkyclock

Post by fredx181 »

geo_c wrote:

I take it from your post that wctrl works in Xfce.

Well, small mistake of mine, wmctrl is not really needed for conkyclock on KLV, the conkyclock script is just checking if JWM is in use (with wmctrl) and act different if that's the case.
But... I think wmctrl is working OK on XFCE, can't see any reason why not, but it may depend on what you use it for.

User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Conkyclock v2

Post by fredx181 »

*** ConkyClock v2 ***

EDIT: New version (2.1) here:
Download link (updated version to 2.2) now at first post

conkyclock-2 "DeLuxe Edition"
This is only for the very rich who can afford expensive watches/clocks :lol: ;)
Choice of 300 'clockfaces' and most of them have its own 'hands'.

Requirements:
yad, conky, lua (and perhaps wmctrl and hsetroot for to make it work with transparency on JWM)
Optional: ImageMagick (for to display the day and date of month , e.g. Mon - 17, as showed in screenshot, can be enabled in settings).
Install ImageMagick on KLV: xbps-install -Su ImageMagick

conkyclock2 xbps package (rather big, install size = 14MB):
Download link (updated version) now at first post

Image

Last edited by fredx181 on Tue Apr 18, 2023 10:58 am, edited 1 time in total.
User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: Conkyclock

Post by rockedge »

@fredx181 Very cool :thumbup:

I have it in the collection https://rockedge.org/kernels and I am using it on a set up. I am going with the full luxury version.

User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Conkyclock v2 update

Post by fredx181 »

*** Conkyclock v2 update ***

Fixed that "Change the size of the clock" (in settings) didn't work.
And removed the numbers from the main GUI (icons only now), IMHO there's no need for number display.

conkyclock2 version 2.1_0 xbps package:
Update: download link to updated v2.2 at first post.

Screenshot(3).gif
Screenshot(3).gif (167.61 KiB) Viewed 1834 times

EDIT: Forgot almost to mention that the clock images and lua scripts I found once on Deviant Art (but now can't find anymore, it was by someone from France, I think).

Last edited by fredx181 on Tue Apr 18, 2023 12:09 pm, edited 1 time in total.
User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: Conkyclock

Post by rockedge »

@fredx181 update looks good and all the features are working in initial testing. Nice stuff :thumbup:

User avatar
Sofiya
Posts: 2288
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1537 times

Re: Conkyclock

Post by Sofiya »

Great job @Fredx181 this works amazing :thumbup: ;)
Excellent watch selection

Attachments
Screenshot.png
Screenshot.png (356.08 KiB) Viewed 1790 times

KL
PUPPY LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: Conkyclock

Post by rockedge »

@fredx181 Perhaps you can help me fix ConkyClock! I ran into some problems lately running it on either KLV-Airedale and KLV-Boxer!!!

This is the error preventing a run...

Code: Select all

conky: llua_do_call: function conky_cairo_clock execution failed: /root/.conky/analog_clock1/cairo_clock.lua:35: attempt to call a nil value (global 'cairo_xlib_surface_create')
^Cconky: received SIGHUP, SIGINT, or SIGTERM to terminate. bye!

In this case the code seems to be in /root/.conky/analog_clock1/cairo_clock1.lua

Code: Select all

function conky_cairo_clock(theme,w,x,y)

	if conky_window==nil then return '' end

Symptoms on KLV's (no compositor is enabled):

Screenshot(34).jpg
Screenshot(34).jpg (53.01 KiB) Viewed 1217 times
Screenshot(35).jpg
Screenshot(35).jpg (45.67 KiB) Viewed 1217 times
User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: Conkyclock

Post by fredx181 »

Hi Erik, yes I tested, no 'hands', it has to do with the conky version, same problem on Trixie (has also conky v1.21), tried on KLV with older conky version (from older .deb) and it's ok (but did much dirty hacking i.e. manually added files from Debian that Void doesn't have).
Perhaps it's possible to make it work by packing older conky + libraries into a portable setup, or appimage, will try tomorrow.
As far as I know you can't install older package versions on Void, right ?

User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Updated: Conkyclock to v1.2

Post by fredx181 »

@rockedge
Thanks to the comment here : https://github.com/brndnmtthws/conky/is ... 2088420979 I could fix it in a proper way, indeed it was in the clock.lua script (added require 'cairo_xlib'), new package v1.2:
EDIT; updated to v1.3, download link at at first post
edit: Later I'll have a look at the extended version too (above is the more simple version).

User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: Conkyclock

Post by rockedge »

Working! Thank you @fredx181 for the investigation and fix :thumbup:

KLV-AIredale ->

Screenshot.jpg
Screenshot.jpg (19.25 KiB) Viewed 1083 times
User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: Conkyclock

Post by fredx181 »

rockedge wrote: Tue Aug 13, 2024 8:18 pm

Working! Thank you @fredx181 for the investigation and fix :thumbup:

KLV-AIredale ->
Screenshot.jpg

Ok,nice, there's one thing that's needed to fix though: on KLV-Airedale if conkyclock is in ~/Startup AND when you logout and have the box "Save session for future logins" checked in the XFCE dialog it can display a double clock (overlapping probably), will come up later with v1.3 that will prevent that.

User avatar
fredx181
Posts: 3087
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: Conkyclock

Post by fredx181 »

:shock:

fredx181 wrote: Tue Aug 13, 2024 8:55 pm
rockedge wrote: Tue Aug 13, 2024 8:18 pm

Working! Thank you @fredx181 for the investigation and fix :thumbup:

KLV-AIredale ->
Screenshot.jpg

Ok,nice, there's one thing that's needed to fix though: on KLV-Airedale if conkyclock is in ~/Startup AND when you logout and have the box "Save session for future logins" checked in the XFCE dialog it can display a double clock (overlapping probably), will come up later with v1.3 that will prevent that.

Version 1.3 now with that fix, also conkyclock2 (extended version 'DeLuxe') updated to v2.2 with same fixes, updated download links now at first post

edit: it was a bit of a challenge to make the new versions compatible in case configs and startup files from older version already existing.
So, small chance I guess, but if in that case it's not working as it should, start from scratch by removing the clock files and folders, e.g "analog_clock" from ~/.conky and remove conkyclock from ~/Startup .
edit2: I t seems that transparency only works when a compositor is enabled. (i.e tried with using hsetroot (on Jwm) without compositor but doesn't work for me)

Just for fun: two clocks :shock: , (one from the simple version and one from the extended version, won't conflict with each other), btw you can move the clock to anywhere with Alt + left-click mouse and drag it.

Screenshot(1).png
Screenshot(1).png (91.59 KiB) Viewed 942 times
Post Reply

Return to “KL-Dev_Work”