Conky thread, show your work!

how-to
conky

#218

Question regarding that post of mine: Did someone saved the scripts, as are no longer available via the links i provided, and the HDD i had all those works and many other linux stuff was gone due to a power failure some months ago and was impossible to revive it … Please let me know, as someone asked me on PM about it.
Cheers!


#219

Hi @bogdancovaciu I think I have at least a part of it.
I’m not sure if I have the manjaro_ConkLua file but there is one called new paste in this folder so I will add it too.

manjaro_slick_Gotham_clock
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0

double_buffer yes
minimum_size 950 150
maximum_width 950
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment bottom_left
gap_x 50
gap_y 170
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes

TEXT
${voffset 5}${color 697986}${font Simple Tech Bold 02:pixelsize=120}${time %H:%M}${font}${voffset -100}${offset 10}${color 27ae60}${font neuropol:pixelsize=42}${time %d} ${voffset -15}${color 697986}${font neuropol:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 15}${font neuropol:pixelsize=58}${offset -245}${time %A}${font}

${voffset 15}${offset 12}${font Ubuntu:pixelsize=12}${color 27ae60}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color 27ae60}RAM ${offset 9}$color$mem / $memmax${offset 30}${color 27ae60}CPU ${offset 9}$color${cpu cpu0}% / ${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C${offset 30}${color 27ae60}GPU ${offset 9}$color${exec nvidia-settings -t -q [gpu:0]/GPUCoreTemp}°C / ${nvidia gpufreq} / ${nvidia memfreq}MHz${offset 30}${color 27ae60}Updates ${offset 9}$color${exec pacman -Qu | wc -l}
manjaro_slickrings.lua
--[[
Ring Meters by londonali1010 (2009) modified (2017) BC

This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
	lua_load ~/scripts/rings-v1.2.1.lua
	lua_draw_hook_pre ring_stats
	
Changelog:
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)

        arg=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"),
        fg_colour=0xf0651f,
        fg_colour=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"),
        conky_parse("${cpu}")
        name=conky_parse("${acpitemp}"),
]]

-- A TESTER
--set alarm value, this is the value at which bar color will change
--alarm_value=80
----set alarm bar color, 1,0,0,1 = red fully opaque
--ar,ag,ab,aa=1,0,0,1

-- couleurs 1
-- 2574e9
-- f0651f
-- f01f42
-- couleurs 2 + flashy
-- 008cff
-- ff7200
-- ff000d

--normal_temp="0x2574e9"
--warn_temp="0xf0651f"
--crit_temp="0xf01f42"
-- Un mélange des deux
normal="0x2574e9"
warn="0xff7200"
crit="0xff000d"

-- seulement quand fond nécessaire
corner_r=35
bg_colour=0x333333
bg_alpha=0.2


settings_table = {
    
    {
        name='exec',
        arg='sensors | grep "Core 0:" | cut -d+ -f2 | cut -c1-2',
        max=110,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=200, y=120,
        radius=97,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=200, y=120,
        radius=86,
        thickness=13,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.7,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=200, y=120,
        radius=71,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=200, y=120,
        radius=57,
        thickness=11,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.5,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=200, y=120,
        radius=44,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=350, y=234,
        radius=75,
        thickness=15,
        start_angle=180,
        end_angle=420
    },
    {
        name='memperc',
        arg='',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=350, y=234,
        radius=60,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
        {
        name='OS',
        arg='execi 3600 pacman -Qu | wc -l',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x27ae60,
        fg_alpha=0.8,
        x=370, y=75,
        radius=65,
        thickness=10,
        start_angle=120,
        end_angle=0
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=220, y=280,
        radius=40,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/run/media/bogdan/WORK',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=220, y=280,
        radius=28,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/run/media/bogdan/STORAGE',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=220, y=280,
        radius=16,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='downspeedf',
        arg='',
        max=2000,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=290, y=346,
        radius=30,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='',
        max=200,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=290, y=346,
        radius=18,
        thickness=8,
        start_angle=180,
        end_angle=420
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=230, y=410,
        radius=30,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%M',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=230, y=410,
        radius=18,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%H',
        max=24,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=230, y=410,
        radius=10,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
    {
        name='nvidia',
        arg='gpufreq',
        max=1019,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=274, y=464,
        radius=25,
        thickness=7,
        start_angle=180,
        end_angle=420
    },
    {
        name='nvidia',
        arg='temp',
        max=95,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0x2574e9,
        fg_alpha=0.8,
        x=274, y=464,
        radius=13,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
}
{
        name='exec pacman -Qu | wc -l',
        arg='',
        max=3,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0x27ae60,
        fg_alpha=0.8,
        x=370, y=75,
        radius=65,
        thickness=10,
        start_angle=120,
        end_angle=360
    },
}
require 'cairo'

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)

	local w,h=conky_window.width,conky_window.height
	
	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)

	-- Draw background ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)
	
	-- Draw indicator ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)		
end

function conky_ring_stats()
	local function setup_rings(cr,pt)
		local str=''
		local value=0
		
		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)
		
		value=tonumber(str)
		if value == nil then value = 0 end
		pct=value/pt['max']
		
		draw_ring(cr,pct,pt)
	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
	    for i in pairs(settings_table) do
                display_temp=temp_watch()
		setup_rings(cr,settings_table[i])
	    end
	end
   cairo_surface_destroy(cs)
  cairo_destroy(cr)
end

-- Contrôle de l'espace disque
function disk_watch()

    warn_disk=93
    crit_disk=98

    -- poser une boucle plus tard... pas simple

    disk=tonumber(conky_parse("${fs_used_perc /}"))

    if disk<warn_disk then
        settings_table[8]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[8]['fg_colour']=warn
    else
        settings_table[8]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /home}"))

    if disk<warn_disk then
        settings_table[9]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[9]['fg_colour']=warn
    else
        settings_table[9]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /usr}"))

    if disk<warn_disk then
        settings_table[10]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[10]['fg_colour']=warn
    else
        settings_table[10]['fg_colour']=crit
    end
end

-- Contrôle de la température
function temp_watch()

    warn_value=70
    crit_value=80

    temperature=tonumber(conky_parse("${acpitemp}"))

    if temperature<warn_value then
        settings_table[1]['fg_colour']=normal
    elseif temperature<crit_value then
        settings_table[1]['fg_colour']=warn
    else
        settings_table[1]['fg_colour']=crit
    end
end

-- Contrôle de l'interface active
function iface_watch()

    iface=conky_parse("${if_existing /proc/net/route enp4s0}enp4s0${else}wlan0${endif}")

    settings_table[11]['arg']=iface
    settings_table[12]['arg']=iface
end
function pacman_watch()

    warn_value=2
    crit_value=3

    pacman=tonumber(conky_parse("${exec pacman -Qu | wc -l}"))

    if pacman<warn_value then
        settings_table[19]['fg_colour']=normal
    elseif pacman<crit_value then
        settings_table[19]['fg_colour']=warn
    else
        settings_table[19]['fg_colour']=crit
    end
end
function conky_draw_bg()
    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)
    
    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_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)
end


function conky_main()
    temp_watch()
    disk_watch()
    iface_watch()
    conky_ring_stats()
-- quand fond nécessaire
--    conky_draw_bg()
end
New Paste ( not sure what this was)
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit celsius

# XFCE lightdm backround issue
own_window_argb_visual yes
own_window_argb_value 0

# Window specifications #
own_window_class Conky
own_window yes
own_window_type regular
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 520 600
maximum_width 520

alignment bottom_middle
gap_x 0
gap_y 210

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

#default_color gray
default_shade_color red
default_outline_color green

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Play-Regular:size=7
xftalpha 0.9
uppercase no

default_color 333333
color0 27ae60
color1 efefef

lua_load ~/.conky/manjaro_slickrings.lua
lua_draw_hook_pre conky_main

own_window_colour 000000
TEXT
${font Play-Regular:size=7}${voffset 16}${color1}${goto 100}${execi 30 sensors | grep 'Core 0:' | cut -c16-17} °C ${execi 31 sensors | grep 'Core 1:' | cut -c16-17} °C ${execi 32 sensors | grep 'Core 2:' | cut -c16-17} °C ${alignr 330}${execi 33 sensors | grep 'Core 3:' | cut -c16-17} °C
${font Play-Regular:size=7}${voffset 0}${goto 100}${color1}CPU 1${goto 130}${freq_g 1} GHz${alignr 330}${color1}${cpu cpu0}%
${font Play-Regular:size=7}${voffset 2}${goto 100}${color1}CPU 2${goto 130}${freq_g 2} GHz${alignr 330}${color1}${cpu cpu1}%
${font Play-Regular:size=7}${voffset 2}${goto 100}${color1}CPU 3${goto 130}${freq_g 3} GHz${alignr 330}${color1}${cpu cpu2}%
${font Play-Regular:size=7}${voffset 2}${goto 100}${color1}CPU 4${goto 130}${freq_g 4} GHz${alignr 330}${color1}${cpu cpu3}%
${goto 50}${voffset 12}${font Play-Regular:size=7}${color1}${top name 1}${alignr 306}${top cpu 1}%
${goto 50}${font Play-Regular:size=7}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${font Play-Regular:size=7}${color1}${top name 3}${alignr 306}${top cpu 3}%
${goto 50}${font Play-Regular:size=7}${color1}${top name 4}${alignr 306}${top cpu 4}%
${font Michroma:size=10}${color0}${goto 50}${voffset 3}® Core™
${font Michroma:size=10}${color0}${goto 420}${voffset 30}MEMORY
${goto 360}${voffset -2}${font Play-Regular:size=7}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 360}${font Play-Regular:size=7}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 360}${font Play-Regular:size=7}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${goto 360}${font Play-Regular:size=7}${color1}${top_mem name 4}${alignr 40}${top_mem mem 4}%
${goto 360}${font Play-Regular:size=7}${color1}${top_mem name 5}${alignr 40}${top_mem mem 5}%
${font Play-Regular:size=7}${voffset 10}${goto 355}${color1}Buffers / Cached${alignr 10}${color1}${buffers} / ${color1}${cached}
${font Play-Regular:size=7}${voffset 2}${goto 355}${color1}RAM ${alignr 10}${color1}${mem} / ${memeasyfree} / ${color1}${memmax}
${font Play-Regular:size=7}${goto 80}${voffset -82}Root${color1}${alignr 310}${fs_used /} / ${fs_size /}
${font Play-Regular:size=7}${goto 80}${voffset 0}Work${alignr 310}${color1}${fs_used /run/media/bogdan/WORK} / ${fs_size /run/media/bogdan/WORK}
${font Play-Regular:size=7}${goto 80}${voffset 0}Storage${alignr 310}${color1}${fs_used /run/media/bogdan/STORAGE} / ${fs_size /run/media/bogdan/STORAGE}
${font Play-Regular:size=7}${goto 80}${voffset 0}Disk IO:${alignr 310}${color1}${diskio}
${font Michroma:size=10}${color0}${goto 45}${voffset 5}HARD  DRIVES
${font Michroma:size=10}${color0}${voffset 20}${goto 320}INTERNET  INFO
# EDITION FINIR WLAN
${if_existing /proc/net/route wlo1}${font Play-Regular:size=7}${color1}${alignr 54}${voffset -8}WiFi  ${color1}${wireless_essid eno1}
${font Play-Regular:size=7}${color1}${goto 295}${voffset 2}Up${goto 370}${color1}${totalup eno1} / ${color1}${upspeed eno1}
${font Play-Regular:size=7}${goto 295}${color1}Down${goto 370}${color1}${totaldown eno1} / ${color1}${downspeed eno1}
${font Play:bold:size=8}${goto 295}${voffset 2}Local IP${goto 370}${addr wlo1}
${font Play:bold:size=8}${goto 295}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${goto 115}${voffset -42}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${goto 160}${color1}${voffset -4}${time %H}:${time %M}
${font Michroma:size=8}${color0}${goto 296}${voffset 20}GPU:
${font Play:size=8}${color0}${goto 278}${voffset 9}${color1}${GPU_temp GPUTEMP}°C
# |--ETH0
${else}${if_existing /proc/net/route enp4s0}${font Play-Regular:size=7}${color1}${goto 295}${voffset 6}Up${goto 370}${color1}${totalup eno1} / ${color1}${upspeed eno1}
${font Play-Regular:size=7}${goto 295}${color1}Down${goto 370}${color1}${totaldown eno1} / ${color1}${downspeed eno1}
${font Play:bold:size=8}${goto 295}${voffset 2}Local IP${goto 370}${addr enp4s0}
${font Play:bold:size=8}${goto 295}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${alignr 298}${voffset -42}${color0}Uptime - ${color0}${time %x}
${font Michroma:size=16}${goto 37}${color1}${voffset -4}${uptime}
${font Michroma:size=10}${color0}${goto 305}${voffset 14}Nvidia Driver ${execi 12000 nvidia-settings -q NvidiaDriverVersion -t | grep -m 1 ""}
${font Play:size=8}${color0}${goto 278}${voffset 3}${color1}${nvidia temp} °C
${font Play:size=8}${color0}${goto 278}${voffset 1}${color1}${nvidia gpufreq} MHz ${nvidia memfreq} MHz${endif}
#${font Play-Regular:size=7}${goto 180}Mail${color1}${alignr 110}${execpi 300 python3 ~/bin/gmail.py}
#${font Play-Regular:size=7}${goto 180}Weather${color1}${alignr 100}${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}
#${font Play-Regular:size=7}${goto 180}Uptime${color1}${alignr 100}${uptime_short}
${font Michroma:bold:size=12}${color0}${voffset 10}${alignc 0}${nodename}   ${kernel}  ${machine}
${font Michroma:size=10}${goto 50}${color0}Entropy: ${offset 20}${color1}$entropy_avail / $entropy_poolsize${goto 300}${color0}Processes: ${offset 20}${color1}${threads} / ${running_threads}
# UPDATES
${image /usr/share/icons/manjaro/green/64x64.png -p 336,42 -s 64x64}
${font Michroma:size=10}${color0}${goto 375}${voffset -575}Updates:${offset 20}${color1}${execi 3600 pacman -Qu | wc -l}${voffset 20}${goto 420}${font Play-Regular:size=7}Num Lock ${offset 10}${exec xset q | grep Num |awk '{print $8}'}${voffset 10}${goto 420}${font Play-Regular:size=7}Caps Lock ${offset 10}${exec xset q | grep Cap |awk '{print $4}'}${voffset 10}${goto 420}${font Play-Regular:size=7}Scroll Lock ${offset 10}${exec xset q | grep Scroll |awk '{print $12}'}
#CLOCK

#220

Thanks a lot !!! That’s the actual conky file that loads the lua file (both lost and now found) the

is just a slight reiteration of the default Gotham Clock script, but thanks for that too !!!

Hey, @Cpn-Neemo :slight_smile: our friend @pux just saved the day :wink:


#221

Thank you for this delightful, simple conky setup. Great work!

I have taken your base code and made a few slight modifications for my own system, including CPU & GPU temperatures:

And the full code:

conky.config = {
alignment = ‘top_left’,
gap_x = 10,
gap_y = 10,
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = ‘white’,
color2 = ‘grey’,
default_outline_color = ‘white’,
default_shade_color = ‘white’,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = ‘Noto Sans:size=12’,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = ‘Conky’,
own_window_type = ‘normal’,
own_window_transparent = true,
own_window_hints = ‘undecorated,below,sticky,skip_taskbar,skip_pager’,
own_window_argb_visual = true,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = ‘none’,
show_graph_scale = false,
show_graph_range = false
}

conky.text = [[
${voffset 8}${color2}${font Noto Sans:size=16}${time %A}$font${voffset -8}$alignr$color${font Caviar Dreams:size=38}${time %e}$font
$color${voffset -30}$color${font Noto Sans:size=18}${time %b}$font${voffset -3} $color${font Noto Sans:size=20}${time %Y}$font${color2}${voffset 2}$hr

${voffset 16}${goto 30}${color}Ryzen 1500x $alignr$cpu%
$alignr${exec sensors | grep -n ‘temp1’ | sed -n 2p | awk -F’+’ ‘{print $2}’ | awk -F’ ’ ‘{print $1}’}
${goto 40}${font Noto Sans:size=10}${color2}CPU1 $alignr${cpu cpu1}%
${goto 40}CPU2 $alignr${cpu cpu2}%
${goto 40}CPU3 $alignr${cpu cpu3}%
${goto 40}CPU4 $alignr${cpu cpu4}%
${goto 40}CPU5 $alignr${cpu cpu5}%
${goto 40}CPU6 $alignr${cpu cpu6}%
${goto 40}CPU7 $alignr${cpu cpu7}%
${goto 40}CPU8 $alignr${cpu cpu8}%
$font

${voffset 16}${goto 30}${color}RX 580 8GB $alignr${exec sensors | grep -n ‘temp1’ | sed -n 1p | awk -F’+’ ‘{print $2}’ | awk -F’ ’ ‘{print $1}’}

${voffset 12}${goto 30}${color}RAM $alignr$mem / $memmax

${voffset 12}${goto 30}${color}Networking
${goto 40}${color2}${font Noto Sans:size=10}up: $alignr${upspeed enp7s0}
${goto 40}${color2}${upspeedgraph enp7s0 20}
${goto 40}${color2}${font Noto Sans:size=10}down: $alignr${downspeed enp7s0}
${goto 40}${color2}${downspeedgraph enp7s0 20}$font

${voffset 5}${goto 30}${color}SSDs:
${voffset 5}${goto 40}${color2}${font Noto Sans:size=10}Linux $alignr${fs_used /} / ${fs_size /}
${goto 40}${color2}${font Noto Sans:size=10}${fs_bar 6 /}

${voffset 5}${goto 40}${color2}${font Noto Sans:size=10}Windows $alignr${fs_used /run/media/corey/CEF6D9BDF6D9A5CD/} / ${fs_size /run/media/corey/CEF6D9BDF6D9A5CD/}
${goto 40}${color2}${font Noto Sans:size=10}${fs_bar 6 /run/media/corey/CEF6D9BDF6D9A5CD/}

$hr
${font Noto Sans:size=12}$alignr$color${execi 5000 awk -F= ‘/ID=/{printf $2" “} /RELEASE=/{printf $2” "} /NAME=/{print $2}’ /etc/lsb-release}
${voffset 5}${color grey}${alignr}${execi 1200 whoami}@${nodename}
${goto 80}${color grey}${font Noto Sans:size=8}uptime:${color}${alignr}${uptime_short}
${goto 80}${color grey}${font Noto Sans:size=8}kernel:${color}${alignr}${kernel}
${color grey}$hr
]]


#222

is there anyway conky can display system install date?

thanks


#223

I am a newcomer who was only able to get all of this to work thanks to a number of Google searches combined with trial and error. It would be better to ask a veteran Manjaro user for help.


#224

sorted it myself

${alignc}${color}${execpi 3600 ls -alct /|tail -1|awk '{print $6, $7, $8}'}

ive changed it to this

${alignc}${color}${execpi 3600 tune2fs -l /dev/sda1 | grep "Filesystem created" | awk '{print $3,$4,$5,$6,$7}'}$font

#225

I made this one specifically for Preview build Manjaro-i3 18.0-alpha-2 (unstable)

Conky - change gap_x & gap_y to suite.

conky.config = {
alignment = 'top_right',
gap_x = 1932,
gap_y = 0,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
background = true,
default_graph_width = 186,
default_graph_height = 112,
update_interval = 1,
cpu_avg_samples = 1,
diskio_avg_samples = 10,
if_up_strictness = 'address',
net_avg_samples = 1,
temperature_unit = 'celsius',
short_units = true,
default_color = 'F1F1F1',
default_outline_color = '000',
default_shade_color = '1d1d1d',
color2 = '16a085',
color3 = '7b8188',
double_buffer = true,
extra_newline = false,
no_buffers = true,
text_buffer_size = 2047,
border_inner_margin = 0,
border_outer_margin = 0,
border_width = 0,
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
own_window = true,
own_window_argb_value = 255,
own_window_argb_visual = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
max_text_width = 0,
override_utf8_locale = true,
uppercase = false,
use_xft = true,
font = 'Bitstream Vera Sans:size=8.5',
};
conky.text = [[
${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\
${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font
$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\
${voffset -3}$color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr
${voffset 10}$color${alignr}${font Bitstream Vera Sans:size=10}${nodename}$font
${voffset 6}${color2}${alignr}${execi 5000 awk -F= '/ID=/{printf $2" "} /RELEASE=/{printf $2" "} /NAME=/{print $2}' /etc/lsb-release}
${voffset 6}${alignr}$color${exec uname -r} $color2 kernel
${voffset 6}${alignr}$color${uptime_short} $color2 uptime
${voffset 6}$alignr$color${freq}MHz $color2 cpuf
${voffset 6}$alignr$color${execi 10 sensors | grep 'Core 0' | awk {'print $3'}} $color2 temp
${voffset 6}${alignr}$color${mem}/${memmax} $color2 ram
${voffset 6}${alignr}$color${fs_used /}/${fs_size /} $color2 disk
${voffset 10}${alignr}${alignr}${offset -10}${color2}cpu${alignr}${cpugraph 8,120 16a085 caebe5}
${voffset 5}${alignr}${offset -10}${color2}diskr${alignr}${diskiograph_read sda 8,121 caebe5 16a085}
${voffset 4}${alignr}${offset -10}${color2}diskw${alignr}${diskiograph_write sda 8,120 16a085 caebe5}
${voffset 2}${alignr}${offset -10$}${color2}dload${alignr}${downspeedgraph enp8s0 8,120 caebe5 16a085}
${voffset 2}${alignr}${offset -10$}${color2}uload${alignr}${upspeedgraph enp8s0 8,120 16a085 caebe5}
]];

i3blocks config

separator_block_width=14

[caps]
label=
command=/usr/lib/i3blocks/keyindicator
instance=CAPS
interval=1
signal=11
color=#16a085

[uptime_label]
label=
command=uptime | sed 's/.*up \([^,]*\), .*/\1/'
color=#16a085
interval=60

[disk]
label=音
command=/usr/lib/i3blocks/disk /
interval=300
color=#20a48b

[temp]
label=
command=echo "$(sensors coretemp-isa-0000 | awk '/Core 0:/ {print $3}')"
interval=5
color=#2ba890

[cpu]
label=
command=/usr/lib/i3blocks/cpu_usage
color=#35ae96
interval=5

[load]
label=
command=/usr/lib/i3blocks/load_average
interval=5
min_width=40
color=#41b39d

[battery]
#label=BAT
color=#4db9a4
label=⚡
command=/usr/lib/i3blocks/battery BAT0
interval=60

[Kernel]
label= 
command=uname -r
color=#5bbfab
interval=once

[term]
full_text=>
command=xfce4-terminal
color=#6dc8b6

[browse]
full_text=c
command=chromium
color=#80cfbf

[mousepad]
full_text=t
command=mousepad
color=#a5dcd1

[suspend]
full_text=s
command=systemctl suspend
color=#b7e3db

[time]
#command-date " %a %d-%m-%y %l:%M:%S %p"
label=
command=date '+%l:%M%P %a %d/%m '
interval=5
color=#caebe5


Preview build Manjaro-i3 18.0-alpha-2 (unstable)
#226

ok, i’ve centered the position & i didn’t realize i’d left the version number half way down, that’s now been removed

and as requested, i won’t supply the font as i’m not sure of the copyrights…

https://www.google.com/search?q=bank+gothic+light+bt.ttf&ie=utf-8&oe=utf-8&client=firefox-b-ab


conky.config = {
	alignment = 'top_l',
	background = true,
	color2 = 'b1bfc6',
        color3 = 'fdd60f',
        cpu_avg_samples = 2,
	default_color = 'b1bfc6',
	double_buffer = true,
	font = 'BankGothic Lt BT:size=12',
	draw_shades = false,
	gap_x = 20,
	gap_y = 46,
	minimum_width = 200,
      no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 1.0,
	use_xft = true,
}
conky.text = [[
${voffset 18}$color${font BankGothic Lt BT:size=16}${time %A, %e %b %Y}$font
${voffset 2}$color${font BankGothic Lt BT:size=32}${time %H:%M:%S}$font
${voffset 2}${color2}${font BankGothic Lt BT:size=10}${uptime %H:%M:%S}$font

${voffset 614}${color}${execpi 3600 checkupdates | awk 'END { print (NR == 0 ? "System up to Date" : NR " new package" (NR > 1 ? "s" : "")); }'}
${voffset -2}${color}${kernel}
${voffset -4}${color}${font BankGothic Lt BT:size=9}${execpi 3600 tune2fs -l /dev/sda1 | grep "Filesystem created" | awk '{print $3,$4,$5,$6,$7}'}$font
${color2}${execi 1200 whoami}@${nodename}

]]

Joyful July (2018) Screenshots
#227

hey… @astallaf @nadb ok, i’ve centered the position & i didn’t realize i’d left the version number half way down, that’s now been removed,

sorry


#228

Here goes my conky (and the code). I’ve been working in it last days.

`#I got the base on deviantArt, but i developed it.

background no
use_xft yes
xftfont Dosis:light:size=10
update_interval 0.5
own_window yes
own_window_type desktop
own_window_title no
own_window_transparent yes
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes
double_buffer yes
minimum_size 1246 1
maximum_width 1200
maximum_height 800
draw_shades no
draw_outline no
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color ffffff
alignment bottom_left
no_buffers yes
uppercase no
override_utf10_locale no
use_spacer left
border_inner_margin 0
override_utf10_locale yes
pad_percents 2
temperature_unit celsius

alignment bottom_right
#gap_x 36
gap_y 02

color1 20ff03

TEXT
${color1}${font Dosis:light:size=40}${alignr}${time %d/%m/%Y}$color$font

${color1} ${goto 1083} ${font Dosis:bold:size=10}HORA$font >> ${time %H:%M}
${color1} ${goto 150} ${font Dosis:bold:size=10}WIFI$font >> ${wireless_essid} | ${upspeed} | ${downspeed}
${color1} ${goto 415} ${font Dosis:bold:size=10}BATTERY$font >> ${battery_percent BAT1}%
${color1} ${goto 555} ${font Dosis:bold:size=10}CPU$font >> ${cpu cpu1}% of ${freq 1}Mhz | ${cpu cpu2}% of ${freq 2}Mhz
${color1} ${goto 867} ${font Dosis:bold:size=10}RAM$font >> $mem
${color1} ${goto 990} ${font Dosis:bold:size=10}TEMP$font >> ${font Dosis:size=10}[CPU]$font ${acpitemp}°
${font Dosis:size=10}[GPU]$font ${exec sensors | grep ^temp1 | tail -n 1 | awk ‘{print $2}’ | cut -c 2-3}° `


#229

Nice ! where can download, this wallpaper?


#230

Not sure what wallpaper is in discussion, i lost the track of the discussion, but here are a few i made. Probably you will like one of them. :slight_smile:


#231

YES !!! many thanks !!! it’s them :wink:


#232

Hi friends, here is another update of my conky :nerd_face:

More info how to use it can be found here and download is available on Github.
Have fun!


#233

Hi, I tried to learn a little about lua and cairo and it caught me a bit too much that in the end I moved everything from conky.text section into a lua script.
Enjoy :slight_smile: .

You can find it on a github.


#234

Sadly its not Manjaro yet, I am still waiting for my new PC. But then I will build one for it :slight_smile:
This is an adaption of the bunsenlabs theme.


#235

Nice. Bunsenlabs is an excellent Debian spin. :sunglasses:


#236

I found this conky in here I think, but I made it my own :stuck_out_tongue:


#237

Very nice solution!

It would be nice if you could still publish the conky script, then we can all use it. I think you run conky separately for each information block.