You are not logged in.
^What you write is honestly news to me.
But I'm not omniscient either.
I know it only in such a way that always a conversion svg --> png takes place. The package librsvg2-bin is responsible for this.
Usually, if I use @loutch's image.lua script, I have something like this for the placement on the desk
${lua fDrawImage ~/.conky/radiotray/image.png 50 100 150 150 150 0 }
Furthermore we had while searching for errors in this process
we found that the inkscape package often worked wonders, just as the conky-version used is crucial. Because @brndnmtthws has lua 'in it and then again it doesn't. It changes seemingly at will.
https://forums.bunsenlabs.org/viewtopic … 523#p84523
Last edited by unklar (2021-09-28 10:28:32)
Offline
^ Thanks a lot, the fDrawImage function gave me the crucial clue.
It is as I suspected:
Maybe I have to first create some sort of rectangle within an existing cairo surface and tell the rsvg function(s) to paint to that?
Example of how to render an SVG image at a certain x,y position, scaled to w,h:
require 'cairo'
require 'rsvg'
function conky_draw_svg_file(path,x,y,w,h)
local rh = rsvg_create_handle_from_file(path)
local rd = RsvgDimensionData:create()
rsvg_handle_get_dimensions(rh, rd)
iw, ih, em, ex = rd:get()
if w and h then
do_scale=1
else
do_scale=0
w=iw
h=ih
end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual,x+w,y+h)
local cr = cairo_create (cs)
cairo_translate (cr, x, y)
if do_scale == 1 then
cairo_scale (cr, w/iw, h/ih)
end
rsvg_handle_render_cairo(rh, cr)
rsvg_destroy_handle(rh)
cairo_surface_destroy(cs)
end
I couldn't figure out how to make rotation work, but I can do that inside the SVG file itself.
Offline
^I'm glad if you were able to solve the problem.
It still doesn't change my opinion that @brndnmtthws's "introduction" of Lua into conky will eventually and finally just work like any other package. The creative initiative of the user is prevented, unless he understands and masters the script language.
Offline
I was of the opinion to provide a simple conky in the forum because of the upcoming "Beryllium".
Role models were for me:
- @johnraff, whose square brackets impressed me when he introduced the new repo's.
- @Sector11, with the bunsenlabs flame.
- @Olgmen, who I unfortunately don't know and whose conky's I always found fabulous.
- @PackRat, whose no-frills conky is unparalleled (I "managed" 7 values ).
- @chupin's weather
- @neofetch, whose color palette I actually didn't want to present as an image.
Last edited by unklar (2021-10-10 12:04:22)
Offline
I am getting on nicely with my lua/cairo text & drawing, things look good (enough).
One thing I'm wondering about though, is cairo_antialias_t. I tried every option there is (....):
cairo_set_antialias(cr, CAIRO_ANTIALIAS_....) -- is this desired?
cairo_font_options_set_antialias(cr, CAIRO_ANTIALIAS_....) -- is this desired?
--CAIRO_ANTIALIAS_DEFAULT --- Use the default antialiasing for the subsystem and target device, since 1.0
--CAIRO_ANTIALIAS_NONE --- Use a bilevel alpha mask, since 1.0
--CAIRO_ANTIALIAS_GRAY --- Perform single-color antialiasing (using shades of gray for black text on a white background, for example), since 1.0
--CAIRO_ANTIALIAS_SUBPIXEL --- Perform antialiasing by taking advantage of the order of subpixel elements on devices such as LCD panels, since 1.0
--CAIRO_ANTIALIAS_FAST --- Hint that the backend should perform some antialiasing but prefer speed over quality, since 1.12
--CAIRO_ANTIALIAS_GOOD --- The backend should balance quality against performance, since 1.12
--CAIRO_ANTIALIAS_BEST --- Hint that the backend should render at the highest quality, sacrificing speed if necessary, since 1.12
But I see no effect. None at all.
Has anyone had any experience with making text look worse/nicer with lua under conky?
Offline
I was of the opinion to provide a simple conky in the forum because of the upcoming "Beryllium".
![]()
https://scrot.cloud/images/2021/10/02/2021-10-02-15-48-11_scrot.th.png Link
Thank you for this, unklar!
If El Conkystador is OK with it, let's add it to the Beryllium conkys.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
@ ohnonot
here's what I cairo - Cairo is the capital of Egypt and in the land of the Pharaohs.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Thank you for this, unklar!
If El Conkystador is OK with it, let's add it to the Beryllium conkys.
This in no way needs my OK. If you like it and you want it add it by all means.
All credits to unklar.
I stol..errr.borrowed it
- but needed to make tweaks as the only battery I have is for my BIOS!
- and change it to conky v1.9 Is cv1.9
Last edited by Sector11 (2021-10-09 17:52:21)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Thank you for the flowers.
If you want to include this conky in [beryllium], then I have to add a directory "fonts" to the package.
I don't know about the font "FiraMono", but "Birdman" is guaranteed not to be included in the default fonts and there the user would look a bit puzzled.
@S11
A syntax version 1.9 is already 'in there and if it's not a laptop, the line in question can also be commented out.
Edit: Package modified/updated above.
Last edited by unklar (2021-10-10 12:07:41)
Offline
@S11
A syntax version 1.9 is already 'in there and if it's not a laptop, the line in question can also be commented out.
Yes I got all that and did my tweaks.
As seen here
Nice simple conky.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^Very nice, my friend. Then I had misunderstood you.
Offline
It still doesn't change my opinion that @brndnmtthws's "introduction" of Lua into conky will eventually and finally just work like any other package. The creative initiative of the user is prevented, unless he understands and masters the script language.
I don't understand. Aren't you also using some lua scripts with your conkys?
Also, you make it sound like lua prevents you from using conky in the old way - it doesn't.
If anything, the addition of lua increases the creative potential. It's not one or the other.
here's what I cairo - Cairo is the capital of Egypt and in the land of the Pharaohs.
Aren't y'all using conkys that include lua scripting?
I thought it was kindof compulsory for any advanced graphical stuff.
Well, maybe not; I just realised that TheoBigusGeekus does in fact not use any lua in his Accuweather conky.
Offline
unklar wrote:It still doesn't change my opinion that @brndnmtthws's "introduction" of Lua into conky will eventually and finally just work like any other package. The creative initiative of the user is prevented, unless he understands and masters the script language.
I don't understand. Aren't you also using some lua scripts with your conkys?
Also, you make it sound like lua prevents you from using conky in the old way - it doesn't.
If anything, the addition of lua increases the creative potential. It's not one or the other.
^It's not lua that prevents me from using Conky the old way, but conky-version 1.10 --> and the following.
I had already written this elsewhere. You can always see the ups and downs of development by looking at the conky version, what it says or doesn't say about lua.
Current example, in the 1.12 he has removed the Lua bindings again.
The "old" Lua script expects (!)
require 'cairo'
Offline
unklar wrote:It still doesn't change my opinion that @brndnmtthws's "introduction" of Lua into conky will eventually and finally just work like any other package. The creative initiative of the user is prevented, unless he understands and masters the script language.
I don't understand. Aren't you also using some lua scripts with your conkys?
Also, you make it sound like lua prevents you from using conky in the old way - it doesn't.
If anything, the addition of lua increases the creative potential. It's not one or the other.
I agree with Unklar here, at some point in the future people will need to know and understand LUA (it's a programming language) to use conky - OR copy an existing one to use. The italics in Unkar's post are mine to stress the point.
Sector11 wrote:here's what I cairo - Cairo is the capital of Egypt and in the land of the Pharaohs.
Aren't y'all using conkys that include lua scripting?
I thought it was kindof compulsory for any advanced graphical stuff.
Well, maybe not; I just realised that TheoBigusGeekus does in fact not use any lua in his Accuweather conky.
Well, maybe not; I just realised that TheoBigusGeekus does in fact not use any lua in his Accuweather conky. <--- answered your own question. Also back in the day conkyForecast did NOT use lua to get the weather script. They were written in python though.
And today: NONE of the conkys I use run lua - NOT 1.
And in the past I have said, and I ttress it here again as it is still true:
I cannot write lua scripts at all. I bugged mrprachy relentlessly with my nobbish LUA questions, his patience with me was well above and beyond what it should have been, but that's who he was, may he R.I.P. Falldown, and many others when through my million PM's of "How do I ..." to tweak their scripts. And as I have said before:
I cannot write a LUA script but I bend, fold and mutilate them into doing things I went - sometimes.
Conky v1.9 and earlier was just a formatted text file - it was and is NOT a computing language. And I have heard that said since 2007 when I started with conky.
IMHO: conky does not need to be written in lua. Look at the stuff UNDER TEXT - it is "identical" to the coding of cv1.9 except for the "pre_exec" which I do use a fair amount
pre_exec shell command
Executes a shell command one time before conky displays anything and puts output as text.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
First attempt at Conky. Started after watching Chris Titus Tech's "Make Linux Look Better | Conky Desktop" YouTube video. I downloaded his config, along with all the configs at https://github.com/brndnmtthws/conky/wiki/Configs. My Conky.config is at Conky config. This was fun, and a great way to burn a few hours. I hope this works.
Offline
Been a long time since I have see a Zorin conky.
Even better when Brenden Matthews gives BunsenLabs a little lovin'
When your conky config is finished you can spread the love! Share them on sites like DeviantArt.com, Gnome-look.org, Bunsenlabs or any other site you would like!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello
New year
New conkys Oblivion theme
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
WOW!!! loutch you did it again!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello
Tanks
Here @ little video (not conky cliquable with 1.10 sersion)
https://drive.google.com/file/d/1K5ekCF … sp=sharing
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
WOW!!! loutch you did it again!
+100
I can only agree with this.
Excellent, loutch, this is unsurpassed! How many weeks did you work on it?
Je ne peux que me joindre à vous.
Excellent, loutch, c'est inégalé ! Combien de semaines as-tu travaillé dessus ?
Offline