You are not logged in.
^ @marens nice and simple and works fine on wayland.
Would be nice if we didn't have to double up on http requests
, 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
^ That's right. ![]()
If people would know how little brain is ruling the world, they would die of fear.
Offline
Here is a simple Conky I made recently:
https://forums.bunsenlabs.org/viewtopic … 71#p146171Conky 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
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 )
Offline
^ 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 ![]()
#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen
Offline
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
^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 )
Offline
^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