[UBUNTU] Conky simple

TABLE DES MATIÈRES

Intro

Conky permet la surveillance d'un grand nombre variables du système : CPU, mémoire, swap, espace disque, températures, réseau, messages du système, et bien plus... Il me fallait de quoi monitorer l'overclocking de mon processeur. Conky est certainement un des programmes les mieux adapté à cet effet sur Linux. J'ai pu dernièrement acquérir à vil prix un I7 2600K, dont je souhaite tirer le meilleur pour mes sessions d'encodage vidéo.

Je sauvegarde rapidement les conf de ce conky, simple, peu demandeur en ressource et qui va très bien aussi sur un laptop avec un vieux dual-core. Je reviendrai peut-être plus tard sur les détails. C'est une adaptation d'un conky trouvé sur Linuxtrix . Merci à toi Adrien D., si un jour tu passes par là...

J'ai ajouté à ce conky la détection du GPU Nvidia et l' affichage du modèle,  procédé à diverses modifications notamment de la partie réseau, qui allait pinger les DNS google :/ , remplacé par les DNS de FDN/LDN, ainsi que diverses petites choses comme l'affichage de la fréquence réelle du processeur (en + de celle de sa dénomination commerciale)...

 

Prérequis


CONKY ► sudo apt install conky-all

TEMPERATURES ► sudo apt install lm-sensors ► sudo sensors-detect

VENTILOS► sudo apt install fancontrol ► sudo pwmconfig

T° HDD  ►sudo apt install hddtemp  (nécessite une configuration, voir plus bas dans la section Tips)


Fichier de conf (PC fixe/Nvidia)

Spoiler:
background yes
# Utiliser Xft (polices lissées etc)
use_xft yes
xftfont Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
# taille et position
minimum_size 800 500
maximum_width 500
text_buffer_size 2000
#  afficher les ombres
draw_shades no
# afficher des contours
draw_outline no
# contours autour des blocs de texte
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
# écart avec le bord x=gauche ou droit y= haut ou bas
gap_x 100
gap_y 80
no_buffers yes
# Tout le texte en majuscule
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 F3D9D9
#
color2 91A3B0
#
color3 F3D9D9
#
color4 6BA4E7

TEXT
${font Sans:size=8}${color4}SYSTEM : ${goto 50}${color2}${exec lsb_release -d | cut -f2 }
${color1}¨¨¨¨¨¨¨¨
 
${color3}Kernel: ${color2}${exec uname -r} ${goto 130}${color3}Arch: ${color2}$machine 
${color3}Uptime:${color2} $uptime ${goto 130}${color3}Load:${color2} $loadavg
${color3}Processes: ${color2} $processes${color3}${goto 130}Running Processes: ${color2} $running_processes
 
#${color3}Battery:  ${color2} ${exec acpi -b | awk '{ print "State : " $3 "  Capacity : "$4 "  (" $5 ")"}'}
#${color3}Battery: ${color2} ${battery_percent BAT0}%

${color4}CPU : ${color1}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color1}¨¨¨¨¨
${color3}Clock frequency :${color2} ${freq_g} GHz

${color3}Core 0:${goto 50}${color2} ${cpu cpu0}%${goto 95}${color4}${cpubar cpu0 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C 
${color3}Core 1:${goto 50}${color2} ${cpu cpu1}%${goto 95}${color4}${cpubar cpu1 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C
${color3}Core 2:${goto 50}${color2} ${cpu cpu2}%${goto 95}${color4}${cpubar cpu0 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C 
${color3}Core 3:${goto 50}${color2} ${cpu cpu3}%${goto 95}${color4}${cpubar cpu1 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C

${color3}CPU Fan Speed: ${color2} ${hwmon 1 fan 2} rpm

${color4}GPU : ${color1}${goto 50}${execi 3600 nvidia-settings -q gpus |grep '0] (' | cut -d '(' -f 2,2 | sed -e 's/.\{1\}$//'}
${color1}¨¨¨¨¨
${color3}TEMP : ${color2}${goto 50} ${nvidia temp}°C${goto 130}${color3}FREQ : ${color2}${goto 180}${nvidia gpufreq} Mhz
${color3}DRIVER :${color2}${goto 50} ${execi 300 cat /proc/driver/nvidia/version | awk '/NVIDIA/ {print $8}'} ${goto 130}${color3}VRAM :${color2}${goto 180}${nvidia memfreq} Mhz


${color4}MEMORY : 
${color1}¨¨¨¨¨¨¨¨¨
${color3}RAM :${goto 50}${color2} $mem / $memmax ${goto 180}$memperc%
${color3}SWAP :${goto 50}${color2} ${swap} / ${swapmax} ${goto 180} ${swapperc}%
 
${color4}STORAGE :
${color1}¨¨¨¨¨¨¨¨¨¨
${color3}Root ${color2}${goto 50}${fs_used /} / ${fs_size /} ${goto 180}${fs_used_perc /}%
${color3}Home ${color2}${goto 50}${fs_used /home} / ${fs_size /home} ${goto 180}${fs_used_perc /home}%
${color3}DATA ${color2}${goto 50}${fs_used /mnt/A44474FE4474D510} / ${fs_size /mnt/A44474FE4474D510} ${goto 180}${fs_used_perc /mnt/A44474FE4474D510}% 
${color3}T° HDD : ${color2}${goto 50}${hddtemp /dev/sda}°C
${color3}T° SSD : ${color2}${goto 50}${hddtemp /dev/sdb}°C


${color4}NETWORK : 
${color1}¨¨¨¨¨¨¨¨¨¨
${color3}eth : ${color2}${addr eno1} ${goto 90}${color3}DL :${color2} ${downspeedf eno1}k/s ${goto 160} ${color3}UP :${color2} ${upspeedf eno1}k/s
${color3}wlan : ${color2}${addr wlp12s0} ${goto 90}${color3}DL :${color2} ${downspeedf wlp12s0}k/s ${goto 160} ${color3}UP :${color2} ${upspeedf wlp12s0}k/s
${color3}Public IP : ${color2}${texeci 1000 curl ipinfo.io/ip /dev/null | cut -d : -f 2 | cut -d \< -f 1} ${goto 160} ${color3}LT : ${color2}${texeci 1 ping 80.67.188.188 -c 1 | grep time= | cut -d"=" -f4}
 
${color4}EPHEMERIDE : 
${color1}¨¨¨¨¨¨¨¨¨¨¨¨¨
${color3}Date : ${color2}${texeci 1000 date "+%A %d %B %Y"}
${color3}Heure : ${color2}${exec date "+%H:%M"}
${color3}Saint : ${color2}${texeci 1000 wget -O - -q  http://fetedujour.fr/  --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep "Fête du jour" | head -1 | cut -d">" -f4 | cut -d"< " -f1 }


Variante


Spoiler:

background yes
# Utiliser Xft (polices lissées etc)
use_xft yes
xftfont Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
# taille et position
minimum_size 800 500
maximum_width 500
text_buffer_size 2000
#  afficher les ombres
draw_shades no
# afficher des contours
draw_outline no
# contours autour des blocs de texte
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
# écart avec le bord x=gauche ou droit y= haut ou bas
gap_x 100
gap_y 80
no_buffers yes
# Tout le texte en majuscule
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#
color1 F3D9D9
#
color2 91A3B0
#
color3 F3D9D9
#
color4 6BA4E7

TEXT
${font Sans:size=8}${color4}SYSTEM : ${goto 50}${color2}${exec lsb_release -d | cut -f2 }
${color1}¨¨¨¨¨¨¨¨
 
${color3}Kernel: ${color2}${exec uname -r} ${goto 130}${color3}Arch: ${color2}$machine 
${color3}Uptime:${color2} $uptime ${goto 130}${color3}Load:${color2} $loadavg
${color3}Processes: ${color2} $processes${color3}${goto 130}Running Processes: ${color2} $running_processes
 
#${color3}Battery:  ${color2} ${exec acpi -b | awk '{ print "State : " $3 "  Capacity : "$4 "  (" $5 ")"}'}
#${color3}Battery: ${color2} ${battery_percent BAT0}%

${color4}CPU : ${color1}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color1}¨¨¨¨¨
${color3}RT Freq :${color2} ${freq_g} GHz ${color3}${goto 120}Fan Speed: ${color2} ${hwmon 1 fan 2} rpm

${color3}Core 0:${goto 50}${color2} ${cpu cpu0}%${goto 95}${color4}${cpubar cpu0 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C 
${color3}Core 1:${goto 50}${color2} ${cpu cpu1}%${goto 95}${color4}${cpubar cpu1 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C
${color3}Core 2:${goto 50}${color2} ${cpu cpu2}%${goto 95}${color4}${cpubar cpu0 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 2' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C 
${color3}Core 3:${goto 50}${color2} ${cpu cpu3}%${goto 95}${color4}${cpubar cpu1 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 3' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C


${color4}GPU : ${color1}${goto 50}${execi 3600 nvidia-settings -q gpus |grep '0] (' | cut -d '(' -f 2,2 | sed -e 's/.\{1\}$//'}
${color1}¨¨¨¨¨
${color3}TEMP : ${color2}${goto 50} ${nvidia temp}°C${goto 130}${color3}FREQ : ${color2}${goto 180}${nvidia gpufreq} Mhz
${color3}DRIVER :${color2}${goto 50} ${execi 300 cat /proc/driver/nvidia/version | awk '/NVIDIA/ {print $8}'} ${goto 130}${color3}VRAM :${color2}${goto 180}${nvidia memfreq} Mhz


${color4}MEMORY : 
${color1}¨¨¨¨¨¨¨¨¨
${color3}RAM :${goto 50}${color2} $mem / $memmax ${goto 180}$memperc%
${color3}SWAP :${goto 50}${color2} ${swap} / ${swapmax} ${goto 180} ${swapperc}%
 
${color4}STORAGE :
${color1}¨¨¨¨¨¨¨¨¨¨
${color3}Root ${color2}${goto 50}${fs_used /} / ${fs_size /} ${goto 180}${fs_used_perc /}%
${color3}Home ${color2}${goto 50}${fs_used /home} / ${fs_size /home} ${goto 180}${fs_used_perc /home}%
${color3}DATA ${color2}${goto 50}${fs_used /mnt/A44474FE4474D510} / ${fs_size /mnt/A44474FE4474D510} ${goto 180}${fs_used_perc /mnt/A44474FE4474D510}% 
${color3}T° HDD : ${color2}${goto 50}${hddtemp /dev/sda}°C  ${color3}${goto 130}T° SSD : ${color2}${goto 178}${hddtemp /dev/sdb}°C


${color4}NETWORK : 
${color1}¨¨¨¨¨¨¨¨¨¨
${color3}eth : ${color2}${addr eno1} ${goto 90}${color3}DL :${color2} ${downspeedf eno1}k/s ${goto 160} ${color3}UP :${color2} ${upspeedf eno1}k/s
${color3}wlan : ${color2}${addr wlp12s0} ${goto 90}${color3}DL :${color2} ${downspeedf wlp12s0}k/s ${goto 160} ${color3}UP :${color2} ${upspeedf wlp12s0}k/s
${color3}Public IP : ${color2}${texeci 1000 curl ipinfo.io/ip /dev/null | cut -d : -f 2 | cut -d \< -f 1} ${goto 160} ${color3}LT : ${color2}${texeci 1 ping 80.67.188.188 -c 1 | grep time= | cut -d"=" -f4}
 
${color4}EPHEMERIDE : 
${color1}¨¨¨¨¨¨¨¨¨¨¨¨¨
${color3}Date : ${color2}${texeci 1000 date "+%A %d %B %Y"}
${color3}Heure : ${color2}${exec date "+%H:%M"}
${color3}Saint : ${color2}${texeci 1000 wget -O - -q  http://fetedujour.fr/  --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep "Fête du jour" | head -1 | cut -d">" -f4 | cut -d"<" -f1 }



(pour la T° dans la section "STORAGE" c'est simplement mon vieux SSD qui n'a pas de sonde...)

Fichier de conf Laptop

Spoiler:
background yes
use_xft yes
xftfont Tlwg Mono Bold:size=7
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
double_buffer yes
minimum_size 800 500
maximum_width 500
text_buffer_size 2000
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_outline_color white
alignment top_left
gap_x 50
gap_y 80
no_buffers yes
uppercase yes
cpu_avg_samples 2
override_utf8_locale yes
#
color1 white
#
color2 EB7B82
#
color3 white
#
color4 lightblue

 
TEXT
${font Tlwg Mono Bold:size=7}${color4}SYSTEM : ${goto 60}${color2}${exec lsb_release -d | cut -f2 }
${color1}¨¨¨¨¨¨¨¨
 
${color3}Kernel: ${color2}${exec uname -r} ${goto 160}${color3}Arch: ${color2}$machine 
${color3}Uptime:${color2} $uptime ${goto 160}${color3}Load:${color2} $loadavg
${color3}Processes: ${color2} $processes${color3}${goto 160}Running Processes: ${color2} $running_processes
 
#${color3}Battery:  ${color2} ${exec acpi -b | awk '{ print "State : " $3 "  Capacity : "$4 "  (" $5 ")"}'}
${color4}BATTERY: ${color2} ${battery_percent BAT0}% ${goto 180}${color4}VOLUME : ${color2}${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}
${color1}¨¨¨¨¨¨¨¨¨¨${goto 180}${color1}¨¨¨¨¨¨¨¨¨

${color4}CPU : ${color1}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${color1}¨¨¨¨
${color3}Clock frequency :${color2} ${freq_g} GHz

${color3}Core 0:${color2} ${cpu cpu0}%${goto 110}${color4}${cpubar cpu0 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 0' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C 
${color3}Core 1:${color2} ${cpu cpu1}%${goto 110}${color4}${cpubar cpu1 6,60}${color2}${goto 190}${exec expr `sensors | grep 'Core 1' | cut -d+ -f2 | cut -d\( -f1 | cut -d. -f1`}°C

${color3}CPU Fan Speed: ${color2} ${hwmon 2 fan 1} rpm

${color4}GPU : ${color3}TEMP : ${color2} ${hwmon 2 temp 1}°C
${color1}¨¨¨¨

${color4}MEMORY : 
${color1}¨¨¨¨¨¨¨¨
${color3}RAM:${goto 40}${color2} $mem / $memmax ${goto 170}$memperc%
${color3}SWAP:${goto 40}${color2} ${swap} / ${swapmax} ${goto 170} ${swapperc}%
 
${color4}STORAGE : ${color2}${hddtemp /dev/sda}°C
${color1}¨¨¨¨¨¨¨¨¨
${color3}Root ${color2}${goto 50}${fs_used /} / ${fs_size /} ${goto 170}${fs_used_perc /}%
${color3}Home ${color2}${goto 50}${fs_used /home} / ${fs_size /home} ${goto 170}${fs_used_perc /home}%
#${color3}Var-cl ${color2}${goto 50}${fs_used /var/calculate} / ${fs_size /var/calculate} ${goto 170}${fs_used_perc /var/calculate}% 
#${color3}DATA ${color2}${goto 50}${fs_used /media/DATA} / ${fs_size /media/DATA} ${goto 170}${fs_used_perc /media/DATA}% 
#${color4}Temp HDD : ${color2}${hddtemp /dev/sda}°C

${color4}NETWORK : 
${color1}¨¨¨¨¨¨¨¨¨
${color3}eth : ${color2}${addr enp0s25} ${goto 120}${color3}DL :${color2} ${downspeedf enp0s25}k/s ${goto 210} ${color3}UP :${color2} ${upspeedf enp0s25}k/s
${color3}wlan : ${color2}${addr wlp12s0} ${goto 120}${color3}DL :${color2} ${downspeedf wlp12s0}k/s ${goto 210} ${color3}UP :${color2} ${upspeedf wlp12s0}k/s
${color3}Public IP : ${color2}${texeci 1000 curl ipinfo.io/ip /dev/null | cut -d : -f 2 | cut -d \< -f 1} ${goto 210} ${color3}LT : ${color2}${texeci 1 ping 80.67.188.188 -c 1 | grep time= | cut -d"=" -f4}
${color3}Signal: ${color2}${goto 60}${wireless_link_qual wlp12s0}% ${goto 110}${color4}${wireless_link_bar 6,60 wlp12s0}

${color4}EPHEMERIDE : 
${color1}¨¨¨¨¨¨¨¨¨¨¨¨
${color3}Date : ${color2}${goto 55}${texeci 1000 date "+%A %d %B %Y"}
${color3}Heure : ${color2}${goto 55}${exec date "+%H:%M"}
${color3}Saint : ${color2}${goto 55}${texeci 1000 wget -O - -q  http://fetedujour.fr/  --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep "Fête du jour" | head -1 | cut -d">" -f4 | cut -d"< " -f1 }


Tips!

 

VENTILATION :

J'ai rencontré sur une de mes machines, un souci de cpu fan speed non détecté : pwmconfig renvoi l'erreur :

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

Après une courte recherche :

This can be fixed by relaxing an acpi check in the kernel (hmm), see amongst others for more details. The way I fixed this is to edit /etc/default/grub to add acpi_enforce_resources=lax to the GRUB_CMDLINE_LINUX_DEFAULT giving:

On édite donc GRUB (et on remplace la valeur par défaut à la ligne GRUB_CMDLINE_LINUX_DEFAULT )
sudo nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_enforce_resources=lax"

Cela nécessite la mise à jour de GRUB et un reboot:
sudo update-grub
sudo reboot


Température HDD :

Après avoir installé hddtemp, il suffit d'ajouter les lignes : ►${hddtemp /dev/sda}°C
Par défaut hddtemp ne peut être utilisé que par le superutlisateur ; pour permettre à votre user (sans droit root) de l'exécuter, entrez dans un terminal : ►sudo dpkg-reconfigure hddtemp et répondez Oui à la question "Faut-il exécuter hddtemp avec les privilèges du superutilisateur ?".


 

Command Line Options

Example: conky -p 5 -c /PATH/TO/CONFIG will wait 5 seconds and launch the conky config of the specified path.

   -v, --version             version
   -q, --quiet               quiet mode
   -D, --debug               increase debugging output, ie. -DD for more debugging
   -c, --config=FILE         config file to load
   -C, --print-config        print the builtin default config to stdout
                             e.g. 'conky -C > ~/.conkyrc' will create a new default config
   -d, --daemonize           daemonize, fork to background
   -h, --help                help
   -a, --alignment=ALIGNMENT text alignment on screen, {top,bottom,middle}_{left,right,middle}
   -f, --font=FONT           font to use
   -X, --display=DISPLAY     X11 display to use
   -o, --own-window          create own window to draw
   -b, --double-buffer       double buffer (prevents flickering)
   -w, --window-id=WIN_ID    window id to draw
   -x X                      x position
   -y Y                      y position
   -t, --text=TEXT           text to render, remember single quotes, like -t '$uptime'
   -u, --interval=SECS       update interval
   -i COUNT                  number of times to update Conky (and quit)
   -p, --pause=SECS          pause for SECS seconds at startup before doing anything

source


Configuration Settings

Note: To see the complete list of settings that are available in your version of conky, use the man page ► man conky

Variable Explanation
alignment Aligned position on screen, may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_middle, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mm, mr). See also gap_x and gap_y.
append_file Append the file given as argument.
background Boolean value, if true, Conky will be forked to background when started.
border_inner_margin Inner border margin in pixels (the margin between the border and text).
border_outer_margin Outer border margin in pixels (the margin between the border and the edge of the window).
border_width Border width in pixels.
colorN Predefine a color for use inside conky.text segments. Substitute N by a digit between 0 and 9, inclusively. When specifying the color value in hex, omit the leading hash (#).
console_graph_ticks A comma-separated list of strings to use as the bars of a graph output to console/shell. The first list item is used for the minimum bar height and the last item is used for the maximum.
cpu_avg_samples The number of samples to average for CPU monitoring.
default_bar_height Specify a default height for bars. If not specified, the default value is 6.
default_bar_width Specify a default width for bars. If not specified, the default value is 0, which causes the bar to expand to fit the width of your Conky window. If you set out_to_console = true, the text version of the bar will actually have no width and you will need to set a sensible default or set the height and width of each bar individually.
default_color Default color and border color
default_gauge_height Specify a default height for gauges. If not specified, the default value is 25.
default_gauge_width Specify a default width for gauges. If not specified, the default value is 40.
default_graph_height Specify a default height for graphs. If not specified, the default value is 25.
default_graph_width Specify a default width for graphs. If not specified, the default value is 0, which causes the graph to expand to fit the width of your Conky window. If you set out_to_console = true, the text version of the graph will actually have no width and you will need to set a sensible default or set the height and width of each graph individually.
default_outline_color Default outline color
default_shade_color Default shading color and border's shading color
disable_auto_reload Enable to disable the inotify-based auto config reload feature.
diskio_avg_samples The number of samples to average for disk I/O monitoring.
display Specify an X display to connect to. See also xinerama_head.
double_buffer 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.
draw_borders Draw borders around text?
draw_graph_borders Draw borders around graphs?
draw_outline Draw outlines?
draw_shades Draw shades?
extra_newline Put an extra newline at the end when writing to stdout, useful for writing to awesome's wiboxes.
font Font name in X, xfontsel can be used to get a nice font
format_human_readable If enabled, values which are in bytes will be printed in human readable format (i.e., KiB, MiB, etc). If disabled, the number of bytes is printed instead.
gap_x Gap, in pixels, between right or left border of screen, same as passing -x at command line, e.g. gap_x 10. For other position related stuff, see 'alignment'.
gap_y Gap, in pixels, between top or bottom border of screen, same as passing -y at command line, e.g. gap_y 10. For other position related stuff, see 'alignment'.
hddtemp_host Hostname to connect to for hddtemp objects. Defaults to "127.0.0.1".
hddtemp_port Port to use for hddtemp connections. Defaults to 7634.
http_refresh When this is set the page generated with out_to_http will automatically refresh each interval. Default value is no.
if_up_strictness How strict should if_up be when testing an interface for being up? The value is one of up, link or address, to check for the interface being solely up, being up and having link or being up, having link and an assigned IP address.
imap Default global IMAP server. Arguments are: "host user pass [-i interval (in seconds)] [-f 'folder'] [-p port] [-e 'command'] [-r retries]". Default port is 143, default folder is 'INBOX', default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as '*', you will be prompted to enter the password when Conky starts.
imlib_cache_flush_interval Interval (in seconds) to flush Imlib2 cache.
imlib_cache_size Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value if you use $image lots. Set to 0 to disable the image cache.
lua_draw_hook_post This function, if defined, will be called by Conky through each iteration after drawing to the window. Requires X support. Takes any number of optional arguments. Use this hook for drawing things on top of what Conky draws. Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you place 'conky_' in front of it yourself.
lua_draw_hook_pre This function, if defined, will be called by Conky through each iteration before drawing to the window. Requires X support. Takes any number of optional arguments. Use this hook for drawing things on top of what Conky draws. Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you place 'conky_' in front of it yourself.
lua_load Loads the Lua scripts separated by spaces.
lua_shutdown_hook This function, if defined, will be called by Conky at shutdown or when the configuration is reloaded. Use this hook to clean up after yourself, such as freeing memory which has been allocated by external libraries via Lua. Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you place 'conky_' in front of it yourself.
lua_startup_hook This function, if defined, will be called by Conky at startup or when the configuration is reloaded. Use this hook to initialize values, or for any run-once applications. Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you place 'conky_' in front of it yourself.
mail_spool Mail spool for mail checking
max_port_monitor_connections Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
max_text_width When a line in the output contains 'width' chars and the end isn't reached, the next char will start on a new line. If you want to make sure that lines don't get broken, set 'width' to 0
max_user_text Maximum size of user text buffer, i.e. text inside conky.text section in config file (default is 16384 bytes)
maximum_width Maximum width of window
minimum_height Minimum height of the window
minimum_width Minimum width of window
mpd_host Host of MPD server
mpd_password MPD server password
mpd_port Port of MPD server
music_player_interval Music player thread update interval (defaults to Conky's update interval)
mysql_db MySQL database to use. Defaults to mysql
mysql_host Host of MySQL server. Defaults to localhost
mysql_password Password of the MySQL user. Place it between "-chars. When this is not set there is no password used
mysql_port Port of MySQL server. Defaults to the default mysql port
mysql_user MySQL user name to use when connecting to the server. Defaults to your username
net_avg_samples The number of samples to average for net data
no_buffers Subtract (file system) buffers from used memory?
nvidia_display The display that the nvidia variable will use (defaults to the value of the display variable)
out_to_console Print text to stdout.
out_to_http Let conky act as a small http-server serving it's text.
out_to_ncurses Print text in the console, but use ncurses so that conky can print the text of a new update over the old text. (In the future this will provide more useful things)
out_to_stderr Print text to stderr.
out_to_x When set to no, there will be no output in X (useful when you also use things like out_to_console). If you set it to no, make sure that it's placed before all other X-related setting (take the first line of your configfile to be sure). Default value is yes
override_utf8_locale Force UTF8? requires XFT
overwrite_file Overwrite the file given as argument.
own_window Boolean, create own window to draw?
own_window_argb_value When ARGB visuals are enabled, this use this to modify the alpha value used. Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_visual Boolean, use ARGB visual? ARGB can be used for real transparency, note that a composite manager is required for real transparency. This option will not work as desired (in most cases) in conjunction with 'own_window_type override'.
own_window_class Manually set the WM_CLASS name. Defaults to "Conky".
own_window_colour If own_window_transparent no, set a specified background colour (defaults to black). Takes either a hex value (e.g. ffffff, note the lack of '#') or a valid RGB name (see /usr/lib/X11/rgb.txt)
own_window_hints If own_window is yes, you may use these window manager hints to affect the way Conky displays. Notes: Use own_window_type desktop as another way to implement many of these hints implicitly. If you use own_window_type override, window manager hints have no meaning and are ignored.
own_window_title Manually set the window name. Defaults to "conky (<hostname>)".
own_window_transparent Boolean, set transparency? If ARGB visual is enabled, sets background opacity to 0%.
own_window_type if own_window is yes, you may specify type normal, desktop, dock, panel or override (default: normal). Desktop windows are special windows that have no window decorations; are always visible on your desktop; do not appear in your pager or taskbar; and are sticky across all workspaces. Panel windows reserve space along a desktop edge, just like panels and taskbars, preventing maximized windows from overlapping them. The edge is chosen based on the alignment option. Override windows are not under the control of the window manager. Hints are ignored. This type of window can be useful for certain situations.
pad_percents Pad percentages to this many decimals (0 = no padding)
pop3 Default global POP3 server. Arguments are: "host user pass [-i interval (in seconds)] [-p port] [-e 'command'] [-r retries]". Default port is 110, default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as '*', you will be prompted to enter the password when Conky starts.
short_units Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
show_graph_range Shows the time range covered by a graph.
show_graph_scale Shows the maximum value in scaled graphs.
stippled_borders Border stippling (dashing) in pixels
temperature_unit Desired output unit of all objects displaying a temperature. Parameters are either "fahrenheit" or "celsius". The default unit is degree Celsius.
templateN Define a template for later use inside conky.text segments. Substitute N by a digit between 0 and 9, inclusively. The value of the variable is being inserted into the stuff inside conky.text at the corresponding position, but before some substitutions are applied:
  • '\n' -> newline
  • '\\' -> backslash
  • '\ ' -> space
  • '\N' -> template argument N (starting from 1)
text_buffer_size Size of the standard text buffer (default is 256 bytes). This buffer is used for intermediary text, such as individual lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky's performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 256 bytes.
times_in_seconds If true, variables that output times output a number that represents seconds. This doesn't affect $time, $tztime and $utime
top_cpu_separate If true, cpu in top will show usage of one processor's power. If false, cpu in top will show the usage of all processors' power combined.
top_name_verbose If true, top name shows the full command line of each process, including arguments (whenever possible). Otherwise, only the basename is displayed. Default value is false.
top_name_width Width for $top name value (defaults to 15 characters).
total_run_times Total number of times for Conky to update before quitting. Zero makes Conky run forever
update_interval Update interval
update_interval_on_battery Update interval when running on batterypower
uppercase Boolean value, if true, text is rendered in upper case
use_spacer Adds spaces around certain objects to stop them from moving other things around. Arguments are left, right, and none (default). The old true/false values are deprecated and default to right/none respectively. Note that this only helps if you are using a mono font, such as Bitstream Vera Sans Mono.
use_xft Use Xft (anti-aliased font and stuff)
xftalpha Alpha of Xft font. Must be a value at or between 1 and 0.
xinerama_head Specify a Xinerama head. See also display.

source

FMR

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *