Show Us Your Conky

@Sector11 we miss your conky scrots!

For those of you who like a simple minimal conky here is one.

Summary
##Feel free to edit and make your own. 

conky.config = {
    alignment = 'top_middle',
	background = false,
	border_inner_margin = 15,
	border_width = 5,
	default_color = '5A5B3F',  --ffffff # grey 5f5f5f 3F3F3F 183149 3B3B3B 26211F
	double_buffer = true,
	draw_borders = false,
	draw_graph_borders = false,
	draw_outline = false,
	draw_shades = false,
	gap_x = 0,
	gap_y = 20,
	maximum_width = 550,
	double_buffer = true,
	override_utf8_locale = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
	own_window_transparent = false,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	text_buffer_size = 8000,
	total_run_times = 0,
	update_interval = 1,
	uppercase = false,
	use_xft = true,
	xftalpha = 1,
	short_units = false,
	font = 'Raleway:style=Light:pixelsize=16',
	color1 = 'c5ca94',
	color2 = '753b80',
	color3 = '005929',
}
conky.text = [[

${color1}${font Kenyan Coffee:size=52}${alignc} ${time %H:%M}${font}
${color1}${voffset 4}${offset 30}${font Shimes One PERSONAL USE:size=52}${alignc}${time %A %B}${font}

]]

Screenshot from 2022-02-19 23-19-36

3 Likes

I remember that one from my DA days. A very nice combination of fonts.

Thank you Dobbie, yea good old simple one.

1 Like

Ok last one for tonight, another minimal conky.

Summary
##Feel free to edit and make your own. 

conky.config = {
  console_bar_fill   = '»',
  console_bar_unfill = ' ',
  alignment = 'top_left',
  background = false,
  border_width = 2,
  cpu_avg_samples = 2,
  -- define colours:
  default_color = '#00C75C',  -- Orange
  color1 = '#709080',         -- Kakhi
  color2 = '#b4b4b4',         -- Light Grey
  color3 = '#717373',         -- Light Green
  color4 = '#3E3E3E',         -- White
  color5 = '#e0c0ad',         -- Black
  color6 = '#ffffff',         -- Light aubergine
  font = 'GE Inspira Regular:pixelsize=13',
  default_outline_color = '#1abc9c',  -- Same HTML as current terminal
  default_shade_color = '#1abc9c',  -- Same HTML as current terminal
  double_buffer = true,
  draw_borders = false,
  draw_graph_borders = true,
  draw_outline = false,
  draw_shades = false,
  extra_newline = false,
  format_human_readable=true,
  gap_x = 10,
  gap_y = 460,
  minimum_height = 300,
  minimum_width = 120,
  net_avg_samples = 2,
  no_buffers = true,
  out_to_console = false,
  out_to_ncurses = false,
  out_to_stderr = false,
  out_to_x = true,
  own_window = true,
  own_window_class = 'conky',
  own_window_type = 'desktop',
  own_window_transparent = false,
  -- set transparency:
  own_window_argb_visual = true,
  own_window_argb_value = 0,
  show_graph_range = false,
  show_graph_scale = false,
  stippled_borders = 0,
  update_interval = 1.0,
  uppercase = false,
  use_spacer = 'none',
  use_xft = true,
};

conky.text = [[
${color6}${font Anton, Regular:pixelsize=120}${time %H}${font}
${color4}${voffset -32}${font Anton, Regular:pixelsize=120}${time %M}${font}
${color6}${hr}$font
${color4}${font Anton, Regular:pixelsize=27}${time %A}${font} 
${color6}${font Anton, Regular:pixelsize=27}${time %B}${font}
${color6}${hr}$font
${color4}${voffset 4}${font Teko, Light:pixelsize=16}CPU Freq: ${color6}$freq_g GHz
${color4}${font Teko, Light:pixelsize=17}CPU Temp: ${color6}${acpitemp}°C
${color4}${font Teko, Light:pixelsize=17}GPU Speed: ${color6}${nvidia gpufreq} Mhz
${color4}${font Teko, Light:pixelsize=17}MEM Speed: ${color6}${nvidia memfreq} Mhz
${color4}${font Teko, Light:pixelsize=17}GPU Temp: ${color6}${nvidia temp} °C
${color4}${font Teko, Light:pixelsize=17}FS-Max:${goto 50}${color6}${fs_size /}
${color4}${font Teko, Light:pixelsize=17}FS-Free:${goto 50}${color6}${fs_free /}
]]

4 Likes

Made small change, added date and time to the conky. Also changed font color for my new setup.

Summary
##Feel free to edit and make your own. 

conky.config = { 

	background = true,
	use_xft = true,
	font = 'monospace:size=8',
	xftalpha = 0.8,
	update_interval = 0.5,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_class = 'conky',
	own_window_argb_visual = true,
--	own_window_colour = '#2e3436',
--      own_window_argb_value = 120,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	double_buffer = true,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = true,
	stippled_borders = 1,
	border_width = 1,
	default_color = '#2e3436',
	default_shade_color = 'gray',
	default_outline_color = 'black',
	alignment = 'top_right',
	gap_x = 15,
	gap_y = 145,

-- Misc Console #
   out_to_console = false,
   out_to_stderr = false,
   extra_newline = false,

   no_buffers = true,
   cpu_avg_samples = 2,
   net_avg_samples = 2,
   override_utf8_locale = true,
   use_spacer = 'right',
   maximum_width = 700,
   minimum_height = 800,
   uppercase = true,

};

conky.text = [[
#leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
${alignc}${offset 41}${font xftfont montserrat:size=10} Garuda Workstation ${font}
${alignr}${offset -6}└──────────┐
${alignr}${offset -6}date/time ─┤
${alignr}${offset -6}< ${time %B %d %Y}${font} > ─┤   │
${alignr}${offset -6}< ${time %I:%M %p}${font} > ─┘   │
${alignr}${offset -6}│
${alignr}${offset -6}${exec lsb_release -si} ${machine} ─┤
${alignr}${offset -6}< ${kernel} > Kernel ─┤   │
${alignr}${offset -6}< ${uptime} > Uptime ─┤   │
${alignr}${offset -6}< ${execi 600 pacman -Q | wc -l} > packages ─┤   │
${alignr}${offset -6}< ${execi 3600 checkupdates | wc -l} > updates ─┘   │
${alignr}${offset -6}│
${alignr}${offset -6}system ─┤
${alignr}${offset -6}< ${execi 1000 cat /proc/cpuinfo|grep 'model name'|sed -e 's/model name.*: //'| uniq | cut -c 1-24} > CPU ─┤   │
${alignr}${offset -6}│   │   │
${alignr}${offset -6}used ─┤   │   │
${alignr}${offset -6}< ${cpu cpu 1}% > cpu1 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 2}% > cpu2 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 3}% > cpu3 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 4}% > cpu4 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 5}% > cpu5 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 6}% > cpu6 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 7}% > cpu7 ─┤   │   │   │
${alignr}${offset -6}< ${cpu cpu 8}% > cpu8 ─┘   │   │   │
${alignr}${offset -6}│   │   │
${alignr}${offset -6}< $loadavg > load ─┤   │   │
${alignr}${offset -6}< ${top name 1} ${top cpu 1} > ─┤   │   │
${alignr}${offset -6}< ${top name 2} ${top cpu 2} > ─┤   │   │
${alignr}${offset -6}< ${top name 3} ${top cpu 3} > ─┤   │   │
${alignr}${offset -6}< ${top name 4} ${top cpu 4} > ─┤   │   │
${alignr}${offset -6}< ${top name 5} ${top cpu 5} > ─┤   │   │
${alignr}${offset -6}< ${top name 6} ${top cpu 6} > ─┤   │   │
${alignr}${offset -6}< ${top name 7} ${top cpu 7} > ─┤   │   │
${alignr}${offset -6}< ${top name 8} ${top cpu 8} > ─┤   │   │
${alignr}${offset -6}< ${top name 9} ${top cpu 9} > ─┤   │   │
${alignr}${offset -6}< ${top name 10} ${top cpu 10} > ─┘   │   │
${alignr}${offset -6}│   │
${alignr}${offset -6}Processes ─┤   │
${alignr}${offset -6}< $processes > ─ < $running_processes > ─┘   │   │
${alignr}${offset -6}│   │
${alignr}${offset -6}Temperatures ─┤   │
${alignr}${offset -6}< ${acpitemp}°C > cpu ─┤   │   │
${alignr}${offset -6}< ${execi 5 nvidia-settings -t -q [gpu]/GPUCoreTemp} °C > gpu ─┘   │   │
${alignr}${offset -6}│   │
${alignr}${offset -6}Memory ─┤   │
${alignr}${offset -6}< $memperc% > used ─┤   │   │
${alignr}${offset -6}< $mem/$memmax > ─┘    │   │   │
${alignr}${offset -6}< ${top name 1} ${top mem 1} > ─┤   │   │
${alignr}${offset -6}< ${top name 2} ${top mem 2} > ─┤   │   │
${alignr}${offset -6}< ${top name 3} ${top mem 3} > ─┤   │   │
${alignr}${offset -6}< ${top name 4} ${top mem 4} > ─┤   │   │
${alignr}${offset -6}< ${top name 5} ${top mem 5} > ─┤   │   │
${alignr}${offset -6}< ${top name 6} ${top mem 6} > ─┤   │   │
${alignr}${offset -6}< ${top name 7} ${top mem 7} > ─┤   │   │
${alignr}${offset -6}< ${top name 8} ${top mem 8} > ─┤   │   │
${alignr}${offset -6}< ${top name 9} ${top mem 9} > ─┤   │   │
${alignr}${offset -6}< ${top name 10} ${top mem 10} > ─┘   │   │
${alignr}${offset -6}│   │
${alignr}${offset -6}Disk Usage ─┘   │
${alignr}${offset -6}< $diskio_read >  read ─┤       │
${alignr}${offset -6}< $diskio_write > write ─┤       │
${alignr}${offset -6}< ${fs_used /}/${fs_size /} > /root ─┤       │
${alignr}${offset -6}< ${fs_bar 5,120 /} > ─┘     │       │
${alignr}${offset -6}< ${fs_used /home}/${fs_size /home} > /home ─┘       │
${alignr}${offset -6}< ${fs_bar 5,120 /home} > ─┘             │
${alignr}${offset -6}Network ─┘
${alignr}${offset -32}< $nodename > hostname ─┤
${alignr}${offset -32}< ${execi 60 wget -qO- ifconfig.co} > Wan ─┤
${alignr}${offset -32}< ${addr enp5s0} > Lan ─┤
${alignr}${offset -32}< ${downspeed enp5s0} k/s > ▼ download ─┤
${alignr}${offset -32}< ${downspeedgraph enp5s0 12,120 c44400 ba8d01} > ─┘    │
${alignr}${offset -32}< ${upspeed enp5s0} k/s >   ▲ upload ─┘
${alignr}${offset -62}< ${upspeedgraph enp5s0 12,120 c44400 ba8d01} > ─┘
]];

7 Likes

Nicee @aandmsantos0910

1 Like

@altman Thank you!

But they never change except for some small details.


But I have been thinking lately … sooner or later I think Wayland is going to get us.

8 Likes

Top again @Sector11

OK here’s an old one with a new twist. Weather is from wttr.in AND made for some young guy/gal with the eyes of a hawk. I use to be able to see this.


I will make it BIGGER - someday!

Code is conky v9. Sorry guys, It works for me.

# pkill -xf "conky -c /media/5/Conky/S11_Star_Clock_2.conky" &
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints skip_taskbar,skip_pager
own_window_colour 778899 #119 136 153	LightSlateGray
own_window_class Conky
own_window_title S11 Star-Weather Clock - LUA

# 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 yes

minimum_size 350 210	## width, height
maximum_width 350		## width

gap_x 10	### l|r
gap_y 10	### u|d

alignment tr
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold: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 yes
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

default_color DCDCDC # Gainsboro
# default_color C0C0C0 # Silver
color0 666666 #BunsenFlame Grey
#color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
color1 778899 #LightSlateGray
color2 FFA07A #LightSalmon
#color3 87CEFA #LightSkyBlue
color3 000000
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# 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

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# 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

##############################################  End Miscellaneous Section  ###

### The LUA Clock ###
lua_load /media/5/Conky/LUA/star_clock_2.lua ## yellow hands, red second hand
lua_draw_hook_pre main

update_interval 1

TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.30}\
${image /media/5/Conky/images/3dconky/star-clock-2.png -p 101,30}\
${execpi 300 curl wttr.in/BuenosAires?format="+%t\n+%f\n+%w\n+%h\n+%P\n+%D+%S+%z+%s+%d">/media/5/Conky/starclock.conky.txt}\
${alignc}${color3}${time %a, %d %b %y}${color}

${voffset -5}${goto 90}${platform f71882fg.2560 temp 1}° ${color3}CPU${goto 215}Board${color} ${platform f71882fg.2560 temp 2}°${voffset 5}
${voffset -5}${goto 80}${hddtemp /dev/sda}° ${color3}HDD ${goto 225}GPU${color}   ${nvidia temp}°${voffset 5}
${voffset -5}${goto 10}${color3}TotUp${color} ${totalup eth0} kb/s${goto 240}${color3}NetUp${color} ${upspeedf eth0} kb/s${voffset 5}
${voffset -5}${goto 10}${color3}TotDn${color} ${totaldown eth0} kb/s${goto 250}${color3}NetDn${color} ${downspeedf eth0} kb/s${voffset 5}
${goto 10}${color3}D-IO${color} ${diskio}${goto 270}${uptime}

${goto 25}${color3}/root${color}  ${fs_size /}${goto 235}${color3}/home${color}  ${fs_size /home}
${goto 25}${color3}Used${color}   ${fs_used_perc /}%${goto 235}${color3}Used${color}   ${fs_used_perc /home}%
${goto 25}${color3}Free${color}   ${fs_free /}${goto 235}${color3}Free${color}   ${fs_free /home}
${goto 20}${execpi 300  sed -n '1p' /media/5/Conky/starclock.conky.txt} ${color3}FL${color}${execpi 300  sed -n '2p' /media/5/Conky/starclock.conky.txt}\
${goto 220}${color3}Wind:${color}${execpi 300  sed -n '3p' /media/5/Conky/starclock.conky.txt}
${goto 30}${color3}Humidity:${color}${execpi 300  sed -n '4p' /media/5/Conky/starclock.conky.txt}${goto 215}${color3}BAR${color}${execpi 300  sed -n '5p' /media/5/Conky/starclock.conky.txt}${color}
${alignc}${alignc}${color3}% CPUA ${color}${if_match ${cpu cpu0}<10}00${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}0${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}\
${color3} CPU1 ${color}${if_match ${cpu cpu1}<10}00${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}0${cpu cpu1}\
${else}${color9}${cpu cpu1}${endif}${endif}\
${color3} CPU2 ${color}${if_match ${cpu cpu2}<10}00${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}0${cpu cpu2}\
${else}${color9}${cpu cpu2}${endif}${endif}\
${color3} CPU3 ${color}${if_match ${cpu cpu3}<10}00${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}0${cpu cpu3}\
${else}${color9}${cpu cpu3}${endif}${endif}\
${color3} CPU4 ${color}${if_match ${cpu cpu4}<10}00${cpu cpu4}\
${else}${if_match ${cpu cpu4}<100}0${cpu cpu4}\
${else}${color9}${cpu cpu3}${endif}${endif}${color}
${alignc}SUN
${goto 30}Dawn${goto 95}Sunrise${goto 160}Zenith${goto 220}Sunset${goto 285}Dusk
${alignc}${execpi 300  sed -n '6p' /media/5/Conky/starclock.conky.txt}

3d-clock-star

/media/5/Conky/LUA/star_clock_2.lua

--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
Edited by Sector11 for personal use - 12 Mar 2012

## /media/5/Conky/LUA/12-24_clock_white.lua


lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]

require 'cairo'

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--##############################################################################
--   SETTINGS AREA
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image /media/5/Conky/images/red_1.png -p 0,0 -s 35x35}")


--12 OR 24
local clock_type=12

--CLOCK SETTINGS
local clock_radius=90
local clock_centerx=178
local clock_centery=99

-- SET MARKS
--how many marks around edge
local number_marks=0 --24
--set mark length
local m_length=2
--set mark line width
local m_width=0.5
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1  --opaque white

--SET BORDER OPTIONS
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  --full opaque white
--gap from clock border to hour marks
local b_to_m=5

--SECOND HAND SETUP
--set length of seconds hand
local sh_length=100
--set hand width
local sh_width=0.5
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1  --fully opaque 220 20 60 Crimson

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80
--set hand width
local mh_width=1.5
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=1,1,0,1  --fully opaque 0 191 255 DeepSkyBlue

--HOUR HAND SETUP
--set length of hour hand
local hh_length=60
--set hand width
local hh_width=1.5
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=1,1,0,1  --fully opaque 0 191 255 DeepSkyBlue
--##############################################################################
--   END SETTINGS AREA
--##############################################################################

--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)

--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap  (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop

--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end

minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))

--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)

--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)

--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)

--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
4 Likes

Thanks for the kick in the butt Dobbie

2 Likes

Nice - I like those styles. Reminds me of this broken one that I use to be able to see:

8 Likes

A work in progress i borrowed bits of it and added a few bits,any one Know how to get things like this to show in my conky as they are in the .conkyrc file  or what do i need to install to get things like this to show?

2 Likes

What do you mean? You need conky config to display something like that?

I don’t need them but I would like them to show, There are surposed to be little emoticons like things, a battery icon hdd icon etc but I am not sure how to show them

You may need to install some icon fonts.

Icon Fonts

Icons can be provided in the form of text characters. Popular icon fonts include:

1 Like

Thanks I will give it a try tomorrow morning, I’m of to bed now

10 Likes

Oh, nice @Dobbie03

1 Like