Conky Showoff thread 2023

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Conky Showoff thread 2023

Post by Bleys »

I'll start with my new creation. Completely LUA (exception: the calendar).

conky.jpg
Screen Capture_select-area_20230129140102.jpg
Last edited by LockBot on Mon Jan 22, 2024 11:00 pm, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
AndyMH
Level 21
Level 21
Posts: 13563
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Conky Showoff thread 2023

Post by AndyMH »

And mine, one for the system and one for the weather:
Image
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Simple Now Playing Conky complete LUA for Clementine. Place all scripts in ~/.conky/NowPlayingConky/, so this conky can run independently next to the main conky.

conkyrc:

Code: Select all

conky.config = {
-- — Conky settings

	background = false,
	update_interval = 1,
	total_run_times = 0,
	net_avg_samples = 2,
	cpu_avg_samples = 1,
	no_buffers = true,
	imlib_cache_size = 0,
	
	draw_graph_borders = true,
	draw_outline = false,

-- — Window specifications with Background

	own_window = true,
	own_window_type = desktop,
    own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	own_window_colour = '000000', 
	
	double_buffer = true,
	minimum_width = 155, minimum_height = 205,


-- — Lage auf dem Desktop festlegen
	alignment = 'bottom_right',
	gap_x = 25,
	gap_y = 25,
	
	border_inner_margin = 10,

-- Lua Load
	lua_load = '~/.conky/NowPlayingConky/now.lua',
	lua_draw_hook_post = 'main',


};
conky.text = [[
 
]];
now.lua:

Code: Select all

require 'cairo'
require "imlib2"
home_path = os.getenv ('HOME')
image_path = '/tmp/'
pt={}
pt['bg_color']=0xffffff
pt['bg_alpha']=0.3
pt['fg_color']=0xffffff
pt['fg_alpha']=1.0
pt['width']=160
pt['height']=6
function rgb_to_rgba(color,alpha)
	return ((color / 0x10000) % 0x100) / 255., ((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end
function mysplit (inputstr, sep)
        if sep == nil then
                sep = ","
        end
        local t={}
        for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
                table.insert(t, str)
        end
        return t
end
function draw_bg(cr)
    local corner_r=20
    local bg_color=0xffffff   --weiß
--    local bg_color=0x000000   --schwarz
--    local bg_color=0x0000ff   --blau
--    local bg_color=0xffff00   --gelb
--    local bg_color=0xff0000   --rot
--    local bg_color=0x00ff00   --grün

    local bg_alpha=0.1
	local w=conky_window.width
	local h=conky_window.height
	
	cairo_move_to(cr,corner_r,0)
	cairo_line_to(cr,w-corner_r,0)
	cairo_curve_to(cr,w,0,w,0,w,corner_r)
	cairo_line_to(cr,w,h-corner_r)
	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
	cairo_line_to(cr,corner_r,h)
	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
	cairo_line_to(cr,0,corner_r)
	cairo_curve_to(cr,0,0,0,0,corner_r,0)
	cairo_close_path(cr)
	
	cairo_set_source_rgba(cr,rgb_to_rgba(bg_color,bg_alpha))
	cairo_fill(cr)
end
function fDrawImage(cr,path,x,y,w,h)
    cairo_save (cr)
    local img =  cairo_image_surface_create_from_png(path)
    local w_img, h_img = cairo_image_surface_get_width(img), cairo_image_surface_get_height(img)
    cairo_translate (cr, x, y)
    cairo_scale (cr, w/w_img, h/h_img)
    cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
    cairo_paint (cr)
    cairo_surface_destroy (img)
    collectgarbage ()
    cairo_restore (cr)
end
function draw_bar(cr,pct,pt)
    local bgc, bga, fgc, fga=pt['bg_color'], pt['bg_alpha'], pt['fg_color'], pt['fg_alpha']
    local w=pct*pt['width']
    local x=10
    local y=50
--  Background
    cairo_rectangle(cr, x, y, pt['width'], pt['height'])
    cairo_set_source_rgba(cr,rgb_to_rgba(bgc,bga))
    cairo_fill(cr)
--  Indicator
    cairo_rectangle(cr, x, y, w, pt['height'])
    cairo_set_source_rgba(cr,rgb_to_rgba(fgc,fga))
    cairo_fill(cr)
    cairo_stroke (cr)
end
function write_text(cr, x, y, text, f)
--write_text(cr, x, y, text, {})
--font attributes (Schriftattribute zuweisen oder default Werte annehmen)
      local font=f.font or "Noto Sans"
      local size=f.size or 10
      local align=f.align or 'l'
      local bold=f.bold or false
      local ital=f.italic or false
      local color=f.color or "0xffffff"
      local slant=CAIRO_FONT_SLANT_NORMAL
      if ital then slant=CAIRO_FONT_SLANT_ITALIC end
      local weight=CAIRO_FONT_WEIGHT_NORMAL
      if bold then weight=CAIRO_FONT_WEIGHT_BOLD end

--Text Size (Textgröße für die Plazierung bestimmen.)
      local x_a=0
      local y_a=0
      local te = cairo_text_extents_t:create()
      tolua.takeownership(te)
      cairo_select_font_face (cr, font, slant, weight)
      cairo_set_font_size (cr, size)
      cairo_text_extents (cr, text, te)

--Text Position
      if align=='c' then
        x_a = -(te.width/2+te.x_bearing)
        y_a = -(te.height/2+te.y_bearing)
      end
      if align=='r' then
        x_a = -(te.width+te.x_bearing)
        --y_a = -(te.height+te.y_bearing)
      end

--Schadow 1 Pixel (Schatten für den Text um 1 Pixel versetzt)
      cairo_set_source_rgba(cr, rgb_to_rgba(0x000000,1))

      cairo_move_to (cr, x+1+x_a, y+1+y_a)
      cairo_show_text (cr, text)
      cairo_stroke(cr)

-- Now Text on Top (nun den Text oben drauf)
      cairo_set_source_rgba(cr, rgb_to_rgba(color,1))
      cairo_move_to (cr, x+x_a, y+y_a)
      cairo_show_text (cr, text)
      cairo_stroke(cr)
end
function conky_main()
    function running(cr) --läuft Clementine?
        local handle = io.popen("ps -U root -u root -N | awk '/clementine/{print $4}'")
        local result = handle:read()
        handle:close()
        if result == "clementine" then
            draw_bg(cr)

            daten = mysplit (conky_parse('${exec sh '..home_path..'/.conky/NowPlayingConky/clem.sh}')) -- echo $laenge","$position","$artist","$titel
            if not (daten[1]==nil) then
                write_text(cr, 10,20,daten[3], {font="Dyuthi", size=16, align="l"})
                write_text(cr, 10,34,daten[4], {font="Dyuthi", size=16, align="l"})	
		        value=tonumber(daten[2])
                total=tonumber(daten[1])
		        pct=value/total          
                draw_bar(cr,pct,pt)
	            fDrawImage(cr,'/tmp/tmp.png',90,140,160,160)
            end
        end
    end
	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)	
	local cr=cairo_create(cs)		
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)
	if update_num>5 then
        running(cr)
	end

   cairo_surface_destroy(cs)
   cairo_destroy(cr)
end
mpris Script Clementie. clem.sh

Code: Select all

#!/bin/sh
#
# Bleys 2023
#
if [ $(ps -C clementine -o pid=) ]; then
	
	POS=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Position)
	TOTAL=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "^mpris:length" | awk '{print $2}')

		if [ -z $TOTAL ]
		then
			laenge=1	
			position=1		
		else
			laenge=$(($TOTAL/1000000))
			position=$(($POS/1000000))
		fi

	TEMP=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "artist:")
	artist=${TEMP##*:}
	TEMP=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "title:")
	titel=${TEMP##*:}
	COVER=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "artUrl:")
	if [ -n "$COVER" ]
	then
        convert ${COVER#*//} '/tmp/tmp.png'
	fi
    echo $laenge","$position","$artist","$titel
fi
exit 0
For other mpris capable players in the sh script clem.sh replace all occurrences of clementine with the desired player.
nowplaying_conky.jpg
nowplaying_conky.jpg (11.5 KiB) Viewed 8748 times
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

some more information
Screen Capture_select-area_20230204013432.jpg
Screen Capture_select-area_20230204013432.jpg (13.94 KiB) Viewed 8711 times
Save the scripts in the directory ~/.conky/NowPlayingConky/ (create the directory)

conkyrc:

Code: Select all

conky.config = {
-- — Conky settings

	background = true,
	update_interval = 1,
	total_run_times = 0,
	net_avg_samples = 2,
	cpu_avg_samples = 1,
	no_buffers = true,
	imlib_cache_size = 0,
	
	draw_graph_borders = true,
	draw_outline = false,

-- — Window specifications with Background

	own_window = true,
	own_window_type = desktop,
    own_window_transparent = false,
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	own_window_colour = '000000', 
	
	double_buffer = true,
--	minimum_width = 155, minimum_height = 205, --kompakt
	minimum_width = 400, minimum_height = 144, --lang


-- — Position on Desktop / Lage auf dem Desktop festlegen
	alignment = 'top_right',
	gap_x = 20,
	gap_y = 15,
	
	border_inner_margin = 10,

-- Lua Load
	lua_load = '~/.conky/NowPlayingConky/now.lua',
	lua_draw_hook_post = 'main',


};
conky.text = [[
 
]];
now.lua:

Code: Select all

require 'cairo'
require "imlib2"
home_path = os.getenv ('HOME')
image_path = '/tmp/'
pt={}
pt['bg_color']=0xffffff
pt['bg_alpha']=0.3
pt['fg_color']=0xffffff
pt['fg_alpha']=1.0
pt['width']=320
pt['height']=6
function rgb_to_rgba(color,alpha)
	return ((color / 0x10000) % 0x100) / 255., ((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end
function mysplit (inputstr, sep)
        if sep == nil then
                sep = ";"
        end
        local t={}
        for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
                table.insert(t, str)
        end
        return t
end
function draw_bg(cr) -- draw Background / zeichne Hintergrund
    local corner_r=20
    local bg_color=0xffffff   --weiß / white
--    local bg_color=0x000000   --schwarz / black
--    local bg_color=0x0000ff   --blau / blue
--    local bg_color=0xffff00   --gelb / yellow
--    local bg_color=0xff0000   --rot / red
--    local bg_color=0x00ff00   --grün / green

    local bg_alpha=0.1
	local w=conky_window.width
	local h=conky_window.height
	
	cairo_move_to(cr,corner_r,0)
	cairo_line_to(cr,w-corner_r,0)
	cairo_curve_to(cr,w,0,w,0,w,corner_r)
	cairo_line_to(cr,w,h-corner_r)
	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
	cairo_line_to(cr,corner_r,h)
	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
	cairo_line_to(cr,0,corner_r)
	cairo_curve_to(cr,0,0,0,0,corner_r,0)
	cairo_close_path(cr)
	
	cairo_set_source_rgba(cr,rgb_to_rgba(bg_color,bg_alpha))
	cairo_fill(cr)
end
function fDrawImage(cr,path,x,y,w,h)
    cairo_save (cr)
    local img =  cairo_image_surface_create_from_png(path)
    local w_img, h_img = cairo_image_surface_get_width(img), cairo_image_surface_get_height(img)
    cairo_translate (cr, x, y)
    cairo_scale (cr, w/w_img, h/h_img)
    cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
    cairo_paint (cr)
    cairo_surface_destroy (img)
    collectgarbage ()
    cairo_restore (cr)
end
function draw_bar(cr,pct,pt)
    local bgc, bga, fgc, fga=pt['bg_color'], pt['bg_alpha'], pt['fg_color'], pt['fg_alpha']
    local w=pct*pt['width']
    local x=50
    local y=150
--  Background
    cairo_rectangle(cr, x, y, pt['width'], pt['height'])
    cairo_set_source_rgba(cr,rgb_to_rgba(bgc,bga))
    cairo_fill(cr)
--  Indicator
    cairo_rectangle(cr, x, y, w, pt['height'])
    cairo_set_source_rgba(cr,rgb_to_rgba(fgc,fga))
    cairo_fill(cr)
    cairo_stroke (cr)
end
function write_text(cr, x, y, text, f)
--write_text(cr, x, y, text, {})
--font attributes (Schriftattribute zuweisen oder default Werte annehmen)
      local font=f.font or "Noto Sans"
      local size=f.size or 10
      local align=f.align or 'l'
      local bold=f.bold or false
      local ital=f.italic or false
      local color=f.color or "0xffffff"
      local slant=CAIRO_FONT_SLANT_NORMAL
      if ital then slant=CAIRO_FONT_SLANT_ITALIC end
      local weight=CAIRO_FONT_WEIGHT_NORMAL
      if bold then weight=CAIRO_FONT_WEIGHT_BOLD end

--Text Size (Textgröße für die Plazierung bestimmen.)
      local x_a=0
      local y_a=0
      local te = cairo_text_extents_t:create()
      tolua.takeownership(te)
      cairo_select_font_face (cr, font, slant, weight)
      cairo_set_font_size (cr, size)
      cairo_text_extents (cr, text, te)

--Text Position
      if align=='c' then
        x_a = -(te.width/2+te.x_bearing)
        y_a = -(te.height/2+te.y_bearing)
      end
      if align=='r' then
        x_a = -(te.width+te.x_bearing)
        --y_a = -(te.height+te.y_bearing)
      end

--Schadow 1 Pixel (Schatten für den Text um 1 Pixel versetzt)
      cairo_set_source_rgba(cr, rgb_to_rgba(0x000000,1))

      cairo_move_to (cr, x+1+x_a, y+1+y_a)
      cairo_show_text (cr, text)
      cairo_stroke(cr)

-- Now Text on Top (nun den Text oben drauf)
      cairo_set_source_rgba(cr, rgb_to_rgba(color,1))
      cairo_move_to (cr, x+x_a, y+y_a)
      cairo_show_text (cr, text)
      cairo_stroke(cr)
end
function conky_main()
    function running(cr) -- is Clementine running? / läuft Clementine?
        local handle = io.popen("ps -U root -u root -N | awk '/clementine/{print $4}'")
        local result = handle:read()
        handle:close()
        if result == "clementine" then
            draw_bg(cr)

            daten = mysplit (conky_parse('${exec sh '..home_path..'/.conky/NowPlayingConky/clem.sh}')) -- $laenge";"$position";"$artist";"$titel";"$positionZeit";"$laengeZeit
            if not (daten[1]==nil) then
                write_text(cr, 130,100,daten[3], {font="Dyuthi", size=26, align="l"})
                write_text(cr, 134,126,daten[4], {font="Dyuthi", size=16, align="l"})	
                write_text(cr, 10,156,daten[5], {font="Dyuthi", size=12, align="l"})
                write_text(cr, 410,156,daten[6], {font="Dyuthi", size=12, align="r"})
		        value=tonumber(daten[2])
                total=tonumber(daten[1])
		        pct=value/total          
                draw_bar(cr,pct,pt)
	            fDrawImage(cr,'/tmp/tmp.png',70,70,120,120)
            end
        end
    end
	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)	
	local cr=cairo_create(cs)		
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)
	if update_num>5 then
        running(cr)
	end

   cairo_surface_destroy(cs)
   cairo_destroy(cr)
end
clem.sh: (Edit: 04.02.23, 17:20Uhr)

Code: Select all

#!/bin/sh
#
# Bleys 2023
#
# For other mpris capable players, change all occurrences of "clementine" accordingly.
#
if [ $(ps -C clementine -o pid=) ]; then
convertsec() 
	{
	    x=`expr $1 / 1000000`
	    s=`expr $x % 60`
	    x=`expr $x / 60`
	    m=`expr $x % 60`
	    printf "%02d:%02d\n" $m $s
	}
	
	POS=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Position)
	TOTAL=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "^mpris:length" | awk '{print $2}')

		if [ -z $TOTAL ]
		then
            positionTime="00:00"
            lengthTime="00:00"
			length=1	
			position=1		
		else
            positionTime=$(convertsec $POS)
            lengthTime=$(convertsec $TOTAL)
			length=$(($TOTAL/1000000))
			position=$(($POS/1000000))
		fi

	TEMP=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "artist:")
	artist=${TEMP##*:}
	TEMP=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "title:")
	title=${TEMP##*:}
	COVER=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep "artUrl:")
	if [ -n "$COVER" -a $position -le 2 ]; then
        	convert ${COVER#*//} '/tmp/tmp.png'
	fi
    echo $length";"$position";"$artist";"$title";"$positionTime";"$lengthTime

fi

exit 0
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Sunrise and sunset added, volume added. Calendar created in LUA.
conky_lua.jpg
Small improvements to the calendar:
Conky Lua2.jpg
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

LUA Calendar. Can be placed at any position within an existing conky by specifying x,y coordinates inside function calendar.

LUA Script: https://gist.github.com/rdschmidt/6fe5a ... 50cf3d0c04

To add into an existing LUA script, add the following functions from the script:
  • function draw_day(cr,xx,yy)
  • function write_text(cr, x, y, text, f)
  • function calendar(cr)
  • function rgb_to_rgba(color,alpha)
additionally: require "math"
lua_Kalender.jpg
lua_Kalender.jpg (7.9 KiB) Viewed 8376 times
Screen Capture_select-area_20230226015235.jpg
Screen Capture_select-area_20230226015235.jpg (31.39 KiB) Viewed 8240 times
Last edited by Bleys on Sat Feb 25, 2023 8:57 pm, edited 1 time in total.
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Conky Showoff thread 2023

Post by all41 »

AndyMH wrote: Sun Jan 29, 2023 5:50 am And mine, one for the system and one for the weather:
Image
Hi AndyMH,
Would you share your .rc for the system one please
Everything in life was difficult before it became easy.
User avatar
AndyMH
Level 21
Level 21
Posts: 13563
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Conky Showoff thread 2023

Post by AndyMH »

There you go, I had posted it before, but it was easier to repeat than try and find the post. It is slightly different from the image, new PC, desktop not laptop so no battery and a different number of CPU cores:

Code: Select all

-- conky configuration new format for Version >= 1.10
-------------------------------------------------
-- Settings
-------------------------------------------------
conky.config = {
    background = false,
    use_xft = true;
    font = 'Sans:size=8',
    xftalpha = 1,
    update_interval = 2.0,
    total_run_times = 0,
    own_window = true,
    own_window_class = 'Conky',
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    double_buffer = true,
    minimum_height = 200,
    maximum_width = 240,
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
    stippled_borders = 0,
    default_color = 'white',
    default_shade_color = 'grey',
    default_outline_color = 'white',
    alignment = 'top_right',
    gap_x = 28,
    gap_y = 34,
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    override_utf8_locale = false,
    color0 = 'white',  
    color1 = 'FCFF69', 
    color2 = 'CCE6FF', 
    color3 = 'DAFFB3',  
    color4 = 'CCFFCC', 
    color5 = 'FFFF66', 
    short_units = true,
}
-- end of conky config settings
-- bit of a pain, in the config section -- denotes a comment
-- in conky text, # still denotes a comment
-----------
-- Output
-----------
conky.text = [[
#-----
# Date
#-----
${color2}${alignc 19}${font Trebuchet MS:size=15}${time %I:%M%p}${font}
${color2}${voffset 6}${alignc}${time %A, %d %B %Y}

${color0}${font Andale Mono:size=9}${execpi 43200 VinDSL_Cal_8=`date +%-d`; ncal -bh | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color red}&${color0}/' -e 's/^/${offset 40}/'}

#--------------
# Andy's laptop
#--------------
${color4}${font Sans:bold:size=8}SYSTEM ${hr 2}
${font}
${color0}System:$alignr$sysname $machine
Kernel:$alignr$kernel
Host:$alignr$nodename
Uptime:$alignr$uptime_short

#-------------------------------
# CPU frequency, cores and usage
#-------------------------------
${execi 43200 inxi -C -c 0 | grep -o 'Intel.*'  | cut -f3- -d\ }
Freq: ${alignr}${freq_g 1}/${freq_g 2}/${freq_g 3}/${freq_g 4}/${freq_g 5}/${freq_g 6} GHz
${color0}C1: ${color FFFF99}${cpu cpu1}%${goto 60}${color2}${cpubar 8,55 cpu1} ${color0} C2: ${color FFFF99}${cpu cpu2}%${goto 180}${color2}${cpubar 8,55 cpu2}
${color0}C3: ${color FFFF99}${cpu cpu3}%${goto 60}${color2}${cpubar 8,55 cpu3} ${color0} C4: ${color FFFF99}${cpu cpu4}%${goto 180}${color2}${cpubar 8,55 cpu4}
${color0}C5: ${color FFFF99}${cpu cpu5}%${goto 60}${color2}${cpubar 8,55 cpu5} ${color0} C6: ${color FFFF99}${cpu cpu6}%${goto 180}${color2}${cpubar 8,55 cpu6}

#-------
# Memory
#-------
${color0}RAM: $memmax / $memperc% ${color2}${membar}
${color0}Swap: $swapmax ${color2} ${swapbar 6}

#--------
# Battery
#--------
#${color0}Battery: ${battery_short} ${color2}${battery_bar 6,80} ${battery_time}

#----------------------
# SSD storage and usage
#----------------------
${color4}${font Sans:bold:size=8}STORAGE ${hr 2} ${font}
${color0}${voffset 4}Root: ${fs_size /} ${fs_bar /}
${color0}${voffset 4}Home: ${fs_size /home/andy} ${fs_bar /home/andy}
 
#--------
# Network for m720 is eno1 not enp0s25, wireless is still wrong
#--------
${color4}${font Sans:bold:size=8}NETWORK ${hr 2}
${font}
${color0}${execi 30 rm -f /home/andy/.conky/conky_eno1;ifconfig -a eno1 | grep 'inet ' > /dev/null && touch /home/andy/.conky/conky_eno1}\
${if_existing /home/andy/.conky/conky_eno1}Local IP (wired): $alignr ${addr eno1}\
${else}\
${color0}Local IP (wireless): $alignr ${addr wlp3s0}\
${endif}
Public IP: $alignr ${execi 43200 curl ifconfig.me/ip}
Access point: $alignr${wireless_essid wlp3s0}
Signal: ${wireless_link_qual_perc wlp3s0}% ${wireless_link_bar wlp3s0}
${if_existing /home/andy/.conky/conky_eno1}\
Up: ${goto 40}${upspeed eno1}/${totalup eno1}${goto 120}${upspeedgraph eno1 10,115 -t}
Down: ${goto 40}${downspeed eno1}/${totaldown eno1}${goto 120}${downspeedgraph eno1 10,115 -t}\
${else}\
Up: ${goto 40}${upspeed wlp3s0}/${totalup wlp3s0}${goto 120}${upspeedgraph wlp3s0 10,115 -t}
Down: ${goto 40}${downspeed wlp3s0}/${totaldown wlp3s0}${goto 120}${downspeedgraph wlp3s0 10,115 -t}\
${endif}

#------------------
# Running processes
#------------------
${color4}${font Sans:bold:size=8}PROCESSES ${font Sans:regular:size=8}$processes/$running_processes ${font Sans:bold:size=8}${hr 2}
${font Sans:size=7}
${color0}NAME             ${goto 110}PID${goto 138}CPU%${goto 175}MEM%${color FFFF99}
${top name 1}    ${goto 105}${top pid 1}${goto 138}${top cpu 1}${goto 175}${top mem 1}
${top name 2}    ${goto 105}${top pid 2}${goto 138}${top cpu 2}${goto 175}${top mem 2}
${top name 3}    ${goto 105}${top pid 3}${goto 138}${top cpu 3}${goto 175}${top mem 3}
${top name 4}    ${goto 105}${top pid 4}${goto 138}${top cpu 4}${goto 175}${top mem 4}
${top name 5}    ${goto 105}${top pid 5}${goto 138}${top cpu 5}${goto 175}${top mem 5}
${top name 6}    ${goto 105}${top pid 6}${goto 138}${top cpu 6}${goto 175}${top mem 6}
${font}
]];
Like most conkys I found someone else's I liked and modified it, so don't ask me to explain some bits of it, e.g. the calendar. :D
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
all41
Level 19
Level 19
Posts: 9498
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Conky Showoff thread 2023

Post by all41 »

Thanks
Like most conkys I found someone else's I liked and modified it, so don't ask me to explain some bits of it, e.g. the calendar. :D
Me too. For calendar I use rainlendar2. I launch 3 conky .rc and the calendar with the start script.
Current:
sc,.jpg
My .rc is several years old and written in the old style code, so I will do some comparisons
Everything in life was difficult before it became easy.
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Play with lua

Image

Image
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Koentje
Level 7
Level 7
Posts: 1547
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Conky Showoff thread 2023

Post by Koentje »

I like the one on the 5th row, 10th from the left. Dark grey with orange numbers.. do you have these images?
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Koentje wrote: Mon Feb 27, 2023 4:16 pm I like the one on the 5th row, 10th from the left. Dark grey with orange numbers.. do you have these images?
i have:

Hmm.. it is impossible to attach Files. Any Picture, Zip or whatever "ist invalid"

Edit: Have sent a download link via private message
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
SMG
Level 25
Level 25
Posts: 31304
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Conky Showoff thread 2023

Post by SMG »

Bleys wrote: Mon Feb 27, 2023 5:16 pmHmm.. it is impossible to attach Files.
It is likely a setting either changed or was missed in the forum upgrade. I verified it is not possible to attach files and passed to the info to those who would be in a position to correct this issue.

Edited to add: Attachments are now working.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
zcot
Level 9
Level 9
Posts: 2795
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky Showoff thread 2023

Post by zcot »

Bleys wrote: Mon Feb 27, 2023 2:49 am Play with lua
Image
No swatches, I'm crushed. :(

excellent work otherwise! :P
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

A few more ;)
Image
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Koentje wrote: Mon Feb 27, 2023 4:16 pm I like the one on the 5th row, 10th from the left. Dark grey with orange numbers.. do you have these images?
2. Try
Attachments

[The extension rar has been deactivated and can no longer be displayed.]

Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Koentje
Level 7
Level 7
Posts: 1547
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Conky Showoff thread 2023

Post by Koentje »

Thanks!
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Before this thread dies:
Screen Capture_select-area_20230613222450.jpg
Screen Capture_select-area_20230615221021.jpg
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

Worldtime, arbitrarily customizable
Screen Capture_select-area_20230629161617.jpg
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Conky Showoff thread 2023

Post by Bleys »

small adjustments
Screen Capture_select-area_20230706220904.jpg
Screen Capture_select-area_20230707150254.jpg
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
Locked

Return to “Compiz, Conky, Docks & Widgets”