logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).


L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
utilisateurs:kawer:config:conkyrc [02/07/2020 00:57]
kawer [Utilisation]
utilisateurs:kawer:config:conkyrc [25/10/2022 19:19] (Version actuelle)
kawer [ConkyRc config File]
Ligne 1: Ligne 1:
-====== ​ConkyRc config File ======+====== ​mon fichier conkyrc ​======
  
-  * Objet : partage ​de mon fichier ​conkyrc+  * Objet : mémo de configuration ​conkyrc
   * Niveau requis : {{tag>​débutant avisé}}   * Niveau requis : {{tag>​débutant avisé}}
-  * Commentaires : //Contexte d'utilisation ​du sujet du tuto. // Environnement Graphique+  * Commentaires : //​utilisation ​sur mes postes de travail. //
   * Débutant, à savoir : [[:​doc:​systeme:​commandes:​le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !.]] :-)   * Débutant, à savoir : [[:​doc:​systeme:​commandes:​le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !.]] :-)
   * Commentaires sur le forum : [[https://​debian-facile.org/​viewtopic.php?​id=27092|C'​est là]]((N'​hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !))   * Commentaires sur le forum : [[https://​debian-facile.org/​viewtopic.php?​id=27092|C'​est là]]((N'​hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !))
Ligne 15: Ligne 15:
  
 ===== Preview ===== ===== Preview =====
-{{/file-R01cf04dc6ec1e362f7dc430876f0c23c.png?150}}+{{/file-R5aa94d4fd6fe5eb0f5e146f83b69fba3.png?150}}
 ===== Utilisation ===== ===== Utilisation =====
  
Ligne 21: Ligne 21:
 <​code>​ <​code>​
 conky.config = { conky.config = {
- alignment = '​top_right',​ +    ​background = false, 
- background = false, +    ​own_window ​true
- border_width ​0.5+    ​own_window_class ​'​Desktop'​
- cpu_avg_samples ​4+    ​own_window_transparent ​false
- default_color ​'​white'​+    ​own_window_type ​= 'dock', 
- default_outline_color ​= 'grey', +    ​own_window_hints ​= 'undecorated,​below,​sticky,​skip_taskbar,​skip_pager', 
- default_shade_color ​= 'black', +    ​own_window_argb_visual ​= true, 
- draw_borders ​= true, +    ​own_window_argb_value ​40
- draw_graph_borders ​true+    ​double_buffer ​true
- draw_outline ​false+    ​use_spacer ​'​none'​
- draw_shades ​false+    use_xft = true, 
- use_xft = true, +    ​xftalpha = 1, 
- font = 'Hack:size=8', +    ​font = 'hack nerd font:​regular:size=9', 
- gap_x 10+    ​update_interval ​1
- gap_y 44+    ​uppercase ​false
- minimum_height ​5+    ​override_utf8_locale ​true
- minimum_width ​320+    ​stippled_borders ​1
- maximum_width ​330+    ​border_width ​5
- net_avg_samples ​2+    ​draw_borders ​false
- double_buffer ​= true, +    ​draw_graph_borders ​= true, 
- out_to_console ​= false, +    ​draw_outline ​= false, 
- out_to_stderr ​= false, +    ​draw_shades ​= false, 
- extra_newline ​= false, +    ​show_graph_scale ​= false, 
- own_window ​true+    ​show_graph_range ​false
- own_window_colour ​= '000000', +    ​alignment ​= 'top_right', 
- own_window_class ​'​Conky'​+    ​minimum_width ​365
- own_window_argb_visual ​true+    ​minimum_height ​1030
- own_window_argb_value ​70+    ​maximum_width ​365
- own_window_type ​'​dock'​+    ​maximym_height ​1030
- own_window_transparent ​true+    ​gap_x ​05
- own_window_hints ​'​undecorated,below,sticky,skip_taskbar,skip_pager'​+    ​gap_y ​43, 
- update_interval ​5.0+    net_avg_samples = 2, 
- use_spacer ​'​none'​+    cpu_avg_samples = 4, 
- show_graph_scale ​= false, +    short_units = true, 
- show_graph_range ​= false,+    pad_percents = 2
 +    ​text_buffer_size ​2048
 +    ​out_to_console ​false
 +    ​out_to_stderr ​= false, 
 +    ​extra_newline ​= false
 +    default_color = '​red'​,
 } }
  
 conky.text = [[ conky.text = [[
-${font Hack:​size=12}${alignc}${time %H:%M:%S} +${color slate grey}${alignc}${time %A %e %B %Y : %Hh%M}
-${font Hack:size=8}${alignc}${time %A %e %B %Y}+
 ${hr} ${hr}
-${color ​orange}Hostname: ${color}${nodename} +${color ​slate grey}Fête du jour${color orange}: ${font Hack:​bold:​size=8}${color grey}${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 "<​span>​Fête du jour" | head -1 | cut -d">"​ -f4 | cut -d"<"​ -f1 | sed -e '​s/​Nativité/​kawer/' ​}${font}
-${color orange}Kernel  ​${color}${sysname} ${kernel} +
-${color orange}Uptime  ${color}${uptime}+
 ${hr} ${hr}
-${color ​orange}CPU:​${color} ${freq_g} GHz ${color green} $cpu% ${color red}${cpubar 6} +${color ​slate grey}Uptime ​${color orange}: ​  ​${color ​grey}${uptime}
-${offset 4}${color red}${cpugraph F600AA 5000a0} +
-${color orange}0:${color} ${cpu cpu0}% ${cpubar cpu0} +
-${color orange}1:​${color} ${cpu cpu1}% ${cpubar cpu1} +
-${color orange}2:​${color} ${cpu cpu2}% ${cpubar cpu2} +
-${color orange}3:​${color} ${cpu cpu3}% ${cpubar cpu3}+
 ${hr} ${hr}
-${color ​orange}Name             ​${alignr} PID   ​CPU ​  MEM +${color ​slate grey}Mises-à-jour disponibles${color ​orange}${font Hack:​bold:​size=8}${color ​red}${alignr} ${texeci 1800 echo $(($(apt list --upgradable ​2>/​dev/​null | wc -l) - 1))}${font
-${color ​lightgrey} ${top name 1${alignr}${top pid 1} ${top cpu 1} ${top mem 1} +${color ​slate grey}En attente de redémarrage${color orange}${font Hack:​bold:​size=8}${color ​grey}${alignr} ${execi 1800 test -e /​var/​run/​reboot-required && echo oui || echo non}${font}
-${color ​lightgrey} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2+
-${color ​lightgrey} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3} +
-${color ​lightgrey} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4} +
- +
-${color orange}Processes:​ ${color}${processes}+
 ${hr} ${hr}
-${color ​orange}RAM:  ​${color}${mem}/​${memmax} ​${color green}${memperc}${color red}${membar 4} +${color ​slate grey}Moc Player${color ​orange}${color green}${alignc}${moc_title}${color ​grey}
-${memgraph F600AA 5000a0} +
-${color ​orange}Swap:​ ${color}${swap}/​${swapmax} +
-${swapperc}% ${swapbar 4}+
 ${hr} ${hr}
-${color orange}SSD /: ${color ​green}${fs_used /}/${color ​red}${fs_size /} ${color ​green}${fs_bar ​/}${color} +${color slate grey}Cpu${color orange}: ${color ​grey} ${freq_gGHz ${color ​grey}${if_match ${cpu}>​80}${color ​red}${else}${endif}${cpu}% ${cpubar ​6
-${color orange}HDD /: ${color ​green}${fs_used /​home/​kawer/​Archive}/${color red}${fs_size /​home/​kawer/​Archive} ${color ​green}${fs_bar 6 /​home/​kawer/​Archive}${color}+${offset 4}${cpugraph bfbfbf 808080}${color ​grey
 +${color slate grey}1${color orange}:​${color ​grey} ${if_match ${cpu cpu0}>80}${color red}${else}${endif}${cpu cpu0}% ${cpubar cpu0}${color ​grey} 
 +${color slate grey}2${color orange}:​${color grey} ${if_match ${cpu cpu1}>​80}${color red}${else}${endif}${cpu cpu1}% ${cpubar cpu1}${color grey} 
 +${color slate grey}3${color orange}:​${color grey} ${if_match ${cpu cpu2}>​80}${color red}${else}${endif}${cpu cpu2}% ${cpubar cpu2}${color grey} 
 +${color slate grey}4${color orange}:​${color grey} ${if_match ${cpu cpu3}>​80}${color red}${else}${endif}${cpu cpu3}% ${cpubar cpu3}${color ​grey}
 ${hr} ${hr}
-${color orange}Moc Player:   ​${color ​green}${moc_title}${color}+${color slate grey}Top Process${color orange}: ​            ${color slate grey}${alignr} PID   ​CPU   MEM 
 +${font Hack:​bold:​size=8}${color ​grey} ${top name 1${alignr}${top pid 1} ${top cpu 1} ${top mem 1} 
 +${color ​slate grey} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2} 
 +${color grey} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3} 
 +${color slate grey} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}${font} 
 +${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}- 
 +${color slate grey}Processes${color orange}: ${color grey}${processes}
 ${hr} ${hr}
-${color orange}IP WLAN: ${color ​green}${addr wlp0s29u1u4} +${color slate grey}RAM${color orange}: ​ ​${font Hack:​bold:​size=8}${color ​grey}${mem${memmax} ${color ​grey}${if_match ${memperc}>​80}${color ​red}${else}${endif}${memperc}${membar 4}${font}
-${color orange}Essid: ​     ​${color ​red}${wireless_essid wlp0s29u1u4} +
-${color ​orange}Up:           ${color}${upspeed wlp0s29u1u4} +
-${color orange}Down:      ​${color}${downspeed wlp0s29u1u4}+
 ${hr} ${hr}
-${color orange}IP LAN  ​${color ​green}${addr eno1+${color slate grey}SSD ​ /${color orange}: ​${font Hack:​bold:​size=8}${color ​grey}${if_match ${fs_free_perc /​}<​20}${color red}${else}${endif}${fs_free_perc /}% ${fs_bar 6 /}${font
-${color orange}Up          ​${color}${upspeed eno1} +${color slate grey}HDD ​ /${color orange}: ​${font Hack:​bold:​size=8}${color ​grey}${if_match ${fs_free_perc /​home/​kawer/​Archive}<​10}${color ​red}${else}${endif}${fs_free_perc /​home/​kawer/​Archive}% ${fs_bar 6 /​home/​kawer/​Archive}${color ​grey}${font}
-${color ​orange}Down:      ​${color}${downspeed eno1}+
 ${hr} ${hr}
-${color orange}IP BR0:   ​${color ​green}${addr br0} +${color slate grey}IP WLAN${color orange}: ${font Hack:​bold:​size=8}${color grey}${addr wlx00c0ca97d630}${font} 
-${color orange}Up          ​${color}${upspeed br0+${color slate grey}Essid ​ ${color orange}: ${font Hack:​bold:​size=8}${color grey}${wireless_essid wlx00c0ca97d630}${font} 
-${color orange}Down     ${color}${downspeed br0}+${color slate grey}Signal ${color orange}: ${font Hack:​bold:​size=8}${color grey}${wireless_link_bar 3,66 wlx00c0ca97d630}${font} 
 +${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}- 
 +${color slate grey}IP LAN ${color orange}: ${font Hack:​bold:​size=8}${color grey}${addr enp3s0}${font} 
 +${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}- 
 +${color slate grey}IP BR0 ${color orange}${font Hack:​bold:​size=8}${color ​grey}${addr br0}${font
 +${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}- 
 +${color slate grey}IP LXC ${color orange}: ​${font Hack:​bold:​size=8}${color ​grey}${addr lxcbr0}${font
 +${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}-${color slate grey}-${color grey}-${color slate grey}- 
 +${color slate grey}IP VPN ${color orange}: ​${font Hack:​bold:​size=8}${color ​grey}${addr proton0}${font}
 ${hr} ${hr}
-${color orange}IP PVPN  ​${color ​green}${addr proton0} +${color slate grey}Route${color orange}:​${color ​grey}${alignc}${font Hack:bold:​size=8}${gw_iface}${font
-${color orange}Up          ​${color}${upspeed proton0+${color slate grey}1${color orange}: ​${font Hack:​bold:​size=8}${color ​grey}${exec ip route | sed -n "1 p" | cut -c1-45}${font}
-${color orange}Down     ${color}${downspeed proton0}+
 ${hr} ${hr}
-${color orange}DEFAULT ROUTE ${color ​green}${gw_iface}${color}+${color slate grey}Dns${color orange}: 
 +${font Hack:​bold:​size=8}${color ​grey}${exec cat /​etc/​resolv.conf | cut -c12-}${font}
 ${hr} ${hr}
-${color ​orange}Network Graph: +${color ​slate grey}IP Public${color orange}:​${color red}${alignc}${font Hack:bold:size=8}${exec curl -s https://​ifconfig.me}${font}${color ​slate grey}
-${color green}${downspeedgraph br0 32,80 ff0000 0000ff}${color red}${upspeedgraph br0 32,80 0000ff ff0000}${color green}${downspeedgraph wlp0s29u1u4 32,80 ff0000 0000ff}${alignr}${color red}${upspeedgraph wlp0s29u1u4 32,80 0000ff ff0000} +
-${color green}lan▼ ${downspeed br0}${color red} ▲lan ${upspeed br0} ${color green}${alignr}wlan▼ ${downspeed wlp0s29u1u4}${color red}${alignr} ▲wlan ${upspeed wlp0s29u1u4} +
-${hr} +
-${color orange}IO SSD: +
-${color red}${diskiograph_read sdb 32,80 0000ff ff0000}${color}${color green}${alignr}${diskiograph_write sdb 32,80 0000ff ff0000}${color} +
-${color red}read ${diskio_read sdb}${color green}${alignr}write ${diskio_write sdb} +
- +
-${color orange}IO HDD: +
-${color red}${diskiograph_read sda 32,80 0000ff ff0000}${color}${color green}${alignr}${diskiograph_write sda 32,80 0000ff ff0000}${color} +
-${color red}read ${diskio_read sda}${color green}${alignr}write ${diskio_write sda}${color orange} +
-${hr} +
-${color orange}IPV4:---      ${color red}${alignc}${exec curl -s https://​ifconfig.me} ${color orange}${alignr}---:​IPV4 +
-${color ​orange}IPV6:​- ​     ${color red}${alignc}${exec curl -s --max-time 2 http://​checkipv6.dyndns.org | cut -c77-112} ${color orange}${alignr}-:​IPV6+
 ${hr} ${hr}
 ]] ]]
 + 
 </​code>​ </​code>​
  
utilisateurs/kawer/config/conkyrc.1593644247.txt.gz · Dernière modification: 02/07/2020 00:57 par kawer

Pied de page des forums

Propulsé par FluxBB