Debian Debian-France Debian-Facile Debian-fr.org Debian-fr.xyz Debian ? Communautés

Debian-facile

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

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

#151 14-04-2021 14:14:02

robert2a
Membre
Distrib. : Arch Linux
(G)UI : Mate
Inscription : 15-11-2014

Re : Partagez vos conky !

Bonjour
tout simple sur fond écran buster sans transparence (toile libre refuse mon image ( 295ko) ).
sur une machine threaripper 1950X et Asus X399-A
le conkyrc


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 = 'DejaVu Sans Mono:size=12',
    gap_x = 10,
    gap_y = 35,
    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_class = 'Conky',
    own_window_type = 'desktop',
    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 = [[
${color green}Conky:$color $conky_version
${color green}Noyau:$color $kernel
${color green}Machine:$color $nodename
$hr
${color cyan}Uptime:$color $uptime
${color cyan}Frequency (in MHz):$color $freq
${color cyan}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color cyan}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color cyan}CPU Usage:$color $cpu% ${cpubar 4}
${color cyan}CPU Temp1:$color ${execi 15 sensors k10temp-pci-00cb | awk '/Tctl/ {print ($2-27)}'}°C
${color cyan}CPU Temp2:$color ${execi 15 sensors k10temp-pci-00c3 | awk '/Tctl/ {print ($2-27)}'}°C
${color cyan}CPU Tccd1:$color ${execi 15 sensors k10temp-pci-00c3 | awk '/Tccd1/ {print $2}'}
$hr
${color white}Processes:$color $processes  ${color white}Running:$color $running_processes
$hr
${color yellow}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color yellow}Networking:
Up:$color ${upspeed enp5s0} ${color yellow} - Down:$color ${downspeed enp5s0}
$hr
${color rose}Samsung960EVO Temp1:$color ${execi 15 sensors nvme-pci-4100 | awk '/Sensor 1:/ {print $3}'}
${color rose}Samsung960EVO Temp2:$color ${execi 15 sensors nvme-pci-4100 | awk '/Sensor 2:/ {print $3}'}
${color rose}CT525MX300 Temp:$color ${execi 15 sensors drivetemp-scsi-0-0 | awk '/temp1/ {print $2}'}
${color rose}WDRedPro Temp:$color ${execi 15 sensors drivetemp-scsi-1-0 | awk '/temp1/ {print $2}'}
]]
 



ps: avec le fond d'écran de bullseye et la transparence sympa aussi
mini_210414023612639375.png

Dernière modification par robert2a (14-04-2021 14:38:02)

Hors ligne

#152 14-04-2021 18:24:24

Toulibre
Membre
Lieu : Ganges, Cévennes
Distrib. : Debian 10.9
Noyau : Linux 4.19.0-16-amd64
(G)UI : xfce-thunar
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

Bonjour,

   Ton conky est sympa smile ,
Concernant la taille  lorsque tu viens à manquer de place, tu peux jouer avec ces valeurs en exemples ci-dessous :


 minimum_height = 240,
 maximum_height = 640,
 minimum_width = 240,
 maximum_width = 640,
 

Dernière modification par Toulibre (14-04-2021 18:24:43)

Hors ligne

#153 14-04-2021 18:53:48

robert2a
Membre
Distrib. : Arch Linux
(G)UI : Mate
Inscription : 15-11-2014

Re : Partagez vos conky !

Bonjour
merci pour l'info , pour l'instant j'ai contourné le souci (sur 2 lignes)


${color cyan}RAM Usage:$color $mem/$memmax
 $memperc% ${membar 4}
${color cyan}Swap Usage:$color $swap/$swapmax
 $swapperc% ${swapbar 4}
$hr
${color cyan}CPU Type:$color ${execi 15 lscpu | awk '/Nom de modèle :/ {print $6 $7}'}
${color cyan}Usage:$color $cpu% ${cpubar 4}
${color cyan}Tdie1:$color ${execi 15 sensors k10temp-pci-00cb | awk '/Tctl/ {print ($2-27)}'}°C
${color cyan}Tdie2:$color ${execi 15 sensors k10temp-pci-00c3 | awk '/Tctl/ {print ($2-27)}'}°C
${color cyan}Tccd1(+27°C):$color ${execi 15 sensors k10temp-pci-00c3 | awk '/Tccd1/ {print $2}'}
$hr
${color white}Processes:$color $processes  ${color white}Running:$color $running_processes
$hr
${color yellow}File systems:
 / $color${fs_used /}/${fs_size /}
 ${fs_bar 6 /}
 


j'ai des "bargraphes" complet

Dernière modification par robert2a (14-04-2021 18:54:28)

Hors ligne

#154 30-06-2021 04:03:57

kawer
Membre
Lieu : Terre
Distrib. : Stable
Noyau : Current
(G)UI : xfce
Inscription : 08-10-2013

Re : Partagez vos conky !

mini_210630041244431673.png

conky.config = {
    background = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_transparent = true,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
    own_window_argb_visual = true,
    own_window_argb_value = 10,
    double_buffer = true,
    use_spacer = 'left',
    use_xft = true,
    xftalpha = 0.8,
    font = 'hack nerd font:regular:size=8',
    update_interval = 2.0,
    uppercase = false,
    override_utf8_locale = true,
    stippled_borders = 1,
    border_width = 5,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    show_graph_scale = false,
    show_graph_range = false,
    alignment = 'top_left',
    minimum_width = 365,
    minimum_height = 1023,
    maximum_width = 365,
    maximym_height = 1023,
    gap_x = 03,
    gap_y = 250,
    net_avg_samples = 2,
    cpu_avg_samples = 4,
    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 = [[
${color red}
${hr}
${color tan}Mises-à-jour disponibles${color orange}: ${font Hack:bold:size=8}${color moccasin}${alignr} ${texeci 1800 echo $(($(apt list --upgradable 2>/dev/null | wc -l) - 1))}${font}
${color tan}En attente de redémarrage${color orange}: ${font Hack:bold:size=8}${color moccasin}${alignr} ${execi 1800 test -e /var/run/reboot-required && echo oui || echo non}${font}
${hr}
${color tan}Moc Player${color orange}: ${color gold}${alignc}${moc_title}${color moccasin}

${if_match "${execi 10 qdbus org.mpris.MediaPlayer2.Goodvibes /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus}" == "Playing"}\
${color tan}Goodvibes Radio Player :${color moccasin}
${color tan}-- Station:${color gold}${alignr}${execpi 10 qdbus org.mpris.MediaPlayer2.Goodvibes /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep "^goodvibes:station:" | cut -d':' -f3-}${color moccasin}
${color tan}-- Artiste/Track:${color gold}${alignr}${execpi 10 qdbus org.mpris.MediaPlayer2.Goodvibes /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep "^xesam:title:" | cut -d':' -f3-}${color moccasin}\
${else}\
${color tan}Goodvibes is not playing${color moccasin}
${color tan}${alignc}Station: ---${color moccasin}
${color tan}${alignc}Artiste/Track: --- ${color moccasin}/
${endif}
${hr}
${color tan}Cpu${color orange}: ${color moccasin} ${freq_g} GHz ${color moccasin}${if_match ${cpu}>80}${color red}${else}${endif}${cpu}% ${cpubar 6}
${offset 4}${cpugraph bfbfbf 808080}${color moccasin}
${color tan}1${color orange}:${color moccasin} ${if_match ${cpu cpu0}>80}${color red}${else}${endif}${cpu cpu0}% ${cpubar cpu0}${color moccasin}
${color tan}2${color orange}:${color moccasin} ${if_match ${cpu cpu1}>80}${color red}${else}${endif}${cpu cpu1}% ${cpubar cpu1}${color moccasin}
${color tan}3${color orange}:${color moccasin} ${if_match ${cpu cpu2}>80}${color red}${else}${endif}${cpu cpu2}% ${cpubar cpu2}${color moccasin}
${color tan}4${color orange}:${color moccasin} ${if_match ${cpu cpu3}>80}${color red}${else}${endif}${cpu cpu3}% ${cpubar cpu3}${color moccasin}
${hr}
${color tan}Top Process${color orange}:             ${color tan}${alignr} PID   CPU   MEM
${font hack nerd font:regular:bold:size=8}${color moccasin} ${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${color tan} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${color moccasin} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${color tan} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}${font}
${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color tan}-
${color tan}Processes${color orange}: ${color moccasin}${processes}
${hr}
${color tan}RAM${color orange}:  ${font hack nerd font:regular:size=8}${color moccasin}${mem} / ${memmax} ${color moccasin}${if_match ${memperc}>80}${color red}${else}${endif}${memperc}% ${membar 4}${font}
${hr}
${color tan}SSD${color orange}: ${font hack nerd font:regular:size=8}${color moccasin}${if_match ${fs_used_perc /}>80}${color red}${else}${endif}${fs_used_perc /}% ${fs_bar 6 /}${font}
${color tan}HDD${color orange}: ${font hack nerd font:regular:size=8}${color moccasin}${if_match ${fs_used_perc /home/galadriel/Archive}>70}${color red}${else}${endif}${fs_used_perc /home/galadriel/Archive}% ${fs_bar 6 /home/galadriel/Archive}${color moccasin}${font}
${hr}
${color tan}IP WLAN${color orange}:    ${font hack nerd font:regular:size=8}${color moccasin}${addr wlan0}
${color tan}Essid ${color orange}:     ${font hack nerd font:regular:size=8}${color moccasin}${wireless_essid wlan0}${font}
${color tan}Signal${color orange}:     ${font hack nerd font:regular:size=8}${color moccasin}${wireless_link_bar 3,66 wlan0}${font}
${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color tan}-
${color tan}IP LAN${color orange}:     ${font hack nerd font:regular:size=8}${color moccasin}${addr eth0}
${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color slate grey}-${color tan}-${color moccasin}-${color tan}-
${color tan}IP BR0 ${color orange}:    ${font hack nerd font:regular:size=8}${color moccasin}${addr br0}
${color tan}-${color moccasin}-${color tan}-${color tan}-${color moccasin}-${color slate grey}-${color tan}-${color moccasin}-${color tan}-
${color tan}IP VPN ${color orange}:    ${font hack nerd font:regular:size=8}${color moccasin}${addr proton0}
${hr}
${color tan}Route${color orange}:${color moccasin}${alignc}${font hack nerd font:regular:size=8}${gw_iface}${font}
${color tan}1${color orange}: ${font Hack:bold:size=8}${color moccasin}${exec ip route | sed -n "1 p" | cut -c1-45}${font}
${hr}
${color tan}Dns${color orange}:
${font Hack:bold:size=8}${color moccasin}${exec tail -n 4 /etc/resolv.conf | cut -c12-}${font}
${hr}
${color tan}IP Public${color orange}:${color red}${alignc}${font Hack:bold:size=8}${texeci 8000 curl -s ifconfig.me}${font}${color tan}
${hr}
${color tan}Interface${color orange}: ${alignc}${color tan} Dl${color orange}: ${alignr}${color tan} Up${color orange}:
${color tan}wlan${color orange}: ${alignc}${color moccasin}${downspeed wlan0} ${alignr}${color moccasin}${upspeed wlan0}
${color tan}lan${color orange}: ${alignc}${color moccasin}${downspeed eth0} ${alignr}${color moccasin}${upspeed eth0}
${color tan}br0${color orange}: ${alignc}${color moccasin}${downspeed br0} ${alignr}${color moccasin}${upspeed br0}
${color tan}tap${color orange}: ${alignc}${color moccasin}${downspeed tap0} ${alignr}${color moccasin}${upspeed tap0}
${color tan}vpn${color orange}: ${alignc}${color moccasin}${downspeed proton0} ${alignr}${color moccasin}${upspeed proton0}
${hr}
${color tan}${alignc}${color moccasin}${time %A %e %B %Y : %Hh%M}${color orange} : ${font Hack:bold:size=8}${color gold}${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 }${font}${color red}
${hr}
]]


Thinkpad T530 avec Coreboot.

Hors ligne

#155 14-12-2021 21:26:03

Ben_Onion
Membre
Distrib. : Dernière version de Debian-Facile (XFCE)
Inscription : 28-04-2020

Re : Partagez vos conky !

79pf.png

Salut à tous, je voulais voir si je peux trouver un nouveau Conky pour changer un peu et je suis tombé sur cette discussion, voici donc mon Conky actuel (basé sur "Minimalis Conky 1.3" mais je l'ai francisé et modifié).

Et sur mon bureau ça donne ça :

d2yp.png


conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = '#7E98A5',
    default_outline_color = 'white',
    default_shade_color = 'white',
    color1 = '#C5D2D8',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'Roboto Mono:size=8',
    gap_x = 30,
    gap_y = 30,
    minimum_height = 250,
    minimum_width = 220,
    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_class = 'Conky',
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_type = 'normal',
    own_window_hints ='undecorated,sticky,skip_taskbar,skip_pager,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 = [[
${color1}${font ConkySymbols:size=23}A${font} ${voffset -10}SYSTÈME D'EXPLOITATION (OS) $hr ${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Distribution GNU/Linux : ${color}${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 |  sed 's/"//g'} ${alignr}${color1}Nom de la machine : ${color}${texeci 99999 hostname}${color}
${color1}${goto 35}Système démarré depuis : ${color}$uptime_short ${color1}${alignr}Noyau du système (Kernel) : ${color}$kernel
${color1}${font ConkySymbols:size=23}n${font} ${voffset -10} PROCESSUS $hr${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Processus en arrière-plan : ${color}$processes ${alignr}${color1}Processus actifs : ${color}$running_processes
${color1}${goto 35}Charge du processeur (CPU) ${font ConkySymbols:size=10}E${font} ${alignr}Utilisation de la mémoire vive (RAM) ${font ConkySymbols:size=10}E${font} ${color}
${goto 35}${top name 1} ${goto 180}${color}${top cpu 1}% ${alignr}${top_mem name 1}${top_mem mem_res 1}
${goto 35}${top name 2} ${goto 180}${color}${top cpu 2}% ${alignr}${top_mem name 2}${top_mem mem_res 2}
${goto 35}${top name 3} ${goto 180}${color}${top cpu 3}% ${alignr}${top_mem name 3}${top_mem mem_res 3}
${goto 35}${top name 4} ${goto 180}${color}${top cpu 4}% ${alignr}${top_mem name 4}${top_mem mem_res 4}
${goto 35}${top name 5} ${goto 180}${color}${top cpu 5}% ${alignr}${top_mem name 5}${top_mem mem_res 5}
${color1}${font ConkySymbols:size=23}F${font} ${voffset -10} PROCESSEUR $hr${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Température du processeur (CPU) : ${color}${exec sensors | grep 'temp1' | awk 'NR==1{print $2}'} ${color1}${alignr}Architecture : ${color}${machine}${color}
${color1}${goto 35}Température du processeur graphique (GPU) : ${color}${exec sensors | grep 'temp1' | awk 'NR==2{print $2}'}
${color1}${goto 35}Moyenne de la charge du système (load average) sur 1' , 5' et 15' : ${color}${loadavg}
${color1}${goto 35}Répartition de l'utilisation du processeur :
${color1}${goto 35}Cœur 1 : ${color}${freq_g 1} GHz ${alignr}${cpu cpu0}% ${cpubar cpu0 4,100}
${color1}${goto 35}Cœur 2 : ${color}${freq_g 2} GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,100}
${color1}${goto 35}Cœur 3 : ${color}${freq_g 3} GHz ${alignr}${cpu cpu2}% ${cpubar cpu2 4,100}
${color1}${goto 35}Cœur 4 : ${color}${freq_g 4} GHz ${alignr}${cpu cpu3}% ${cpubar cpu3 4,100}
${color1}${font ConkySymbols:size=23}J${font} ${voffset -10}MÉMOIRE $hr${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Mémoire vive (RAM) disponible :  ${color}${memeasyfree}
${color1}${goto 35}Mémoire vive (RAM) utilisée : ${color}$mem utilisée sur $memmax ${alignr}$memperc% ${membar 4,100}
${color1}${goto 35}Espace d'échange (SWAP) : ${color}$swap utilisé $alignr}$swapperc% ${swapbar 4,100}
${color1}${font ConkySymbols:size=23}k${font} ${voffset -10} STOCKAGE $hr${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Espace de stockage libre dans la partition Parrot du SSD : ${color}${fs_free /}
${color1}${goto 35}Utilisation de l'espace de stockage : ${color}${fs_used /} utilisés sur ${fs_size /} ${alignr}${fs_used_perc /}% ${fs_bar 4,100 /}
${color1}${font ConkySymbols:size=23}b${font} ${voffset -10} RÉSEAU ET WIFI $hr${color}
${color1}${goto 35}${stippled_hr}${color}
${color1}${goto 35}Nom du réseau WiFi (SSID) : ${color}${wireless_essid wlan0} ${color1}${alignr}Qualité du signal : ${color}${wireless_link_qual_perc wlan0}% ${wireless_link_bar 4,100 wlan0}
${color1}${goto 35}Données totales échangées en réception/émission : ${color}${totaldown wlan0} / ${totalup wlan0}
${color1}${goto 35}Débit en réception/émission : ${color}${downspeed wlan0} / ${upspeed wlan0}${color1}${alignr}${color1}Débit binaire (bitrate) : ${color}${wireless_bitrate wlan0}
${color1}${goto 35}Adresse IPv4 privée : ${color}${if_existing /proc/net/route wlan0}${addr wlan0}${else}${if_existing /proc/net/route eth0}${addr eth0}${else}Réseau déconnecté${endif}${endif}${alignr}${color1}Adresse IPv4 publique : ${color}${texeci 5 curl https://ifconfig.me/ip}
${color1}${goto 35}Adresse IPv4 du résolveur DNS : ${color}${nameserver}
# |--TIME AND DATE

${alignc}${color}${font Army:style=Bold:size=20}${time %A %d %B %Y}
${alignc 38}${color2}${font Army:style=Bold:size=50}${alignc}${time %H:%M:%S}${font}${color}


]]
 



Astuces pour les prochains posteurs :
Site d'hébergement de l'image sans limite de durée de stockage : https://www.zupimages.net/up.php
Pour bien afficher l'image prendre le lien de la ligne "Code BBCode (pour forum)"

Hors ligne

#156 15-12-2021 20:35:24

Toulibre
Membre
Lieu : Ganges, Cévennes
Distrib. : Debian 10.9
Noyau : Linux 4.19.0-16-amd64
(G)UI : xfce-thunar
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

@kawer , @Ben_Onion , Top cool ces conkys

Hors ligne

Pied de page des forums