Help with Conky config LM18.1

Forum rules
Before you post please read how to get help
User avatar
idle
Level 2
Level 2
Posts: 99
Joined: Tue Aug 18, 2015 8:25 am

Help with Conky config LM18.1

Postby idle » Thu Jan 05, 2017 8:27 am

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 idle on Sat Jan 07, 2017 6:08 am, edited 1 time in total.

User avatar
idle
Level 2
Level 2
Posts: 99
Joined: Tue Aug 18, 2015 8:25 am

Re: Help with Conky config LM18.1

Postby idle » Sat Jan 07, 2017 6:06 am

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
Level 13
Level 13
Posts: 4866
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Help with Conky config LM18.1

Postby Habitual » Sat Jan 07, 2017 7:26 am

Post your conky config file please.

User avatar
idle
Level 2
Level 2
Posts: 99
Joined: Tue Aug 18, 2015 8:25 am

Re: Help with Conky config LM18.1

Postby idle » Sat Jan 07, 2017 7:31 am

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,}

User avatar
idle
Level 2
Level 2
Posts: 99
Joined: Tue Aug 18, 2015 8:25 am

Re: Help with Conky config LM18.1

Postby idle » Mon Jan 09, 2017 5:14 am

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 19
Level 19
Posts: 9040
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Help with Conky config LM18.1

Postby Pjotr » Mon Jan 09, 2017 6:13 am

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 18.3 Sylvia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Habitual
Level 13
Level 13
Posts: 4866
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Help with Conky config LM18.1

Postby Habitual » Mon Jan 09, 2017 7:51 am

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
Image

User avatar
idle
Level 2
Level 2
Posts: 99
Joined: Tue Aug 18, 2015 8:25 am

Re: Help with Conky config LM18.1

Postby idle » Mon Jan 09, 2017 8:25 am

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}


Return to “Compiz, Conky, Docks, & Widgets”