You are not logged in.

#21 Yesterday 23:57:21

micko01
void main()
From: Queensland, Australia
Registered: 2024-04-07
Posts: 547
Website

Re: The Carbon Conky

^ @marens nice and simple and works fine on wayland.

Would be nice if we didn't have to double up on http requests smile , but that would need a script then, rather than a one-liner.


#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen

Offline

#22 Today 00:10:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 952

Re: The Carbon Conky

^ That's right.  cool


If people would know how little brain is ruling the world, they would die of fear.

Offline

#23 Today 01:42:18

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,804
Website

Re: The Carbon Conky

marens wrote:

Here is a simple Conky I made recently:
https://forums.bunsenlabs.org/viewtopic … 71#p146171

Conky downloads the "Thought of the Day" from the website:
https://www.calendarlabs.com/today/

No script needed:

${color DADADA}${texeci 3600 curl -s "https://www.calendarlabs.com/today/" | grep '<p>' | sed '3q;d' | sed 's/<p>//' | sed 's/<\/p>//' | sed 's/^[ \t]*//' | fmt -w 40}
${voffset 10}${alignr}${color FF8080}${texeci 3600 curl -s "https://www.calendarlabs.com/today/" | grep '<strong>' | sed '2q;d' | sed 's/^[ \t]*//' | awk -F'</strong>' '{print $1}' | sed 's/<div class="quote-auth"><strong>//'}

Thanks for this!
Unfortunately, it looks as if it might not run on conky 10:

john@boron:~/tmp$ conky -c qotd.conky.conf 
conky: Syntax error (qotd.conky.conf:1: unexpected symbol near '$') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:148: attempt to index a nil value (local 'settings')

]
But then I wonder why

micko01 wrote:

works fine on wayland

?


...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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#24 Today 01:58:40

micko01
void main()
From: Queensland, Australia
Registered: 2024-04-07
Posts: 547
Website

Re: The Carbon Conky

^ don't know what that error refers too, and conky 10?

I simplified the 'sed' operations a bit and eliminated awk, just because! Maybe it will help?

${color DADADA}${texeci 3600 curl -s "https://www.calendarlabs.com/today/" | grep '<p>' | sed '3q;d' | sed -e 's/<p>//' -e 's/<\/p>//' -e 's/^[ \t]*//' | fmt -w40 }
${voffset 10}${alignr}${color FF8080}${texeci 3600 curl -s "https://www.calendarlabs.com/today/" | grep '<strong>' | sed '2q;d' | sed -e 's/^[ \t]*//' -e 's/^.*<strong>//' -e 's/<.*$//'}

That's what is working for me, but I can't see a reason @maren's original wouldn't work hmm


#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen

Offline

#25 Today 02:02:21

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,915

Re: The Carbon Conky

johnraff wrote:

We're shipping a  lot of more-or-less identical conkys in bunsen-conky, different mostly in colour, maybe font.
How about dropping BL-Beryllium-conky.conf  *Lithium* *Helium* *Hydrogen* and *Classic* leaving the ones which are actually different in some way.

And possibly adding a couple of new ones, if the conky people have any suggestions?

Perhaps those conkies could be kept in some package named like bunsen-legacy-conky for those who want the older conkies, and don't have to be shipped on the ISO but just an apt-get install away.

Thoughts?


Real Men Use Linux

Offline

#26 Today 02:09:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,804
Website

Re: The Carbon Conky

^Considering the only difference most of those conkys have from the current default is colour or maybe font - easily tweaked by even newcomers - I wonder if making a new bunsen-conky-extras package is worth the effort?


...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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#27 Today 02:15:20

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,915

Re: The Carbon Conky

johnraff wrote:

^Considering the only difference most of those conkys have from the current default is colour or maybe font - easily tweaked by even newcomers - I wonder if making a new bunsen-conky-extras package is worth the effort?

True, maybe what others think? If that's all the differences are then yeah may as well drop them.


Real Men Use Linux

Offline

Board footer

Powered by FluxBB