Page 1 of 1

Modular Papirus Conky Idea

Posted: Fri Jan 24, 2025 9:34 pm
by AVLinux
Hi

I'm down with the flu this week and kinda brain-dead so I'm doing random delirious ideas.. Since Papirus is such a dominant Icon theme especially for MX I had an idea for a multi-part Modular conky using the Papirus device Icons with overlaid text... I'm not overly gifted in the ways of Conky but I started with a quick example with the CPU Icon..
shot-2025-01-24_21-26-07.jpg
Might be interesting with the memory and HDD Icons etc. for those various tasks... *shrugs

If anyone else wants to take it and run go for it!

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 5:52 pm
by AVLinux
Meh...

Not sure what to say, this is a rough proof... Need a Papirus-y looking wallpaper to really sell it I think, I don't have much in the way of those kind of Desktop BG's.. Need to polish more and then I'll put it out for further testing Each Icon is a mini conky so they can be arranged however you want... I'll probably make at least a vertical and horizontal layout.. Still working on a battery one for laptops but I don't have a battery on this machine.

Image

Sidebar:


Image

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 6:28 pm
by Melber
@AVLinux nice idea, interested to see the "polished" version.

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 6:59 pm
by AVLinux
Melber wrote: Sat Jan 25, 2025 6:28 pm @AVLinux nice idea, interested to see the "polished" version.
Oh no, the Papirus King is watching... :eek:

Definitely needs some nice rounding from @ceeslans handy lua script.. I have a big display so they're prolly too big now. They'd probably be huge on a 1920x1080 laptop. Back to the drawing board I guess..

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:27 pm
by Melber
flattery will get you everywhere ;)

btw, I use a laptop with a 1366x768 screen...

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:40 pm
by AVLinux
Melber wrote: Sat Jan 25, 2025 7:27 pm flattery will get you everywhere ;)

btw, I use a laptop with a 1366x768 screen...
Oh man, sorry, I had no idea you were Amish.. :p :hug:

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:44 pm
by CharlesV
@AVLinux I am curious to know what
... Papirus-y looking wallpaper ...
is?

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:52 pm
by AVLinux
CharlesV wrote: Sat Jan 25, 2025 7:44 pm @AVLinux I am curious to know what
... Papirus-y looking wallpaper ...
is?
You know like the Dead Sea scrolls! Like something out of the Ark of the Covenant... Oh wait... That's too Papirus-literal..,

I'm picturing something like the Papirus Icons themselves, flat, but modern not a photographic picture of something but more like blocky colors, probably with a blue base but other colors as well, not too bold but not too muted, not pastel-y or watercoloured I'm sure @Melber knows what I mean, he's probably designed 20 or so to go with his snazzy GTK theme (and maybe yours too!). You know the kind of wallpaper something like Solus Linux would use..

If I didn't absolutely detest the whole notion of AI art I'm sure that would make a good training statement..

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:57 pm
by siamhie
AVLinux wrote: Sat Jan 25, 2025 5:52 pm Need a Papirus-y looking wallpaper to really sell it I think, I don't have much in the way of those kind of Desktop BG's
Check out Pexels.
My days of using a search engine is over and I only use this site for wallpaper now.


Here's my newest wallpaper I found yesterday. Blue can be so soothing.
Image

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 7:57 pm
by CharlesV
Ha! Well... this is probably NOT what your after, but I will submit it anyways.. it does fit a few of those things.


Image

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 8:00 pm
by AVLinux
siamhie wrote: Sat Jan 25, 2025 7:57 pm
Check out Pexels.
My days of using a search engine is over and I only use this site for wallpaper now.
That is a nice one! A little too 'real picture' but the colors are in the ballpark..

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 8:04 pm
by AVLinux
CharlesV wrote: Sat Jan 25, 2025 7:57 pm Ha! Well... this is probably NOT what your after, but I will submit it anyways.. it does fit a few of those things.
That's the kind of art work definitely! I'd probably want to find more colors that are dominant in the Conky Icons... First I have to deliver the actual product!

Appreciate the Inputs guys!

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 9:29 pm
by asqwerth
AVLinux wrote: Sat Jan 25, 2025 5:52 pm Meh...

Not sure what to say, this is a rough proof... Need a Papirus-y looking wallpaper to really sell it I think, I don't have much in the way of those kind of Desktop BG's.. Need to polish more and then I'll put it out for further testing Each Icon is a mini conky so they can be arranged however you want... I'll probably make at least a vertical and horizontal layout.. Still working on a battery one for laptops but I don't have a battery on this machine.....
Those conkies are rather cute looking!

Based on the size of the icons on your dock, each conky is also rather large, but that's something that can be tweaked.

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 10:46 pm
by i_ri
hello
network in and out
the net_ringsteneight is smaller size. changed the font size of X from 44 to 24 to shrink height.

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 11:24 pm
by AVLinux
Hello i_ri!

That's pretty fancy with the lua rings! Maybe a little hard to read?

Re: Modular Papirus Conky Idea

Posted: Sat Jan 25, 2025 11:35 pm
by AVLinux
OK, enough for tonight..

Here's a shot from my 1920x1080 laptop, the Conkys are 80x80px that's going to be pretty small to be legible on a 4K display and likely too big on 1366x768. They're widgets not Icons so I'm expecting them to be bigger than Desktop launchers. It's not really very easy to change their size because then all the text/bar coordinates get skewed so... happy medium.. I've added lua bg with rounded corners and adjusted some things, need more fine tuning and bar colors are hard to match with other colors but I think essentially this will be the kind of look, will finish the rest tomorrow and find a better background..
shot-2025-01-25_23-56-54.jpg

Re: Modular Papirus Conky Idea

Posted: Sun Jan 26, 2025 12:03 am
by i_ri
to read.
network rings not at 100 scale. at 100 there is little visual movement.
It is set to super sensitive in order to give better(more) visual satisfaction that something is processing. accentuated activity.
and a big X null when disconnected.
just a visual; no numbers; no translating. size and sensitivity and accuracy can be adjusted.
inner, down, RX
outer, up, TX

Re: Modular Papirus Conky Idea

Posted: Sun Jan 26, 2025 4:48 pm
by AVLinux
Hi @i_ri

I like your idea but I already had a network conky in mind and I don't know if I want to add the complexity of more lua stuff especially when I don't really know how to fix and adjust it's code.. Like all Conky they are somewhat affected by background color.. Maybe you could do a Papirus set with lua rings?

OK,

I think I'm done with the widgets, I think I will ship a startup script for a horizontal layout and a vertical one and after that people can edit to their hearts content.. I've added conky for Home folder size and optional external drive ones that can be edited per-case..

A young John Fogerty looks and wonders if these Papirus Conkii could have prevented Creedence from breaking up... :p

Image

Re: Modular Papirus Conky Idea

Posted: Sun Jan 26, 2025 10:08 pm
by asqwerth
Can't wait to try it! With Conky Manager (I know you don't have that in AVLMXE) users will be able to enable only the ones they want, and reposition them accordingly.

Re: Modular Papirus Conky Idea

Posted: Sun Jan 26, 2025 11:51 pm
by AVLinux
asqwerth wrote: Sun Jan 26, 2025 10:08 pm Can't wait to try it! With Conky Manager (I know you don't have that in AVLMXE) users will be able to enable only the ones they want, and reposition them accordingly.
Cool, If you have time to test with that before I put them out that would be great info to know! I'm going to see if I can come up with a minimal weather one to finish the collection off then I'll post a zip here for testing. Might not be until mid-week..

*EDIT weather one done, it turned out kinda adorbs... (credit due to the Papirus devs).
shot-2025-01-27_00-16-27.jpg

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 12:11 am
by asqwerth
Sure


[added]
@AVLinux

the weather one certainly is adorable :happy:

I was about to offer you - for your adaptation - a small conky with script [adapted from Merope conky to remove all the system info and lua rings] that displayed temperature, and the weather condition graphically [from a pictorial font, also included]. It's set against an image background, which I thought you could replace with whatever icon image file you wished.

But it's certainly nowhere as cute as the one you came up with.
Merope-onlyweather.png

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 2:55 am
by asqwerth
Here is an archive file with everything you [or anyone else wanting to try it] need to try it out.

https://app.box.com/s/syslb77dhaa5ywuwag3d1n6equkm6w3j

Just open the included weather-2.0.sh file and enter in your own city code. The openweathermap api key was included there by the conky creator, but you can replace with your own if you have one [which I do]

The attribution file is included so you can seek out the whole Merope conky if you want. My Arch-based distros have conky packages that don't run lua scripts [you need to install the unofficial conky package from AUR to get lua] so I sometimes adapt conkies to remove lua.

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 10:50 am
by AVLinux
Hi @asqwerth !

Thanks for putting that together, great idea! I'll have a look. Having something that changes Icons with the weather type would be pretty cool, This whole idea is so image heavy as you noted so making the conky elements pop can be tricky.. I suppose a custom papirus-y looking quieter background icon could be made up to backdrop your merope images. My idea is just using bone simple wttr.in lines but it works too. I'll dig into it evenings this week

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 11:21 am
by asqwerth
AVLinux wrote: Mon Jan 27, 2025 10:50 am Hi @asqwerth !

Thanks for putting that together, great idea! I'll have a look. Having something that changes Icons with the weather type would be pretty cool, This whole idea is so image heavy as you noted so making the conky elements pop can be tricky.. I suppose a custom papirus-y looking quieter background icon could be made up to backdrop your merope images. My idea is just using bone simple wttr.in lines but it works too. I'll dig into it evenings this week
I have to admit I couldn't let this idea die, once I realised from your earlier "adorbs" screenshot that Papirus has nice weather icons. So I've made a folder with openweather-compatible Papirus weathericons and made a weather conky where the icons change with the weather condition. The relevant lines are adapted from various openweather-based conkies, including zagortenay's conky-vision.

The conky uses the same weather-v2.0.sh script but the script to convert the weather id codes to font/text is no longer needed. I forewent an image background and just set own_window_colour to something other than #000000 that could contrast against the weather icons. There are 2 variations - one with just icon weather condition and one that adds weather condition in text as well.
Merope-onlyweather-papirus.png
Merope-onlyweather-papirus-text.png

Just download the archive from the link below, and extract the conky scripts and the folder of Papirus weather icons into the same folder with the Merope conky above.
https://app.box.com/s/uaffwqlpad9lu6uvyoz3etaufq75r3tr

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 11:24 am
by Jerry3904
Those are nice!

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 11:54 am
by AVLinux
Wow, some good potential, hope my kindergarten conky-fu is up to it, this is going to be a very busy conky folder! I'd like to preserve the existing 80x80 image size and template I have and I've needed to work with Icons in GIMP to define them better and up the contrast otherwise they appear quite washed out looking. Will be a fun challenge, thanks for the ideas and resources!

*NOTE for image quality the actual PNG's I'm using are 512x512 derived from importing the SVG files.. @Melber will be disgusted with me but I know very little about SVG and Conky..

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 12:36 pm
by Melber
AVLinux wrote: Mon Jan 27, 2025 11:54 am *NOTE for image quality the actual PNG's I'm using are 512x512 derived from importing the SVG files.. @Melber will be disgusted with me but I know very little about SVG and Conky..
skeptical-fry.jpg

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 12:36 pm
by CharlesV
Since your currently working with weather :-) ...

Here is a background for ya that is in alignment with your background colors AND all about weather ;-p
Most of the backgrounds I am about to submit are much lighter or more color driven, but this one...

Image

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 12:45 pm
by Jerry3904
Strikingly handsome!

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 1:07 pm
by CharlesV
Jerry3904 wrote: Mon Jan 27, 2025 12:45 pm Strikingly handsome!
Glad you like it. That is one of my favs. ( have xscreensaver set to power through A LOT of my favorite lake and sunsets I have taken.. its very cool just just seem them continuously. :-) )

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 1:34 pm
by AVLinux
Yes, great photo indeed! Colors should work well.

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 6:25 pm
by AVLinux
@asqwerth

I've been looking at your weather conky and I'm having some issues with getting it to find the weather svg icons (they are where they are supposed to be) and I'm getting 'jg' errors and cache errors which I'm sure is likely easily fixable but taking a second look the weather part alone is now more complex than the entire conky already is and since it's modular already it's the most complicated conky I've worked with by far..lol I have no problem admitting my limitations and for me this is ballooning into more than I want to take on. My wonderfully patient partner has already been a 'Linux Widow' most of the month with a recent AVL release and I'm still testing out a whole Enlightenment DE update so my all-consuming hobby has me all consumed..

I think it my be better if I finish what I already have here, put it up as 'Phase 1' and you can take it from there if you want to fully realize the potential of the weather part. I think you have much better conky-fu and you're already acquainted with working with the weather conky and have it running on your machine.

Sorry to not get the baton across the finish line... :frown:

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 7:11 pm
by Melber
AVLinux wrote: Sat Jan 25, 2025 7:40 pm
Melber wrote: Sat Jan 25, 2025 7:27 pm flattery will get you everywhere ;)

btw, I use a laptop with a 1366x768 screen...
Oh man, sorry, I had no idea you were Amish.. :p :hug:
no, just cheap. ;)
(Rescued it from the old hardware pile in the basement at work where it was just rusting away)

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 8:13 pm
by asqwerth
@AVLinux

Oops! It's as simple as installing jq or is it jg? I forgot that package is not part of the default install! It's what is used to parse the json file used to set out the weather data.

Re: Modular Papirus Conky Idea

Posted: Mon Jan 27, 2025 8:23 pm
by asqwerth
I'm terrible with graphics tools as well, gimp or inkscape, so drawing new graphics is not my thing.

But I am comfortable with weather conkies. And l'm happy to test drive the rest of your Phase 1 conky as well.

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 1:10 am
by AVLinux
@asqwerth and anyone else who may be interested.

Here is a zip of the 'Modulus' Papirus Conkii (there are two folders):
https://bandshed.net/files/MODULUS_CONKII.zip

The zip contains the 2 Conky folders, both are laid out in a centered horizontal formation across the upper part of the Screen. One is for laptops with a battery module and the other is for desktops. Also included are screenshots and .desktop Launchers for people without all the MX Conky stuff installed, the Launchers can go in /usr/share/applications or ~/.local/share/applications. If you use MX Conky Manager then you may not want them. Both Conkii have their launch scripts in their folder. I've put a 1s sleep interval in the scripts so the modules launch in sequence across the screen (I'm weird and like that kind of thing..)

1920x1080 resolution screenshot for perspective, I would say 1680x1050 display is about as small as you want to go for these to not look oversized. At 4K they are just nicely legible..
Image

Let me know if there are issues, undoubtedly I've probably done something stupid... :bagoverhead:

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 1:57 am
by asqwerth
Very nice, @AVLinux ! Using it on my lappy right now.

I like the num/caps lock indicator a lot.

From the viewpoint of an XFCE user [no idea about Enlightenment]:
1. changing the argb value does not affect the translucency, and so everything remains very ghostly and transparent, unless I set own_window_transparent as false. Once I do that, translucency can be changed with the argb value.
2. However, if I make own window transparent = true false [or not mentioned at all] , then the lua script to round corners doesn't work.
3. for the "hints" line, I need to add "below," otherwise every time I change the conky, it appears on top of other opened windows, at least for a while.

Weather conky - there's definitely something to be said for the straightforward display of temp and weather condition in text format, with the icon merely acting as an indicator as to the "type" of conky it is. I like it.

But I'll see if I can make an openweathermap version with changing weather icons.

I've found wttr.in to work well, but sometimes when traffic is high, nothing [or an error] shows, or it can take a long while for the conky to display as it tries to obtain the weather info.

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 4:46 am
by i_ri
Hello AVLinux
No sleep s; replaced \sleep\ with semicolon.
Ran the conky on AVL-mxe.
Ran the conky on xfce
where wmcore jumped in to extend four cpu and
little orphan lua trails along.
8-|
Image
Image

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 9:15 am
by AVLinux
i_ri wrote: Tue Jan 28, 2025 4:46 am Hello AVLinux
No sleep s; replaced \sleep\ with semicolon.
Ran the conky on AVL-mxe.
Ran the conky on xfce
where wmcore jumped in to extend four cpu and
little orphan lua trails along.
8-|
Image
Image
Very nice! I like the wmcore addition, haha 'little orphan'

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 9:37 am
by AVLinux
asqwerth wrote: Tue Jan 28, 2025 1:57 am Very nice, @AVLinux ! Using it on my lappy right now.

I like the num/caps lock indicator a lot.

From the viewpoint of an XFCE user [no idea about Enlightenment]:
1. changing the argb value does not affect the translucency, and so everything remains very ghostly and transparent, unless I set own_window_transparent as false. Once I do that, translucency can be changed with the argb value.
2. However, if I make own window transparent = true false [or not mentioned at all] , then the lua script to round corners doesn't work.
3. for the "hints" line, I need to add "below," otherwise every time I change the conky, it appears on top of other opened windows, at least for a while.

Weather conky - there's definitely something to be said for the straightforward display of temp and weather condition in text format, with the icon merely acting as an indicator as to the "type" of conky it is. I like it.

But I'll see if I can make an openweathermap version with changing weather icons.

I've found wttr.in to work well, but sometimes when traffic is high, nothing [or an error] shows, or it can take a long while for the conky to display as it tries to obtain the weather info.
Hi!

Glad it arrived in one-piece, yeah sorry I have no XFCE4 installs to test, I'm boringly Distro monogamous...lol. Prolly an ADD thing but even having a Win/AVL dual boot overwhelms me sometimes. I admire that you are fluent in so many different Distros and maintaining them! Do you also do artwork for other Distros?

Even on Enlightenment I had to find a sweet spot between the native transparency and the Lua stuff, BTW you can tune the Lua transparency in the LUA file too.

I should probably acknowledge many of the code snippets are from @ceeslans along the way... I agree wttr.in isn't a perfect solution..

Side note, on the subject of wttr.in, one of the Bodhi Linux devs (Stefan) is helping me with getting the long bit rotted Forecast module working on Enlightenment. It works in Moksha but has been broken on E for a long time he ported it to wttr.in as well..
shot-2025-01-28_09-32-13.jpg
I'll look forward to your weather enhancements!

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 10:07 am
by asqwerth
OK, I tried to follow your style, from round corners, size, font, ghostly translucency - heh - and have come up with the conky that I call "weather_dynamic_icons".

Image

https://imgur.com/vgHPUVi


List of stuff included/done:
1. papirus weathericons converted to roughly 512x512-sized png icons, to be in line with your other icons.
2. renamed your wttrrc conky "wttrrc-weather"
3. added a README text file to explain what to do for both weather conkies and also diskrc
4. the "preview.png" file is to provide a preview of the whole Modulus set of conkies for Conky Manager

It doesn't add that much to the complexity of your conky set, if you consider the whole weathericons folder as a single item. The essential bits are just the weather conky itself, the weather-v2.0 script, and the weathericons folder. The rest are previews or explanatory notes.

Download the whole Modulus set, version 2, here: https://app.box.com/s/nflztgg1ygg69s3gnvtgzo38kx25tmf1


[ADDED - clarification - I only dealt with the Desktop version of Modulus, as I was working on my PC. I don't know what the difference is for the laptop version.

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 10:38 am
by AVLinux
Great stuff! @asqwerth

Lol, teamwork makes the dream work as they say.. Thanks for the icing on the cake!

Oh wait.. So is there an install dependency required? for jq?

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 10:47 am
by asqwerth
Yes, I'll remind the devs (@dolphin_oracle and @Adrian to include it in mx25.

It's become a part of my mx install routine to install jq that I totally forgot it wasn't there by default !

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 4:13 pm
by ceeslans
AVLinux wrote: Tue Jan 28, 2025 9:37 am
asqwerth wrote: Tue Jan 28, 2025 1:57 am <snip>
From the viewpoint of an XFCE user [no idea about Enlightenment]:
1. changing the argb value does not affect the translucency, and so everything remains very ghostly and transparent, unless I set own_window_transparent as false. Once I do that, translucency can be changed with the argb value.
2. However, if I make own window transparent = true false [or not mentioned at all] , then the lua script to round corners doesn't work.
3. for the "hints" line, I need to add "below," otherwise every time I change the conky, it appears on top of other opened windows, at least for a while.
<snip>
Hi!
Glad it arrived in one-piece, yeah sorry I have no XFCE4 installs to test, I'm boringly Distro monogamous...lol.
<snip>
Even on Enlightenment I had to find a sweet spot between the native transparency and the Lua stuff, BTW you can tune the Lua transparency in the LUA file too.

I should probably acknowledge many of the code snippets are from @ceeslans along the way... I agree wttr.in isn't a perfect solution..
<snip>
@AVLinux hehe, already noticed the if/else code for red-blinking warning when battery level falls below 20% ... :p

Just tried the set of laptop conkies on my Devuan fluxbox install. Each and every one is working correctly, needed some personal adjustments for my system.

I haven't noticed any problems with the 'draw_bg.lua' script when own_window_transparent is set to false (or missing), but that is probably because I have compton (or picom) compositor running. Most DE's will have some compositor running in the background.
Still, it doesn't make sense to have the draw_bg.lua script AND own_window_argb_value=35 setting running, or at least not at the same time. I've set the argb_value to "0" and let the lua script take over this task.
Actually, I'm using Mr.Peachy's updated script 'transbg.lua', which allows for setting the corner-radius / color / opacity pct levels per individual conky config, e.g:

Code: Select all

lua_load = '~/.conky/Modulus/LUA/transbg.lua',     --## edit path where necessary...
lua_draw_hook_pre = 'draw_bg 7 0 0 0 0 0x000000 0.25',
If you're interested, here's the 'transbg.lua' script:

Code: Select all

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=40,y=40,tf="Monofur",tfs=24,tc=0xFFDEAD,ta=1,bf="Monofur",bfs=24,bc=0xFFDEAD,ba=1,hf="Monofur",hfs=24,hc=0x00BFFF,ha=1,sp=" ",gh=40,gt=25,gv=20,sd=0,hstyle=1,tdf="Monofur",tdfs=24,tdc=0x00BFFF,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function #########################################################
Image

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 6:03 pm
by AVLinux
@ceeslans

Very nice! I was hoping you'd show up! A personal thanks for your code snippets!

I'll look at the updated lua, I do like the simplicity of the other one.

Haha, your OCD has surpassed mine... I was also pondering whether the home and disk modules should have the same size percentage text, I was going to change that tonight! You beat me to it! Did you edit the home folder image too??

Re: Modular Papirus Conky Idea

Posted: Tue Jan 28, 2025 8:07 pm
by asqwerth
@ceeslans
Thanks for the interesting lua code to try. Hopefully it sorts out both the corners and translucency for me. I had a few old weather conkies where I gave up on the nice corners so I could make it more opaque.

Re: Modular Papirus Conky Idea

Posted: Wed Jan 29, 2025 9:24 pm
by Adrian
asqwerth wrote: Tue Jan 28, 2025 10:47 am Yes, I'll remind the devs (@dolphin_oracle and @Adrian to include it in mx25.

It's become a part of my mx install routine to install jq that I totally forgot it wasn't there by default !
Funny that I just watched this video: https://www.youtube.com/watch?v=mmIUf4T29pQ (not that I agree or anything, but it's a funny coincidence)

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 10:15 am
by AVLinux
I think I'm going to add a little terminal window that prints the DE, Kernel and init. Distro name value will probably be too long in most cases so I'll avoid that. I'm also not happy with the home folder. I want to modify it like @ceeslans so the percentage number is bigger and matches the other numerical sizes... A few nitpicks to take care of..

Stay tuned!

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 3:32 pm
by ceeslans
Haaa! Today I made minor changes to image sizing+positioning, in an effort to get a better overall textual/bar lineup.
Also changed the image for netrc, because the two monitors sank away in the background darkness.
Startup of the eight conky widgets takes roughly 60mb of ram; which is still okay, I think.

Image

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 8:25 pm
by AVLinux
Very nice work as usual! Yeah I like the network concept with the 2 monitors (I stole it from an old Enlightenment module) but it did turn out darker than I thought... Your WiFi Icon looks good, I wanted something that wasn't connection type specific..

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 9:20 pm
by asqwerth
@ceeslans I tried the transbg.lua script. Interesting that if you increase the opacity, the background window gets darker/more opaque, but it makes the actual icon images get duller, presumably because it's like you're overlaying a darker glass sheet over the image. In the end, I had to stick to alpha = 0.25 for an optimal balance between opacity of the background and image's colour vibrancy. At that setting, I think there's only a slight improvement over using the bg.lua script.

Meanwhile for my own use, I added a small clock using damo's customisable "clock lua script + clock settings file", from bunsenlabs forum:
clock-modulus.png

It's probably overkill for your Modulus conky set, though, @AVLinux :p

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 11:23 pm
by AVLinux
Here's an info terminal idea..
shot-2025-01-30_23-14-18.jpg
I need to let it marinate for a few days... Even the kernel string was too long so IDK how valuable an addition it is with the info it includes..

@asqwerth Haha, looks great! I'm still adjusting Phase 1, I haven't even integrated your cool weather Conky yet! :bagoverhead: I do think because it's modular it's pretty open to the individual embellishing it though..

I took some hints from @ceeslans and modified the Home folder images to allow for a larger percentage text as well as better bar alignment and my sizes were a bit off..

Side note: I've been testing Bodhi Linux in a VM and I'm in love with the earthy green 'Moksha' Vibe, I built the Ultraskeuo GTK theme and tuned my Enlightenment palette and spun up a Bodhi-like wallpaper and some matching Papirus Icons.. thanks again @Melber. Shown are Enlightenment, GTK3, GTK4 and QT5 apps.


Image

Re: Modular Papirus Conky Idea

Posted: Thu Jan 30, 2025 11:38 pm
by asqwerth
AVLinux wrote: Thu Jan 30, 2025 11:23 pm Here's an info terminal idea..

shot-2025-01-30_23-14-18.jpg

I need to let it marinate for a few days... Even the kernel string was too long so IDK how valuable an addition it is with the info it includes..
The text within the terminal is hard to make out that that small size. Perhaps the text colour should be a brighter, higher contrast one?
@asqwerth Haha, looks great! I'm still adjusting Phase 1, I haven't even integrated your cool weather Conky yet! :bagoverhead: I do think because it's modular it's pretty open to the individual embellishing it though..
.... took some hints from @ceeslans and modified the Home folder images to allow for a larger percentage text as well as better bar alignment and my sizes were a bit off..
Definitely open to personal embellishment. If you want to look over the clock conky and lua script, let me know. But it's not made with any Papirus icon so it doesn't exactly keep to the overall theme of the conky set.

And ceeslans' graphic for the Home conky was certainly more balanced. He has much conky-fu and good taste.

Re: Modular Papirus Conky Idea

Posted: Fri Jan 31, 2025 7:34 pm
by AVLinux
The Papirus terminal Icon with the prompt removed is essentially a dark grey square... I tried to warm it up and make it more 'analog' looking with bakelite brown undertones and some toplighting... Oh I know I'm sinning against the Flat gods with a lighting effect but it improves it.. I don't know if it's worth the screen space though... It now shows hostname, DE, arch and init
shot-2025-01-31_19-25-33.jpg
I'l put up another Zip soon with the visual refinements..

Re: Modular Papirus Conky Idea

Posted: Sat Feb 01, 2025 9:55 am
by ceeslans
AVLinux wrote: Thu Jan 30, 2025 8:25 pm<snip>
WiFi Icon looks good, I wanted something that wasn't connection type specific..
for personal use, I've colored up a knemo-network icon (from Papirus icon theme) and used this for netrc widget when on ethernet.
It could of course be used for both connection types...

Fwiw, I've scripted selection for separate background-image setting in netrc config with "if_match" expressions :

Code: Select all

#BACKGROUND IMAGE
${if_match "${execp cat /sys/class/net/eth0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus/images/conky_network-knemo.png -p 7,7 -s 64x64}\
${else}${if_match "${execp cat /sys/class/net/wlan0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus/images/conky_network-wifi.png -p 12,18 -s 54x54}\
${endif}${endif}
probably needs to be extended with if/match lines for 'wlan1' and 'eth1' --> but those are not on my machine.

mockup image:
Image

Re: Modular Papirus Conky Idea

Posted: Sat Feb 01, 2025 10:55 am
by AVLinux
ceeslans wrote: Sat Feb 01, 2025 9:55 am
AVLinux wrote: Thu Jan 30, 2025 8:25 pm<snip>
WiFi Icon looks good, I wanted something that wasn't connection type specific..
for personal use, I've colored up a knemo-network icon (from Papirus icon theme) and used this for netrc widget when on ethernet.
It could of course be used for both connection types...

Fwiw, I've scripted selection for separate background-image setting in netrc config with "if_match" expressions :

Code: Select all

#BACKGROUND IMAGE
${if_match "${execp cat /sys/class/net/eth0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus/images/conky_network-knemo.png -p 7,7 -s 64x64}\
${else}${if_match "${execp cat /sys/class/net/wlan0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus/images/conky_network-wifi.png -p 12,18 -s 54x54}\
${endif}${endif}
probably needs to be extended with if/match lines for 'wlan1' and 'eth1' --> but those are not on my machine.

mockup image:
Image
Great stuff! You are the Master!

I'm going to put out an update to the base set this weekend that better meets the @ceeslans QC standard and then I have to move on to other things, I love the community here, so many talented people and such good collaborative spirit! :hug:

Re: Modular Papirus Conky Idea

Posted: Sat Feb 01, 2025 11:08 pm
by i_ri
AVLinux
Would you wish to treat yourself to conky function $nvidia numbers GPU icon conky? if

Re: Modular Papirus Conky Idea

Posted: Sun Feb 02, 2025 6:14 pm
by AVLinux
i_ri wrote: Sat Feb 01, 2025 11:08 pm AVLinux
Would you wish to treat yourself to conky function $nvidia numbers GPU icon conky? if
Haha,

I see that option is available... I really hate my nVidia card on Linux though, I'd rather not see it's stats and have it constantly reminding me how big a mistake I made..

Re: Modular Papirus Conky Idea

Posted: Sun Feb 02, 2025 6:20 pm
by AVLinux
@ceeslans

I can't seem to find that knemo-network Icon like you have... Any change of hooking me up with either an SVG or a 512x512 PNG? What the heck maybe your rc file as well since you have it so nicely formatted already.. :happy:

Re: Modular Papirus Conky Idea

Posted: Mon Feb 03, 2025 2:06 am
by ceeslans
The knemo-network-transmit-receive.svg ultimately links to /usr/share/icons/Papirus/24x24/panel/knemo-monitor-idle.svg ... that's included in attached archive.
Also both wifi and arrows .png's in 512x512px format are included, in case you would like to display different connection-type signs for wireless and ethernet.

I've edited your 'netrc' mostly only in the conky.text section.
Please note that I've changed paths for image folder (and lua script folder too) from 'Modulus-Desktop' to 'Modulus-Laptop', since these are existing and populated.

Code: Select all

--Modulus Net Conky by AVLinux
--Utilizes the following font: Red Hat Text

conky.config = {
	background = true,
	cpu_avg_samples = 2,
	default_color = '#ffffff', --predominant color (white)
	color2 = '#249E28', -- green upspeed color
        color3 = '#F8391D', -- red downspeed color
        color4 = '#787878', -- grey
 	double_buffer = true,
	font = 'Red Hat Text:Bold:size=8',
	draw_shades = false,
        gap_x =-100,
	gap_y =80,
        border_inner_margin = 0,
        border_width = 0,
	no_buffers = true,
        own_window = true,
        own_window_type = 'normal',
        own_window_hints  = 'sticky,undecorated,skip_taskbar,skip_pager,below',
        own_window_argb_visual = true,
        own_window_argb_value = 35, -- This controls opacity (Range 0-255)
				--#own_window_title = 'SysStatsConky',        
        own_window_title = 'SysStatsNetConky',
	update_interval = 1.0,
	use_xft = true,
        if_up_strictness = 'address',
	maximum_width = 80,
	minimum_width = 80, 
        --minimum_height = 80,
	alignment = 'top_middle',

---## ceeslans added config:
	short_units = true,
	border_outer_margin = 0,	# ceeslans likes a 2px outer border :)
	
lua_load = '~/.conky/Modulus-Laptop/LUA/draw_bg.lua',
		--#lua_load = '~/.conky/Modulus-Desktop/LUA/draw_bg.lua',
lua_draw_hook_pre = 'draw_bg',

};

conky.text = [[
#BACKGROUND IMAGE (Comment out if you just want the text w/o BG)
#${voffset 0}${image ~/.conky/Modulus-Laptop/conky_network-knemo.png -p 7,7 -s 64x64}
#NET_STATS
#${voffset 6}${color2}${goto 10}${upspeedf $gw_iface}Kb 
#${voffset 10}${color3}${goto 32}${downspeedf $gw_iface}Kb
#${voffset 20}${alignc}${color4}${upspeedgraph $gw_iface 10, 35 000000 00870C -l  -t} ${color4}${downspeedgraph $gw_iface 10, 35 000000 B00000  -l -t}
#${voffset -14}
\
#BACKGROUND IMAGE (Comment out if you just want the text w/o BG)
${if_match "${execi 30 cat /sys/class/net/eth0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus-Laptop/conky_network-knemo.png -p 7,7 -s 64x64}\
${else}${if_match "${execi 30 cat /sys/class/net/wlan0/operstate}"=="up"}\
${voffset 0}${image ~/.conky/Modulus-Laptop/conky_network-wifi.png -p 12,18 -s 54x54}\
${endif}${endif}
#NET_STATS
${voffset -10}${color}${alignc}${gw_iface} 
${voffset 42}${color2}${goto 8}${upspeed $gw_iface}
${voffset -15}${color3}${alignr 4}${downspeed $gw_iface}
${voffset 1}${alignc}${color4}${upspeedgraph $gw_iface 10,32 000000 00870C -l -t}  ${color4}${downspeedgraph $gw_iface 10,34 000000 B00000 -l -t}
${voffset -12}
]];

Re: Modular Papirus Conky Idea

Posted: Mon Feb 03, 2025 10:59 am
by AVLinux
Hartelijk bedankt @ceeslans I will assemble this evening after work..

Re: Modular Papirus Conky Idea

Posted: Mon Feb 03, 2025 11:10 pm
by AVLinux
Well, it's funny how many ways there are to slice these things up. This is a much better networking Icon but I decided to try an up and down orientation..
shot-2025-02-03_23-06-52.jpg
So with lots of good input from Cees, better alignment of bars, customized home folder for better matching percent visibility, new network Icon(s) and each rc file has a unique window name now. Not quite ready to upload yet I need to fine tune the battery rc on my laptop but ran out of time tonight.
shot-2025-02-03_23-11-40.jpg
*EDIT.. Gah! Lol I need to get those network arrows centered!

Re: Modular Papirus Conky Idea

Posted: Sun Feb 09, 2025 3:21 am
by ceeslans
@AVLinux Oh, you upped the size of the conkies to 108x130px, right?
Tried them on my laptop - and although it's easier on the eyes (mostly because of increased fontsize), I do prefer the 'original' size on a 1920x1080 px screen.

Image

Re: Modular Papirus Conky Idea

Posted: Sun Feb 09, 2025 8:58 am
by AVLinux
@ceeslans

Actually I need to stay on one unscaled machine.. I work on my Desktop 90% of the time and it's a 4K display at Enlightenment's 1.7x scaling. My original upload was from my laptop with a 1920x1080 display. I was quite dismayed that much of the final sizing and aligning I did on my Desktop needed redoing on my laptop so I have been delayed in finishing the final 'base set' and I also got distracted by starting an Obsidian version. The base set will be original size.

Re: Modular Papirus Conky Idea

Posted: Sun Feb 09, 2025 11:58 pm
by AVLinux
@ceeslans @asqwerth

If you or anyone else are interested here is the 'base set' of the 'Modulus' Papirus Conky as far as I'm going to take it. It can be considered the starter kit and is now one single 'Modulus' folder containing the assets and a launch script. If you want to change the size or position of the modules or what gets launched you will need to edit the appropriate 'rc' files and the 'modulus' start up script in the Modulus folder. If you want a more sophisticated LUA background version then @ceeslans can hook you up and @asqwerth has a much more detailed weather forecast module available.

Credits:
Papirus Icon Developers - Icon Image assets
ceeslans - numerous Conky code snippets, advice and advanced Conky-fu.
asqwerth - Advanced Conky-fu, advice and the more comprehensive optional weather module.
AVLinux - Janitorial and assembly work.

Conky zip is here: https://bandshed.net/files/CONKY/Modulus.zip
Screenshot: https://bandshed.net/files/CONKY/shot-2 ... -17-12.jpg

Re: Modular Papirus Conky Idea

Posted: Mon Feb 10, 2025 1:38 am
by asqwerth
Thanks, @AVLinux .

When I have more time, I'll have a look at this final set.

Re: Modular Papirus Conky Idea

Posted: Fri Feb 21, 2025 7:51 pm
by AVLinux
Oh no!

It begins again, this time Icon theme agnostic and a bit more classic Enlightenment-y... Early screenie, much to do..

*Updated progress screenshot:
shot-2025-02-22_19-51-32.jpg

Re: Modular Papirus Conky Idea

Posted: Sun Feb 23, 2025 3:24 pm
by AVLinux
Conkii for different drive types:
shot-2025-02-23_15-19-25.jpg

Re: Modular Papirus Conky Idea

Posted: Sun Feb 23, 2025 5:14 pm
by Amiga-MX
Dotted font used is awesome.

Conky is my main personalization subject. I love it.

Thanks for sharing

Re: Modular Papirus Conky Idea

Posted: Sun Feb 23, 2025 5:15 pm
by ceeslans
whoa... looks great!

Re: Modular Papirus Conky Idea

Posted: Sun Feb 23, 2025 5:33 pm
by AVLinux
Thanks!

Putting way too much time into this... hopefully will have something to share this week..

Any licensing experts here? Some of the images/vectors I personally purchased from iStock and my own shutterstock account most of them were eps files that I cut around like a kindergarten child in GIMP. Since I lawfully bought them and then heavily modified them there shouldn't be any problem sharing them in a Conky? If I used them on a web page or a print article I would be free to use and distribute them correct? I'm not a license zealot though so I don't think about the ramifications of this, the iStock licenses certainly didn't forbid it as far as I could see.

Simple but readable weather conky and redesigned home (these are larger and more square than the Papirus set):

shot-2025-02-23_18-00-21.jpg
shot-2025-02-23_18-29-20.jpg
Now just the battery one to finish on my laptop later...

@ceeslans I may need some expertise, so far I'm not having much luck with a lua bg... I added own_window_transparent = yes, and have to do a lot of playing with BG opacity values to get these images to pop nicely. Even now they look much better on dark BG than light.. :confused: Since these are square the matching square corners don't offend me too much..

*ADDED The whole gang covering all the drives on this computer (some fine tuning left):

Image

Re: Modular Papirus Conky Idea

Posted: Sun Feb 23, 2025 8:33 pm
by asqwerth
very cool!

Re: Modular Papirus Conky Idea

Posted: Mon Feb 24, 2025 7:13 am
by ceeslans
I may need some expertise, so far I'm not having much luck with a lua bg... I added own_window_transparent = yes, and have to do a lot of playing with BG opacity values to get these images to pop nicely. Even now they look much better on dark BG than light.. :confused: Since these are square the matching square corners don't offend me too much..
I take it that transparency is enabled in your setup (either pseudo or through compositor).
When the own_window_argb_visual and own_window_argb_value settings are active, then own_window_transparent should not be set to yes|true ; they don't play nice with each other. Suggest you disable own_window_transparent again (or comment it out by placing ' -- ' at the beginning of its line) and then find the best value for own_window_argb_value.
In fact, I've disabled the loading of draw_bg.lua or transbg.lua altogether (simple because I need to load clock_conky_110.lua to display @asqwerth's clock conky - and afaik it is not possible to load two lua scripts in the same widget). I've cranked up the own_window_argb_value to 144, which stands out still quite okay against a light background. Your miles may vary, just check out with even higher values.
And yes, this means that the dark background will show as a square... Unless you run a compositor like 'picom' where a 'corner-radius' rounding can be set.

Image

Re: Modular Papirus Conky Idea

Posted: Mon Feb 24, 2025 7:27 am
by asqwerth
ceeslans wrote: Mon Feb 24, 2025 7:13 am..... I've disabled the loading of draw_bg.lua or transbg.lua altogether (simple because I need to load clock_conky_110.lua to display @asqwerth's clock conky - and afaik it is not possible to load two lua scripts in the same widget).....
Image
Nice clock mod! And yes, I believe it's not possible to run 2 lua scripts in the same conky widget.

A lot of older conkies use an image file as the background, but often you get the ugly black border around it, if the image is smaller than its "canvas". I use the image.lua script to display the background in these conkies without the black borders. But it doesn't work if the conky is already running with another lua script, for example a progress bar.

Re: Modular Papirus Conky Idea

Posted: Mon Feb 24, 2025 9:30 am
by AVLinux
Hmmm,

I abandoned the old terminal and made a 'badge plate' kind of idea, will need to let it sit for a bit and see if it settles, it does allow for the matching upper left corner dot text for uniformity... Going pretty retro here, the 'flat' crowd will be appalled but I'm enjoying a skeumorphic renaissance this month... :eek:
shot-2025-02-24_09-22-37.jpg
@ceeslans

Thanks for the transparency advice. I see you've done more perfecting to Papirus, very nice! Haha do you wear a lab coat with a micrometer in the pocket when you use the computer? :hug:

*ADDED

A complete BS LED digital CPU % display, I forgot how fun GIMPing can be..
shot-2025-02-24_22-32-16.jpg

Re: Modular Papirus Conky Idea

Posted: Tue Feb 25, 2025 9:20 pm
by AVLinux
OK,

Here is the 'E-Modulus' Modular Conky taking you back to a time before Flat was where it's at, when Desktops were a skeumorphic wonderland full of curves, shadows and dimension, kinda like a Russ Meyer film (but actually not like that at all)... Are we going back in time or is this the beginning of the end for Flat-mania...? Time will tell I guess... ;)

Here is the basic setup on a 1920x1080 Laptop:

Image

And a more complete example on a scaled 4K Desktop with various Drives and Partition types:

Image

Download is here:

https://bandshed.net/files/E-MODULUS_DISTRIB.zip

Zip contains the Conky folder, images, RC files, Fonts and an example startup script for a Laptop, as with all Conkii you will get the best results on your own system by doing your own modifications to the RC files to best suit your own system..

*NOTE - The images were a combination of legitimately purchased files combined with my own creations, I saw nothing in the license agreements that should prohibit their use in a distributed Conky.

Re: Modular Papirus Conky Idea

Posted: Tue Feb 25, 2025 9:44 pm
by asqwerth
AVLinux wrote: Tue Feb 25, 2025 9:20 pm ....... Are we going back in time or is this the beginning of the end for Flat-mania...? ......

I still like flat theming and icons, provided the drawings/design and colours are appealing to me. Papirus is still nice in my eyes.

However, I do like flat with a bit more polish and gradienting, so kora and Antu-Universal are excellent.

And I like Newaita, which is kind of flattish but does try to present icons that look like what they are supposed to represent.

My all-time fave non-flat icon set is still Buuf and its more updated fork [by Nestort] - which are more steampunk/medieval.


And oh yes, cute conky set and icons!

Re: Modular Papirus Conky Idea

Posted: Tue Feb 25, 2025 10:37 pm
by AVLinux
Hehe, thanks!

Don't take me too seriously, I'm pretty much dead center in the old Flat vs. Skeuo debate. As you know better than I there are lots of ways to pull a look together.

Re: Modular Papirus Conky Idea

Posted: Tue Feb 25, 2025 10:42 pm
by asqwerth
@AVLinux

I note that you use
own_window_type = 'desktop',


I believe the default nowadays is 'normal'

When I used your conkies with 'desktop" (albeit on MATE on my PCLOS install), the conky appeared when enabled and then just disappeared when I opened/unminimized a window on top of it.

AFter I changed the setting to 'normal', there were no more issues.

If I recall correctly, KDE plasma is also finicky about the own desktop type setting.

Re: Modular Papirus Conky Idea

Posted: Tue Feb 25, 2025 11:22 pm
by AVLinux
asqwerth wrote: Tue Feb 25, 2025 10:42 pm @AVLinux

I note that you use
own_window_type = 'desktop',


I believe the default nowadays is 'normal'

When I used your conkies with 'desktop" (albeit on MATE on my PCLOS install), the conky appeared when enabled and then just disappeared when I opened/unminimized a window on top of it.

AFter I changed the setting to 'normal', there were no more issues.

If I recall correctly, KDE plasma is also finicky about the own desktop type setting.

No particular reason, just trying different things from the common Conky pages, on Enlightenment it doesn't seem to make a difference but for sharing purposes I'll try and stick with 'normal' in the future.

Re: Modular Papirus Conky Idea

Posted: Sun Mar 09, 2025 8:13 am
by asqwerth
@AVLinux if you would like a more realistic weather icon to match your other E-modulus icons, go check out VClouds weather icons on deviantart.

The licence for the icons is the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License, which permits non-commercial use provided the artist (also called VClouds) is given attribution by providing a link to their VClouds weather icons page on Deviantart:

https://www.deviantart.com/vclouds/art/ ... -179152045



For myself, I'd adapted VClouds some time ago for my openweathermap weather conkies - numbered them to follow openweathermap's weather codes, and also edited one or two of the rain icons (erased some of the rain) to get "light rain" icons.

So I made an openweather dynamic icons conky with these icons to match your E-Modulus vibe.

Image
https://imgur.com/2vtqgVH

Image
https://imgur.com/NaZIPAc

Image
https://imgur.com/JyiKrr5

Re: Modular Papirus Conky Idea

Posted: Mon Mar 10, 2025 5:15 pm
by AVLinux
@asqwerth

Wow, that's perfect, I was having trouble finding something like this, thanks!

PS, I wish it were 28 degrees here... :p

Re: Modular Papirus Conky Idea

Posted: Tue Apr 15, 2025 10:14 am
by i_ri
Hello AVLinux and Everyone
Addressing posts 73, 74
asqwerth and ceeslans, "load two lua scripts in the same widget."

semi-colon separated paths in lua load:
https://github.com/brndnmtthws/conky/co ... d1b8df192c

Re: Modular Papirus Conky Idea

Posted: Sat Apr 19, 2025 4:27 am
by asqwerth
i_ri wrote: Tue Apr 15, 2025 10:14 am Hello AVLinux and Everyone
Addressing posts 73, 74
asqwerth and ceeslans, "load two lua scripts in the same widget."

semi-colon separated paths in lua load:
https://github.com/brndnmtthws/conky/co ... d1b8df192c
Thank you, that helped a lot with my conkies that have an image background and a progress bar/circle. I'm now able to use the image.lua script [to remove unsightly black frames around the image] on top of the lua script for the bars/circles etc.

[ADDED AFTER MORE TESTS}
1. to be exact, I visited the link while booted into MX21 [ie, older conky package] and noted that the old method to run/load 2 lua scripts had been by adding a space between the 2 lua scripts being used. Using this method, I was able to run 2 lua scripts, but only because the image.lua script itself doesn't need a lua_draw_hook_pre command of its own. But hey, at least now I know my previous mistake was to try to load the 2 separate lua scripts in separate lines in the conky config;

2. now booted into MX23, I tried the semi-colon method, but it doesn't work. I suppose MX23's conky package is not the latest. Using the space method, I can't get 2 different lua scripts to run if they each need a lua_draw_hook_pre command of its own. I tried adding a space between the 2 lua_draw_hook_pre commands on the same line, and this allows the first script to work, but the second one doesn't.
When I try having the 2 different lua_draw_hook_pre commands on different lines, both scripts don't work.

As long as only one, or none, lua scripts use the lua_draw_hook_pre command, the "space" method works to load 2 lua scripts.