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 →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
utilisateurs:kawer:config:conkyrc [25/04/2020 02:51] kawer [Preview] |
utilisateurs:kawer:config:conkyrc [25/10/2022 19:19] 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-R5aa94d4fd6fe5eb0f5e146f83b69fba3.png?150}} | |
- | {{:utilisateurs:kawer:config:conkyrc_04_2020.png?400|}} | + | |
===== Utilisation ===== | ===== Utilisation ===== | ||
Ligne 23: | 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 = 'DejaVu Sans Mono:size=10', | + | font = 'hack nerd font:regular:size=9', |
- | gap_x = 10, | + | update_interval = 1, |
- | gap_y = 40, | + | uppercase = false, |
- | minimum_height = 5, | + | override_utf8_locale = true, |
- | minimum_width = 5, | + | stippled_borders = 1, |
- | net_avg_samples = 2, | + | border_width = 5, |
- | double_buffer = true, | + | draw_borders = false, |
- | out_to_console = false, | + | draw_graph_borders = true, |
- | out_to_stderr = false, | + | draw_outline = false, |
- | extra_newline = false, | + | draw_shades = false, |
- | own_window = true, | + | show_graph_scale = false, |
- | own_window_colour = '000000', | + | show_graph_range = false, |
- | own_window_class = 'Conky', | + | alignment = 'top_right', |
- | own_window_argb_visual = true, | + | minimum_width = 365, |
- | own_window_argb_value = 70, | + | minimum_height = 1030, |
- | own_window_type = 'dock', | + | maximum_width = 365, |
- | own_window_transparent = true, | + | maximym_height = 1030, |
- | own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', | + | gap_x = 05, |
- | update_interval = 5.0, | + | gap_y = 43, |
- | use_spacer = 'none', | + | net_avg_samples = 2, |
- | show_graph_scale = false, | + | cpu_avg_samples = 4, |
- | show_graph_range = false, | + | short_units = true, |
+ | 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 DejaVu Sans Mono:size=14}${alignc}${time %I:%M:%S} | + | ${color slate grey}${alignc}${time %A %e %B %Y : %Hh%M} |
- | ${font Impact:size=10}${alignc}${time %A, %B %e, %Y} | + | ${hr} |
- | ${font Entopia:size=12}${color orange}CALENDAR ${hr 2}$color | + | ${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} |
- | ${font DejaVu Sans Mono:size=9}${execpi 1800 DA=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DA"'\b'/'\1${color orange}'"$DA"'$color'/} | + | |
${hr} | ${hr} | ||
- | ${color orange}Hostname: ${color}${nodename} | + | ${color slate grey}Uptime ${color orange}: ${color grey}${uptime} |
- | ${color orange}Kernel: ${color}${sysname} ${kernel} | + | |
- | ${color orange}Uptime: ${color}${uptime} | + | |
${hr} | ${hr} | ||
- | ${color orange}CPU:${color} ${freq_g} GHz ${color} $cpu% ${color red}${cpubar 6} | + | ${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} |
- | ${offset 4}${color black}${cpugraph F600AA 5000a0} | + | ${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 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 PID CPU% MEM% | + | ${color slate grey}Moc Player${color orange}: ${color green}${alignc}${moc_title}${color grey} |
- | ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} | + | |
- | ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} | + | |
- | ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} | + | |
- | ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} | + | |
- | ${color orange}Processes: ${color}${processes} | + | |
${hr} | ${hr} | ||
- | ${color orange}RAM: ${color}${mem}/${memmax} | + | ${color slate grey}Cpu${color orange}: ${color grey} ${freq_g} GHz ${color grey}${if_match ${cpu}>80}${color red}${else}${endif}${cpu}% ${cpubar 6} |
- | ${memperc}% ${membar 4} | + | ${offset 4}${cpugraph bfbfbf 808080}${color grey} |
- | ${memgraph F600AA 5000a0} | + | ${color slate grey}1${color orange}:${color grey} ${if_match ${cpu cpu0}>80}${color red}${else}${endif}${cpu cpu0}% ${cpubar cpu0}${color grey} |
- | ${color orange}Swap: ${color}${swap}/${swapmax} | + | ${color slate grey}2${color orange}:${color grey} ${if_match ${cpu cpu1}>80}${color red}${else}${endif}${cpu cpu1}% ${cpubar cpu1}${color grey} |
- | ${swapperc}% ${swapbar 4} | + | ${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}SSD /: ${color}${fs_used /}/${fs_size /} ${fs_bar 6 /} | + | ${color slate grey}Top Process${color orange}: ${color slate grey}${alignr} PID CPU MEM |
- | ${color orange}HDD /: ${color}${fs_used /home/kawer/Archive}/${fs_size /home/kawer/Archive} ${fs_bar 6 /home/kawer/Archive} | + | ${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}Moc Player: ${color green}${moc_title}${color} | + | ${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} |
${hr} | ${hr} | ||
- | ${color orange}IP WLAN: ${color}${color red}${addr wlp0s29u1u4}${color} | + | ${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 wlp0s29u1u4} | + | ${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 wlp0s29u1u4} | + | |
${hr} | ${hr} | ||
- | ${color orange}IP LAN: ${color}${addr eno1} | + | ${color slate grey}IP WLAN${color orange}: ${font Hack:bold:size=8}${color grey}${addr wlx00c0ca97d630}${font} |
- | ${color orange}Up: ${color}${upspeed eno1} | + | ${color slate grey}Essid ${color orange}: ${font Hack:bold:size=8}${color grey}${wireless_essid wlx00c0ca97d630}${font} |
- | ${color orange}Down: ${color}${downspeed eno1} | + | ${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 red}${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}IPV4: ${color red}${exec curl -s https://ifconfig.me}${color} | + | ${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 orange}IPV6: ${color red}${exec curl -s http://checkipv6.dyndns.org | cut -c77-111}${color} | + | |
${hr} | ${hr} | ||
- | ${color orange}Network Graph: | ||
- | ${color black}${downspeedgraph wlp0s29u1u4 32,80 ff0000 0000ff}${alignr}${color black}${upspeedgraph wlp0s29u1u4 32,80 0000ff ff0000} | ||
- | ${color orange} ▼ ${downspeed wlp0s29u1u4}${alignc}${color orange} ${wireless_essid wlp0s29u1u4}${alignr}${color}▲ ${upspeed wlp0s29u1u4} | ||
]] | ]] | ||
+ | |||
</code> | </code> | ||