En voyant que les infos sur le trafic réseau fonctionnait chez d'autres membres j'ai compris que ce n'était pas ma variable qui était obsolète mais le nom de mon interface réseau.
Pour ceux qui veulent plus d'infos qu'ils aillent sur ma page "Astuces" juste au-dessus du chapitre "Sécurité et vie privée" (vers le bas de page).
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2019 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'DejaVu Sans Mono:size=12',
gap_x = 110,
gap_y = 38,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_transparent = true,
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
color1 = 'ffffff',
color2 = 'cccccc',
color3 = '000000',
}
conky.text = [[
# Date et heure
${color1}${voffset -5}${font Broadway BT:size=16}${time %A %d %B}
${voffset -20}${font Broadway BT:size=80}${time %H}${voffset -40}${font Broadway BT:size=36}${time :%M:%S}
${voffset -24}${font Broadway BT:size=16}$alignr année ${time %Y}
#
# Nom d'utilisateur, version du noyau, durée d'utilisation...
${voffset 10}${color1}${font Broadway BT:size=20}Système ${hr}${color2}${font Bauhaus Md BT:size=10}
${execi 1000 lsb_release -ds} installé sur ${nodename}
$sysname $kernel $machine utilisé depuis $uptime_short
GNOME 3.38.5 - GNOME Shell
Conky $conky_version - $conky_build_date
Espace de travail : $desktop/$desktop_number
${hr}
Mises à jour disponibles ${alignr} ${texeci 1800 echo $(($(apt list --upgradable 2>/dev/null | wc -l) - 1))}
En attente de redémarrage ${alignr} ${execi 1800 test -e /var/run/reboot-required && echo Oui || echo Non}
#
# RAM
${voffset 5}${color1}${font Broadway BT:size=20}Utilisation RAM ${hr}${color2}${font Bauhaus Md BT:size=10}
G.Skill 2x4096 Mio DDR3 1600 PC3 12800
Physique : $mem/$memmax - $memperc% ${membar}
# Swap : $swap/$swapmax - $swapperc% ${swapbar}
#
# Espace disque
${voffset 5}${color1}${font Broadway BT:size=20}Espace disque ${hr}${color2}${font Bauhaus Md BT:size=10}
Racine : ${fs_used /}/${fs_size /} soit ${fs_used_perc /}% $alignr Libre : ${fs_free /}
${fs_bar /}
Home : ${fs_used /home/lancelin}/${fs_size /home/lancelin} soit ${fs_used_perc /home/lancelin}% $alignr Libre : ${fs_free /home/lancelin}
${fs_bar /home/lancelin}
#
# Accès disque
${voffset 5}${color1}${font Broadway BT:size=20}Accès disque ${hr}${color2}${font Bauhaus Md BT:size=10}
${color2}Lecture : ${diskio_read} $alignr${color2}Écriture : $color2${diskio_write}
${diskiograph_read 25,160 000000 CCCCCC 100} ${alignr}${diskiograph_write 25,160 000000 CCCCCC 100}
#
# Charge du processeur
${voffset 3}${color1}${font Broadway BT:size=20}Charge CPU ${hr}${color2}${font Bauhaus Md BT:size=10}
${color2}${cpugauge cpu1 40,81} ${offset -3}${cpugauge cpu2 40,80} ${offset -3}${cpugauge cpu3 40,80} ${offset -3}${cpugauge cpu4 40,80}
${color2}${voffset -58}${cpugauge cpu1 40,81} ${offset -3}${cpugauge cpu2 40,80} ${offset -3}${cpugauge cpu3 40,80} ${offset -3}${cpugauge cpu4 40,80}
${color2}${font Bauhaus Md BT:Style:Bold:size=8}${voffset -12}${offset 34}${cpu cpu1}%${goto 122}${cpu cpu2}%${goto 204}${cpu cpu3}%${goto 286}${cpu cpu4}%
${voffset -4}${cpugraph 25,324 000000 CCCCCC 100}
#
# Activités du processeur et de la RAM
${voffset 3}${color1}${font Broadway BT:size=20}Activités CPU-RAM ${hr}${color2}${font Bauhaus Md BT:size=10}
${top name 1} $alignr${top cpu 1} ${top mem 1}
${top name 2} $alignr${top cpu 2} ${top mem 2}
${top name 3} $alignr${top cpu 3} ${top mem 3}
${top name 4} $alignr${top cpu 4} ${top mem 4}
${top name 5} $alignr${top cpu 5} ${top mem 5}
${top name 6} $alignr${top cpu 6} ${top mem 6}
Processus totaux$alignr$processes
#
# Températures
${voffset 5}${color1}${font Broadway BT:size=20}Températures ${hr}${color2}${font Bauhaus Md BT:size=10}
Processeur ${execi 1000 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f1-6}$alignr${hwmon 1 temp 2}.0°
Carte mère Gigabyte GA-A75N-USB3$alignr${hwmon 1 temp 3}.0°
#Disque dur Segate Barracuda 1 To${alignr}${hddtemp /dev/sda}.0°
#Disque SSD OCZ Agility 120 Gio${alignr}30.0°
Disque SSD Samsung 850 EVO 500 Gio${alignr}27.0°
Ventilateur CPU Scythe Big Shuriken 2$alignr${exec sensors | grep fan1 | awk '{ print $2}'} T/M
#
# Trafic réseau
${voffset 5}${color1}${font Broadway BT:size=20}Trafic réseau ${hr}${color2}${font Bauhaus Md BT:size=10}
${downspeedgraph enp2s0 25,160 000000 CCCCCC 100} ${upspeedgraph enp2s0 25,160 000000 CCCCCC 100}
${voffset -5}Réception : ${totaldown enp2s0}/${downspeedf enp2s0}k/s $alignr Émission : ${totalup enp2s0}/${upspeedf enp2s0}k/s
#
]]