Page 1 of 1
Conkyclock
Posted: Mon Apr 17, 2023 1:29 pm
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
Re: Conkyclock
Posted: Mon Apr 17, 2023 2:38 pm
by geo_c
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.
Re: Conkyclock
Posted: Mon Apr 17, 2023 4:17 pm
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.
Conkyclock v2
Posted: Mon Apr 17, 2023 5:03 pm
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
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
Re: Conkyclock
Posted: Tue Apr 18, 2023 1:37 am
by rockedge
@fredx181 Very cool
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.
Conkyclock v2 update
Posted: Tue Apr 18, 2023 10:53 am
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 (167.61 KiB) Viewed 1821 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).
Re: Conkyclock
Posted: Tue Apr 18, 2023 12:09 pm
by rockedge
@fredx181 update looks good and all the features are working in initial testing. Nice stuff
Re: Conkyclock
Posted: Tue Apr 18, 2023 2:27 pm
by Sofiya
Great job @Fredx181 this works amazing
Excellent watch selection
Re: Conkyclock
Posted: Sun Aug 11, 2024 5:49 pm
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 (53.01 KiB) Viewed 1204 times
- Screenshot(35).jpg (45.67 KiB) Viewed 1204 times
Re: Conkyclock
Posted: Sun Aug 11, 2024 9:42 pm
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 ?
Updated: Conkyclock to v1.2
Posted: Mon Aug 12, 2024 1:05 pm
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).
Re: Conkyclock
Posted: Tue Aug 13, 2024 8:18 pm
by rockedge
Working! Thank you @fredx181 for the investigation and fix
KLV-AIredale ->
- Screenshot.jpg (19.25 KiB) Viewed 1070 times
Re: Conkyclock
Posted: Tue Aug 13, 2024 8:55 pm
by fredx181
rockedge wrote: ↑Tue Aug 13, 2024 8:18 pm
Working! Thank you @fredx181 for the investigation and fix
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.
Re: Conkyclock
Posted: Wed Aug 14, 2024 5:54 pm
by fredx181
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
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 , (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 (91.59 KiB) Viewed 929 times