So I have a conky script/theme? running and the only thing not working is the Ethernet.
Here is my conky config file.
conky.config = {
--Various settings
background = true, -- forked to background
cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring.
diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
net_avg_samples = 2, -- The number of samples to average for net data
no_buffers = true, -- Subtract (file system) buffers from used memory?
temperature_unit = 'celsius', -- fahrenheit or celsius
text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
update_interval = 1, -- update interval
imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
--Placement
alignment = 'middle_left', -- top-left,top-middle,top-right,bottom-left,bottom-middle,bottom-right,
-- middle-left,middle-middle,middle-right,none
--Arch Duoscreen
--gap_x = -1910,
gap_x = 10, -- pixels between right or left border
gap_y = 20, -- pixels between bottom or left border
minimum_height = 700, -- minimum height of window
minimum_width = 280, -- minimum height of window
maximum_width = 280, -- maximum height of window
--Graphical
border_inner_margin = 10, -- margin between border and text
border_outer_margin = 1, -- margin between border and edge of window
border_width = 0, -- border width in pixels
default_bar_width = 280, -- default is 0 - full width
default_bar_height = 10, -- default is 6
default_gauge_height = 25, -- default is 25
default_gauge_width =40, -- default is 40
default_graph_height = 40, -- default is 25
default_graph_width = 153, -- default is 0 - full width
default_shade_color = '#000000', -- default shading colour
default_outline_color = '#000000', -- default outline colour
draw_borders = false, -- draw borders around text
draw_graph_borders = true, -- draw borders around graphs
draw_shades = false, -- draw shades
draw_outline = false, -- draw outline
stippled_borders = 0, -- dashing the border
--Textual
extra_newline = false, -- extra newline at the end - for asesome's wiboxes
format_human_readable = true, -- KiB, MiB rather then number of bytes
font = 'SourceSansPro-ExtraLight:size=11:oblique', -- font for complete conky unless in code defined
max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
max_user_text = 16384, -- max text in conky default 16384
override_utf8_locale = true, -- force UTF8 requires xft
short_units = true, -- shorten units from KiB to k
top_name_width = 21, -- width for $top name value default 15
top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false.
uppercase = false, -- uppercase or not
use_spacer = 'none', -- adds spaces around certain objects to align - default none
use_xft = true, -- xft font - anti-aliased font
xftalpha = 1, -- alpha of the xft font - between 0-1
--Windows
own_window = true, -- create your own window to draw
own_window_argb_value = 150, -- real transparency - composite manager required 0-255
own_window_argb_visual = true, -- use ARGB - composite manager required
own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop
own_window_colour = '#000000', -- set colour if own_window_transparent no
own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
own_window_transparent = no, -- if own_window_argb_visual is true sets background opacity 0%
own_window_title = 'system_conky', -- set the name manually - default conky "hostname"
own_window_type = 'normal', -- if own_window true options are: normal/override/dock/desktop/panel
--Colours
default_color = '#000000', -- default color and border color
color1 = '#888888',
color2 = '#AAAAAA',
color3 = '#cccccc',
color4 = '#BDBDBD',
color5 = '#CCCCCC',
color6 = '#aa0000',
color10 = '#000000',
--Signal Colours
color7 = '#1F7411', --green
color8 = '#FFA726', --orange
color9 = '#F1544B', --firebrick
--Lua
};
conky.text = [[
${image ~/.config/conky/antergos2.png -p 190,15 -s 80x80 -f 5}
${color1}${font SourceSansPro-ExtraLight:size=19:weight:bold}${color1}Antergos
${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${color6}$sysname $kernel
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Uptime ${alignr}${color6} $uptime
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Cpu Temp ${alignr}${color6}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
${color1}${color1}Cpu Freq ${alignr}${color6}${freq_g} Ghz
#check sensors conky widget to see your sensor names and change these here
#${color1}${color1}MB Temp ${alignr}${color6}${execi 10 sensors | grep 'MB Temperature' | awk {'print $3'}}
#ALT 1 : ${color1}MB Temp ${alignr}${color6}${execi 10 sensors | grep 'temp1' | awk {'print $2'}}
#${color1}${color1}Cpu Fan ${alignr}${color6}${execi 10 sensors | grep 'CPU FAN' | awk {'print $4$5'}}
#${color1}${color1}Power Fan ${alignr}${color6}${execi 10 sensors | grep 'POWER FAN Speed' | awk {'print $4$5'}}
${color1}${color1}Motherboard ${alignr}${color6}${execi 6000 dmidecode |grep -n2 Base |grep Produ |awk {'print $4'}}
# this works too sudo dmidecode -s system-product-name
${color1}Manufacturer ${alignr}${color6}${execi 6000 dmidecode |grep -n2 Base |grep Manu |awk {'print $3'}}
${color1}${cpubar cpu0 10,150}${color1} CPU ${alignr}${if_match ${cpu cpu0} > 80}${color9}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%
${if_existing /proc/acpi/battery/BAT0/info}${if_match ${battery_percent BAT0} <= 20}${color3}${battery_bar 10,150 BAT0} Battery${alignr}${color7}${battery_percent BAT0}%${else}${color1}${battery_bar 10,150 BAT0} Battery${alignr}${color1}${battery_percent BAT0}%${endif}${else}${voffset -20}${endif}
${color1}${membar 10,150} MEM ${alignr}${if_match ${memperc} > 80}${color9}${else}${color6}${endif}${color6}${memperc}%
${color1}Total Processes${alignr}${color6}${processes}
${color1}Running processes${color6}${alignr}${running_processes}
${color1}Load${alignr}${color6}${loadavg}
#arch linux ${color1}Packages Upgrades${alignr}${color6}${execi 3600 checkupdates | wc -l}
${color1}Packages Upgrades${alignr}${color6}${execi 3600 aptitude search "~U" | wc -l | tail}
${font SourceSansPro-ExtraLight size=12:weight:bold}${color1}CPU ${color6} Intel Core i7 4770K
${color6}${hr 2}
# Showing TOP 5 CPU-consumers
${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color1}${top name 1}${alignr}${color6}${top cpu 1}%${font}
${offset 30}${color1}${top name 2}${alignr}${color6}${top cpu 2}%
${offset 30}${color1}${top name 3}${alignr}${color6}${top cpu 3}%
${offset 30}${color1}${top name 4}${alignr}${color6}${top cpu 4}%
${offset 30}${color1}${top name 5}${alignr}${color6}${top cpu 5}%
${offset 30}${color1}${top name 6}${alignr}${color6}${top cpu 6}%
${if_existing /proc/net/route en}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}
${color6}${hr 2}
Ethernet
${offset 10}${color1}Up ${color6}${totalup enp2s0}${color1}${alignr}${color6}${totaldown enp2s0} ${color1}Down
${offset 10}${color1}Up ${color6}${upspeed enp2s0}${color1}${alignr}${color6}${downspeed enp2s0} ${color1}Down
#${upspeedgraph enp2s0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph enp2s0 40,300 324D23 77B753 10000000 -l -t}
${else}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Wireless
${offset 10}${color1}Up ${color1}${totalup wlan0}${color1}${alignr}${color1}${totaldown wlan0} Down
${offset 10}${color1}Up ${color1}${upspeed wlan0}${color1}${alignr}${color1}${downspeed wlan0} Down
#${upspeedgraph wlan0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph wlan0 40,300 324D23 77B753 10000000 -l -t}
${endif}\
]]
Vnstat is running and enabled. My network connection is called wlan0 as far as I can see. Here is the vnstat config file.
# vnStat 1.17 config file
##
# default interface
Interface "wlan0"
# location of the database directory
DatabaseDir "/var/lib/vnstat"
# locale (LC_ALL) ("-" = use system locale)
Locale "-"
# on which day should months change
MonthRotate 1
# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat "%x"
MonthFormat "%b '%y"
TopFormat "%x"
# characters used for visuals
RXCharacter "%"
TXCharacter ":"
RXHourCharacter "r"
TXHourCharacter "t"
# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
# 1 = old style binary prefixes (KB/MB/GB/TB)
UnitMode 0
# how units are prefixed when traffic rate is shown
# 0 = IEC binary prefixes (Kibit/s...)
# 1 = SI decimal prefixes (kbit/s...)
RateUnitMode 1
# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 3
# used rate unit (0 = bytes, 1 = bits)
RateUnit 1
# try to detect interface maximum bandwidth, 0 = disable feature
# MaxBandwidth will be used as fallback value when enabled
BandwidthDetection 1
# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 1000
# interface specific limits
# example 8Mbit limit for eth0 (remove # to activate):
#MaxBWeth0 8
# how many seconds should sampling for -tr take by default
Sampletime 5
# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top10
# 4 = exportdb, 5 = short, 6 = weeks, 7 = hours
QueryMode 0
# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1
# database file locking (1 = enabled, 0 = disabled)
UseFileLocking 1
# how much the boot time can variate between updates (seconds)
BootVariation 15
# log days without traffic to daily list (1 = enabled, 0 = disabled)
TrafficlessDays 1
# vnstatd
##
# switch to given user when started as root (leave empty to disable)
DaemonUser ""
# switch to given user when started as root (leave empty to disable)
DaemonGroup ""
# how often (in seconds) interface data is updated
UpdateInterval 30
# how often (in seconds) interface status changes are checked
PollInterval 5
# how often (in minutes) data is saved to file
SaveInterval 5
# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 30
# how often (in minutes) bandwidth detection is redone when
# BandwidthDetection is enabled (0 = disabled)
BandwidthDetectionInterval 5
# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1
# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2
# create dirs if needed (1 = enabled, 0 = disabled)
CreateDirs 1
# update ownership of files if needed (1 = enabled, 0 = disabled)
UpdateFileOwner 1
# file used for logging if UseLogging is set to 1
LogFile "/var/log/vnstat/vnstat.log"
# file used as daemon pid / lock file
PidFile "/var/run/vnstat/vnstat.pid"
# vnstati
##
# title timestamp format
HeaderFormat "%x %H:%M"
# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1
# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1
# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1
# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0
# image colors
CBackground "FFFFFF"
CEdge "AEAEAE"
CHeader "606060"
CHeaderTitle "FFFFFF"
CHeaderDate "FFFFFF"
CText "000000"
CLine "B0B0B0"
CLineL "-"
CRx "92CF00"
CTx "606060"
CRxD "-"
CTxD "-"
Any ideas why it would not be working (conky shows no data, everything is there to show the numbers, but it just stays at 0B).