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).

#76 08-11-2020 20:56:16

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Hello,
De mon côté je suis également de me bidouiller un conky, je donnerai le code une fois que j'aurais finalisé ma config.
Voici une image en attendant :
201108085939257872.png

En ligne

#77 08-11-2020 21:14:16

Anonyme-14
Invité

Re : Partagez vos conky !

hé hé, tu te prends aussi un peu au jeu, zympathique zelui là  big_smile

#78 08-11-2020 21:16:01

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Merci smile
Petite mise à jour :
201108092009346203.png

En ligne

#79 08-11-2020 21:28:12

Anonyme-14
Invité

Re : Partagez vos conky !

c'est mieux smile, c'est quoi qui te manges la moitié de ta ram ?

#80 08-11-2020 21:32:01

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Yes, des conneries comme d'hab !

En ligne

#81 08-11-2020 22:05:31

Anonyme-14
Invité

Re : Partagez vos conky !

à cette heure-ci c'est normal lol
201108100723700659.png
allez hop le dossier compressé ici !
vérifiez les chemins dans les fichiers à votre convenance

#82 09-11-2020 10:33:41

Anonyme-14
Invité

Re : Partagez vos conky !

SuShY je t'ai envoyé un MP pour la trésorerie...

#83 09-11-2020 18:15:50

solar66
Membre
Distrib. : debian stable
Noyau : Linux 5.10.0-9-amd64
(G)UI : cinnamon
Inscription : 23-08-2016

Re : Partagez vos conky !

j'ai un problème avec mon conky; je voudrais remplacer les barres initiales, par celles à point;
je n'ai pas eu de problème jusqu'à HDD, comme montré sur la capture,
cette barre ne veut pas se prolongée, et en plus toutes les indications suivantes n'apparaissent plus;
je pense que le problème viendrait d'un configuration de "conky.config" qui limite la quantité de texte de "conki.text
mais pas trouvé d’option à rajouter, ou à modifier;
si vous avez une idée?merci   mini_20110906145625696717118558.png

conky.config = {
    alignment = 'top_right',
    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 = 'font sans-serif:bold:size=8',
    gap_x = 10,
    gap_y = 40,
    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_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = true,
    own_window_hints = 'below',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    temperature_unit = 'celsius',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='purple',
    color5 ='red',
    color6 ='white',
    color7 ='black',

}

conky.text = [[

${font Hack:size=18}${alignc}${time %H:%M}
${font Hack:size=14}${alignc}${time %A %e %B %Y}
${color white}${hr}
${font Hack:size=12}${color orange}       ${color}${nodename}
${font Abstract:size=12}${color orange}Noyau:   ${color}${sysname} ${kernel}
${color orange}Session   ${color}${uptime}   
${color white}${hr}
${color5}CPU:${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${alignc}${color3}${font fontawesome:pixelsize=20}CPU:${font sans-serif:bold:size=12}${goto 90}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu} == 100}${color5}${else}${color}${endif}▪
${goto 55}${color5}Coeur1:${if_match ${hwmon 0 temp 1}<20}${color1}${else}\
${color1}${if_match ${hwmon 0 temp 1}<30}${color2}${else}\
${color2}${if_match ${hwmon 0 temp 1}<70}${color3}${else}\
${color3}${if_match ${hwmon 0 temp 1}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon 0 temp 1}c°${goto 225}${color5}Coeur2:${if_match ${hwmon 1 temp 3}<20}${color1}${else}\
${color1}${if_match ${hwmon 1 temp 3}<30}${color2}${else}\
${color2}${if_match ${hwmon 1 temp 3}<70}${color3}${else}\
${color3}${if_match ${hwmon 1 temp 3}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon  temp 2}c°
${if_match ${cpu}< 20} ${color2} ${else}\
${color1}${if_match ${cpu}< 50}${color1}${else}\
${color2}${if_match ${cpu}< 70}${color3}${else}\
${color3}${if_match ${cpu}< 90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpugraph cpu0 14,85}${cpugraph cpu1 14,85}${cpugraph cpu2 14,85}${cpugraph cpu3 14,85}
${color3}${font fontawesome:pixelsize=20}1:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}2:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}3:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpo2} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}4:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpo3} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${color orange}Nom             ${font Abstract:size=10}${alignr}  PID  CPU MEM
${font Hack:size=8}${color lightgrey}${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${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}
${font Hack:size=10}${color orange}Processus: ${color}${processes}
${color white}${hr}
${font Hack:size=12}${color orange}RAM: ${color white}${mem}/${memmax}/
${memperc}% ${font sans-serif:bold:size=12}${if_match ${memperc} > 10}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 15}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 20}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 80}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 85}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 90}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${memperc} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${font Hack:size=12}${color orange}SWAP: ${color white}${swap}/${swapmax}
% ${font sans-serif:bold:size=12}${if_match ${swapperc} > 10}${color2}${else}${color}${endif}▪\
${if_match ${swapperc} > 15}${color2}${else}${color}${endif}▪\
${if_match ${swapperc} > 20}${color2}${else}${color}${endif}▪\
${if_match ${swapperc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${swapperc} > 80}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} > 85}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} > 90}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${font Hack:size=12}${color orange}SSD: ${color white}${hddtemp /dev/sda}°C  ${if_match ${hddtemp /dev/sda} > 10}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 15}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 20}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 25}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 30}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 35}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 40}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 45}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 50}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 55}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 60}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 65}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 70}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 75}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 80}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 85}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 90}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 95}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} == 100}${color5}${else}${color}${endif}▪
${font Hack:size=10}${color orange} /:${color green}${fs_used /}/${color red}${fs_size /} ${if_match ${fs_used_perc} > 95}${color4}${else}${color3}${endif}${if_match ${fs_used_perc /} > 0}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 10}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 15}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 20}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 70}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 75}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 80}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 85}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 90}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} == 100}${color5}${else}${color}${endif}▪
${font Hack:size=10}${color orange} /home:${color green}${fs_used /home}/${color red}${fs_size /home} ${if_match ${fs_used_perc} > 95}${color5}${else}${color3}${endif}${if_match ${fs_used_perc /} > 0}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 10}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 15}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 20}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 70}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 75}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 80}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 85}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 90}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${font Hack:size=12}${color orange}HDD: ${color white}${hddtemp /dev/sdb}°C  ${if_match ${hddtemp /dev/sdb} > 10}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 15}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 20}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 25}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 30}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 35}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 40}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 45}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 50}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 55}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 60}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 65}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 70}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 75}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 80}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 85}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 90}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 95}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${color orange}HDD${font Hack:size=8} musique-et-autre: ${font Hack:size=12}${color green}${fs_used /media/musique-et-autre}/${color red}${fs_size /media/musique-et-autre} ${color green}${fs_bar 6 /media/musique-et-autre}${color}
${color white}${hr}
${color orange}Adresse locale: ${color green}${addr enp3s0}
${color orange}         ${color green}entrant▼${downspeed enp3s0}${color green}      sortant▲${upspeed enp3s0}
${color white}${hr}
${color white}Carte Graphique: ${color yellow}${font Hack:size=8}Nnidia/GeForce 9400 GT
${goto 55}${font Hack:size=12}${color green}${nvidia temp} °C
${color white}${hr}${if_running clementine}
${if_match "Playing" == "${execi 10 ~/.conky/clementine status}"}MUSIQUE ${font Hack:size=8}(clementine)
${font Hack:size=10}${color white}Artiste:            ${color red}${execi 10 ~/.conky/clementine artist}
${color white}Album:     ${color yellow}${execi 10 ~/.conky/clementine album}
${color white}Titre:              ${color green}${execi 10 ~/.conky/clementine title}
${color green}Durée:${color green}${execibar 2 ~/.conky/clementine progress}
${endif}

]]

Dernière modification par solar66 (09-11-2020 18:18:07)

En ligne

#84 09-11-2020 18:30:45

Anonyme-14
Invité

Re : Partagez vos conky !

salut solar66,
par exemple ${fs_bar 6,280} 280 pour la longueur à ajuster
*/media/musique-et-autre à l'intérieur des { } je ne suis pas certain que ça soit bon, à moins que tu essaies par exemple avecun truc du genre sda/media/musique-et-autre

#85 09-11-2020 18:38:27

Anonyme-14
Invité

Re : Partagez vos conky !

Les conky weather nécessitants d'être inscrit ou d'avoir l'API je fais une tentative de rendre la méteo avec wttr.in un peu plus visuelle

201109063736215576.png

--[[
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,
    default_color = 'yellow',
    default_outline_color = 'yellow',
    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=16',
    gap_x = 20,
    gap_y = 90,
    minimum_height = 478,
    minimum_width = 410,
    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_transparent = false,
    own_window_hints = 'below',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
}

conky.text = [[
${font sans-serif:bold:size=10}
#---------+
# Météo    |
#---------+
${image /home/toulibre/Téléchargements/glass.png -p -23,-24, -s 472x550}
${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Paris?T0 --silent --max-time 3}
${hr}
${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Lyon?T0 --silent --max-time 3}
${hr}
${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Marseille?T0 --silent --max-time 3}
]]



le fond
mini_201109064213514194.png

#86 09-11-2020 19:55:56

Anonyme-14
Invité

Re : Partagez vos conky !

re solar66, essaies avec ${fs_free_perc} et/ou ${fs_used_perc} si tu souhaites le même genre de barre en rajoutant des lignes avec différents pourcentages.
une adresse pour les variables

#87 09-11-2020 20:38:32

Anonyme
Invité

Re : Partagez vos conky !

@Anonyme-14

Bonsoir,

Tes coins arrondis supérieurs ne sont pas identiques aux coins arrondis inférieurs sur ton desktop. Ce qui est normal car tu pars d'un carré (255x255) pour arriver au final par tes réglages à un rectangle (472x550).
Pour ma part, je crée toujours un fond plus important en hauteur pour un éventuel rajout pour ne pas avoir à étirer wink

Dernière modification par Anonyme (09-11-2020 20:43:50)

#88 09-11-2020 21:17:24

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Anonyme-14 a écrit :

SuShY je t'ai envoyé un MP pour la trésorerie...

Vu, merci big_smile

En ligne

#89 09-11-2020 22:05:36

Anonyme-14
Invité

Re : Partagez vos conky !

Anonyme, oui, j'ai piqué ce fond je ne sais où, pour tester le rendu, j'en ferais un avec inkscape aux bonnes dimensions smile

SuShY, super merci aussi smile

#90 09-11-2020 22:40:03

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Voilà pour moi ce soir mon avancé :
mini_201109110010383456.png

Dernière modification par SuShY (09-11-2020 22:59:23)

En ligne

#91 09-11-2020 23:32:39

Anonyme-14
Invité

Re : Partagez vos conky !

Ah oui SuShY ç'est bien plus abouti comme ça ! smile
Alors comme l'avait très bien suggéré Anonyme je remets le conky météo avec la nouvelle peau.

201109113037469857.png

Le fond, pas top je débute sur inkscape mais aux dimensions smile
201109113404458817.png

--[[
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,
    default_color = 'yellow',
    default_outline_color = 'yellow',
    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=16',
    gap_x = 20,
    gap_y = 90,
    minimum_height = 550,
    minimum_width = 472,
    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_transparent = true,
    own_window_hints = 'below',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
}

conky.text = [[
${font sans-serif:bold:size=10}
#---------+
# Météo    |
#---------+
${image /home/toulibre/Images/Conkys/conky-météo-glass/glass.png -p -1,-1, -s 472x550}

${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Paris?T0 --silent --max-time 3}

${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Lyon?T0 --silent --max-time 3}

${color cccc00}${goto 100}${execpi 300 curl fr.wttr.in/Marseille?T0 --silent --max-time 3}
]]

#92 10-11-2020 07:52:46

solar66
Membre
Distrib. : debian stable
Noyau : Linux 5.10.0-9-amd64
(G)UI : cinnamon
Inscription : 23-08-2016

Re : Partagez vos conky !

par exemple ${fs_bar 6,280} 280 pour la longueur à ajuster
*/media/musique-et-autre à l'intérieur des { } je ne suis pas certain que ça soit bon, à moins que tu essaies par exemple avecun truc du genre sda/media/musique-et-autre


non, non, le problème est autre;
car, si je réduit la longueur de x barres plus de problème
mini_20111007533725696717118852.png

conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 0.5,
    cpu_avg_samples = 4,
    default_color = 'white',
    default_outline_color = 'grey',
    default_shade_color = 'black',
    draw_borders = true,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'Hack:size=8',
    gap_x = 20,
    gap_y = 20,
    minimum_height = 1080,
    minimum_width = 360,
    maximum_width = 360,
    maximym_height = 1080,
    net_avg_samples = 2,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_argb_visual = true,
    own_window_argb_value = 70,
    own_window_type = 'dock',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    update_interval = 5.0,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false,

color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='purple',
    color5 ='red',
    color6 ='white',
    color7 ='black',

}

conky.text = [[

${font Hack:size=18}${alignc}${time %H:%M}
${font Hack:size=14}${alignc}${time %A %e %B %Y}
${color white}${hr}
${font Hack:size=12}${color orange}       ${color}${nodename}
${font Abstract:size=12}${color orange}Noyau:   ${color}${sysname} ${kernel}
${color orange}Session   ${color}${uptime}   
${color white}${hr}
${color5}CPU:${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${alignc}${color3}${font fontawesome:pixelsize=20}CPU:${font sans-serif:bold:size=12}${goto 90}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu} == 100}${color5}${else}${color}${endif}▪
${goto 55}${color5}Coeur1:${if_match ${hwmon 0 temp 1}<20}${color1}${else}\
${color1}${if_match ${hwmon 0 temp 1}<30}${color2}${else}\
${color2}${if_match ${hwmon 0 temp 1}<70}${color3}${else}\
${color3}${if_match ${hwmon 0 temp 1}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon 0 temp 1}c°${goto 225}${color5}Coeur2:${if_match ${hwmon 1 temp 3}<20}${color1}${else}\
${color1}${if_match ${hwmon 1 temp 3}<30}${color2}${else}\
${color2}${if_match ${hwmon 1 temp 3}<70}${color3}${else}\
${color3}${if_match ${hwmon 1 temp 3}<90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}+${hwmon  temp 2}c°
${if_match ${cpu}< 20} ${color2} ${else}\
${color1}${if_match ${cpu}< 50}${color1}${else}\
${color2}${if_match ${cpu}< 70}${color3}${else}\
${color3}${if_match ${cpu}< 90}${color4}${else}\
${color4}${endif}${endif}${endif}${endif}${cpugraph cpu0 14,85}${cpugraph cpu1 14,85}${cpugraph cpu2 14,85}${cpugraph cpu3 14,85}
${color3}${font fontawesome:pixelsize=20}1:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu0} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}2:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu1} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}3:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpo2} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu2} == 100}${color5}${else}${color}${endif}▪
${color3}${font fontawesome:pixelsize=20}4:${font sans-serif:bold:size=12}${goto 35}${if_match ${cpu} > 0}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 5}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 10}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 15}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 20}${color2}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 70}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 75}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpo3} > 80}${color3}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 85}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 90}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu cpu3} == 100}${color5}${else}${color}${endif}▪
${if_match ${cpu}< 20} ${color1} ${else}\
${color1}${if_match ${cpu}< 50}${color2}${else}\
${color2}${if_match ${cpu}< 90}${color3}${else}\
${color3}${if_match ${cpu}< 100}${color4}${else}\
${color white}${hr}
${color orange}Nom             ${font Abstract:size=10}${alignr}  PID  CPU MEM
${font Hack:size=8}${color lightgrey}${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${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}
${font Hack:size=10}${color orange}Processus: ${color}${processes}
${color white}${hr}
${font Hack:size=12}${color orange}RAM: ${color white}${mem}/${memmax}/
${memperc}% ${font sans-serif:bold:size=12}${if_match ${memperc} > 10}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 15}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 20}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 80}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 85}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 90}${color5}${else}${color}${endif}▪\
${if_match ${memperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${memperc} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${font Hack:size=12}${color orange}SWAP: ${color white}${mem}/${swapmax}/${swapperc}
% ${font sans-serif:bold:size=12}${if_match ${swapperc} > 10}${color2}${else}${color}${endif}▪\
${if_match ${swapperc} > 85}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} > 90}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${swapperc} == 100}${color5}${else}${color}${endif}▪
${color white}${hr}
${font Hack:size=12}${color orange}SSD: ${color white}${hddtemp /dev/sda}°C  ${if_match ${hddtemp /dev/sda} > 10}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 80}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 85}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 90}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} > 95}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sda} == 100}${color5}${else}${color}${endif}▪
${font Hack:size=12}${color orange}/: ${font Hack:size=12} ${color green}${fs_used /}/${color red}${fs_size /}    ${if_match ${fs_used /home} > 10}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 15}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 20}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 80}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 85}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 90}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /} == 100}${color5}${else}${color}${endif}▪
${font Hack:size=12}${color orange}/home: ${font Hack:size=12} ${color green}${fs_used /home}/${color red}${fs_size /home}    ${if_match ${fs_used /home} > 10}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 15}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 20}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 85}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 90}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 95}${color5}${else}${color}${endif}▪

${font Hack:size=12}${color orange}HDD: ${color white}${hddtemp /dev/sdb}°C  ${if_match ${hddtemp /dev/sdb} > 10}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 15}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 20}${color2}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 25}${color1}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 80}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 85}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 90}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} > 95}${color5}${else}${color}${endif}▪\
${if_match ${hddtemp /dev/sdb} == 100}${color5}${else}${color}${endif}▪

${font Hack:size=12}${color orange}musique-et-autre: ${font Hack:size=12} ${color green}${fs_used /media/musique-et-autre}/${color red}${fs_size /media/musique-et-autre}    ${if_match ${fs_used /media/musique-et-autre} > 10}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /media/musique-et-autre} > 15}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /media/musique-et-autre} > 20}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /media/musique-et-autre} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 70}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 75}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 80}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 85}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 90}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 95}${color5}${else}${color}${endif}▪
${color white}${hr}
${color orange}Adresse locale: ${color green}${addr enp3s0}
${color orange}         ${color green}entrant▼${downspeed enp3s0}${color green}      sortant▲${upspeed enp3s0}
${color white}${hr}
${color white}Carte Graphique: ${color yellow}${font Hack:size=8}Nvidia/GeForce 9400 GT
${goto 55}${font Hack:size=12}${color green}${nvidia temp} °C
${color white}${hr}${if_running clementine}
${if_match "Playing" == "${execi 10 ~/.conky/clementine status}"}MUSIQUE ${font Hack:size=8}(clementine)
${font Hack:size=10}${color white}Artiste:            ${color red}${execi 10 ~/.conky/clementine artist}
${color white}Album:     ${color yellow}${execi 10 ~/.conky/clementine album}
${color white}Titre:              ${color green}${execi 10 ~/.conky/clementine title}
${color green}Durée:${color green}${execi 10 ~/.conky/clementine getlength}${execibar 2 ~/.conky/clementine progress}
${endif}



]]

En ligne

#93 10-11-2020 09:07:01

Anonyme-14
Invité

Re : Partagez vos conky !

Reprends l'exemple du cpu avec le même nombre des valeurs de pourcentage par exemple comme ci-dessous.
avec moins de valeurs la barre est plus courte.

${alignc}${color3}${font fontawesome:pixelsize=20}CPU:${font sans-serif:bold:size=12}${goto 90}${if_match ${fs_used_perc /home} > 0}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home}> 5}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 10}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 15}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 20}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 70}${color3}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 75}${color3}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 80}${color3}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 85}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 90}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc /home} == 100}${color5}${else}${color}${endif}▪

#94 10-11-2020 09:25:56

Anonyme-14
Invité

Re : Partagez vos conky !

mets le titre au dessus pour garder des longueurs de barres égales ça devrait être plus homogène et .... lorsque tu mets le code sur le forum appuies sur autre code ...

#95 10-11-2020 22:17:31

Anonyme-14
Invité

Re : Partagez vos conky !

horloge révolutionnaire 1ère version par abuyahya en 2012, révisée pour conky 1.10
201110095332129158.png

conkyrc

------------------------------------------------------------------------------+
-- Horloge révolutionnaire 1ère version par abuyahya 2012, révisée pour conky 1.10 par toulibre 10/11/2020    |
------------------------------------------------------------------------------+
conky.config = {
  alignment = 'top_left',
  background = false,
  border_inner_margin = 0,
  border_outer_margin = 0,
  default_color = '#FFFFFF',
  double_buffer = true,
  draw_borders = false,
  draw_graph_borders = false,
  draw_outline = false,
  draw_shades = false,
        font = 'font sans-serif:regular:size=8',
  gap_x = 60,
  gap_y = 90,
  imlib_cache_size = 0,
  maximum_width = 280,
        minimum_height = 280,
  minimum_width = 280,
  net_avg_samples = 2,
  no_buffers = true,
  override_utf8_locale = true,
  own_window = true,
  own_window_class = 'Conky',
  own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  own_window_transparent = true,
  own_window_type = 'desktop',
  update_interval = 1,
  text_buffer_size = 2048,
  total_run_times = 0,
  uppercase = false,
  use_spacer = 'right',
  use_xft = true,
  xftalpha = 1.0,

  lua_load = '/home/toulibre/Téléchargements/horloge-révolutionnaire/rev_midi/horloge-rev.lua',
  lua_draw_hook_post = 'main',
};

conky.text = [[
${voffset 115}${goto 155}${font sans-serif:regular:size=8}${time %H:%M}${font}
${voffset 2}${goto 145}${time %a %d %b}  
]];



horloge-rev.lua

---
--==============================================================================
--          Cups and Saucers
--                               Lua conky script
--
--  author  : Abu Yahya
--  license : Distributed under the terms of GNU GPL v3
--  05.06.2012
-- v.2.0.1
-- v.2.0.2 révisé par toulibre 10/11/2020
--==============================================================================
require cairo bindings included in conky-all
--------------------------------------------------------------------------------
----Adjustable Settings
coffee_table= {
    {
    name='time2',                  arg='%I.%M',                    max_value=12,
    x=130,                         y=130,
    cup_radius=25,
    cup_wall_thickness=90,
    total_angle=360,              
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_length=50,              handle_circ=5,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    graduation_radius=-35+124,
    graduation_thickness=5,        graduation_mark_circ=1.5,
    graduation_mark_angle=30,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    saucer_thickness=6,            thick_saucer_circ=11/12,    
    saucer_radius=-35+135,         thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    inner_saucer=true,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
   {
    name='time',                   arg='%H',                    max_value=12,
    x=130,                         y=130,
    cup_radius=1,
    cup_wall_thickness=3,
    total_angle=360,          
    cup_bg_clr=0xffffff,           cup_bg_alpha=1.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=1.0,
    handle_length=-35+40,          handle_circ=4,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    graduation_radius=-35+127,
    graduation_thickness=1,        graduation_mark_circ=0.5,
    graduation_mark_angle=3,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=6,            thick_saucer_circ=11/12,    
    saucer_radius=-35+135,         thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.0,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    inner_saucer=true,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
    {
    name='time',                   arg='%M',                    max_value=60,
    x=130,                         y=130,
    cup_radius=40,       cup_wall_thickness=120,
           total_angle=360,          
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    graduation_radius=-35+123,
    graduation_thickness=7,        graduation_mark_circ=2,
    graduation_mark_angle=90,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    handle_length=80,              handle_circ=2,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    saucer_thickness=6,            thick_saucer_circ=11/12,
    saucer_radius=-35+155,         thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.0,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
    },
    {
    name='time',                   arg='%S',                    max_value=60,
    x=130,                         y=130,
    cup_radius=-17+59,       cup_wall_thickness=120,
           total_angle=360,        
    cup_bg_clr=0xffffff,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=1.0,
    handle_length=-35+118,         handle_circ=1,
    graduation_radius=-35+125,
    graduation_thickness=3,        graduation_mark_circ=0.5,
    graduation_mark_angle=6,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.5,
    saucer_thickness=5,      thick_saucer_circ=1,
    saucer_radius=-35+145,         thin_saucer_circ=11/12,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.4,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.4,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.0,
    caption='',                    caption2='',
},
 {
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=130,                         y=80,
    cup_radius=20,
    cup_wall_thickness=40,
    cup_start_angle=0,             total_angle=360,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt= -5,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='CPU ',                caption2=' %',
    graduation_radius=20,
    graduation_thickness=3,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=3,            thick_saucer_circ=0.85,
    saucer_radius=25,              thin_saucer_circ=0.85,
    saucer_fg_clr=0xFFFFFF,    saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
    },
    {
    name='freq_g',                 arg='/',                  max_value=5,
    x=130,                         y=80,
    cup_radius=12,
    cup_wall_thickness=23,
    cup_start_angle=0,       total_angle=360,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt= 7,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='',              caption2=' GHz',
    graduation_radius=20,
    graduation_thickness=4,        graduation_mark_circ=4,
    graduation_mark_angle=30,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=3,            thick_saucer_circ=0.75,
    saucer_radius=30,              thin_saucer_circ=0.75,
    saucer_fg_clr=0xFFFFFF,    saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
},
---------------1/2

{
    name='memperc',                arg='/',                      max_value=100,
    x=80,                         y=130,
    cup_radius=12,
    cup_wall_thickness=23,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt=-5,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='RAM ',          caption2=' %',
    graduation_radius=20,
    graduation_thickness=3,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=3,      thick_saucer_circ=0.85,
    saucer_radius=25,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha= 0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
},  
{
    name='swapperc',               arg='/',                      max_value=100,
    x=80,                         y=130,
    cup_radius=12,
    cup_wall_thickness=27,
    cup_start_angle=0,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt= 7,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='Swp ',          caption2=' %',
    graduation_radius=20,
    graduation_thickness=4,        graduation_mark_circ=4,
    graduation_mark_angle=30,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=3,            thick_saucer_circ=0.85,
    saucer_radius=30,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
},
------------------2/3    
{
    name='fs_used_perc',           arg='/home',                      max_value=100,
    x=130,                         y=180,
    cup_radius=12,       cup_wall_thickness=27,
    cup_start_angle=0,       total_angle=360,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt= -5,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='FS /: ',          caption2=' %',
    graduation_radius=20,
    graduation_thickness=3,        graduation_mark_circ=2,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,    
    saucer_thickness=3,            thick_saucer_circ=0.85,
    saucer_radius=25,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
    inner_saucer=true,
},
{
    name='fs_used_perc',           arg='/',                      max_value=100,
    x=130,                         y=180,
    cup_radius=12,       cup_wall_thickness=27,
    cup_start_angle=0,       total_angle=360,
    cup_bg_clr=0xFFFFFF,           cup_bg_alpha=0.0,
    cup_fg_clr=0xFFFFFF,           cup_fg_alpha=0.0,
    handle_fg_clr=0xFFFFFF,        handle_fg_alpha=0.0,
    handle_length=40,              handle_circ=4,
    xtxt=-15,        ytxt= 7,
    txt_weight=0,                  txt_size=7.0,
    txt_fg_clr=0xFFFFFF,           txt_fg_alpha=0.8,
    caption='/Hm: ',           caption2=' %',
    graduation_radius=20,
    graduation_thickness=4,        graduation_mark_circ=4,
    graduation_mark_angle=36,
    graduation_fg_clr=0xFFFFFF,    graduation_fg_alpha=0.0,
    saucer_thickness=3,            thick_saucer_circ=0.85,
    saucer_radius=30,              thin_saucer_circ=0.85,    
    saucer_fg_clr=0xFFFFFF,        saucer_fg_alpha=0.3,
    saucer_mark_fg_clr=0xFFFFFF,   saucer_mark_fg_alpha=0.5,
},
}
 
--Fixed code -do not edit unless you know what you are doing------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- converts color in hexa to decimal
function rgb_to_r_g_b(clr, alpha)
    return ((clr / 0x10000) % 0x100) / 255., ((clr / 0x100) % 0x100) / 255., (clr % 0x100) / 255., alpha
end
-------------------------------------------------------------------------------
------------------------------------------------------------------------
-- displays cups and saucers
local function draw_coffee_table(display, data, value)
     max_value = data['max_value']
     x, y = data['x'], data['y']
     if x==nil then x=conky_window.width/2 end
     if y==nil then y=conky_window.height/2 end
     cup_radius = data['cup_radius']    
     if cup_radius==nil then cup_radius=conky_window.width/4 end 
     cup_wall_thickness = data['cup_wall_thickness']
     if cup_wall_thickness==nil then cup_wall_thickness=20 end
     handle_length, handle_circ = data['handle_length'], data['handle_circ']
     if handle_length==nil then handle_length=20 end
     if handle_circ==nil then handle_circ=1 end
     cup_start_angle = data['cup_start_angle']
     if cup_start_angle == nil then cup_start_angle =0 end
     total_angle = data['total_angle']
     if total_angle == nil then total_angle=360 end
     cup_sector_angle = (math.abs(total_angle))/max_value  
     cup_end_angle = total_angle + cup_start_angle
     cup_bg_clr, cup_bg_alpha = data['cup_bg_clr'], data['cup_bg_alpha']
     if cup_bg_clr==nil then cup_bg_clr =0xffffff end
     cup_fg_clr, cup_fg_alpha = data['cup_fg_clr'], data['cup_fg_alpha']
     if cup_fg_clr==nil then cup_fg_clr =0xffffff end
     if cup_fg_alpha==nil then cup_fg_alpha=0 end
     handle_fg_clr, handle_fg_alpha = data['handle_fg_clr'], data['handle_fg_alpha']  
     if handle_fg_clr==nil then handle_fg_clr = 0xffffff end
     if handle_fg_alpha==nil then handle_fg_alpha=0 end
     
     saucer_radius = data['saucer_radius']
     if saucer_radius==nil then saucer_radius=conky_window.width/2 end
     total_saucer_angle=data['total_saucer_angle']
     if total_saucer_angle==nil then total_saucer_angle=360 end
     saucer_sector_angle=(math.abs(total_saucer_angle))/max_value  
     saucer_thickness = data['saucer_thickness']
     if saucer_thickness==nil then saucer_thickness=6 end
     saucer_fg_clr = data['saucer_fg_clr']
     if saucer_fg_clr ==nil then saucer_fg_clr=0 end
     saucer_fg_alpha = data['saucer_fg_alpha']
     if saucer_fg_alpha ==nil then saucer_fg_alpha=0 end
     
     saucer_mark_fg_alpha = data['saucer_mark_fg_alpha']
     if saucer_mark_fg_alpha ==nil then saucer_mark_fg_alpha=0 end
     saucer_mark_fg_clr = data['saucer_mark_fg_clr']
     if saucer_mark_fg_clr ==nil then saucer_mark_fg_clr=0xffffff end
     thick_saucer_circ = data['thick_saucer_circ']
     if thick_saucer_circ==nil then thick_saucer_circ =0.9 end
     thin_saucer_circ = data['thin_saucer_circ']
     if thin_saucer_circ==nil then thin_saucer_circ =0.9 end
     inner_saucer = data['inner_saucer']
     
     graduation_radius = data['graduation_radius']
     if graduation_radius ==nil then graduation_radius = conky_window.width/3 end
     graduation_thickness, graduation_mark_circ = data['graduation_thickness'], data['graduation_mark_circ']
     if graduation_thickness ==nil then graduation_thickness = 2 end
     if graduation_mark_circ ==nil then graduation_mark_circ = 1 end
     graduation_mark_angle = data['graduation_mark_angle']
     if graduation_mark_angle == nil then graduation_mark_angle = total_angle/10 end
     graduation_fg_clr, graduation_fg_alpha = data['graduation_fg_clr'], data['graduation_fg_alpha']
     if graduation_fg_clr ==nil then graduation_fg_clr= 0xffffff end
     if graduation_fg_alpha==nil then graduation_fg_alpha =0 end
     
     
     txt_weight, txt_size = data['txt_weight'], data['txt_size']
     if txt_weight == nil then txt_weight=1 end
     if txt_size == nil then txt_size=8 end
     txt_fg_clr, txt_fg_alpha = data['txt_fg_clr'], data['txt_fg_alpha']
     if txt_fg_clr ==nil then txt_fg_clr= 0xffffff end
     if txt_fg_alpha==nil then txt_fg_alpha =0 end
     caption = data['caption']
     if caption==nil then caption='' end
     caption2 = data['caption2']
     if caption2==nil then caption2='' end
     xtxt, ytxt= data ['xtxt'], data['ytxt']
     if xtxt ==nil then xtxt=0 end
     if ytxt ==nil then ytxt=0 end

--convert degree to rad and rotate (0 degree is top/north)
    function angle_to_position(start_angle, current_angle)    
      if total_angle < 0 then
        local pos = start_angle - current_angle
        return ( ( pos * (math.pi / 180) ) - (math.pi / 2) )
      else
        local pos = current_angle + start_angle
        return ( ( pos * (math.pi / 180) ) - (math.pi / 2) )
      end  
    end
--cup centre background    
  if cup_bg_alpha >0   then
    if total_angle < 0 then
      cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_end_angle, 0))
    else
      cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, cup_end_angle))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(cup_bg_clr, cup_bg_alpha))
    cairo_set_line_width(display, cup_wall_thickness)
    cairo_stroke(display)
  end
--cup wall fg    
  if cup_fg_alpha > 0 then
   local fg_stop_arc = (cup_sector_angle * value)
    if total_angle < 0 then
  cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, fg_stop_arc))
    else
  cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, 0), angle_to_position(cup_start_angle, fg_stop_arc))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(cup_fg_clr, cup_fg_alpha))
    cairo_set_line_width(display, cup_wall_thickness)
    cairo_stroke(display)
  end
-- cup handle
  if handle_fg_alpha>0 then
    local start_handle = (cup_sector_angle * value) - (handle_circ*0.5)
    local stop_handle = (cup_sector_angle * value) +  (handle_circ*0.5)
    if total_angle < 0 then
  cairo_arc_negative(display, x, y, cup_radius, angle_to_position(cup_start_angle, start_handle), angle_to_position(cup_start_angle, stop_handle))
    else
  cairo_arc(display, x, y, cup_radius, angle_to_position(cup_start_angle, start_handle), angle_to_position(cup_start_angle, stop_handle))
    end
    cairo_set_line_width(display, handle_length)    
    cairo_set_source_rgba(display, rgb_to_r_g_b(handle_fg_clr, handle_fg_alpha))
    cairo_stroke(display)
  end
--saucers  
---thick saucer    
    if saucer_fg_alpha > 0 and (thin_saucer_circ >0 or thick_saucer_circ > 0)
      then
  if value < (max_value/2)
        then j = value + ((max_value*total_saucer_angle)/720)
        else j = value - ((max_value*total_saucer_angle)/720)
  end
 
    local start_saucer = (saucer_sector_angle * j) - (value*saucer_sector_angle*0.5*thick_saucer_circ)
    local stop_saucer = (saucer_sector_angle * j) + (value*saucer_sector_angle*0.5*thick_saucer_circ)
    if total_angle < 0 then
  cairo_arc_negative(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_saucer), angle_to_position(cup_start_angle, stop_saucer))
    else
  cairo_arc(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_saucer), angle_to_position(cup_start_angle, stop_saucer))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_fg_clr, saucer_fg_alpha))
    cairo_set_line_width(display, saucer_thickness)
    cairo_stroke(display)
    --thin saucer
      if inner_saucer == true
      then rt = (saucer_radius - 0.5) + (0.5 * saucer_thickness)
      else rt = (saucer_radius + 0.5) - (0.5 * saucer_thickness)  
      end
    local start_thin_saucer = (saucer_sector_angle * j) - (max_value *0.5*saucer_sector_angle*thin_saucer_circ)
    local stop_thin_saucer = (saucer_sector_angle * j) + (max_value *0.5*saucer_sector_angle*thin_saucer_circ)
    if total_angle < 0 then
  cairo_arc_negative(display, x, y, rt, angle_to_position(cup_start_angle, start_thin_saucer), angle_to_position(cup_start_angle, stop_thin_saucer))
    else
  cairo_arc(display, x, y, rt, angle_to_position(cup_start_angle, start_thin_saucer), angle_to_position(cup_start_angle, stop_thin_saucer))
    end
    cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_fg_clr, saucer_fg_alpha))
    cairo_set_line_width(display, 1)
    cairo_stroke(display)
   end
--saucer mark
    if saucer_mark_fg_alpha > 0 then
  local start_cm = (saucer_sector_angle * value) - (handle_circ *0.5 )
  local stop_cm = (saucer_sector_angle * value) + (handle_circ *0.5 )
  if total_angle < 0 then
    cairo_arc_negative(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_cm), angle_to_position(cup_start_angle, stop_cm))
  else
    cairo_arc(display, x, y, saucer_radius, angle_to_position(cup_start_angle, start_cm), angle_to_position(cup_start_angle, stop_cm))
  end
  cairo_set_source_rgba(display, rgb_to_r_g_b(saucer_mark_fg_clr, saucer_mark_fg_alpha))
        cairo_set_line_width(display, saucer_thickness)
        cairo_stroke(display)
    end
--graduation mark
     if graduation_radius > 0 and graduation_thickness > 0 and graduation_mark_angle > 0 then
        number_graduation = (math.abs(total_angle) +1)/ graduation_mark_angle
        local start_arc_grad = 0
        local stop_arc_grad = 0
  local i = 0
        while i < number_graduation do            
            local start_arc_grad = (graduation_mark_angle * (i)) - (graduation_mark_circ *0.5)
            local stop_arc_grad = (graduation_mark_angle * (i)) + (graduation_mark_circ *0.5)
            if total_angle < 0 then
        cairo_arc_negative(display, x, y, graduation_radius, angle_to_position(cup_start_angle, start_arc_grad), angle_to_position(cup_start_angle, stop_arc_grad))
      else
        cairo_arc(display, x, y, graduation_radius, angle_to_position(cup_start_angle, start_arc_grad), angle_to_position(cup_start_angle, stop_arc_grad))
      end
      cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_clr,graduation_fg_alpha))
            cairo_set_line_width(display, graduation_thickness)
      cairo_stroke(display)            
            i = i + 1
        end
    end  
-- text
  if txt_fg_alpha>0 then
    cairo_select_font_face (display, "hooge 05_53", CAIRO_FONT_SLANT_NORMAL, txt_weight);
    cairo_set_font_size (display,txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_clr, txt_fg_alpha))
    cairo_move_to (display,x+xtxt,y+ytxt)
    cairo_show_text (display, caption ) cairo_show_text (display,value)cairo_show_text (display, caption2 )
    cairo_stroke (display)
  end
end
-------------------------------------------------------------------------------
-- loads data and displays table_settings

function display_coffee_table(display)
    local function load_coffee_table(display, data)
        local str, value = '', 0      
  if data['name'] == 'time2' then
      local max_value = data['max_value']
            str = string.format('${time %s}', data['arg'])
            str = conky_parse(str)
            local value2 = tonumber(str:sub(0,2))
      if value2 == max_value then value2 = 0 end
      value = value2 + (tonumber(str:sub(4,5))/60)             
  else
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
        end  
        if value == nil then value = 0 end
        draw_coffee_table(display, data, value)
    end
    for i in pairs(coffee_table) do
        load_coffee_table(display, coffee_table[i])
    end
end
-------------------------------------------------------------------------------
runscheck = 0 -- fix for draw shades running script twice on every update
function conky_main()
    if conky_window == nil then
        return
    end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local display = cairo_create(cs)
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    if update_num > 5 then
      cairo_set_antialias (display, CAIRO_ANTIALIAS_SUBPIXEL)
      display_coffee_table(display)
      cairo_set_antialias (display, CAIRO_ANTIALIAS_DEFAULT)
    end    
    cairo_surface_destroy(cs)
    cairo_destroy(display)
end

#96 11-11-2020 17:48:27

Anonyme-14
Invité

Re : Partagez vos conky !

horloge digitale mise à jour pour conky 1.10

mini_201111055055798881.png

horloge digitale à télécharger

j'espère que cette discussion procurera également une grande collection pour les membres et visiteurs smile

#97 11-11-2020 20:15:55

Anonyme-14
Invité

Re : Partagez vos conky !

Celui-ci me faisais baver, mis à jour et débuggé

201111081334228131.png

Changez les chemins à votre convenance
éditez vos connexions dans le fichier conkyrc (ip link dans le terminal)
éditez également vos connexions dans le fichier rings-v1.2.2.lua
déplacez les fonts dans le dossier /usr/share/fonts/TTF/, créez le s'il n'existe pas
mettez à jours les fonts avec la commande dans le terminal

fc-cache -fv


démarrez conky-circles-dark-blue dans le terminal avec la commande

conky -b -c ./conkyrc



*****Le dossier compressé*****

#98 11-11-2020 20:26:48

SuShY
CA Debian-Facile
Lieu : Chartres
Distrib. : Debian Sid x86_64
Noyau : Linux > 6.0.0-2-amd64
(G)UI : i3WM - 4.21-1
Inscription : 06-01-2018
Site Web

Re : Partagez vos conky !

Top ton dernier Anonyme-14 !

En ligne

#99 11-11-2020 20:44:23

Anonyme-14
Invité

Re : Partagez vos conky !

Je laisse les crédits à l'auteur (un français) dans les fichiers, il n'était pas simple à débugger celui-ci ... m'enfin il fonctionne en installant seulement conky-all ! smile
Régalez vous !

#100 11-11-2020 21:39:55

solar66
Membre
Distrib. : debian stable
Noyau : Linux 5.10.0-9-amd64
(G)UI : cinnamon
Inscription : 23-08-2016

Re : Partagez vos conky !

à mon avis, j'ai du passé à côté de quelques chose, c'est nettement moins sympa sur mon écran.:)
les seules choses que j'ai modifié, c'est la chemin dans conkyrc, et tout ce qui se rattache à la batterie


mini_20111109390625696717121657.png

En ligne

Pied de page des forums