LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop > Linux - Member Desktop Screenshots
User Name
Password
Linux - Member Desktop Screenshots This forum is for the discussion and display of Linux Desktop screenshots. Please remember that many members browse LQ from work, so NSFW screenshots are not appropriate.

Notices


Reply
  Search this Thread
Old 10-28-2019, 06:26 PM   #181
Dobbie03
LQ Newbie
 
Registered: Mar 2019
Location: NZ
Distribution: ArchLabs
Posts: 10

Rep: Reputation: 1

My conky is super simple, just a now playing for MPD. I am using Kunst to display the image as I find this a little more reliable than Conky for this. I also have a version of this conky that displays the cover too, but like I said it is a little hit and miss.

 
Old 01-31-2022, 01:06 PM   #182
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
anyone with knowledge of LUA ?

my lua script is here :
Code:
--[[
Ring Meters by 1 (2009)

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)
]]

settings_table = {
    
	{
        name='acpitemp',
        arg='',
        max=110,
        bg_colour=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=200, y=120,
        radius=97,
        thickness=4,
        start_angle=0,
        end_angle=240
    },    
	{
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=200, y=120,
        radius=86,
        thickness=13,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.7,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=200, y=120,
        radius=71,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
{
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=200, y=120,
        radius=57,
        thickness=11,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.5,
        fg_colour=0x5294E2,
        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=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=340, y=234,
        radius=60,
        thickness=15,
        start_angle=180,
        end_angle=420
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.4,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=340, y=234,
        radius=45,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=220, y=280,
        radius=40,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=220, y=280,
        radius=28,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/boot',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.4,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=220, y=280,
        radius=16,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='downspeedf',
        arg='enp3s0','wlan0',
        max=12500,
        bg_colour=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=290, y=346,
        radius=30,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='enp3s0','wlan0',
        max=2500,
        bg_colour=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        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=0xE1E4E7,
        bg_alpha=0.8,
        fg_colour=0x5294E2,
        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=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        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=0xE1E4E7,
        bg_alpha=0.4,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=230, y=410,
        radius=10,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
--[[
    {
        name='battery_percent',
        arg='BAT1',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        fg_alpha=0.8,
        x=274, y=464,
        radius=18,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='',
        arg='',
        max=100,
        bg_colour=0xE1E4E7,
        bg_alpha=0.6,
        fg_colour=0x5294E2,
        fg_alpha=0.6,
        x=274, y=464,
        radius=3,
        thickness=13,
        start_angle=0,
        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
		setup_rings(cr,settings_table[i])
	    end
	end
   cairo_surface_destroy(cs)
  cairo_destroy(cr)
end
and .conkyrc is here :
Code:
conky.config = {
-- Conky settings
	background = false,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 2048,
--imlib_cache_size 0

	temperature_unit = 'celsius',

-- Window specifications
	own_window_class = 'Conky',
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
    own_window_argb_visual = true,
    own_window_argb_value = 0,

	border_inner_margin = 0,
	border_outer_margin = 0,

	minimum_width = 520, minimum_height = 600,
	maximum_width = 520,

	alignment = 'bottom_left',
	gap_x = -20,
	gap_y = 50,

-- Graphics settings
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	default_color = 'gray',
	default_shade_color = 'red',
	default_outline_color = 'green',

-- Text settings
	use_xft = true,
	override_utf8_locale = true,
	font = 'Play:normal:size=7',
	xftalpha = 0.9,
	uppercase = false,

	default_color = '#E1E4E7',
	color0 = '#5294E2',
	color1 = '#E1E4E7',

-- Lua Load
	lua_load = '/home/vile/.conky/rings-v1.3.1.lua',
	lua_draw_hook_pre = 'ring_stats',

};

conky.text = [[
${font Play:normal:size=7}${voffset 16}${color1}${goto 120}${freq_g cpu0} Ghz${alignr 330}${acpitemp} C
${font Play:normal:size=7}${voffset 3}${goto 120}${color1}CPU 1 ${alignr 330}${color1}${cpu cpu1}%
${font Play:normal:size=7}${voffset 3}${goto 120}${color1}CPU 2${alignr 330}${color1}${cpu cpu2}%
${font Play:normal:size=7}${voffset 3}${goto 120}${color1}CPU 3${alignr 330}${color1}${cpu cpu3}%
${font Play:normal:size=7}${voffset 3}${goto 120}${color1}CPU 4${alignr 330}${color1}${cpu cpu4}%
${goto 50}${voffset 32}${font Play:normal:size=7}${color1}${top name 1}${alignr 306}${top cpu 1}%
${goto 50}${font Play:normal:size=7}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${font Play:normal:size=7}${color1}${top name 3}${alignr 306}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 3}CPU 
${font Michroma:size=10}${color0}${goto 394}${voffset 45}MEMORY
${goto 324}${voffset 0}${font Play:normal:size=7}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${font Play:normal:size=7}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${font Play:normal:size=7}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${font Play:normal:size=7}${voffset 15}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${font Play:normal:size=7}${voffset 5}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}
${font Play:normal:size=7}${goto 80}${voffset -63}Root${color1}${alignr 310}${fs_used /} / ${fs_size /}
${font Play:normal:size=7}${goto 80}${voffset 0}Home${alignr 310}${color1}${fs_used /home} / ${fs_size /home}
${font Play:normal:size=7}${goto 80}${voffset 0}Boot${alignr 310}${color1}${fs_used /boot} / ${fs_size /boot}
${font Michroma:size=10}${color0}${goto 70}${voffset 10}HARD  DRIVE
${font Michroma:size=10}${color0}${voffset 40}${goto 324}INTERNET  INFO
${if_existing /proc/net/route enp3s0}${font Play:normal:size=7}${color1}${goto 298}${voffset 5}Up${goto 370}${color1}${totalup enp3s0} / ${color1}${upspeed enp3s0}
${font Play:normal:size=7}${goto 298}${color1}Down${goto 370}${color1}${totaldown enp3s0} / ${color1}${downspeed enp3s0}
${font Play:normal:size=7}${goto 300}${voffset 2}Local IP${goto 370}${addr enp3s0}
${else}${if_existing /proc/net/route wlan0}${font Play:normal:size=7}${color1}${goto 298}${voffset 5}Up${goto 370}${color1}${totalup wlan0} / ${color1}${upspeed wlan0}
${font Play:normal:size=7}${goto 298}${color1}Down${goto 370}${color1}${totaldown wlan0} / ${color1}${downspeed wlan0}
${font Play:normal:size=7}${goto 300}${voffset 2}Local IP${goto 370}${addr wlan0}${endif}${endif}
${font Play:normal:size=7}${goto 300}${voffset -10}Public IP${goto 370}${execi 3600 wget -qO - ifconfig.co | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=10}${alignc 125}${voffset -30} ${color0}${time %d %B %Y}
${font Michroma:size=18}${alignc 120}${color1}${voffset -5}${time %H}:${time %M}
${font Michroma:size=9}${color0}${goto 180}${voffset 30}Uptime${font Play:normal:size=8}${color1}${alignr 100}${uptime_short}
${font Michroma:size=9}${color0}${goto 180}${voffset 3}Kernel${font Play:normal:size=8}${color1}${alignr 100}${kernel}]];
i get error like this one :
Code:
...
conky: llua_do_call: function conky_ring_stats execution failed: attempt to call a nil value
conky: llua_do_call: function conky_ring_stats execution failed: attempt to call a nil value
...
it works but it doesnt print graphs like it should.
https://i.imgur.com/U90gCAA.png

mine is like this :
https://i.imgur.com/K4AkiTI.png
 
Old 02-01-2022, 02:57 AM   #183
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Has it worked before?
Shouldn't the function be called "ring_stats" only? I think conky adds the "conky_"?

https://man.archlinux.org/man/conky....ATION_SETTINGS
 
Old 02-01-2022, 03:10 AM   #184
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 822

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
I think your battery arg is fishy. Try change

Code:
arg='BAT1',
to

Code:
arg='BAT0',
As a note, I see your acpitemp is set to 0 as well as your cpu usage. Is that really right? Do you have 4 CPUs/threads?
 
Old 02-01-2022, 04:23 PM   #185
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Quote:
Originally Posted by Bindestreck View Post
I think your battery arg is fishy. Try change

Code:
arg='BAT1',
to

Code:
arg='BAT0',
As a note, I see your acpitemp is set to 0 as well as your cpu usage. Is that really right? Do you have 4 CPUs/threads?
sorry guys, i were just trying to get lua scripts to work with my conkyrc, i managed to get those "rings" working after reading few lua scripts and experimenting with conky, i had to change conky to conky-lua-nv.

i actually have 12 core ryzen, i tried to make conky to show usage of 12 cores, it looked really ugly so i made conky to show average usage % of the cpu.

like this :
Code:
${font Play:normal:size=8}${voffset 50}${goto 100}${color1}Average use ${alignr 320}${color1}${cpu cpu0}%
is ^that correct syntax ?


my lua looks like this :
Code:
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.7,
        fg_colour=0x34cdff,
        fg_alpha=0.8,
        x=250, y=230,
        radius=150,
        thickness=13,
        start_angle=0,
        end_angle=240
    },
not sure if it is correct code for average CPU usage.

and this is my code for network traffic :
Code:
    {
        name='downspeedf',
        arg='',
        max=200,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x34cdff,
        fg_alpha=0.8,
        x=420, y=900,
        radius=120,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='',
        max=200,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x34cdff,
        fg_alpha=0.8,
        x=420, y=900,
        radius=138,
        thickness=8,
        start_angle=180,
        end_angle=420
    },
is there a way to get conky to show traffic in kilobytes - megabytes (using lua) ?
i have tried to RTFM but i haven't found good tutorials. i am mostly interested in lua atm.

this is how it looks now, i havent finished it , just trying to learn to use lua scripts with conky.

https://i.imgur.com/MwoBmIZ.png

Quote:
Has it worked before?
Shouldn't the function be called "ring_stats" only? I think conky adds the "conky_"?

https://man.archlinux.org/man/conky....ATION_SETTINGS
it didnt work.
i just made another script and managed to get it to work. kinda.
thanks for the link, ill check it out
 
Old 02-03-2022, 03:40 PM   #186
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
just got it to work and it is finished for now.
https://i.imgur.com/uzLmhP3.png
 
Old 02-04-2022, 01:43 PM   #187
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ CPU usage under 0.50%! You have too much CPU!
 
Old 02-04-2022, 01:53 PM   #188
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Quote:
Originally Posted by ondoho View Post
^ CPU usage under 0.50%! You have too much CPU!
yeah, i bougth it bcus linus said its good for compiling.
i think he said it compiled kernel 30% faster than intel one he had before
Quote:
amd ryzen 9 5900X 12 core.
 
Old 05-18-2022, 03:27 PM   #189
rado84
Member
 
Registered: Mar 2019
Location: Sofia, Bulgaria
Distribution: Arch Linux
Posts: 39

Rep: Reputation: Disabled
My Conky: https://i.imgur.com/LELLFKn.png
And the config, in case you want any part of it:

Code:
conky.config = {
-- *********************
-- Conky theme by Валсо
-- *********************


	background = false,
	double_buffer = true,

	alignment = 'top_right',

	border_width = 0,
	cpu_avg_samples = 2,
	default_color = 'color2',
	default_outline_color = 'black',
	default_shade_color = 'black',
	draw_borders = false,
	draw_graph_borders = true,
	draw_outline = true,
	draw_shades = false,

	gap_x = 4,
	gap_y = 4,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_console = false,
	out_to_stderr = false,
	extra_newline = false,

	own_window = true,
	own_window_type = 'dock',--types: normal, desktop, dock, override, panel
	own_window_transparent = false,
	own_window_colour = '000000',
	own_window_argb_visual = true,
	own_window_argb_value = 10,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

	minimum_width = 230, minimum_height = 300,
	stippled_borders = 0,
	update_interval = 2.0,
	uppercase = false,
	use_spacer = 'none',

	show_graph_scale = false,
	show_graph_range = false,

	use_xft = true,
	xftalpha = 0.1,
-- xftfont Open Sans Condensed:size=15
	color0 = '#FFFFFF',--white
	color1 = '#FF0000',--red
	color2 = '#E2B582',--baige
	color3 = '#00BF00',--nVidia green
	color4 = '#00BFFF',--sky blue
	color5 = '#402B2B',--brown
	color6 = '#E57231',--orange
	color7 = '#A17FFF',--light purple
	color8 = '#C2C2C2',--silver
	color9 = '#FF9946',--light orange

};

conky.text = [[
${color4}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}Intel Core i7-4770
${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}CPU Load ${alignr}${cpu cpu0}%
${color2}CPU Temp ${color2}${alignr}${hwmon 0 temp 1} C
${color4}CPU Fan  ${alignr}${execi 2 sensors | grep 'fan2' | awk {'print $2'}} RPM
${color7}CPU Freq ${color7}${alignr}${freq_g} GHz

${color3}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}nVIDIA GTX 1660 Ti 6GB
${color9}GPU Load ${alignr}${nvidia gpuutil}%
${color2}GPU Temp ${alignr}${execi 60 nvidia-settings -query GPUCoreTemp| grep gpu | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}C
${color4}GPU Fan ${alignr}${execi 10 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t} RPM
${color7}GPU Driver ${alignr}${execi 60 nvidia-smi --query-gpu=driver_version --format=csv,noheader}

${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}KERNEL: ${color0}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}${kernel}

${color4}RAM: ${color4}${alignr}${mem} ${color0}/ ${color4}${memmax}
#${color1}${membar 25}
${color9}${top_mem name 1} $alignr ${top_mem mem_res 1}
${color9}${top_mem name 2} $alignr ${top_mem mem_res 2}
${color9}${top_mem name 3} $alignr ${top_mem mem_res 3}
${color9}${top_mem name 4} $alignr ${top_mem mem_res 4}
${color9}${top_mem name 5} $alignr ${top_mem mem_res 5}
${color9}${top_mem name 6} $alignr ${top_mem mem_res 6}
${color9}${top_mem name 7} $alignr ${top_mem mem_res 7}
#${color9}${top_mem name 8} $alignr ${top_mem mem_res 8}
#${color9}${top_mem name 9} $alignr ${top_mem mem_res 9}
#${color9}${top_mem name 10} $alignr ${top_mem mem_res 10}
#10 processes is the limit

${color9}Storages: Used   ${alignr}Free
${color3}arch-120: ${fs_used /mnt/}    ${alignr}${fs_free /mnt/}
${color3}ext4-1TB: ${fs_used /media/1000GB/} ${alignr}${fs_free /media/1000GB/}
${color3}ext4-4TB: ${fs_used /media/4000GB/} ${alignr}${fs_free /media/4000GB/}
${color1}ntfs-win: ${fs_used /run/media/rado/Windows 10} ${alignr}${fs_free /run/media/rado/Windows 10}
${color1}ntfs-390: ${fs_used /media/390GB/} ${alignr}${fs_free /media/390GB/}
${color1}ntfs-500: ${fs_used /media/500GB/} ${alignr}${fs_free /media/500GB/}
${color9}${alignc}Total: 6.1 TB

${alignc}${color0}D: ${color9}${downspeed enp0s25} ${color0} ${color0}U: ${color9}${upspeed enp0s25}
]];
 
Old 05-18-2022, 09:02 PM   #190
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
Blog Entries: 28

Rep: Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535
my conkyrc
Code:
conky.config = {

background = true,
use_xft = true,
font = '123:size=8',
xftalpha = 0.1,
update_interval = 0.5,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 250,
minimum_height = 5,
maximum_width = 400,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'gray',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 10,
gap_y = 10,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 1,
override_utf8_locale = false,
use_spacer = 'right'

}

conky.text = [[

$color${font}${font Open Sans:size=44}$alignc${time %H:%M}$font$color${font Open Sans:size=15}
$alignc${time %a},${time %d %b %Y}$font$color

${font Arial:size=20}$alignc${color #0040FF} Debian Unstable ${color #0040FF}
${voffset -90}
${color #505050}
${font}
${font Arial:bold:size=10}${color #00AAFF}SYSTEM ${color #0000AA} ${hr 2}
$font${color #505050}$sysname $kernel $alignr $machine
Frequency ${color #AAAAAA}$alignr${freq_g cpu0}Ghz${color #505050}
Uptime ${color #AAAAAA}$alignr${uptime}${color #505050}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color #00AAFF}CPU ${color #0000AA}${hr 2}
$font${color #505050}Temp: $alignr ${color #AAAAAA}${exec /usr/bin/vcgencmd measure_temp | cut -c6-9} C
$font${color #505050}CPU1  ${color #AAAAAA}${cpu cpu1}%${color #505050} ${cpubar cpu1}
CPU2  ${color #AAAAAA}${cpu cpu2}%${color #505050} ${cpubar cpu2}
CPU3  ${color #AAAAAA}${cpu cpu3}%${color #505050} ${cpubar cpu3}
CPU4  ${color #AAAAAA}${cpu cpu4}%${color #505050} ${cpubar cpu4}

${font Arial:bold:size=10}${color #00AAFF}MEMORY ${color #0000AA}${hr 2}
$font${color #505050}MEM $alignc ${color #AAAAAA}$mem${color #505050} / $memmax $alignr $memperc%
$membar
$font${color #505050}SWAP $alignc ${color #AAAAAA}$swap${color #505050} / $swapmax $alignr $swapperc%
$swapbar

${font Arial:bold:size=10}${color #00AAFF}Storage ${color #0000AA}${hr 2}
$font${color #505050}/home $alignc ${color #AAAAAA}${fs_used /home} / ${fs_size /home}${color #505050} $alignr ${fs_free_perc /home}%
${fs_bar /home}

${font Arial:bold:size=10}${color #00AAFF}Weather${color #0040FF} ${execi 300 /home/pi/weather.sh 37058}

${font Arial:bold:size=10}${color #00AAFF}TOP PROCESSES ${color #0000AA}${hr 2}
${color #505050}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font Arial:bold:size=10}${color #00AAFF}NETWORK ${color #0000AA}${hr 2}
$font${color #505050}IP on wlan0 $alignr ${color #AAAAAA}${addr wlan0}

${color #505050}Down $alignr ${color #AAAAAA}${downspeed wlan0}
${color #505050}Up $alignr ${color #AAAAAA}${upspeed wlan0}

${color #505050}Downloaded: $alignr  ${color #AAAAAA}${totaldown wlan0}
${color #505050}Uploaded: $alignr  ${color #AAAAAA}${totalup wlan0}

$font${color #505050}IP on eth0 $alignr ${color #AAAAAA}${addr eth0}

${color #505050}Down $alignr ${color #AAAAAA}${downspeed eth0}
${color #505050}Up $alignr ${color #AAAAAA}${upspeed eth0}

${color #505050}Downloaded: $alignr  ${color #AAAAAA}${totaldown eth0}
${color #505050}Uploaded: $alignr  ${color #AAAAAA}${totalup eth0}


]]
weather script
Code:
#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
    echo
    echo "USAGE: weather.sh <locationcode>"
    echo
    exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
Attached Thumbnails
Click image for larger version

Name:	2022-05-18_20-58.png
Views:	28
Size:	191.9 KB
ID:	38937  
 
Old 05-19-2022, 01:21 AM   #191
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by rado84 View Post
My Conky: https://i.imgur.com/LELLFKn.png
And the config, in case you want any part of it:

Code:
conky.config = {
-- *********************
-- Conky theme by Валсо
-- *********************


	background = false,
	double_buffer = true,

	alignment = 'top_right',

	border_width = 0,
	cpu_avg_samples = 2,
	default_color = 'color2',
	default_outline_color = 'black',
	default_shade_color = 'black',
	draw_borders = false,
	draw_graph_borders = true,
	draw_outline = true,
	draw_shades = false,

	gap_x = 4,
	gap_y = 4,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_console = false,
	out_to_stderr = false,
	extra_newline = false,

	own_window = true,
	own_window_type = 'dock',--types: normal, desktop, dock, override, panel
	own_window_transparent = false,
	own_window_colour = '000000',
	own_window_argb_visual = true,
	own_window_argb_value = 10,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

	minimum_width = 230, minimum_height = 300,
	stippled_borders = 0,
	update_interval = 2.0,
	uppercase = false,
	use_spacer = 'none',

	show_graph_scale = false,
	show_graph_range = false,

	use_xft = true,
	xftalpha = 0.1,
-- xftfont Open Sans Condensed:size=15
	color0 = '#FFFFFF',--white
	color1 = '#FF0000',--red
	color2 = '#E2B582',--baige
	color3 = '#00BF00',--nVidia green
	color4 = '#00BFFF',--sky blue
	color5 = '#402B2B',--brown
	color6 = '#E57231',--orange
	color7 = '#A17FFF',--light purple
	color8 = '#C2C2C2',--silver
	color9 = '#FF9946',--light orange

};

conky.text = [[
${color4}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}Intel Core i7-4770
${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}CPU Load ${alignr}${cpu cpu0}%
${color2}CPU Temp ${color2}${alignr}${hwmon 0 temp 1} C
${color4}CPU Fan  ${alignr}${execi 2 sensors | grep 'fan2' | awk {'print $2'}} RPM
${color7}CPU Freq ${color7}${alignr}${freq_g} GHz

${color3}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}nVIDIA GTX 1660 Ti 6GB
${color9}GPU Load ${alignr}${nvidia gpuutil}%
${color2}GPU Temp ${alignr}${execi 60 nvidia-settings -query GPUCoreTemp| grep gpu | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}C
${color4}GPU Fan ${alignr}${execi 10 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t} RPM
${color7}GPU Driver ${alignr}${execi 60 nvidia-smi --query-gpu=driver_version --format=csv,noheader}

${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}KERNEL: ${color0}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}${kernel}

${color4}RAM: ${color4}${alignr}${mem} ${color0}/ ${color4}${memmax}
#${color1}${membar 25}
${color9}${top_mem name 1} $alignr ${top_mem mem_res 1}
${color9}${top_mem name 2} $alignr ${top_mem mem_res 2}
${color9}${top_mem name 3} $alignr ${top_mem mem_res 3}
${color9}${top_mem name 4} $alignr ${top_mem mem_res 4}
${color9}${top_mem name 5} $alignr ${top_mem mem_res 5}
${color9}${top_mem name 6} $alignr ${top_mem mem_res 6}
${color9}${top_mem name 7} $alignr ${top_mem mem_res 7}
#${color9}${top_mem name 8} $alignr ${top_mem mem_res 8}
#${color9}${top_mem name 9} $alignr ${top_mem mem_res 9}
#${color9}${top_mem name 10} $alignr ${top_mem mem_res 10}
#10 processes is the limit

${color9}Storages: Used   ${alignr}Free
${color3}arch-120: ${fs_used /mnt/}    ${alignr}${fs_free /mnt/}
${color3}ext4-1TB: ${fs_used /media/1000GB/} ${alignr}${fs_free /media/1000GB/}
${color3}ext4-4TB: ${fs_used /media/4000GB/} ${alignr}${fs_free /media/4000GB/}
${color1}ntfs-win: ${fs_used /run/media/rado/Windows 10} ${alignr}${fs_free /run/media/rado/Windows 10}
${color1}ntfs-390: ${fs_used /media/390GB/} ${alignr}${fs_free /media/390GB/}
${color1}ntfs-500: ${fs_used /media/500GB/} ${alignr}${fs_free /media/500GB/}
${color9}${alignc}Total: 6.1 TB

${alignc}${color0}D: ${color9}${downspeed enp0s25} ${color0} ${color0}U: ${color9}${upspeed enp0s25}
]];
Hi, thank you for sharing your config, I really like the look as well.

I had a problem with the nVidia gpuutil setting, I see your's reads 0%.

Mine wouldn't give any %, so I searched around and found this line that worked for my GTX1060 6Gb card.

Code:
${exec nvidia-settings -tq GPUUtilization | awk -F '[,= ]' '{ print $2 }'}%
I found it here... https://github.com/brndnmtthws/conky/issues/329

I hope this is useful to somebody. All the best, Regards Glenn
 
Old 08-21-2022, 03:50 PM   #192
rado84
Member
 
Registered: Mar 2019
Location: Sofia, Bulgaria
Distribution: Arch Linux
Posts: 39

Rep: Reputation: Disabled
You can see my conky on this screenshot: https://www.linuxquestions.org/quest...ml#post6375257

And here's my config, if you want it:

Code:
conky.config = {
-- *********************
-- Conky theme by Valso (rado84)
-- *********************


	background = false,
	double_buffer = true,

	alignment = 'top_right',

	border_width = 0,
	cpu_avg_samples = 2,
	default_color = 'color2',
	default_outline_color = 'black',
	default_shade_color = 'black',
	draw_borders = false,
	draw_graph_borders = true,
	draw_outline = true,
	draw_shades = false,

	gap_x = 4,
	gap_y = 4,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_console = false,
	out_to_stderr = false,
	extra_newline = false,

	own_window = true,
	own_window_type = 'dock',--types: normal, desktop, dock, override, panel
	own_window_transparent = false,
	own_window_colour = '000000',
	own_window_argb_visual = true,
	own_window_argb_value = 10,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

	minimum_width = 230, minimum_height = 300,
	stippled_borders = 0,
	update_interval = 2.0,
	uppercase = false,
	use_spacer = 'none',

	show_graph_scale = false,
	show_graph_range = false,

	use_xft = true,
	xftalpha = 0.1,
-- xftfont Open Sans Condensed:size=15
	color0 = '#FFFFFF',--white
	color1 = '#FF0000',--red
	color2 = '#E2B582',--baige
	color3 = '#00BF00',--nVidia green
	color4 = '#00BFFF',--sky blue
	color5 = '#54CCFF',--light blue
	color6 = '#E57231',--orange
	color7 = '#A17FFF',--light purple
	color8 = '#FFFF00',--yellow
	color9 = '#FF9946',--light orange

};

conky.text = [[
${color4}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}Intel Core i7-4770
${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}CPU Load ${alignr}${cpu cpu0}%
${color2}CPU Temp ${color2}${alignr}${hwmon 0 temp 1} C
#${color4}CPU Fan  ${alignr}${execi 2 sensors | grep 'fan2' | awk {'print $2'}} RPM
${color7}CPU Freq ${color7}${alignr}${freq_g} GHz

${color3}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}nVIDIA GTX 1660 Ti 6GB
${color9}GPU Load ${alignr}${nvidia gpuutil}%
${color2}GPU Temp ${alignr}${execi 60 nvidia-settings -query GPUCoreTemp| grep gpu | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} C
${color0}GPU VRAM ${alignr}${exec nvidia-smi | grep % | cut -c 37-40} MiB
${color5}GPU Fan ${alignr}${execi 10 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t} RPM
${color8}GPU Driver ${alignr}${execi 60 nvidia-smi --query-gpu=driver_version --format=csv,noheader}

${color9}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}KERNEL: ${color0}${font Open Sans Condensed:style=Bold:pixelsize=22}${alignc}${kernel}

${color5}RAM: ${color5}${alignr}${mem} ${color0}/ ${color5}${memmax}
${color6}${membar 25}
${color8}${alignc}No Win since 07/14/2022!
${if_running audacious} $alignc ${color3}Audacious is running ${else} $alignc ${color1}Audacious is not running$endif
${color9}${top_mem name 1} $alignr ${top_mem mem_res 1}
${color9}${top_mem name 2} $alignr ${top_mem mem_res 2}
${color9}${top_mem name 3} $alignr ${top_mem mem_res 3}
${color9}${top_mem name 4} $alignr ${top_mem mem_res 4}
${color9}${top_mem name 5} $alignr ${top_mem mem_res 5}
${color9}${top_mem name 6} $alignr ${top_mem mem_res 6}
#${color9}${top_mem name 7} $alignr ${top_mem mem_res 7}
#${color9}${top_mem name 8} $alignr ${top_mem mem_res 8}
#${color9}${top_mem name 9} $alignr ${top_mem mem_res 9}
#${color9}${top_mem name 10} $alignr ${top_mem mem_res 10}
#10 processes is the limit

${color9}Storages: ${color1}Used   ${alignr}${color8}Free
${color3}ext-Arch: ${fs_used /mnt/}    ${alignr}${fs_free /mnt/}
${color3}ext-1000: ${fs_used /media/1000GB/} ${alignr}${fs_free /media/1000GB/}
#${color3}ext-1000: ${fs_used (sudo fdisk -s /dev/sdc1) / 1024} ${alignr}${fs_free (sudo fdisk -s /dev/sdc1) / 1024}
${color3}ext-4000: ${fs_used /media/4000GB/} ${alignr}${fs_free /media/4000GB/}
${color3}ext-390: ${fs_used /media/390GB/} ${alignr}${fs_free /media/390GB/}
${color8}${alignc}Total: 5.5 TB

${alignc}${color0}D: ${color9}${downspeed enp0s25} ${color0} ${color0}U: ${color9}${upspeed enp0s25}
]];
 
Old 01-14-2024, 10:05 AM   #193
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
anyone has any clue how to make diskiograph to work with conky 1.19 ?
also need hints for cpu graph.

Code:
# conky -v
conky 1.19.6_pre compiled 2024-01-13 for Linux x86_64
Code:
${offset 120}${diskiograph 40,250 666666 666666 -0.5}${voffset -30}
${voffset 20}${offset 125}${cpugraph cpu0 40,250 666666 666666 -0.3}
^up there is my graph commands.
i posted screeny that shows how those graphs look like, all grey bars.
Attached Thumbnails
Click image for larger version

Name:	conky.png
Views:	19
Size:	234.0 KB
ID:	42395  
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
LXer: Conky Colors Makes Your Conky Beautiful In Seconds (Version 3.20 Released) LXer Syndicated Linux News 0 08-01-2010 11:21 AM
'Casting away const'ness' in C jrtayloriv Programming 3 03-11-2008 04:32 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
newbie-ness newbiebob LinuxQuestions.org Member Intro 2 07-15-2005 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop > Linux - Member Desktop Screenshots

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration