# CONKY
#
http://conky.sourceforge.net/config_settings.html# install lm_sensors - для температуры CPU, GPU и проч.
# hddtemp
# sudo dpkg-reconfigure hddtemp, если hddtemp не заработал, nc localhost 7634
# vnstat - трафик сети
# di - подробная инфа дисков
# CONKY
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type desktop #normal,override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 0
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft yes
xftfont Dejavu Sans Mono:size=10
# Update interval in seconds
update_interval 1
# Minimum size of text area
minimum_size 350 600
maximum_width 300
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
# font arial
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color 444444
background false
# 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 10
gap_y 35
# Colors w/b
color1 FFFFFF # white
color2 858585 # grey
color3 444444 # dark grey
color4 000000 # black
color5 5454FF # light blue
# Colors red
color6 FF5151 # light red
color7 00D200 # light green
color8 FF5400 # orange
# Colors green
color9 FF0000 # red
# stuff after 'TEXT' will be formatted on screen
TEXT
$nodename ${alignr}Debian 8.5 Jessie x86
${alignc}Uptime: ${uptime}
${font :bold}${color3}CPU$font $color ${color1}${hr 3}$color
${execi 3600 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //' | cut -c1-10,39-44}
${alignc} ${freq}MHz
$cpu % ${color5}$cpubar$color
${color3}${cpugraph cpu1 30,110}$color ${cpu cpu1}% ${cpu cpu2}% ${color3}${cpugraph cpu2 30,110}$color
${color4}NAME PID CPU% MEM%$color
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${font :bold}${color3}Memory$font $color ${color1}${hr 3}$color
$mem of $memmax
$memperc% ${color7}${membar 6}$color
$swap of $swapmax
$swapperc% ${color7}${swapbar 6}$color
${font :bold}${color3}Temperature$font $color ${color1}${hr 3}$color
CPU: ${color9}${hwmon temp 01}°С$color ${alignr}SDA: ${color9}${execi 60 nc localhost 7634 | cut -c27-28} °С$color
${font :bold}${color3}Disks$color ${color6}R: $color${diskio_read} ${color5}W: $color${diskio_write}$font
${diskiograph /dev/sda 50 -t}
/ ${fs_used /} of ${fs_size /} ${alignr}${fs_free /}
${color7}${fs_bar 6 /}$color
/home ${fs_used /home} of ${fs_size /home} ${alignr}${fs_free /home}
${color7}${fs_bar 6 /home/vitaliy}$color
${font :bold}${color3}Network$font $color ${color1}${hr 3}$color
${alignr}${texeci 60 curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
# WLAN 0
${if_existing /proc/net/route wlan0}\
${alignr}${addr wlan0}
# WLAN 1
${else}${if_existing /proc/net/route wlan1}\
${alignr}${addr wlan1}
# ETH 0
${else}${if_existing /proc/net/route eth0}\
${alignr}${addr eth0}
# ETH 1
${else}${if_existing /proc/net/route eth1}\
${alignr}${addr eth1}
# USB 0
${else}${if_existing /proc/net/route usb0}\
${alignr}${addr usb0}
# USB 1
${else}${if_existing /proc/net/route usb1}\
${alignr}${addr usb1}
${endif}${endif}${endif}${endif}${endif}${endif}#
#
# Trafic
#
# WLAN 0
${if_existing /proc/net/route wlan0}#
Down: {downspeed wlan0}/s Up: ${upspeed wlan0}/s
${color3}${downspeedgraph wlan0 40,140 9000} ${alignr}${upspeedgraph wlan0 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i wlan0| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i wlan0| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i wlan0| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i wlan0| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i wlan0| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i wlan0| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
# WLAN 1
${else}${if_existing /proc/net/route wlan1}#
Down: ${downspeed wlan1}/s Up: ${upspeed wlan1}/s
${color3}${downspeedgraph wlan1 40,140 9000} ${alignr}${upspeedgraph wlan1 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i wlan1| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i wlan1| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i wlan1| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i wlan1| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i wlan1| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i wlan1| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
# ETH 0
${else}${if_existing /proc/net/route eth0}#
Down: ${downspeed eth0}/s Up: ${upspeed eth0}/s
${color3}${downspeedgraph eth0 40,140 9000} ${alignr}${upspeedgraph eth0 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i eth0| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i eth0| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i eth0| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i eth0| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i eth0| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i eth0| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
# ETH 1
${else}${if_existing /proc/net/route eth1}#
Down: ${downspeed eth1}/s Up: ${upspeed eth1}/s
${color3}${downspeedgraph eth1 40,140 9000} ${alignr}${upspeedgraph eth1 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i eth1| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i eth1| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i eth1| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i eth1| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i eth1| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i eth1| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
# USB 0
${else}${if_existing /proc/net/route usb0}#
Down: ${downspeed usb0}/s Up: ${upspeed usb0}/s
${color3}${downspeedgraph usb0 40,140 9000} ${alignr}${upspeedgraph usb0 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i usb0| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i usb0| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i usb0| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i usb0| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i usb0| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i usb0| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
# USB 1
${else}${if_existing /proc/net/route usb1}#
Down: ${downspeed usb1}/s Up: ${upspeed usb1}/s
${color3}${downspeedgraph usb1 40,140 9000} ${alignr}${upspeedgraph usb1 40,140 9000}$color
Today: ${goto 60}${texeci 10 vnstat -i usb1| grep "today" | awk '{print $2 $3}'}${goto 165}Today: ${goto 220}${texeci 5 vnstat -i usb1| grep "today" | awk '{print $5 $6}'}
Week: ${goto 60}${texeci 10 vnstat -w -i usb1| grep "current week" | awk '{print $3 $4}'}${goto 165}Week: ${goto 220}${texeci 5 vnstat -w -i usb1| grep "current week" | awk '{print $6 $7}'}
Month: ${goto 60}${texeci 10 vnstat -i usb1| grep "`date +"'%y"`" | tail -1 | awk '{print $3 $4}'}${goto 165}Month: ${goto 220}${texeci 5 vnstat -m -i usb1| grep "`date +"'%y"`" | tail -1 | awk '{print $6 $7}'}
${else}
${font :bold}${color red}${alignc}Network disconnected ! ! !$font ${color}
${endif}${endif}${endif}${endif}${endif}${endif}#