You are not logged in.

#2701 2026-05-14 08:41:51

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

If someone, like me, has been failing for a long time due to this error message from @mpeachy's allcombined.lua script...

conky: llua_do_call: function conky_gradbar execution failed: allcombined.lua:19: attempt to call a nil value (global 'loadstring')

The solution is that with lua5.2 the loadstring was changed to load.
So, look for it and change it.  big_smile
https://github.com/brndnmtthws/conky/issues/1099

Bildschirmfoto-2026-05-14-09-36-40.png

Offline

#2702 2026-05-15 04:26:56

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,272

Re: Show us your conky

unklar wrote:

If someone, like me, has been failing for a long time due to this error message from @mpeachy's allcombined.lua script...

conky: llua_do_call: function conky_gradbar execution failed: allcombined.lua:19: attempt to call a nil value (global 'loadstring')

The solution is that with lua5.2 the loadstring was changed to load.
So, look for it and change it.  big_smile
https://github.com/brndnmtthws/conky/issues/1099

https://i.postimg.cc/CRxjrkny/Bildschirmfoto-2026-05-14-09-36-40.png

unklar I'm sure mrpeachy would be very proud of you.
It's nice to know his scripts still live on.

RIP mrpeachy


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2703 2026-05-20 00:53:49

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,965

Re: Show us your conky

conky in sway status bar -

tgTq2Xio_t.png

conky.config = {
	out_to_console = true,
	out_to_x = false,
	background = false,
	max_text_width = 0,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_stderr = false,
	update_interval = 2.0,
	total_run_times = 0,
	if_up_strictness = 'address',
	uppercase = false,
	short_units = false,
	override_utf8_locale = false,
	use_spacer = 'left',

};

-- # JSON for i3bar #
-- # { "full_text" : "Up:  ${uptime_short}  " , "color" : "\#B0B0B0" }, #
-- # { "full_text" : "${loadavg}  " , "color" : "\#B0B0B0" }, #
-- # { "full_text" : "${exec /home/doug/bin/cpu_temp.pl | cut -c1-7}  ", "color" : "\#B0B0B0" },
-- # { "full_text" : "${exec sensors nvme-pci-0300 | awk '/Composite:/{gsub("+","");print $2}' | sed 's:\\.[^|]*::g'}  ", "color" : "\#B0B0B0" },
-- # { "full_text" : "${exec sensors coretemp-isa-0000 | awk '/Package id 0:/{gsub("+","");print $4}' | sed 's:\\.[^|]*::g'}  ", "color" : "\#B0B0B0" },
-- # { "full_text" : "NET:  ${wireless_link_qual_perc wlp2s0}%    ${upspeed wlp2s0}    ${downspeed wlp2s0}  " , "color" : "\#B0B0B0" },
-- # { "full_text" : "${exec $HOME/bin/battery_state.sh}  ", "color" : "\#B0B0B0" },
-- # { "full_text" : "${execpi 60 acpi -b | awk '/Battery 0/ {print $5}' | cut -c1-5}  ", "color" : "\#B0B0B0" },
-- # °C

-- determine hwmon modules
-- for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done

conky.text = [[

[

	{ "full_text" : "CPU:  ${cpu}%  " , "color" :
		${if_match ${cpu}>=50}"\#FF0008"${else}${if_match ${cpu}>=25}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${loadavg}  " , "color" : "\#B0B0B0" },

	{ "full_text" : "${hwmon 5 temp 1}°C  ", "color" :
		${if_match ${hwmon 5 temp 1}>=80}"\#FF0008"${else}${if_match ${hwmon 5 temp 1}>=50}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${hwmon 4 temp 1}°C  ", "color" :
		${if_match ${hwmon 4 temp 1}>=80}"\#FF0008"${else}${if_match ${hwmon 4 temp 1}>=50}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${hwmon 4 temp 2}°C  ", "color" :
		${if_match ${hwmon 4 temp 2}>=80}"\#FF0008"${else}${if_match ${hwmon 4 temp 2}>=50}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${hwmon 4 temp 3}°C  ", "color" :
		${if_match ${hwmon 4 temp 3}>=80}"\#FF0008"${else}${if_match ${hwmon 4 temp 3}>=50}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "MEM:  ${memperc}%  " , "color" :
		${if_match ${memperc}>=50}"\#FF0008"${else}${if_match ${memperc}>=25}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "BAT0:  ${battery_percent BAT0}%  ", "color" :
	    ${if_match ${battery_percent BAT0}<=12}"\#FF001A"${else}${if_match ${battery_percent BAT0}<=15}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${execpi 60 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1}  ", "color" : "\#B0B0B0" },

	{ "full_text" : "NET:${wireless_link_qual_perc wlp2s0}%  ",  "color" :
		${if_match ${wireless_link_qual_perc wlp2s0}<=30}"\#FF001A"${else}${if_match ${wireless_link_qual_perc wlp2s0}<=60}"\#FBFF00"${else}"\#B0B0B0"${endif}${endif} },

	{ "full_text" : "${upspeed wlp2s0}    ${downspeed wlp2s0}  " , "color" : "\#B0B0B0" },

	{ "full_text" : "${time %a %e %b  %l:%M %p}  " , "color" : "\#B0B0B0" }
	
],

]];

You must unlearn what you have learned.
    -- yoda

Offline

#2704 2026-05-20 02:16:33

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,272

Re: Show us your conky

Nice one PackRat.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2705 2026-05-23 10:01:14

WizardofCOR
Member
Registered: 2023-07-28
Posts: 71

Re: Show us your conky

Ok, saw this and immediately started drooling...  lolz

8745828e4e29590ecf38431d25eb604dc0e4dcf0.jpeg

Me wants.


Just a dude playing a dude, disguised as another dude...

Offline

#2706 2026-05-23 15:09:03

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,272

Re: Show us your conky

Where did you see it?  Ask for the conkys.

Then comes the tweaking!
Mauhahahaha


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2707 2026-05-23 18:00:40

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

Re: Show us your conky

@WizardofCOR

Top left is a modified Gotham conky.
The original version looks like this:

${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %R}${font}${voffset -84}${offset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -148}${time %A}${font}
${voffset 1}${offset 12}${font Ubuntu:pixelsize=12}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${voffset 30}

gotham.png


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

Offline

#2708 2026-05-25 08:31:00

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

PackRat wrote:

conky in sway status bar -

https://thumbs2.imgbox.com/30/83/tgTq2Xio_t.png
--snip

Thanks for sharing.
Currently I don't have a sway installation. That's why I had to massively 'mangle' the configuration here on labwc.  big_smile

20260525-10h16m46s-grim.png

conky.config = {
	out_to_wayland = true,
	own_window = true,
	own_window_colour = '#ff0000',
	own_window_class = 'Conky',
	own_window_transparent = false,--true,
	own_window_argb_visual = true,
	own_window_type = 'panel',--normal', 
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--

	out_to_console = false,--true,
	out_to_x = false,
	background = false,
	max_text_width = 0,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_stderr = false,
	update_interval = 1,--2.0,
	total_run_times = 0,
	if_up_strictness = 'address',
	uppercase = true,--false,
	short_units = false,
	override_utf8_locale = true,--false,
	use_spacer = 'left',
	alignment = 'bottom_left',
	minimum_width = 1670, minimum_height = 30,
	color1 = '#FF0008',
	color2 = '#FBFF00',
	color3 = '#B0B0B0',
	color4 = '#FF001A',	
};


conky.text = [[

CPU:  ${cpu}%  ${color}\
${goto 20}${if_match ${cpu}>=50}${else}${if_match ${cpu}>=25}${else}${endif}${endif}\

${goto 100}${loadavg}  \

${goto 240}CPU3: ${hwmon 3 temp 3}°C  ${color}\
${goto 320}	${if_match ${hwmon 3 temp 3}>=80}${else}${if_match ${hwmon 3 temp 3}>=50}${else}${endif}${endif}\

${goto 400}CPU4: ${hwmon 3 temp 2}°C  ${color}\
${goto 480}	${if_match ${hwmon 3 temp 2}>=80}${else}${if_match ${hwmon 3 temp 2}>=50}${else}${endif}${endif}\

${goto 560}CPU1: ${hwmon 4 temp 2}°C  ${color}\
${goto 640}	${if_match ${hwmon 4 temp 2}>=80}${else}${if_match ${hwmon 4 temp 2}>=50}${else}${endif}${endif}\

${goto 720}CPU2: ${hwmon 4 temp 3}°C  ${color}\
${goto 800}	${if_match ${hwmon 4 temp 3}>=80}${else}${if_match ${hwmon 4 temp 3}>=50}${else}${endif}${endif}\

${goto 880}MEM:  ${memperc}%  ${color}\
${goto 960}	${if_match ${memperc}>=50}${else}${if_match ${memperc}>=25}${else}${endif}${endif}\

${goto 1040}BAT0:  ${battery_percent BAT0}%  ${color}\
${goto 1120}    ${if_match ${battery_percent BAT0}<=12}${else}${if_match ${battery_percent BAT0}<=15}${else}${endif}${endif}\

${goto 1140}: ${execpi 60 acpi -b | awk '/Battery 0/ {print $3}' | cut -c1} \

${goto 1180}NET:${wireless_link_qual_perc wlan0}%  ${color}\
${goto 1260}	${if_match ${wireless_link_qual_perc wlan0}<=30}${else}${if_match ${wireless_link_qual_perc wlan0}<=60}${else}${endif}${endif}\

${goto 1340}: ${upspeed wlan0}    ${downspeed wlan0} \

${goto 1520} ${time %a %e %b  %l:%M %p}  
	
]];

Offline

#2709 2026-05-25 08:43:08

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

^because we are currently at it...  big_smile

20260525-10h08m05s-grim.png

-- pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc" &
-- @unklar 2024-01-17; 2025-04-01; 2026-05-22
conky.config = {

	use_xft = true,
--xftfont Input Mono:size=8
--xftfont monofur:size=9
--xftfont monospace:size=8
--xftfont DejaVu Sans Mono:size=8.5
	font = 'Hack-Regular:size=9',
	xftalpha = 0.8,
	text_buffer_size = 2048,

	update_interval = 1,

	total_run_times = 0,

--out_to_wayland = true,
	own_window = true,
	own_window_transparent = false, --true,
	own_window_type = 'utility',--override',--dock',
--own_window_hints = 'skip_taskbar,skip_pager',--undecorated',
	own_window_argb_visual = true,
	own_window_argb_value = 120,
--own_window_colour = '#000000',
    own_window_class = 'Conky',

	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	stippled_borders = 0,
	border_inner_margin = 5,
	border_width = 1,

	default_color = '#ffffff',
	color1 = '#778899', --#66FFFF',
	color9 = '#C0C0C0',

--alignment = 'top_left',
	alignment = 'top_right',
--alignment = 'bottom_left',
--alignment = 'bottom_right',
--alignment = 'middle_right',
	minimum_width = 220, minimum_height = 5, --650,
	maximum_width = 220,
	gap_x = 20,
	gap_y = 180,

	double_buffer = true,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	override_utf8_locale = true,
	use_spacer = 'none',
	imlib_cache_size = 0,
	

};

conky.text = [[
${goto 40}${font LED_mono:size=30}${color1}88:88:88${goto 40}${color9}${time %T}${color}${font}
${font monofur:size=9}${alignc}Conky v${conky_version}${font}
Kernel
===
 |
 |
 |   ${image ~/.conky/images/labwc2-with-text.png -p 40,110 -s 90x30}${goto 150}${voffset 10}${exec labwc -v | cut -c7-11}${voffset -10}
 |
 |   ${goto 90}${exec uname -r | cut -d '-' -f1}
 |
Weather
 |
 |
${font Fira Mono:size=8}   +  ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}${font}
 |
 |
System
 |
 |   System: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2}
 |   CPU ${goto 100}Temp: ${hwmon 3 temp 2}° | ${hwmon 3 temp 3}°
 |   root:${goto 100}${fs_free /root} / ${fs_size /root}
 |   RAM:${goto 100}${legacymem}${goto 148}/ ${memmax}
 |   load:${goto 100}${loadavg}	
 |
Net
 |
 |   Up:${goto 100}${upspeedf enp0s25}${goto 170}${totalup enp0s25} 
 |   DL:${goto 100}${downspeedf enp0s25}${goto 170}${totaldown enp0s25}
 |
Processes
 |
 |   NAME ${goto 165}PID ${goto 200}TOP   
 |   ${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
 |   ${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
 |   ${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
 |   ${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
 |   ${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
 |
===
]];

labwc2-with-text.png
labwc2-with-text.png

Offline

#2710 2026-05-25 18:12:20

hhh
Miss Grace Jones
From: Jamaica/Paris/NY
Registered: 2015-09-17
Posts: 17,198
Website

Re: Show us your conky

Hey, sweet! Had that not been done yet? Submit it to the labwc git, and also as an svg. What's the font?


The future arrived. Read the terms and conditions.

Offline

#2711 2026-05-26 14:53:06

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

hhh wrote:

Hey, sweet! Had that not been done yet? Submit it to the labwc git, and also as an svg. What's the font?

I'm not sure what you mean.
I don't know the font of the logo.
It's not "labwcmoon.ttf" as you can see from this comparison.
20260526-16h36m37s-grim.png
I generally get something like this from sites like this when I browse.  wink
https://github.com/labwc/labwc-artwork/ … wcmoon.ttf

Offline

#2712 2026-05-29 10:39:45

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

Bildschirmfoto-2026-05-29-12-29-14.png

“meska-conky” for BL-Carbon (adapted from the Arch Linux forum with calendar, weather, and moon)
Now includes:


- Calendar (cal.lua) (if you prefer the week to start on Sunday = change line 32 accordingly)

- @maren's tad-script (shows only today and the next 3 days). Please copy to ~/. Change your city in the script.

- Moongiant_conky_script (with configurations by @Sector11, @TBG, and me). Copy the directory to ~/.conky

- meska-conky (with the FiraMono / neuropolitical fonts and the cal.lua / draw-bg.lua scripts). Also copy to ~/.conky and make the system “aware” of the fonts.


If you're running BL with picom, you can leave the conkyrc as is. If you're not using picom, you'll need to adjust the conkyrc configuration accordingly using draw-bg.lua.

https://workupload.com/file/k2gdBLfVyxE

Have fun!

Offline

#2713 2026-06-01 12:14:20

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

Re: Show us your conky

Simple Calendar

I've never made a calendar conky.
Mostly all OS have a clock extension/applet/plugin with an integrated calendar in the panel.

A google search for 'conky simple calendar' directed me to the BL forums:
https://forums.bunsenlabs.org/viewtopic.php?id=5986

I really got what I was looking for, but I had to play around a bit and add something of my own.
Monday is always the first day of the week and that was easy to set, then I added an image (header.png) to the title.
I wanted the current day to be colored 'yellow/gold' the same as the current date except Saturday (light blue) and Sunday (light red),

Working days:

cal1.png

Non-working days:

cal3.png  cal4.png

New month (and radiotray-ng conky above):

cal5.png  cal-now.png

Maybe the 'simple calendar conky' is less simple now, but it looks good to me.  smile

In the configuration I set the  maximum_width  to 180, and the  default_color  is DADADA.
This is the TEXT section:

${voffset 2}${alignc}${font Mono:size=11}${color fedf08}${texeci 600 date +'%b %Y'}${color}
${voffset 10}${font Mono:size=11}${goto 5}\
${if_match "${texeci 600 date +'%a' | sed 's/.$//'}" == "Mo"}${color fedf08}\
${else}${endif}Mo${color} \
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "Tu"}${color fedf08}\
${else}${endif}Tu${color} \
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "We"}${color fedf08}\
${else}${endif}We${color} \
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "Th"}${color fedf08}\
${else}${endif}Th${color} \
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "Fr"}${color fedf08}\
${else}${endif}Fr${color} \
${color 0098ff}Sa${color} ${color ff8080}Su
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "Sa"}\
${goto 5}${color}${execpi 600 LAR=`date +%-d`; ncal -M -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color 0098ff}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 5}/g'}${color}${font}\
${else}\
${if_match "${texeci 600 date '+%a' | sed 's/.$//'}" == "Su"}\
${goto 5}${color}${execpi 600 LAR=`date +%-d`; ncal -M -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color ff8080}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 5}/g'}${color}${font}\
${else}\
${goto 5}${color}${execpi 600 LAR=`date +%-d`; ncal -M -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color fedf08}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 5}/g'}${color}${font}${endif}${endif}\
${voffset -10}\
${image $HOME/.conky/header.png -p 0,0 -s 180x24}

I almost forgot, you need the  header.png  image inside the  ~/.conky  folder:
https://i.postimg.cc/bNvpPmRK/header.png

The game is over.  big_smile


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

Offline

#2714 Today 12:39:21

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

https://forums.bunsenlabs.org/viewtopic … 48#p151548

olgmen_scale conky from April 2010. Author is Boris Krinkel alias @olgmen
https://workupload.com/file/PTzwk97Zyej
In this archive I have packed the original archive with the syntax 1.9 of the Conky configuration.


Bildschirmfoto-2025-08-16-08-40-22.png  Bildschirmfoto-2026-06-23-19-42-58.png  Bildschirmfoto-2026-06-24-13-32-25.png

The time shown is; calendar day; Temperature of the first two CPUs;
percent utilization; Frequency, as well as down and up.
The 'request to take a break because I've been sitting at the computer for over 2 hours' flashes red.   big_smile

Starting with Syntax 1.10, I also changed a few things in the lua script:

require 'cairo_xlib'

added for today's needs

colorred=0
colorgreen=1
colorblue=0
coloralpha=1

for the colors in the --circlewriting variables. I also wanted to have gray / silver (colorgray=1), which doesn't work. This probably has to be specified above in the Lua script.

Switch the device files (hwmon4 - hwmon5). Since it also does this in the lua script,

${exec expr `cat /sys/bus/platform/devices/coretemp.0/hwmon/hwmon5/temp1_input` / 1000}

I failed with the *simpler method* (if / else) in conkyrc.

@ceeslans, do your best as I'm too old for lua.  big_smile

Last edited by unklar (Today 12:46:22)

Offline

#2715 Today 15:34:20

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 3,010

Re: Show us your conky

^^Thanks to the good @olgmen I have now understood the functions of @wlouf and the lua script he uses (circlewriting by @mrpeachy).
Finally I have a result, albeit as an *egg*.  big_smile

OSpfmRlt.png

circle.lua

--[[circlewriting by mrpeachy (2010)]]
require 'cairo'
require 'cairo_xlib'
function addzero100(num)
if num==nil then num=0 end
if tonumber(num) < 10 then
return "00" .. num
elseif tonumber(num) <100 then
return "0" .. num
else
return num
end
end
function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end
function circlewriting(cr, text, font, fsize, radi, horiz, verti, tred, tgreen, tblue, talpha, start, finish, var1)
local inum=string.len(text)
range=finish
deg=(finish-start)/(inum-1)
degrads=1*(math.pi/180)
local textcut=string.gsub(text, ".", "%1@@@")
texttable=string.split(textcut, "@@@")
for i = 1,inum do
ival=i
interval=(degrads*(start+(deg*(i-1))))+var1
interval2=degrads*(start+(deg*(i-1)))
txs=0+radi*(math.sin(interval))
tys=0-radi*(math.cos(interval))
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fsize);
cairo_set_source_rgba (cr, tred, tgreen, tblue, talpha);
cairo_move_to (cr, txs+horiz, tys+verti);
cairo_rotate (cr, interval2)
cairo_show_text (cr, (texttable[i]))
cairo_rotate (cr, -interval2)
end
end
function circlewritingdown(cr, text, font, fsize, radi, horiz, verti, tred, tgreen, tblue, talpha, start, finish, var1)
local inum=string.len(text)
deg=(start-finish)/(inum-1)
degrads=1*(math.pi/180)
local textcut=string.gsub(text, ".", "%1@@@")
texttable=string.split(textcut, "@@@")
for i = 1,inum do
ival=i
interval=(degrads*(start-(deg*(i-1))))+var1
interval2=degrads*(start-(deg*(i-1)))
txs=0+radi*(math.sin(interval))
tys=0-radi*(math.cos(interval))
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fsize);
cairo_set_source_rgba (cr, tred, tgreen, tblue, talpha);
cairo_move_to (cr, txs+horiz, tys+verti);
cairo_rotate (cr, interval2+(180*math.pi/180))
cairo_show_text (cr, (texttable[i]))
cairo_rotate (cr, -interval2-(180*math.pi/180))
end
end
function conky_draw_text()
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num > 5 then
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)



--circlewriting variable
cpu=tonumber(conky_parse('${cpu cpu1}'))
--text must be in quotes
text=("CPU " .. (addzero100(cpu)) .. "%") 
--font name must be in quotes
font="White Rabbit"
fontsize=17
radius=80
positionx=100
positiony=150
colorred=1
colorgreen=1
colorblue=1
coloralpha=1
--to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
--eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
start=0
finish=120
letterposition=0
circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)

--circlewritingdown variables
mem=tonumber(conky_parse('${memperc}'))
--text must be in quotes
text=("MEMORY " .. (addzero100(mem)) .. "%")
--font name must be in quotes
font="White Rabbit"
fontsize=17
radius=90
positionx=230
positiony=270
colorred=1
colorgreen=1
colorblue=1
coloralpha=1
--to set start and finish values for circlewritingdown, if the text will cross 0 degrees then you must calculate for 0-finish degrees
--eg if you want to go from 90 to 270, then you will input 90 to -90.  Start has to be greater than finish
start=300
finish=180
letterposition=0
circlewritingdown(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)

--circlewritingdown variable
sda8=tonumber(conky_parse('${fs_used_perc /}'))
--text must be in quotes
text=("FILESYS " .. (addzero100(sda8)) .. "%") 
--font name must be in quotes
font="White Rabbit"
fontsize=17
radius=80
positionx=260
positiony=280
colorred=1
colorgreen=1
colorblue=1
coloralpha=1
--to set start and finish values for circlewritingdown, if the text will cross 0 degrees then you must calculate for 0-finish degrees
--eg if you want to go from 90 to 270, then you will input 90 to -90.  Start has to be greater than finish
start=180
finish=-0
letterposition=0.06
circlewritingdown(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)

--circlewriting variables
swap=tonumber(conky_parse('${swapperc}'))
--text must be in quotes
text=("SWAP " .. (addzero100(swap)) .. "% ") 
--font name must be in quotes
font="White Rabbit"
fontsize=17
radius=60
positionx=105
positiony=130
colorred=1
colorgreen=1
colorblue=1
coloralpha=1
--to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
--eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
start=200
finish=340
letterposition=0
circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)


end
end 

conkyrc

--[[ pkill -xf "conky -c ~/.conky/wlouf_test/circle_conkyrc10" &
     https://forum.ubuntu-fr.org/viewtopic.php?pid=3784370#p3784370	
]]
conky.config = {
	own_window = true,
--own_window_colour ff0000
	own_window_class = 'Conky',
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_type = 'normal', 
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--

	minimum_width = 380, minimum_height = 380,
	maximum_width = 380,

	alignment = 'tl',-- tl, tm, tr, bl, bm, br, ml, mr

	gap_x = 80,
	gap_y = 20,

	background = false,

	draw_borders = false,
	stippled_borders = 1,
	border_width = 1,
	draw_graph_borders = false,
	draw_shades = false,
	draw_outline = false,

	use_spacer = 'right',

	default_color = 'ffffff',
	default_shade_color = '000000',
	default_outline_color = 'ffffff',
	color0 = 'FFFF00',
	color1 = 'white',
	color2 = 'yellow',
	color3 = 'red',

	use_xft = true,
	font = 'Ubuntu:size=9',
	xftalpha = 1,
	
	uppercase = false,
	override_utf8_locale = true,

	update_interval = 1,
	total_run_times = 0,

	double_buffer = true,
	no_buffers = true,

	cpu_avg_samples = 2,
	net_avg_samples = 2,
	short_units = true,
	pad_percents = 2,
	text_buffer_size = 2048,
	imlib_cache_size = 0,

	lua_load = './scripts/circle.lua',
	lua_draw_hook_pre = 'draw_text',

};

conky.text = [[
]];

*wipes sweat from forehead*  tongue

Offline

#2716 Today 16:21:27

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,272

Re: Show us your conky

unklar wrote:

https://forums.bunsenlabs.org/viewtopic … 48#p151548

olgmen_scale conky from April 2010. Author is Boris Krinkel alias @olgmen
{snip}

Ooooo  Must take a look!
I see he used, what looks like, mobilediesel's week script. EDIT:  YUP.
I have 12 versions (tweaks) of that script.

Not familiar with olgmen's work but wlouf and mrpeachy were GENIUSES.

Thank you unklar

Last edited by Sector11 (Today 16:33:12)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB