I love how every time I come back here there are so many new configs which exceed my capabilities
I have a problem. Conky is calling vnstat for the total network traffic monitor. Code:
Code:
${color #ddaa00}Month Total Down: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
${color #ddaa00}Month Total Up: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
Nothing is showing up in the conky display. The conkyrc file is the exact same one that I used earlier. (I repartitioned the drive a bit back to install Windows 7, XP (for special purposes) and 10.04LTS. I should go back to Linux for a little while to get an idea of how much data I average per month. Last I checked it was about 8GiB down, 1GiB up. I don't have anything in Windows 7 to match Conky.)
The console shows "Segmentation fault" that is returned. I commented out the two vnstat lines and the fault is not returned. You'll see what it is supposed to look like in this photo of last year:
Here's my entire .conkyrc file (and yes vnstat is installed):
Code:
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
background yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
use_xft yes
# window size controls
minimum_size 170 570 ## width, height
maximum_width 170 ## width
# Update interval in seconds
update_interval 3.0
# Minimum size of text area
minimum_size 160
# Draw shades?
draw_shades yes
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white
own_window_colour brown
own_window_transparent yes
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 5
gap_y 5
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale yes
xftfont Terminus:size=8
xftalpha 0.8
TEXT
${color #FF6666} SYSTEM PROFILE
${color slate grey}System: ${color }Th${color FF0000}i${color }nkPad X200 P8400
${color slate grey}Computer Name: ${color }$nodename
${color slate grey}Kernel: ${color }$kernel
${color slate grey}Distro: ${color }${pre_exec lsb_release -d | cut -f 2 } x64
${color slate grey}Uptime: ${color }$uptime
${color slate grey}Battery: ${color }${battery_percent}% ${if_match ${battery_percent BAT0} <= 30}${color red}${battery_bar BAT0}${color}${endif}${if_match ${battery_percent BAT0} >= 31}${if_match ${battery_percent BAT0} <=49}${color orange}${battery_bar}${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 50}${if_match ${battery_percent BAT0} <=69}${color yellow}${battery_bar BAT0}${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 70}${if_match ${battery_percent BAT0} <=99}${color green}${battery_bar BAT0 }${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 100}${color green}${battery_bar BAT0 }${color}${endif}
${color #FF6666} SYSTEM SUMMARY
${color slate grey}CPU: ${color } $freq MHz at ${acpitemp}°C
${color slate grey}Core A: ${color }${cpu cpu1}% ${alignr}${cpubar cpu1 9,80}
${color slate grey}Core B: ${color }${cpu cpu2}% ${alignr}${cpubar cpu2 9,80}
${color slate grey}Load: ${alignr}${font Monospace:size=8}${color #6699FF}1.00 = 50% ${color #DDDD66}2.00 = 100%${font}
${color }${color #66FFFF}${loadavg 1} ${color #66FFFF}${loadavg 2} ${color #66FFFF}${loadavg 3} ${color #66FFFF}1${color slate grey} / ${color #66FFFF}5${color slate grey} / ${color #66FFFF}15${color slate grey}min
${color slate grey}Swap: ${color } ${alignr}$swap ${color slate grey}of ${color } $swapmax
${color slate grey}Memory:${color } ${alignr}$mem ${color slate grey}of ${color } $memmax
${color slate grey}Usage: ${alignr}${color }$memperc% ${membar 9,80}
${color slate grey}Storage: ${alignr}${color }${fs_used /} ${color slate grey}of ${color }${fs_size /}
${color slate grey}Free: ${alignr}${color }${fs_free /} ${fs_bar 9,80 /}
${color #FF6666} ACTIVE PROCESSES
${color slate grey}Processes: ${color }$processes ${alignr}${color slate grey}Running: ${color }$running_processes
${color #3366FF}Process Name: ${alignr}% CPU
${color #ddaa00}${top name 1} ${alignr}${top_mem cpu 1}
${color slate grey}${top name 2} ${alignr}${top cpu 2}
${color slate grey}${top name 3} ${alignr}${top cpu 3}
${color slate grey}${top name 4} ${alignr}${top cpu 4}
${color slate grey}${top name 5} ${alignr}${top cpu 5}
${color #FF6666} NETWORK NUMBERS
${color #FF0000}${if_empty ${exec cat /proc/net/arp | grep eth0}}${if_empty ${exec cat /proc/net/arp | grep wlan0}}No network connection
${else}${color slate grey}Internal IP: ${alignr}${color }${addr wlan0}
${color slate grey}External IP: ${color }${alignr}${execi 1800 wget -O - http://ip.tupeux.com | tail}
${color slate grey}Router: ${alignr}${color }${wireless_essid wlan0}
${color slate grey}Signal: ${color }${wireless_link_qual_perc wlan0}% ${alignr}${color }${wireless_bitrate wlan0}
${color slate grey}Down: ${color }${downspeed wlan0} ${color slate grey}${alignr}Up: ${color }${upspeed wlan0}
${color slate grey}Session Total Down: ${alignr}${color }${totaldown wlan0}
${color slate grey}Session Total Up: ${alignr}${color }${totalup wlan0}
${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
${else}${color slate grey}LAN IP: ${alignr}${color }${addr eth0}
${color slate grey}External IP: ${color } ${alignr}${execi 1800 curl ifconfig.me}
${color slate grey}Down: ${color }${downspeed eth0} ${alignr}${color slate grey}Up: ${color }${upspeed eth0}
${color slate grey}Session Total Down: ${alignr}${color }${totaldown eth0}
${color slate grey}Session Total Up: ${alignr}${color }${totalup eth0}
${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
#${color #ddaa00}Month Total Down: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
#${color #ddaa00}Month Total Up: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
Bookmarks