You are not logged in.

#21 2025-11-14 23:57:21

micko01
void main()
From: Queensland, Australia
Registered: 2024-04-07
Posts: 573
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 2025-11-15 00:10:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,071

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 2025-11-15 01:42:18

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
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 2025-11-15 01:58:40

micko01
void main()
From: Queensland, Australia
Registered: 2024-04-07
Posts: 573
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 2025-11-15 02:02:21

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

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 2025-11-15 02:09:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
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 2025-11-15 02:15:20

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

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

#28 2025-11-15 04:32:14

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
Website

Re: The Carbon Conky

micko01 wrote:

^ 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 hmm

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 (2025-11-15 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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#29 2025-11-15 04:52:59

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

Re: The Carbon Conky

^ 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

Offline

#30 2025-11-15 05:12:35

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

Re: The Carbon Conky

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

Offline

#31 2025-11-15 05:39:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
Website

Re: The Carbon Conky

micko01 wrote:

^ You naturally need _some_ settings

As I've just discovered for myself by copying some code from an existing conky. smile

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 )

Introduction to the Bunsenlabs Boron Desktop

Offline

#32 2025-11-15 05:53:34

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

Re: The Carbon Conky

johnraff wrote:

@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

Offline

#33 2025-11-15 15:26:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,071

Re: The Carbon Conky

johnraff wrote:

I just assumed that the offered conky code was a complete conky file, while it was just the content of the conky.text = [[ section.

Exactly.
We in the Conky thread often do this because we use different versions of Conky and the configurations are often not the same.

micko01 wrote:

I'd clean it up, but wait for @marens' suggestion, as I'm no conky expert!

Each version of Conky has its own default settings.
In the configuration section above the text, it is enough to set only what we want to change.

However, it's good to have a configuration section in advance with visible possible settings like here:
https://forums.bunsenlabs.org/viewtopic … 19#p147019

When you create a new conky, just copy/paste that part and you will easily find what you need to change.  smile

johnraff wrote:

I guess just copying the settings from the default conky would do, unless @marens you have a recommended font, colour etc?

I'll leave that to you because you have a different wallpaper and already existing Conky.


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

Offline

#34 2025-11-15 19:35:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,071

Re: The Carbon Conky

@johnraff

Also, at the end of your  SYSTEM/SHORTCUT KEYS/WINDOWS Conky  you can add a QUOTE.
Create a title (QUOTE) the same way as before and add my code below.

Then adjust the appropriate width by playing with:

marens wrote:

If you have space on your desktop, you can easily increase conky by replacing fmt -w 40  with fmt -w 60.

You can easily find the fmt -v XX  value you need and get the perfect alignment.


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

Offline

#35 2025-11-16 02:42:38

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
Website

Re: The Carbon Conky

marens wrote:

@johnraff

Also, at the end of your  SYSTEM/SHORTCUT KEYS/WINDOWS Conky  you can add a QUOTE.
Create a title (QUOTE) the same way as before and add my code below.

Then adjust the appropriate width by playing with:

marens wrote:

If you have space on your desktop, you can easily increase conky by replacing fmt -w 40  with fmt -w 60.

You can easily find the fmt -v XX  value you need and get the perfect alignment.

Sorry I'm not a conky expert at all and have no idea what you're saying here about QUOTE.

Here's the full carbon default conky, can you edit that into something suitable for quote_of_the_day?
(Feel free to remove the irrelevant comments, or I can easily do that part myself.)

-- BL-Carbon-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 = 'top_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 = true,
    default_shade_color = '171F1B',

    draw_outline = false,-- amplifies text if true
    default_outline_color = '555555',

    default_color = 'BFBFC2',-- Carbon Dark and Light foreground
--default_color = 'ABB8B8',-- 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 = [[
S Y S T E M
${hr}
#Host:${alignr}${nodename}
#Uptime:${alignr}${uptime}
RAM:${alignr}${mem} / ${memmax}
# This version reports the same (incorrect) lower RAM usage as neofetch or htop:
#RAM:${alignr}${legacymem} / ${memmax}
#Swap usage:${alignr}${swap} / ${swapmax}
#Disk usage:${alignr}${fs_used /} / ${fs_size /}
#Root usage:${alignr}${fs_used /} / ${fs_size /}
#Home usage:${alignr}${fs_used /home} / ${fs_size /home}
CPU:${alignr}${cpu cpu0}%
#
# Weather information from openweathermap.org can be displayed in conky by
# using the script $HOME/.config/conky/scripts/bunsenweather.sh. The openweathermap
# service requires registration in order to receive an API Key, which has to be
# added to bunsenweather.sh. For further info see this script and the following thread:
# https://forums.bunsenlabs.org/viewtopic.php?id=2060
#
# Calling bunsenweather.sh from conky works by using
# ${execpi <t> /path/to/bunsenweather.sh "yourlocation"}
# where <t> is the update interval. If "yourlocation" is not defined, the script
# sets geolocation based on your IP adress using the website ipinfo.io.
#
#W E A T H E R
#${hr}
#${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh}

S H O R T C U T    K E Y S
${hr}
Alt + F2${alignr}Run Dialog
Alt + F3${alignr}Alt Menu
Super${alignr}Main Menu
Super + Tab${alignr}Client Menu
Super + t${alignr}Terminal
Super + w${alignr}Web Browser
Super + f${alignr}File Manager
Super + e${alignr}Editor
Super + m${alignr}Media Player
Super + v${alignr}Volume Control
Super + h${alignr}Task Manager
Super + l${alignr}Lock Screen
Super + x${alignr}Logout
PrtSc${alignr}Screenshot

W I N D O W S
${hr}
Alt + Tab${alignr}Switch
Alt + F4${alignr}Close
Alt + F5${alignr}Minimize
Alt + F6${alignr}Toggle Maximize
Super + arrow${alignr}Tile half-screen
Super + Alt + arrow     ${alignr}Tile quarter-screen

]];

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

#36 2025-11-16 03:24:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,071

Re: The Carbon Conky

^ The end of your Conky could (if you like it) look like this:

...

PrtSc${alignr}Screenshot

W I N D O W S
${hr}
Alt + Tab${alignr}Switch
Alt + F4${alignr}Close
Alt + F5${alignr}Minimize
Alt + F6${alignr}Toggle Maximize
Super + arrow${alignr}Tile half-screen
Super + Alt + arrow     ${alignr}Tile quarter-screen

QUOTE
${hr}
${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>//'}

]];

Now play with the command fmt -w 40  until you get the right width.
You can also change the colors (DADADA, FF8080).

If you don't like it, just make a new "quote" conky.


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

Offline

#37 2025-11-16 04:54:25

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
Website

Re: The Carbon Conky

^Yes, making a separate "quote" conky is what I had in mind. People could place it where they liked on the screen (with conky-move) and wouldn't be obliged to have the default conky as well.

But many thanks for your input. I think I've got enough to put it in bunsen-conky now. smile


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

#38 2025-11-17 07:17:26

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,012
Website

Re: The Carbon Conky

Eventually, after some time playing with the settings, ended up with this:

-- quote_of_the_day-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 = {

-- wayland or X
--    out_to_x = yes,
--    out_to_wayland = no,

--  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 = 'Quote of the Day 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,
--    maximum_width = 0,

-- Adjust these to place the text in your preferred position.
    gap_x = 150,-- left | right
    gap_y = 200,-- up | down
    alignment = 'middle_middle',

--  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
-- Drawing shades affects visibility, depending on the background image.
-- Set to 'draw_shades = false' if you prefer.
    draw_shades = true,
    default_shade_color = '171F1B',

    draw_outline = false,-- amplifies text if true
    default_outline_color = '555555',

    default_color = 'BFBFC2',-- Carbon Dark and Light foreground
--default_color = 'ABB8B8',-- 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 = 1024,

-- 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,

-- Update interval in seconds
    update_interval = 1,

--  End Miscellaneous Section
};

-- Adjust the 'fmt -w40' to eg 'fmt -w60' to widen the text box.

conky.text = [[
${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/<.*$//'}
]];

Please post if you spot any mistakes!

Screenshot-2025-11-17-16-20-26.png

...imgbb seems a lot slower than imgur!

Last edited by johnraff (2025-11-17 07:24:27)


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

#39 2025-11-17 08:02:26

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

Re: The Carbon Conky

Ok this was before the edit methinks

imgbb-2025-11-17-17-54-06.png

I'll try again, stock Carbon alpha on the dell lappy.

EDIT: Oh, I see you're running 2 conkys. BRB

Last edited by micko01 (2025-11-17 08:07:09)


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

Offline

#40 2025-11-17 08:21:26

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

Re: The Carbon Conky

Bark is a bit funny but looks ok, just playing around.

imgbb-2025-11-17-18-19-18.png


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

Offline

Board footer

Powered by FluxBB