Fedora-Fr - Communauté francophone Fedora - Linux

Communauté francophone des utilisateurs de la distribution Linux Fedora.

  

Dernière news : Rétrospective de l'adoption du nouveau logo de Fedora

#1 07/12/2019 21:08:36

thierryR
Membre
Lieu : Chalons en Champagne
Inscription : 31/01/2011
Messages : 1 804

[Résolu] conky: la bonne codification

Bonjour. Conky aurait-il changé sa codification.
Avant j'avais un conky comme ça qui fonctionnait:

# 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-2010 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/>.
#



# Colors
default_color FFFFFF
default_shade_color 333333
default_outline_color black
color1 0033CC #bleu foncé
color2 92C6EF #bleu clair
color3 DBF0ED #gris
color6 E6004D #orange
color7 999999
color8 666666
color9 333333
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


#
background yes
use_xft yes
xftfont Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_class Conky
#own_window_type desktop
double_buffer yes
minimum_size 520 520
maximum_width 300
text_buffer_size 1048
draw_shades no
draw_outline no
#draw_borders no
draw_borders yes
#draw_graph_borders no
draw_graph_borders yes
default_color white
default_outline_color white
#alignment top_right
alignment top_left
gap_x 20
gap_y 10
uppercase no
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes


TEXT
#${scroll 16 $nodename - $sysname $kernel on $machine | }
#$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
#$hr
#${color grey}File systems:
# / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
#${color grey}Networking:
#Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}

CPU : ${hwmon 1 temp 2}C° M/B : ${hwmon 1 temp 1}C°
Local   : sda ${hddtemp /dev/sda}°

$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

$hr
${color orange}Down ${offset 45}${totaldown wlan0} ${offset 8} Up ${alignr}${totalup wlan0}
${downspeedgraph wlan0 22,150 5e7b7b d8deeb} ${upspeedgraph wlan0 22,150 99c8e8 618094}
${offset 40}${voffset -21}${downspeedf wlan0}k/s
${offset 190}${voffset -14}${upspeedf wlan0}k/s


$hr
${color lightgrey}${time %A %d %B %Y}
${color lightgrey}
${texeci 100000 perl /home/thierry/Documents/scripts/lunaire.pl }

Maintenant ça semble changé. Ou je n'ai pas compris un truc.
J'ai regardé la doc et effectivement ce n'est pas pareil. Y aurait-il plusieurs styles de conky ?
Merci pour vos lumières.


201119024340877569.gifChalons en Champagne: Au nord, un peu avant la banquise (Ah ben non... Elle a fondu)
Kernel: 5.10.7-200.fc33.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.5
Type: Desktop Mobo: ASRock model: X470 Gaming-ITX/ac  UEFI: CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP L2 cache: 4096 KiB

Hors ligne

#2 07/12/2019 21:40:01

Nicosss
Rédacteur Wiki
Rédacteur Wiki
Lieu : Isère
Inscription : 05/03/2007
Messages : 6 493
Site Web

Re : [Résolu] conky: la bonne codification

Oui Conky a changé dans son passage à la version 1.10. Tu pourras trouver des explications et un lien vres un script de migration dans https://doc.fedora-fr.org/wiki/Conky_:_ … nalisation.


F34_64 Gnome-Shell - GA-990FXA-UD3 - Phenom II X6 1100T - NH-D14 - Ati HD 5750 Fanless - 16Go RAM /&/ F33_64 Gnome-Shell - Toshiba Satellite C660D-19X - 8Go RAM
F33_64 - ASRock 960GC-GS FX - AMD FX(tm)-8300 - 16Go RAM

Hors ligne

#3 08/12/2019 00:50:51

thierryR
Membre
Lieu : Chalons en Champagne
Inscription : 31/01/2011
Messages : 1 804

Re : [Résolu] conky: la bonne codification

Merci Nicosss. Il est génial ce petit script tout en bas de la page.


201119024340877569.gifChalons en Champagne: Au nord, un peu avant la banquise (Ah ben non... Elle a fondu)
Kernel: 5.10.7-200.fc33.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.5
Type: Desktop Mobo: ASRock model: X470 Gaming-ITX/ac  UEFI: CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP L2 cache: 4096 KiB

Hors ligne

Pied de page des forums