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
Online
^ 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 )
Online
^ 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
Online
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 )
Online
^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
^ don't know what that error refers too, and conky 10?
It seems "Assuming it's in old syntax" to be saying that the conky commands are written for the old conky. The conky version went from 1.9 to 1.10 at that time maybe?
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
And, sorry but I get the same error with your version. I'm using conky-std 1.18.3-1
I tried temporarily installing conky-all but got the same error.
Just tested on Trixie VM X11 with conky-std 1.22.1-1 and got the same result.
Also on Wayland.
@micko are you using that conky exactly as-is with no other settings?
${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/<.*$//'}I copied that code into a text file and ran 'conky -c qotd.conky.config'
Last edited by johnraff (Today 04:35:06)
...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 )
Online
^ You naturally need _some_ settings
Here's my whole wayland file:
conky.config = {
gap_x = 20,-- left | right
gap_y = 10,-- up | down
-- wayland or X
out_to_x = false,
out_to_wayland = true,
alignment = 'bottom_right',
-- End Window Settings
font = 'SN Pro:size=12',
update_interval = 1,
};
conky.text = [[
${color DADADA}${voffset 30}${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/<.*$//'}
]];I'm about to try this on my carbon alpha x11 install
#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen
Online
This works on x11. I just copied the default carbon stuff over the top of the above, of which most of it is unnecessary
.-- BL-Boron-conky.conf
--[[
## Bunsenlabs User config files
## All default BunsenLabs user config files are located in /usr/share/bunsen/skel.
## The script bl-user-setup copies them to the user $HOME directory on first login.
## See more info with command 'bl-user-setup --help'
]]
--[[ conky configuration
------------------------------
For conky variables and commands use the terminal command:
man conky
------------------------------
BunsenLabs conky threads
Index » Scripts, Tutorials & Tips » Conky - Calendars / Clocks / Time
https://forums.bunsenlabs.org/viewtopic.php?id=516
Open a thread and post conky questions in: Index » GUI & Applications
https://forums.bunsenlabs.org/viewforum.php?id=4
Display your completed conky and codes
Index » Scripts, Tutorials & Tips » Show us your conky
https://forums.bunsenlabs.org/viewtopic.php?id=512
------------------------------
BunsenLabs conky scripts help
Openbox Menu/Preferences/Conky/Conky Manager Help
If there are one or more conkys running, it is possible to kill one conky with
the following command, IF you used what is between the quotes to start the conky, e.g.:
pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc"
]]
conky.config = {
-- Window Settings
own_window = true,
own_window_type = 'desktop',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_colour = '000000',
own_window_class = 'Conky',
own_window_title = 'BunsenLabs Default Conky',
-- ARGB can be used for real transparency
--own_window_argb_visual = true, -- Options: true|false
-- NOTE that a composite manager is required for real transparency and ARGB will not
-- work as desired (in most cases) in conjunction with 'own_window_type override'.
-- Use with: own_window_type = 'normal',
-- Use with: own_window_transparent = false,
-- When ARGB visuals are enabled, use the following to modify the alpha value. Valid
-- range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
--own_window_argb_value = 150,
minimum_width = 0, minimum_height = 0,-- width | height
maximum_width = 0,
gap_x = 20,-- left | right
gap_y = 10,-- up | down
alignment = 'bottom_right',
-- End Window Settings
-- Font Settings
-- Use Xft (anti-aliased font and stuff)
use_xft = true,
--font = 'Liberation Mono:bold:size=10',
--font = 'Liberation Sans:size=10',
font = 'Sans-serif:size=10',
-- Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha = 1,
-- Force UTF8? requires XFT
override_utf8_locale = true,
uppercase = false,
-- End Font Settings
-- Color Settings
draw_shades = false,
default_shade_color = '000000',
draw_outline = false,-- amplifies text if true
default_outline_color = '000000',
default_color = 'FFFFFF',-- Boron Dark and Light foreground
--default_color = 'BECFCF',-- Dragon Dark foreground
--default_color = '4b8bad', -- Lithium blue
--default_color = '678b8b', -- Helium Beam green
--default_color = '656667', -- Waldorf original colour
--default_color = '7a7a7a', -- Flame & BunsenLabs Grey
--default_color = '929292', -- BunsenLabs Grey
--default_color = 'C0C0C0', -- BunsenLabs Silver
color0 = 'B0E0E6',-- PowderBlue
color1 = '778899',-- LightSlateGray
color2 = 'D8BFD8',-- Thistle
color3 = '9ACD32',-- YellowGreen
color4 = 'FFA07A',-- LightSalmon
color5 = 'FFDEAD',-- NavajoWhite
color6 = '00BFFF',-- DeepSkyBlue
color7 = '5F9EA0',-- CadetBlue
color8 = 'BDB76B',-- DarkKhaki
color9 = 'C0C0C0',-- Silver
-- End Color Settings
-- Borders Section
draw_borders = false,
-- Stippled borders?
stippled_borders = 5,
-- border margins
border_inner_margin = 5,
border_outer_margin = 0,
-- border width
border_width = 2,
-- graph borders
draw_graph_borders = false,
--default_graph_height = 15,
--default_graph_width = 40,
-- End Borders Section
-- Miscellaneous Section
-- Boolean value, if true, Conky will be forked to background when started.
background = true,
-- Adds spaces around certain objects to stop them from moving other things
-- around, this only helps if you are using a mono font
-- Options: right, left or none
use_spacer = 'none',
-- Default and Minimum size is 256 - needs more for single commands that
-- "call" a lot of text IE: bash scripts
--text_buffer_size = 6144,
-- Subtract (file system) buffers from used memory?
no_buffers = true,
-- change GiB to G and MiB to M
short_units = true,
-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
-- $image lots. Set to 0 to disable the image cache.
imlib_cache_size = 0,
-- Use the Xdbe extension? (eliminates flicker)
-- It is highly recommended to use own window with this one
-- so double buffer won't be so big.
double_buffer = true,
-- Maximum size of user text buffer, i.e. layout below TEXT line in config file
-- (default is 16384 bytes)
--max_user_text = 16384,
-- Desired output unit of all objects displaying a temperature. Parameters are
-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
--temperature_unit = 'Fahrenheit',
-- Update interval in seconds
update_interval = 1,
-- End Miscellaneous Section
};
conky.text = [[
${color DADADA}${voffset 30}${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/<.*$//'}
]];#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen
Online
^ You naturally need _some_ settings
As I've just discovered for myself by copying some code from an existing conky. ![]()
I just assumed that the offered conky code was a complete conky file, while it was just the content of the conky.text = [[ section.
@micko is the conky.config content you posted suitable to put in a BL conky file as-is? (With some possible cleaning out of unnecessary comments.)
I guess just copying the settings from the default conky would do, unless @marens you have a recommended font, colour etc?
...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 )
Online
@micko is the conky.config content you posted suitable to put in a BL conky file as-is? (With some possible cleaning out of unnecessary comments.)
I'd clean it up, but wait for @marens' suggestion, as I'm no conky expert!
#!/bin/sh
echo '#include <stdio.h>\nvoid main() { printf("Hi, bunsenlabs\\n"); return; }' > bunsen.c
gcc bunsen.c -o bunsen
./bunsen
Online