Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| 04-linux:70-conky [2016/07/18 22:38] – Roge | 04-linux:70-conky [2017/10/06 23:38] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== conky ====== | ||
| + | //" | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | |||
| + | <note warning> | ||
| + | Dès que l'on modifie le fichier source, conky recharge les modifications. | ||
| + | **Mais** cela ne marche pas toujours très bien, en particulier pour les tailles de fenêtres ... | ||
| + | |||
| + | __**Solution :**__ | ||
| + | Tuer le process et le relancer. | ||
| + | </ | ||
| + | {{: | ||
| + | |||
| + | |||
| + | Mon systeme.conkyrc | ||
| + | < | ||
| + | # réglage de la mémoire, pour éviter le clignotement | ||
| + | double_buffer yes | ||
| + | # Soustraire les mémoires tampons de la mémoire utilisée | ||
| + | no_buffers yes | ||
| + | text_buffer_size 2048 | ||
| + | |||
| + | #pour que conky tourne en arrière plan (background no pour les tests) | ||
| + | background yes | ||
| + | |||
| + | # taux de rafraichissement de la fenêtre (en secondes)# taux de rafraichissement de la fenêtre (en secondes) | ||
| + | update_interval 1.0 | ||
| + | update_interval_on_battery 20.0 | ||
| + | # Boucle infinie | ||
| + | total_run_times 0 | ||
| + | |||
| + | # Fenetre | ||
| + | out_to_console no | ||
| + | out_to_stderr no | ||
| + | extra_newline no | ||
| + | own_window yes | ||
| + | own_window_class Conky | ||
| + | own_window_argb_visual yes | ||
| + | own_window_argb_value 80 | ||
| + | own_window_type dock | ||
| + | own_window_hints undecorated, | ||
| + | # Border stippling (dashing) in pixels | ||
| + | stippled_borders 0 | ||
| + | |||
| + | # Font | ||
| + | use_xft yes | ||
| + | #xftfont Courier New:size=10 | ||
| + | xftfont monospace: | ||
| + | xftalpha 0.80 | ||
| + | override_utf8_locale yes | ||
| + | use_spacer none | ||
| + | uppercase no | ||
| + | |||
| + | # Drawing | ||
| + | draw_borders no | ||
| + | draw_graph_borders no | ||
| + | draw_outline no | ||
| + | draw_shades no | ||
| + | |||
| + | show_graph_scale no | ||
| + | show_graph_range no | ||
| + | |||
| + | # The number of samples to average for CPU monitoring. | ||
| + | cpu_avg_samples 2 | ||
| + | net_avg_samples 2 | ||
| + | |||
| + | # taille et positon | ||
| + | #alignment bottom_left | ||
| + | #alignment top_right | ||
| + | default_gauge_size 10 25 | ||
| + | gap_x 1654 | ||
| + | gap_y 724 | ||
| + | |||
| + | # border margins | ||
| + | border_inner_margin 8 | ||
| + | border_outer_margin 2 | ||
| + | # border width | ||
| + | border_width 0 # !!! effet bizarre !!! | ||
| + | # Pad percentages to this many decimals (0 = no padding) | ||
| + | pad_percents 20 | ||
| + | |||
| + | # Minimum size of window: width, height | ||
| + | minimum_size 250, 420 | ||
| + | # Maximum width of window | ||
| + | maximum_width 250 | ||
| + | |||
| + | # | ||
| + | # Couleurs | ||
| + | # | ||
| + | default_color 333333 # used also for borders | ||
| + | default_shade_color 336633 | ||
| + | default_outline_color black | ||
| + | color0 224411 # Dark green | ||
| + | color1 C47c16 # orange | ||
| + | color2 CC2222 # rouge | ||
| + | color3 888888 # Gris clair | ||
| + | color4 555555 # Gris foncé | ||
| + | |||
| + | # | ||
| + | # Display templates | ||
| + | # | ||
| + | # Not used | ||
| + | template0 ${color4}\1 : ${color3}${fs_used \2}/ | ||
| + | # for RAM & Swap | ||
| + | template1 ${color4}\1: | ||
| + | # | ||
| + | # For hard drives | ||
| + | # | ||
| + | template2 ${if_mounted \2}${color4}\1: | ||
| + | # | ||
| + | # For battery | ||
| + | # | ||
| + | template3 ${if_match \2 <= 50 }${color1}${else}${if_match \2 <= 30}${color2}${else}${color0}${endif}${endif}${goto 70}\1 ${alignr}\2%${color3} | ||
| + | |||
| + | # | ||
| + | # Layout & content | ||
| + | # | ||
| + | TEXT | ||
| + | #------ System --------------------------- | ||
| + | ${color4}\ | ||
| + | ${exec grep " | ||
| + | ${exec grep " | ||
| + | $sysname $kernel | ||
| + | $nodename $machine$alignr${freq} MHz | ||
| + | Up time: $uptime${color3} | ||
| + | # | ||
| + | # ----- Network ----------------- | ||
| + | ${voffset 6}\ | ||
| + | ${if_match " | ||
| + | ************************** | ||
| + | *** WIFI disconnected! *** | ||
| + | **************************\ | ||
| + | ${else}\ | ||
| + | ${color4}\ | ||
| + | ESSID: \ | ||
| + | ${if_match " | ||
| + | ${color4}\ | ||
| + | Local IP: | ||
| + | Public IP: ${alignr}${texeci 3600 wget http:// | ||
| + | ${endif} | ||
| + | # | ||
| + | # ----- RAM & Swap --------------- | ||
| + | # | ||
| + | ${voffset 6}\ | ||
| + | ${template1 RAM ${memmax} ${memperc}} | ||
| + | ${template1 Swap $swapmax $swapperc} | ||
| + | # | ||
| + | # ----- TRASH --------------- | ||
| + | # | ||
| + | ${color4}\ | ||
| + | Trash: ${goto 70}${exec du ~/ | ||
| + | # | ||
| + | # ----- Hard drives ---------------------- | ||
| + | # | ||
| + | ${voffset 6}\ | ||
| + | ${template2 Root /} | ||
| + | ${template2 Home /home} | ||
| + | ${template2 hd1 /media/hd1} | ||
| + | ${template2 hd2 /media/hd2} | ||
| + | ${template2 r500 / | ||
| + | # | ||
| + | # ----- Battery ---------------------- | ||
| + | # | ||
| + | ${voffset 6}\ | ||
| + | Bd2at: ${template3 ${battery_bar\ 6,110} $battery_percent } | ||
| + | |||
| + | </ | ||