Help with Conky config LM18.1

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
idle

Help with Conky config LM18.1

Post by idle »

Hi,

Will someone be so kind to help me set up Conky so everything works? Here's what it looks like so far:

Image

What do I need to adjust in the config file?

Thanks for the help :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
idle

Re: Help with Conky config LM18.1

Post by idle »

I've made some changes from the image above, but I can find how to change the clock format. Anyone know what I need to change in the config file to change time format?

Image

Also the the CPU / GPU temps. I seem to have two temp readouts for the GPU. I am wanting to get rid of the one on the bottom left and just leave the two temp readouts in the center.

This is the line that I have, can anyone explain what I need to change.

Code: Select all

$alignc${color7}CPU: ${color3}${hwmon 0 temp 1}°C ${color7}GPU: ${color3}${execi 60 nvidia-settings -t -q GPUCoreTemp}°C
Thanks :mrgreen:
Habitual

Re: Help with Conky config LM18.1

Post by Habitual »

Post your conky config file please.
idle

Re: Help with Conky config LM18.1

Post by idle »

Thanks for the help :D

I managed to find the time format searching online. Its just the temps and any other problems you my find as I've butchered the config file a bit today :P

Code: Select all

#========================================================================
# Conky-Serdar
#----------------------------------------------------------------------
#sudo apt-get install conky
#extract the zip file and move files to .conky in your home folder
#----------------------------------------------------------------------
#Run(Terminal): 
# conky -c ~/.conky/conkyrc
#----------------------------------------------------------------------
#Autostart(Openbox):
# sudo leafpad .config/openbox/autostart
#add these lines below for autostart (without first #)
# # System Info
# conky -c ~/.conky/conkyrc &
#----------------------------------------------------------------------
#Autostart(Ubuntu/Gnome): create conky-startup.sh paste below (without first #)
# #!/bin/bash
# conky -c ~/.conky/conkyrc ;
#alt+F2 type gnome-session-properties add line below to your startup section
# .conky/conky-startup.sh
#
#	Gnome 14 and later
#
#	cp ~/.conky/conky.desktop /usr/share/gnome/autostart/
#
#	or
#
#	gedit /usr/share/gnome/autostart/conky.desktop
#	addlines below;
#
##	#conky.desktop
##	[Desktop Entry]
##	Type=Application
##	Name=Conky
##	Comment=Start conky script
##	Exec=.conky/conky-startup.sh
##	OnlyShowIn=GNOME;
##	X-GNOME-Autostart-Phase=Application
#----------------------------------------------------------------------
#Autostart(LXDE)
# sudo leafpad  /etc/xdg/lxsession/LXDE/autostart
#add (without first #)
# @conky -c ~/.conky/conkyrc
#----------------------------------------------------------------------
# Disable a section, add "#" beginning of the line
#----------------------------------------------------------------------
# For quad/dual core processors add/remove "#" beginning of the core2,3,4
#
# CPU Info: cat /proc/cpuinfo
#----------------------------------------------------------------------
# Battery Info: ls /proc/acpi/battery > cat /proc/acpi/battery/****/info
# For battery info add/remove "#" beginning of the battery line
#----------------------------------------------------------------------
# alignment b=bottom t=top l=left r=right
#----------------------------------------------------------------------
# Nvidia gpu temp: apt-get install nvidia-settings
#
#========================================================================

background yes
update_interval 1
total_run_times 0

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 05
gap_y 40
minimum_size 190 325
maximum_width 325
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
own_window_argb_visual yes
own_window_argb_value 255
border_inner_margin 0
border_outer_margin 0
alignment tr

draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders yes

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color DeepSkyBlue
color1 Orange
color2 Green
color3 Red
color4 Yellow
color5 DDDDDD
color6 AAAAAA
color7 888888
color8 666666

TEXT

${color1}${font :Bold:size=14} $alignc ${time %I:%M %p}
${color}${font :Bold:size=14} $alignc ${time %h} ${time %e} - ${time %Y}${font :Bold:size=08} 
$alignc(${time %A})
${color8}$alignc Uptime: $uptime
${color8}${hr 2} 
${color5}$alignc Linux Mint 18.1 Serena  * ${color5}$alignc $sysname $kernel
${color5}$alignc ${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color8}${hr 2}
$alignc${color7}CPU: ${color3}${hwmon 0 temp 1}°C ${color7}GPU: ${color3}${execi 60 nvidia-settings -t -q GPUCoreTemp}°C 
${color}${cpubar 8,325}:${color5}$cpu%
${color7}Core1: ${color}${cpubar cpu1 7,80} ${color7}${cpu cpu1}% $alignr${color7}${cpu cpu2}%${color}${cpubar cpu2 7,80}${color7} :Core2
${color7}Core3: ${color}${cpubar cpu3 7,80} ${color7}${cpu cpu3}% $alignr${color7}${cpu cpu4}%${color}${cpubar cpu4 7,80}${color7} :Core4
${color}${cpugraph 15,}
${color5}Process Name ${color5}$alignr CPU% MEM%
${color6}${top name 1}$alignr${top cpu 1}   ${top mem 1}
${color7}${top name 2}$alignr${top cpu 2}   ${top mem 2}
${color8}${top name 3}$alignr${top cpu 3}   ${top mem 3}
${color8}${top name 4}$alignr${top cpu 4}   ${top mem 4}

${color4}Memory
${color6}RAM : ${color5}($memmax)${alignr}${color6}$mem${color}${membar 8,75}
${color6}SWAP: ${color5}($swapmax)${alignr}${color6}$swap${color}${swapbar 8,75}

${color8}${hr 4}

${color4}HDD
${color5}Linux:${color1}(${fs_type})${alignr}${color7}${fs_used /}  <  >  ${color7}${fs_free /}
${color8}Total: ${fs_size /}${alignr}${color}${fs_bar 8,150}

${color5}Windows:${color1}(${fs_type /run/media/Windows})${alignr}${color7}${fs_used /run/media/Windows}  <  >  ${color7}${fs_free /run/media/Windows}
${color8}Total: ${fs_size /run/media/Windows}${alignr}${color}${fs_bar 8,150 /run/media/Windows}

${color5}Extra:${color1}(${fs_type /run/media/Extra})${alignr}${color7}${fs_used /run/media/Extra}  <  >  ${color7}${fs_free /run/media/Extra}
${color8}Total: ${fs_size /run/media/Extra}${alignr}${color}${fs_bar 8,150 /run/media/Extra}

${color7}HDD Read-> ${alignc}${color2}${diskio_read}/s ${alignr}${color3}${diskio_write}/s ${color7}<-HDD Write
${color2}${diskiograph_read 8,150} ${alignr}${color3}${diskiograph_write 8,150}${color}

${color8}${hr 4}

${color4}Lan${color} ${alignr}${color7}IP: ${addr enp4s0}
${color7}Download: ${color2}${downspeed enp4s0} k/s ${alignr} $alignr${color7}Upload: ${color3} ${upspeed enp4s0} k/s
${color2}${downspeedgraph enp4s0 8,150} ${alignr}${color3}${upspeedgraph enp4s0 8,150}
${color7}Total:${color2}${totaldown enp4s0} ${alignr}${color7}Total:${color3}${totalup enp4s0}

${color4}Wifi${alignr}${color7}IP: ${addr wlan0}
${color7}ESSID:${color1}${wireless_essid wlan0} ${color7}Rate:${color1}${wireless_bitrate wlan0} ${alignr}${color7}Quality:${color1}${wireless_link_qual_perc wlan0}%${color}${wireless_link_bar 8,75 wlan0}
${color7}Download: ${color2}${downspeed wlan0}KB/s ${color3} $alignr${color7}Upload: ${alignr}${color3}${upspeed wlan0}KB/s
${color2}${downspeedgraph wlan0 8,150} ${alignr}${color3}${upspeedgraph wlan0 8,150}
${color7}Total:${color2}${totaldown wlan0} ${alignr}${color7}Total:${color3}${totalup wlan0}

${color8}${hr 4}

${color4}Battery${color1}${alignc}
${color7}Charging: $color${execi 60 cat /sys/class/power_supply/BAT1}${font Liberation Mono:bold:size=9} ${goto 190}${battery_bar 10,147 BAT1} ${if_match ${battery_percent BAT1} >= 50 }${goto 255}${color 222222}${battery_percent BAT1}%${color}${endif} ${if_match ${battery_percent BAT1} < 50 }${goto 255}${color0}${battery_percent BAT1}%${color}${endif}

${color}${battery_bar BAT1  8,}
idle

Re: Help with Conky config LM18.1

Post by idle »

I've also noticed that the download total is massive. Turned on pc this morning, but have been out all day. Come home and it says total downloads is 1.66GB :shock:

Is this right, is there a program to check this? or a different Conky config for LAN?
User avatar
Pjotr
Level 24
Level 24
Posts: 20072
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Help with Conky config LM18.1

Post by Pjotr »

You might find some ideas about configuring Conky in the example configs on my website:
https://sites.google.com/site/easylinux ... forxubuntu

About the download amount: you might be suffering from the default setting for browser.sessionstore.interval in Firefox: https://www.servethehome.com/firefox-is ... to-fix-it/
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Habitual

Re: Help with Conky config LM18.1

Post by Habitual »

idle wrote:I've also noticed that the download total is massive. Turned on pc this morning, but have been out all day. Come home and it says total downloads is 1.66GB :shock:

Is this right, is there a program to check this? or a different Conky config for LAN?
enp4s0 says the script. so that must be RX or TX or both in

Code: Select all

ifconfig enp4s0
idle

Re: Help with Conky config LM18.1

Post by idle »

Habitual:
enp4s0 Link encap:Ethernet HWaddr d8:cb:8a:ee:ba:b5
inet addr:192.168.0. xx Bcast:192.168.0. xx Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42328 errors:0 dropped:0 overruns:0 frame:0
TX packets:26869 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:51414723 (51.4 MB) TX bytes:4683744 (4.6 MB)
Interrupt:19
I've rebooted since posting as I was following Pjotr guide and had to reboot after updating GRUB.

I'm also now trying a different Conky Network Config to see if that changes anything:

Code: Select all

${color0}Public IP: ${color}${execi 3600 curl -s http://icanhazip.com}
${color0}${execpi 600 ruby ./scripts/network_general_info.rb}
${color0}${goto 20}Down speed: $color${downspeed wlp3s0} ${goto 200}${color0}Up speed: $color${upspeed wlp3s0}
$color${downspeedgraph wlp3s0 12,150 303030 00ff00} ${alignr}$color${upspeedgraph wlp3s0 12,150 303030 ff0000}
${color0}Total down: $color${totaldown wlp3s0} ${goto 180}${color0}Total up: $color${totalup wlp3s0}
${color0}Inbound connections: $color${tcp_portmon 1 32767 count}
${color0}Outbound connections: $color${tcp_portmon 32768 61000 count}
${color0}Proto  Address ${goto 222}Name${color}${font Liberation Mono:bold:size=9}
${execpi 6 ruby ./scripts/netstat.rb}
Locked

Return to “Compiz, Conky, Docks & Widgets”