Conky Showoff thread

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.
Locked
Sector11

Re: Conky Showoff thread

Post by Sector11 »

pcpunk wrote:@ Sector11, nice work!
Thank you
Don't know what you are talking about here, "run 16 on boot, read three and shut them down etc."

And the next sentence also, why would I need to killall and restart four? I just want to either create one that will span the top of screen (with the Conky I have) or run multiple across top and put a little of the script I'm using in each one. I've tried to make it wider, and generally played with the width and height settings to no avail. Either way it is nice to use the manager, but I'm guessing some of these things will not be possible using it?
RE: Run 16 on boot
When I start my computer, I start 16 conkys. Three are in "Windows" just like other applications

If you take "undecorated" out of the line:

Code: Select all

own_window_hints skip_taskbar,skip_pager,undecorated,below,sticky
conky will start up in a "window" just like any other app, you can read it and close it the same way you do Firefox. Like this, my test conky above my text editor:
Image
That feature comes in handy at times.

RE: Why "killall conky" and restart a fixed list of conkys (4 in the example)
Well, at times I kill all my conkys to test/develop conkys for other people. With that little bash script that starts all my conkys when I fire-up my computer in the morning the killall does nothing but it starts my conkys.

So if I'm testing a couple of conkys for someone and finish the work I simply call that script and it kills the 'test' conkys and starts mine again. You could use a similar script without the "killall" command to start two conkys you want when you start up your computer. Most people aren't as conky crazy as I am and actually leave them running all the time. :)

Also: If you only run one conky you don't need a bash script to start you conky at all. Just:

Code: Select all

conky
if you use: ~/.conkyrc
and IF you need a delay time use the built in conky delay

Code: Select all

 -p | --pause= SECONDS
    Time to pause before actually starting Conky
so:

Code: Select all

conky -p 10
will start your ~/.conkyrc after 10 seconds - give your desktop a chance to start. :)

Will visit your other thread.
pcpunk
Level 5
Level 5
Posts: 976
Joined: Sun Jun 15, 2014 1:44 pm
Location: Florida

Re: Conky Showoff thread

Post by pcpunk »

That's what I thought, way over my head LOL. I can see how this is addicting and fun! :D

I was using this script to start conky in home.

Code: Select all

!#/bin/bash
sleep 10 && conky;
pcpunk
HP Compaq nx7400, Cinnamon 19.2
Intel R Core™2CPU, T5500@1.66GHz, 4GB Crucial RAM
Super Clean Runs Perfect
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip »

Image
Image
Sector11

Re: Conky Showoff thread

Post by Sector11 »

pcpunk wrote:That's what I thought, way over my head LOL. I can see how this is addicting and fun! :D

I was using this script to start conky in home.

Code: Select all

!#/bin/bash
sleep 10 && conky;
pcpunk
Like I said you can eliminate the "script" and just use:

Code: Select all

conky -p 10
and if by chance you had two conkys the second 'could be':

Code: Select all

conky -c /path/to/second/whatever_you_call_it -p 10
Sample:
Image

hehehehe stick around, if trytip doesn't get you addicted - I might, because you are right, it's addicting and fun. It's fun in the way of: "I wonder if I can do XYZ. And for that reason I have a test conky. :)

= = = = =
@trytip - That Aurora stuff is awesome - just updated my Aurora-v2 to the latest v3. But there is a few OOPIES! in the LUA scripts (still).

For example:
  1. white_eye_duo_core.lua
    • -> LUA shows: cpu0 & cpu1
  2. white_eye_quad_core.lua
    • -> LUA shows: cpu0, cpu1, cpu2 & cpu3
  3. white_eye_octa_core.lua
    • -> LUA shows: cpu0, cpu1, cpu2, cpu3, cpu4, cpu5, cpu6, cpu7
  4. seamod_rings_cpu_2core_hc_white.lua
    • -> LUA shows: cpu0 & cpu1
  5. seamod_rings_cpu_4core_hc_white.lua
    • -> LUA shows: cpu0, cpu1, cpu2 & cpu3
  6. seamod_rings_cpu_8core_hc_white.lua
    • -> LUA shows: cpu0, cpu1, cpu2, cpu3, cpu4, cpu5, cpu6, cpu7
all show one core less then advertised. because they use: cpu0 as a core

AMD uses CPU's for 'cores'
Intel uses CORES for 'cores'

But conky uses CPU 1 to 4 for a 'quad' core chip - be it Intel or AMD
${cpu cpu1}
${cpu cpu2}
${cpu cpu3}
${cpu cpu4}

and this:
${cpu} OR ${cpu cpu0} is an "Average" of those 4 CORE's (Intel) or CPU's (AMD)

Code: Select all

TEXT
${alignc}${color7}Sensors
${color7}CPU${color} ${platform f71882fg.2560 temp 1}°
 ${color7}MB${color} ${platform f71882fg.2560 temp 2}°
${color7}SDA${color} ${hddtemp /dev/sda}°
${color7}GPU${color} ${nvidia temp}°
${color7}CPU Fan${color}
  ${platform f71882fg.2560 fan 1}
${membar 0}
${alignc}${color7}CPU
${alignc}${freq_g}GHz
${alignc}CPU %
${alignc}${color7}A${color} ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${color9}${cpu cpu0}${color}${endif}${endif}
${alignc}${color7}1${color} ${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${color}${endif}${endif}
${alignc}${color7}2${color} ${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${color}${endif}${endif}
${alignc}${color7}3${color} ${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${color}${endif}${endif}
${membar 0}
${alignc}${color7}Memory${color}
${alignc}${mem}
${alignc}${memmax}
My ancient triple core in a conky

You're 'almost' as addicted as I am :)
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Stressed things out to show average:
Image

Code: Select all

 10 Jul 16 @ 15:10:16 ~
  $ calc 37+64+43
144
 
 10 Jul 16 @ 15:10:30 ~
  $ calc 144/3
48.00000
 
 10 Jul 16 @ 15:10:46 ~
  $ 
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip »

are my images showing? sometimes different image hosts block redirects
Image
Image
Sector11

Re: Conky Showoff thread

Post by Sector11 »

^ Yup, they are showing.
pcpunk
Level 5
Level 5
Posts: 976
Joined: Sun Jun 15, 2014 1:44 pm
Location: Florida

Re: Conky Showoff thread

Post by pcpunk »

Here is what I have in KDE right now, same script as my other but tweaked a little.

[image]http://i.imgur.com/qI6klYC.png[/image]
HP Compaq nx7400, Cinnamon 19.2
Intel R Core™2CPU, T5500@1.66GHz, 4GB Crucial RAM
Super Clean Runs Perfect
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip »

not bad pcpunk i only got into conky last year. before that i always wanted to learn but i just never went into editing conkyrc. i just downloaded someones conky and if it worked i used it if not deleted the whole conky folder and put it off another year. sad now that the new conky uses a different code. :evil: :evil: :evil: now i have to learn a new language? i'll probably put that off like i did with the other and use what i know, and don't upgrade conky to the new version ... keep at it you'll understand more

here's a timebar i edited from someone elses work :mrgreen: but i like it better

[image]http://i.imgur.com/utOPKbV.jpg[/image]

link to conky
EDIT: forgot the fonts so i re-upload ... open fonts and install OR copy to .fonts
Image
Sector11

Re: Conky Showoff thread

Post by Sector11 »

@ trytip - re the new conky: I agree, it's LUA based, and slower. It does come with a converter though - that works on most old conkys.
Still - it's a learning curve. I'm staying with nine as long as I can

@pcpunk - sorry, a few doctors took me away for a bit. Will get back to your two liner. :)
pcpunk
Level 5
Level 5
Posts: 976
Joined: Sun Jun 15, 2014 1:44 pm
Location: Florida

Re: Conky Showoff thread

Post by pcpunk »

@trytip, Nice work
@pcpunk - sorry, a few doctors took me away for a bit. Will get back to your two liner. :)
No worries, I have what I need for now, all else is just icing in the cake!
HP Compaq nx7400, Cinnamon 19.2
Intel R Core™2CPU, T5500@1.66GHz, 4GB Crucial RAM
Super Clean Runs Perfect
altae

Re: Conky Showoff thread

Post by altae »

Nothing too fancy, I took the config "drphibes" from https://github.com/brndnmtthws/conky/wiki/User-Configs and adapted it to my needs.
conky.jpg
Edit: Forgot to add the conky.conf, sorry about that:

Code: Select all

conky.config = {
	alignment = 'top_right',
	background = false,
	border_width = 1,
	cpu_avg_samples = 2,
	default_color = 'cornflowerblue',
	default_outline_color = 'white',
	default_shade_color = 'white',
	double_buffer = true,
	draw_borders = false,
	draw_graph_borders = true,
	draw_outline = false,
	draw_shades = false,
	gap_x = 25,
	gap_y = 15,
	maximum_width = 330,
	max_port_monitor_connections = 64,
	max_user_text = 16384,
	minimum_width = 330, minimum_height = 10,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_console = false,
	own_window = true,
	own_window_class = "Conky",
	own_window_colour = 'black',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_transparent = false,
	own_window_type = 'normal',
	own_window = true,
	pad_percents = 3,
	stippled_borders = 2,
	update_interval = 2,
	uppercase = false,
	use_spacer = 'right',
	use_xft = true,
	xftalpha = 0.8,
	font = 'Bitstream Vera Sans Mono:size=8',

};

conky.text = [[
${color #0077ff}$nodename     ${alignc}$sysname $kernel ${alignr}$color${time %H:%M}
${color #0077ff}Uptime:$color $uptime ${color #0077ff} Load:$color $loadavg

${color #0077ff}CPU 1:$color ${cpu cpu1}% ${color #0077ff}${cpubar cpu1}
${color #0077ff}CPU 2:$color ${cpu cpu2}% ${color #0077ff}${cpubar cpu2}
${color #0077ff}CPU 3:$color ${cpu cpu3}% ${color #0077ff}${cpubar cpu3}
${color #0077ff}CPU 4:$color ${cpu cpu4}% ${color #0077ff}${cpubar cpu4}
${color #0077ff}CPU:$color ${cpu}% ${color #0077ff}${cpubar 5,85}   ${color #0077ff}Disk I/O: $color${diskio}
${color #0077ff}${cpugraph 0 32,155 104E8B 0077ff} $alignr${color #0077ff}${diskiograph 32,155 104E8B 0077ff 750}
${color #0077ff}RAM Usage:$color $mem${color #0077ff}/${color}$memmax - $memperc% ${color #0077ff}$membar
${color #0077ff}Swap Usage:$color $swap${color #0077ff}/${color}$swapmax - $swapperc% ${color #0077ff}${swapbar}
${color #0077ff}Procs:$color $processes ${color #0077ff}Run:$color$running_processes ${color #0077ff}
${color #0077ff}Entropy: ${color}${entropy_avail}${color #0077ff}/${color}${entropy_poolsize} ${color #0077ff}${entropy_bar}
${color #0077ff}File systems:
 ${color #0077ff}/          $color${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,120 /}
 ${color #0077ff}/home      $color${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
 ${color #0077ff}/opt       $color${fs_used /opt}/${fs_size /opt}${alignr}${color #0077ff}${fs_bar 5,120 /opt}
 ${color #0077ff}/usr/local $color${fs_used /usr/local}/${fs_size /usr/local}${alignr}${color #0077ff}${fs_bar 5,120 /usr/local}
 ${color #0077ff}/var       $color${fs_used /var}/${fs_size /var}${alignr}${color #0077ff}${fs_bar 5,120 /var}
 ${color #0077ff}Data       $color${fs_used /mnt/Data}/${fs_size /mnt/Data}${alignr}${color #0077ff}${fs_bar 5,120 /mnt/Data}

${color #0077ff}Top Processes:
${color #0077ff}Name              PID     CPU%   MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
$color ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #0077ff}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$color ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
 
${color #0077ff}Networking
${color #0077ff}Local IP: $Color${addr ens33}
${color #0077ff}Tun0 IP: $Color${addr tun0}
${color #0077ff}Tun0 Down: $color${downspeed tun0}/s$alignr${color #0077ff}Tun 0 Up:$color ${upspeed tun0}/s
${color #0077ff}${downspeedgraph tun0 32,155 104E8B 0077ff} $alignr${color #0077ff}${upspeedgraph tun0 32,155 104E8B 0077ff}
${color #0077ff}ens33 Down: $color${downspeed ens33}/s$alignr${color #0077ff}ens33 Up:$color ${upspeed ens33}/s
${color #0077ff}${downspeedgraph ens33 32,155 104E8B 0077ff} $alignr${color #0077ff}${upspeedgraph ens33 32,155 104E8B 0077ff}
${color #0077ff}Total Connections${alignr}$Color${tcp_portmon 1 65535 count}
${color #0077ff}List of TCP connections
${color #0077ff}Local			$alignr${color #0077ff}Remote$color
 ${tcp_portmon 1 65535 lip 0}/${tcp_portmon 1 65535 lport 0} ${alignr} ${tcp_portmon 1 65535 rip 0}/${tcp_portmon 1 65535 rport 0}
 ${tcp_portmon 1 65535 lip 1}/${tcp_portmon 1 65535 lport 1} ${alignr} ${tcp_portmon 1 65535 rip 1}/${tcp_portmon 1 65535 rport 1}
 ${tcp_portmon 1 65535 lip 2}/${tcp_portmon 1 65535 lport 2} ${alignr} ${tcp_portmon 1 65535 rip 2}/${tcp_portmon 1 65535 rport 2}
 ${tcp_portmon 1 65535 lip 3}/${tcp_portmon 1 65535 lport 3} ${alignr} ${tcp_portmon 1 65535 rip 3}/${tcp_portmon 1 65535 rport 3}
 ${tcp_portmon 1 65535 lip 4}/${tcp_portmon 1 65535 lport 4} ${alignr} ${tcp_portmon 1 65535 rip 4}/${tcp_portmon 1 65535 rport 4}
 ${tcp_portmon 1 65535 lip 5}/${tcp_portmon 1 65535 lport 5} ${alignr} ${tcp_portmon 1 65535 rip 5}/${tcp_portmon 1 65535 rport 5}
 ${tcp_portmon 1 65535 lip 6}/${tcp_portmon 1 65535 lport 6} ${alignr} ${tcp_portmon 1 65535 rip 6}/${tcp_portmon 1 65535 rport 6}
 ${tcp_portmon 1 65535 lip 7}/${tcp_portmon 1 65535 lport 7} ${alignr} ${tcp_portmon 1 65535 rip 7}/${tcp_portmon 1 65535 rport 7}
 ${tcp_portmon 1 65535 lip 8}/${tcp_portmon 1 65535 lport 8} ${alignr} ${tcp_portmon 1 65535 rip 8}/${tcp_portmon 1 65535 rport 8}
 ${tcp_portmon 1 65535 lip 9}/${tcp_portmon 1 65535 lport 9} ${alignr} ${tcp_portmon 1 65535 rip 9}/${tcp_portmon 1 65535 rport 9}
 ${tcp_portmon 1 65535 lip 10}/${tcp_portmon 1 65535 lport 10} ${alignr} ${tcp_portmon 1 65535 rip 10}/${tcp_portmon 1 65535 rport 10}
 ${tcp_portmon 1 65535 lip 11}/${tcp_portmon 1 65535 lport 11} ${alignr} ${tcp_portmon 1 65535 rip 11}/${tcp_portmon 1 65535 rport 11}
 ${tcp_portmon 1 65535 lip 12}/${tcp_portmon 1 65535 lport 12} ${alignr} ${tcp_portmon 1 65535 rip 12}/${tcp_portmon 1 65535 rport 12}
 ${tcp_portmon 1 65535 lip 13}/${tcp_portmon 1 65535 lport 13} ${alignr} ${tcp_portmon 1 65535 rip 13}/${tcp_portmon 1 65535 rport 13}
 ${tcp_portmon 1 65535 lip 14}/${tcp_portmon 1 65535 lport 14} ${alignr} ${tcp_portmon 1 65535 rip 14}/${tcp_portmon 1 65535 rport 14}
 ${tcp_portmon 1 65535 lip 15}/${tcp_portmon 1 65535 lport 15} ${alignr} ${tcp_portmon 1 65535 rip 15}/${tcp_portmon 1 65535 rport 15}
]];
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Screenshot 2.jpg
This is a very nice 8 core conky and has both the temperatures and frequencies in it! I cobbled it together from a 4 CPU conky. Maybe you can customize it to your own liking and use it yourself. Please post an image of yours if you do so.

Thanks!

conky.config = {
background = false,
update_interval = 1,

cpu_avg_samples = 2,
net_avg_samples = 2,
temperature_unit = 'celsius',

double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,

gap_x = 30,
gap_y = 120,
minimum_width = 280, minimum_height = 460,
maximum_width = 280,
own_window = true,
own_window_class = 'conky',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
background = false,
border_inner_margin = 0,
border_outer_margin = 0,
alignment = 'bottom_right',

draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,

override_utf8_locale = true,
use_xft = true,
font = 'DejaVu Sans:size=10',
xftalpha = 0.5,
uppercase = false,

default_color = 'white',
color1 = 'cyan',
color2 = 'white',


};

conky.text = [[
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM${font Snap.se:size=8} ${color1}${hr}${color}

${goto 10}${font OpenLogos:size=12}J${font} OS: ${execi 10800 cat /etc/issue.net}
${goto 10}${font StyleBats:size=12}q${font} Kernel: ${kernel}
${goto 10}${font StyleBats:size=12}x${font} CPU: Intel Core i7 4770k
${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD${font Snap.se:size=8} ${color1}${hr}${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font} CPU 1: ${cpu cpu 0}%${goto 120} ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 0}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 2: ${cpu cpu 1}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 3: ${cpu cpu 2}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 4: ${cpu cpu 3}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 5: ${cpu cpu 4}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 6: ${cpu cpu 5}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 7: ${cpu cpu 6}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 8: ${cpu cpu 7}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}g${font} RAM $mem / $memmax ($memperc%)
${voffset -5}
${goto 10}${font StyleBats:size=12}l${font} Nvidia MSI GTX 770 OC: ${exec nvidia-settings -t -q [gpu:0]/GPUCoreTemp} °C${goto 150}
${voffset -5}
${goto 10}${font StyleBats:size=12}g${font} HD READ: ${color white} ${diskio_read}
${voffset -5}
${goto 10}${font StyleBats:size=12}g${font} HD WRITE: ${color white} ${diskio_write}
]];
Last edited by Todd Sauve on Sat Jul 23, 2016 9:48 pm, edited 1 time in total.
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Todd Sauve wrote:This is a very nice 8 core conky and has both the temperatures and frequencies in it! I cobbled it together from a 4 CPU conky. Maybe you can customize it to your own liking and use it yourself. Please post an image of yours if you do so.
Actually you are only showing 7 cores and the "Average" of your 8 core chip.

This is a "conky" thing.
${cpu cpu0} = the 'average usage of your cores and your cores are ${cpu cpu1} to ${cpu cpu8}
Conky Objects
Conky Objects wrote: cpu (cpuN) CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
Frequency on the other hand start at 1 and can be shown as MHz or GHz
Conky Objects wrote:freq (n) Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

freq_g (n) Returns CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.
${freq 1} ${freq 2} ${freq 2} ${freq 2}

And that's for an Intel chip, AMD chips don't show separate temps or frequencies for individual cpus or cores - unless that has changed for newer AMD chips.

EDIT: Nice weather conky - what script are you using?
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip »

@Sector11 thanx for that explanation on the cpu average, all this time i was using cpu0 and cpu1 as my core 1-2, oh well still learning. now i see that one of my cores always has a higher usage than the other, and was completely neglecting core.

BTW: is there a simple script code for your public internet address? i use the wget one but that makes the conky not show up on desktop and takes a few times killing conky to get that going.

Code: Select all

${execi 900 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
Image
Sector11

Re: Conky Showoff thread

Post by Sector11 »

You're welcome trytip.

I don't bother with public internet address. The way I look at it, if I can read your post - I'm here :)
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Sector11 wrote:
Todd Sauve wrote:This is a very nice 8 core conky and has both the temperatures and frequencies in it! I cobbled it together from a 4 CPU conky. Maybe you can customize it to your own liking and use it yourself. Please post an image of yours if you do so.
Actually you are only showing 7 cores and the "Average" of your 8 core chip.

This is a "conky" thing.
${cpu cpu0} = the 'average usage of your cores and your cores are ${cpu cpu1} to ${cpu cpu8}
Conky Objects
Conky Objects wrote: cpu (cpuN) CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
Frequency on the other hand start at 1 and can be shown as MHz or GHz
Conky Objects wrote:freq (n) Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

freq_g (n) Returns CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.
${freq 1} ${freq 2} ${freq 2} ${freq 2}

And that's for an Intel chip, AMD chips don't show separate temps or frequencies for individual cpus or cores - unless that has changed for newer AMD chips.

EDIT: Nice weather conky - what script are you using?
Thanks for pointing out the 8th core average problem. If you know how to fix it please edit the conky and post it for us.

The "weather conky" is just the Weather Desklet from LM 18. I prefer it to any of the conkies I've seen.

I did not include any internet speed info in the conky because I prefer the one in the Applets package that sits in the tool bar/Panel where it can be seen without having to minimize your open programs. As for the IP info, I find it to not be necessary. If you are connected you will know it.
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Todd Sauve wrote:Thanks for pointing out the 8th core average problem. If you know how to fix it please edit the conky and post it for us.
Here you go just the important stuff - popped the code into my test conky so colours, fonts etc are wrong but the idea is there - and sensors are a 'machine' thing non-transferable AND I have an AMD triple core sooooooooooo:
Image

from one Canuck to another ... this will work for you.

Code: Select all

${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD - CPU AVG${alignr}${cpu cpu 0}%${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font} CPU 1: ${cpu cpu 1}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 2: ${cpu cpu 2}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 3: ${cpu cpu 3}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 4: ${cpu cpu 4}%${goto 120} ${execi 5 sensors|grep 'Core 4'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 5: ${cpu cpu 5}%${goto 120} ${execi 5 sensors|grep 'Core 5'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 6: ${cpu cpu 6}%${goto 120} ${execi 5 sensors|grep 'Core 6'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 7: ${cpu cpu 7}%${goto 120} ${execi 5 sensors|grep 'Core 7'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 8: ${cpu cpu 8}%${goto 120} ${execi 5 sensors|grep 'Core 8'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
${goto 50}${swapbar 0,20}  SHORTCUT KEYS  ${swapbar 0,20}${goto 70}${voffset -9}${swapbar 20,119}
Todd Sauve wrote:The "weather conky" is just the Weather Desklet from LM 18. I prefer it to any of the conkies I've seen.
OH OK ... I like Teo's scripts, and to be honest I though that what you were using. :)
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Conky Showoff thread

Post by Todd Sauve »

Sector11 wrote:
Todd Sauve wrote:Thanks for pointing out the 8th core average problem. If you know how to fix it please edit the conky and post it for us.
Here you go just the important stuff - popped the code into my test conky so colours, fonts etc are wrong but the idea is there - and sensors are a 'machine' thing non-transferable AND I have an AMD triple core sooooooooooo:
Image

from one Canuck to another ... this will work for you.

Code: Select all

${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD - CPU AVG${alignr}${cpu cpu 0}%${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font} CPU 1: ${cpu cpu 1}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 2: ${cpu cpu 2}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 3: ${cpu cpu 3}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 4: ${cpu cpu 4}%${goto 120} ${execi 5 sensors|grep 'Core 4'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 5: ${cpu cpu 5}%${goto 120} ${execi 5 sensors|grep 'Core 5'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 6: ${cpu cpu 6}%${goto 120} ${execi 5 sensors|grep 'Core 6'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 7: ${cpu cpu 7}%${goto 120} ${execi 5 sensors|grep 'Core 7'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 8: ${cpu cpu 8}%${goto 120} ${execi 5 sensors|grep 'Core 8'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
${goto 50}${swapbar 0,20}  SHORTCUT KEYS  ${swapbar 0,20}${goto 70}${voffset -9}${swapbar 20,119}
Todd Sauve wrote:The "weather conky" is just the Weather Desklet from LM 18. I prefer it to any of the conkies I've seen.
OH OK ... I like Teo's scripts, and to be honest I though that what you were using. :)
Hi,

Something is not right as I am losing all my temperatures on CPUs 4 through 8. I don't know why. Maybe check your code again?

Thanks!

Todd
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Todd Sauve wrote:Hi,

Something is not right as I am losing all my temperatures on CPUs 4 through 8. I don't know why. Maybe check your code again?

Thanks!

Todd
Well, we've both made an OOPSIE! I think

Your original code has temps for "Core 3" 5 times. So when I changed them to reflect 4, 5, 6, 7.

Do you have a Quad Core CPU that has had the hidden cores unlocked? As I said I'm not an Intel guy I use an AMD.

Could you post the output of "sensors" and put it inside code blocks please.

Code: Select all

[code]Terminal output in code blocks
[/code]like this.

Code: Select all

 23 Jul 16 @ 13:33:50 ~
  $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.35 V  
in2:          +1.51 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +2.99 V  
fan1:        2222 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +41.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +42.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +31.6°C  (high = +70.0°C)
 
 23 Jul 16 @ 13:33:55 ~
  $ 
I'm guessing you only have temps for the first 4 cores.

It would take an "Intel" user to do this properly ... for example if a quad core is unlocked is it like this:

Core 0 - Unlocked as Core 4
Core 1 - Unlocked as Core 5
Core 2 - Unlocked as Core 6
Core 3 - Unlocked as Core 7

If so
Temperature for Core 0 = temp for Core 4
Temperature for Core 1 = temp for Core 5
Temperature for Core 2 = temp for Core 6
Temperature for Core 3 = temp for Core 7

And that is the way I have this set up:

Code: Select all

${voffset -5}
${goto 5}${font zekton:style=Bold:pixelsize=14}${color2}SYSTEM LOAD - CPU AVG${alignr}${cpu cpu 0}%${color}
${voffset -5}
${goto 10}${font StyleBats:size=12}A${font} CPU 1: ${cpu cpu 1}%${goto 120} ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 1} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 2: ${cpu cpu 2}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 2} MHz
${goto 5}${color1}${cpubar cpu 1}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 3: ${cpu cpu 3}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 3} MHz
${goto 5}${color1}${cpubar cpu 2}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 4: ${cpu cpu 4}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 4} MHz
${goto 5}${color1}${cpubar cpu 3}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 5: ${cpu cpu 5}%${goto 120} ${execi 5 sensors|grep 'Core 0'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 5} MHz
${goto 5}${color1}${cpubar cpu 4}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 6: ${cpu cpu 6}%${goto 120} ${execi 5 sensors|grep 'Core 1'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 6} MHz
${goto 5}${color1}${cpubar cpu 5}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 7: ${cpu cpu 7}%${goto 120} ${execi 5 sensors|grep 'Core 2'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 7} MHz
${goto 5}${color1}${cpubar cpu 6}${color}
${goto 10}${font StyleBats:size=12}A${font} CPU 8: ${cpu cpu 8}%${goto 120} ${execi 5 sensors|grep 'Core 3'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C ${alignr}${freq 8} MHz
${goto 5}${color1}${cpubar cpu 7}${color}
${voffset -5}
${goto 50}${swapbar 0,20}  SHORTCUT KEYS  ${swapbar 0,20}${goto 70}${voffset -9}${swapbar 20,119}
Locked

Return to “Compiz, Conky, Docks & Widgets”