80 lines
2.1 KiB
Plaintext
80 lines
2.1 KiB
Plaintext
conky.config = {
|
|
-- WINDOW
|
|
own_window = true,
|
|
own_window_type = 'desktop',
|
|
own_window_transparent = true,
|
|
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
|
|
own_window_colour = '#060c09',
|
|
own_window_class = 'Conky',
|
|
own_window_title = 'Mabox Network Conky',
|
|
|
|
alignment = 'bottom_right',
|
|
gap_x = 30,
|
|
gap_y = 60,
|
|
minimum_height = 64,
|
|
minimum_width = 64,
|
|
|
|
-- FONTS
|
|
use_xft = true,
|
|
font = 'Ubuntu:size=8',
|
|
xftalpha = 1,
|
|
override_utf8_locale = true,
|
|
|
|
-- COLORS
|
|
draw_shades = false,
|
|
default_shade_color = '#000000',
|
|
draw_outline = false,
|
|
default_outline_color = '#222222',
|
|
|
|
default_color = '#5E7EA5',
|
|
color0 = '#E0D3A4',
|
|
color2 = '#8EBBBA',
|
|
|
|
-- BORDERS
|
|
draw_borders = false,
|
|
-- Stippled borders?
|
|
stippled_borders = 0,
|
|
-- border margins
|
|
border_inner_margin = 8,
|
|
border_outer_margin = 8,
|
|
-- border width
|
|
border_width = 1,
|
|
-- graph borders
|
|
draw_graph_borders = true,
|
|
|
|
-- MISC
|
|
-- Boolean value, if true, Conky will be forked to background when started.
|
|
background = true,
|
|
short_units = true,
|
|
|
|
|
|
-- Adds spaces around certain objects to stop them from moving other things
|
|
-- around, this only helps if you are using a mono font
|
|
-- Options: right, left or none
|
|
use_spacer = 'none',
|
|
|
|
-- Subtract (file system) buffers from used memory?
|
|
no_buffers = true,
|
|
|
|
-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
|
|
-- $image lots. Set to 0 to disable the image cache.
|
|
--imlib_cache_size = 0,
|
|
|
|
-- Use the Xdbe extension? (eliminates flicker)
|
|
-- It is highly recommended to use own window with this one
|
|
-- so double buffer won't be so big.
|
|
double_buffer = true,
|
|
update_interval = 1,
|
|
};
|
|
|
|
conky.text = [[
|
|
${color}NETWORK
|
|
${color}Device ${alignr}${color0}enp0s3
|
|
${color}IP ${alignr}${color0}${addr enp0s3}
|
|
${color}Download $color0${downspeed enp0s3} ${alignr}${color0}${upspeed enp0s3}${color} Upload
|
|
${color2}${downspeedgraph enp0s3 30,100 -t} ${alignr} ${upspeedgraph enp0s3 30,100 -t}
|
|
${color}Total Down ${color0}${totaldown enp0s3} ${alignr}${color0}${totalup enp0s3}${color} Total Up
|
|
${color0}${hr}
|
|
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d/ -f2 | sort | uniq -c | sort -nr}
|
|
]];
|