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

#1 10-05-2020 09:40:35

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

[Résolu] Erreur dans conky

Hello les confinés !

Quand je lance conky, il se lance bien mais me retourne  l'erreur suivante :

conky: Syntax error (/home/exodebian/.conkyrc:2: '=' expected near 'yes') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (193) is root window
conky: window type - desktop
conky: drawing to created window (0x4c00002)
conky: drawing to double buffer
conky: Unknown setting 'border_margin'
conky: forked to background, pid is 657




Je comprends qu'il faudrait placer un '=' mais je ne comprends pas à quel endroit exactement.

Une idée ?

Merci wink

Edit à toto : Pour que la lecture du code sur le forum soit lisible par tous, il faut utiliser le BBCode du forum, ici : Autre code. Modif fête. smile
Oh, quel beau BB …code où comment mettre en forme vos messages dans le fofo

Dernière modification par exodebian (10-05-2020 21:18:53)

Hors ligne

#2 10-05-2020 09:45:24

Anonyme
Invité

Re : [Résolu] Erreur dans conky

Salut,

Ce serait plus facile si tu nous montrais ta config conky...


Là la seule chose que l'on peut te dire c'est qu'il y a un soucis à la ligne 2 de ton fichier de conf...

#3 10-05-2020 09:54:32

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

Re : [Résolu] Erreur dans conky

Le voici wink


# By Jesse_Avalos see me on Eye Candy linux google plus !!!!!
background yes
use_xft yes
xftfont ITC Avant Garde Gothic Pro:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
#own_window_type override
#own_window_argb_visual no

## xcompmgr
#own_window_type override
#own_window_argb_visual yes

## cairo-compmgr
own_window_type desktop
own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 10
border_margin 10
border_width 1
default_color 000000
default_shade_color 000000
default_outline_color 000000
minimum_size 0 0
maximum_width 1200
gap_x 50
gap_y 150
alignment top_left
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes
default_color FFFFFF
color1 FFFFFF
color2 grey
color3 FFFFFF

own_window_argb_value 0
own_window_colour 000000
TEXT
${goto 95}${font ITC Avant Garde Gothic Pro:size=65} ${time %H}${font ITC Avant Garde Gothic Pro:size=25}${voffset -35}${time %P}${color3}${font ITC Avant Garde Gothic Pro:size=65}${voffset -10}${time %M}${color1}
${goto 20}${voffset -175}${font ITC Avant Garde Gothic Pro:size=10} ${time %a}
${goto 7}${voffset -1}${font ITC Avant Garde Gothic Pro:bold:size=25} ${time %b}
${goto 20}${voffset 1}${color3}${font ITC Avant Garde Gothic Pro::size=30}${time %d}${color1}
${goto 42}${voffset 10}${font ITC Avant Garde Gothic Pro:size=13}Mem${color3} $memperc%${color1}

${goto 160}${voffset -45}Cpu${color3} ${cpu cpu0}%${color1}

${goto 270}${voffset -45}Wifi ${color3}${wireless_link_qual wlp3s0}%${color1}

${goto 380}${voffset -45}Battery${color3} ${battery_percent BAT1}%

${offset 400}${voffset -105}${color3}${font ITC Avant Garde Gothic Pro:size=12}Exoset${color3}

${offset 0}${voffset 65}${font ITC Avant Garde Gothic Pro:size=14} Networking:Up:$color ${upspeed wlp3s0} kb/s${color grey} - Down:$color ${downspeed wlp3s0} kb/s
${font ITC Avant Garde Gothic Pro:size=12}${color FFFFFF}
${offset 0}${color1}OS : ${color1}${exec lsb_release -d | cut -f2 }
${offset 0}${color1}Noyaux : ${color1}${exec uname -r}${goto 160}${color2}
${offset 0}${color1}Arch:${color1} $machine

${offset 120}${font UKIJ Diwani:size=12}${color grey}${offset 0}
${if_up wlp3s0}${color}${color grey}${offset 0}${rss http://www.ephemeride-jour.fr/rss/rss_saints_jour.php 5 item_titles 3}${else}   pas de connexion réseau${endif}


${font Noto Sans CJK SC Black:size=12}${color FFFFFF}Mediapart: ${font Noto Sans Mono Light:size=11}${color FFFFFF}
${if_up wlp3s0}${color}${color #FFFFFF}
${rss https://www.mediapart.fr/articles/feed 5 item_titles 5}${else}   pas de connexion réseau${endif}


${font Noto Sans CJK SC Black:size=12}${color FFFFFF}Ariss: ${font Noto Sans Mono Light:size=11}${color FFFFFF}
${if_up wlp3s0}${color}${color #FFFFFF}
${rss http://www.ariss-f.org/feed 5 item_titles 5}${else}   pas de connexion réseau${endif}



Edit à toto : Pour que la lecture du code sur le forum soit lisible par tous, il faut bien disposer le code, ici en utilisant la balise Autre code du forum. Modif fête. smile
Oh, quel beau BB …code où comment mettre en forme vos messages dans le fofo

Hors ligne

#4 10-05-2020 10:11:29

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [Résolu] Erreur dans conky

tu as quelle version de conky , exodebian ?

apt policy conky conky-all



fais attention , conky est très connu sur la toile et son langage de script a évolué dernièrement (depuis 2018) .

on trouve beaucoup de vieux conkys à adapter , donc .

malheureusement , le distingo entre les versions de conky n'est souvent pas très clair .

Dernière modification par Debian Alain (10-05-2020 10:18:47)

Hors ligne

#5 10-05-2020 10:16:11

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

Re : [Résolu] Erreur dans conky

Ma version est la 1.10.8

Hors ligne

#6 10-05-2020 10:19:20

MicP
Membre
Inscription : 29-02-2016

Re : [Résolu] Erreur dans conky

Bonjour

Dans son message #1, exodebian a écrit :

Syntax error (/home/exodebian/.conkyrc:2: '=' expected near 'yes') while reading config file.

Peut-être que, vu le message d'erreur,
il faudrait remplacer la deuxième ligne par :

background = true

et sans doute aussi dans les lignes d'affectations de valeurs aux directives qui suivent…

Source d'inspiration : https://wiki.archlinux.org/index.php/conky

Dernière modification par MicP (10-05-2020 14:13:44)

Hors ligne

#7 10-05-2020 11:31:44

Anonyme
Invité

Re : [Résolu] Erreur dans conky

MicP a écrit :

Bonjour

Dans son message #1, exodebian a écrit :

Syntax error (/home/exodebian/.conkyrc:2: '=' expected near 'yes') while reading config file.

Peut-être que, vu de message d'erreur,
il faudrait remplacer la deuxième ligne par :

background = true

et sans doute aussi dans les lignes d'affectations de valeurs aux directives qui suivent…

Source d'inspiration : https://wiki.archlinux.org/index.php/conky



Exact.

A voir aussi pour les options commentées par un "#" si ce n'est pas "--" maintenant.

Chez moi, la config n'utilise plus "yes" mais "true" et chaque option se termine par une virgule ","

exemple :

own_window = true,



voir même :

own_window_class = 'Conky',



Mais tout ça sur ma version actuelle sous Archlinux.


Mon conky à titre d'exemple :




conky.config = {
  alignment = 'top_middle',
  maximum_width = 1366,
  minimum_width = 300,
 
  gap_x = -650,
  gap_y = 75,
  border_inner_margin = 2,
  border_outer_margin = 8,
 
  stippled_borders = 1,
    border_width = 1,
   
 
 
  own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_transparent = false,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   
   
    double_buffer = true,

 
  short_units = true,
    format_human_readable = false,
    times_in_seconds = false,
  update_interval = 1,
  use_spacer = 'none',
  net_avg_samples = 1,
  cpu_avg_samples = 1,
  top_cpu_separate = false,

  use_xft = true,
  override_utf8_locale = true,

  draw_shades = true,
  draw_borders = false,
  draw_graph_borders = true,

  default_bar_width = 50,
    default_bar_height = 6,
  default_graph_width = 60,
    default_graph_height = 35,

  --own_window_colour = '73675F',
  own_window_colour = '1E1E1E',
  default_color = '5E5350',
  default_shade_color = '0F0F0F',
        color1 = '666666',
        color2 = '1793d0',

}

conky.text = [[
${voffset 0}
${font good times:style=Bold:size=14}${color A5968C}${alignc}${texeci 3600 date +%A | awk '{print toupper(substr($0,0,1))tolower(substr($0,2))}'} ${time %d %B %Y}

${image ~/.conky/images/intel.png -p 5,40}
${font good times:style=Bold:size=12}${color A5968C}${alignc -45}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*://' | sed -e 's/Intel//g' | uniq | cut -c 1-26}$color

${voffset 20}${offset 10}${font good times:style=Bold:size=14}${color A5968C}CPU$color${alignr 12}${exec sensors | grep 'CPU Temperature:' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}FAN$color${alignr 2}${exec sensors | grep 'CPU FAN Speed:' | awk '{print $4}'}${font Regular:style=Bold:size=12} Tr/min $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 0$color${alignr 12}${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 1$color${alignr 12}${exec sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 2$color${alignr 12}${exec sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 3$color${alignr 12}${exec sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3} °C $color

${image ~/.conky/images/nvidia.png -p 0,280}
${offset 50}${font good times:style=Bold:size=14}${color A5968C}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits}$color
${voffset 20}${alignr 60}${font good times:style=Bold:size=14}${exec nvidia-settings -q 'GPUCurrentFanSpeedRPM' | grep Attribute | cut -d ' ' -f 6 | cut -c 1-4 | tr -d '.'}${alignr 100}${font Regular:style=Bold:size=12}Tr/min
${font good times:style=Bold:size=14}${alignc}${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}${offset 5}°C
${voffset 20}${alignc}${execbar 20,220 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}

${font good times:style=Bold:size=16}${color A5968C}${alignc}HDD$color
${font good times:style=Bold:size=14}${alignc}${execi 10 sudo hddtemp -n /dev/sda}${offset 5}°C

${font good times:style=Bold:size=16}${color A5968C}${alignc}RAM$color
${offset 10}${color 595454}${font Matias:style=Bold:size=14}${goto 10}RAM${goto 280}${color}$memperc%\
${voffset 0}${goto 60}${if_match ${memperc} > 0}${color A5968C}${else}${color}${endif}${font :size=9}▩\
${if_match ${memperc} > 10}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 15}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 20}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 25}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 30}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 35}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 40}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 45}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 50}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 55}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 60}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 65}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 70}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 75}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 80}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 85}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 90}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 95}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} == 100}${color A5968C}${else}${color}${endif}▩

${offset 10}${color 595454}${font Matias:style=Bold:size=14}${goto 10}SWAP${goto 280}${color}$swapperc%\
${voffset 0}${goto 60}${if_match ${swapperc} > 0}${color A5968C}${else}${color}${endif}${font :size=9}▩\
${if_match ${swapperc} > 10}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 15}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 20}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 25}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 30}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 35}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 40}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 45}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 50}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 55}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 60}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 65}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 70}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 75}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 80}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 85}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 90}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 95}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} == 100}${color A5968C}${else}${color}${endif}▩

${font good times:style=Bold:size=16}${color A5968C}${alignc}NET$color
${offset 10}${font Matias:style=Bold:size=14}${goto 10}${color 595454}Up: ${goto 280}${color}${upspeedf enp5s0}\
${voffset 0}${goto 60}${if_match ${upspeedf enp5s0} > 0}${color FF9042}${else}${color}${endif}${font :size=9}▩\
${if_match ${upspeedf enp5s0} > 10}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 15}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 20}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 25}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 30}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 35}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 40}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 45}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 50}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 55}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 60}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 65}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 70}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 75}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 80}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 85}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 90}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 95}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 100}${color FF9042}${else}${color}${endif}▩

${offset 10}${font Matias:style=Bold:size=14}${goto 10}${color 595454}Down: ${goto 280}${color}${downspeedf enp5s0}\
${voffset 0}${goto 60}${if_match ${downspeedf enp5s0} > 0}${color 8BC34A}${else}${color}${endif}${font :size=9}▩\
${if_match ${downspeedf enp5s0} > 50}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 100}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 125}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 150}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 175}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 200}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 225}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 250}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 275}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 300}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 350}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 400}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 450}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 500}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 600}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 700}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 800}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 850}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 900}${color 8BC34A}${else}${color}${endif}▩\

${voffset 0}${font}
]];

 

Dernière modification par Anonyme (10-05-2020 11:56:53)

#8 10-05-2020 11:56:21

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

Re : [Résolu] Erreur dans conky

J'ai donc modifié comme ca

background = true



Je relance le conky se lance normalement mais me retourne

conky: Syntax error (/home/exoset/.conkyrc:3: '=' expected near 'yes') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (193) is root window
conky: window type - desktop
conky: drawing to created window (0x4800002)
conky: drawing to double buffer
conky: Unknown setting 'border_margin'



Mais si je change la 3eme Ligne en

use_xft = yes



Le conky ne fonctionne plus et retourne

conky: Syntax error (/home/exoset/.conkyrc:4: '=' expected near 'ITC') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (193) is root window
conky: window type - desktop
conky: drawing to created window (0x3200002)
conky: drawing to double buffer
conky: Unknown setting 'border_margin'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=9'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=9'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=65'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=65'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=25'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=25'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=65'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=65'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=10'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=10'
conky: can't load font 'ITC Avant Garde Gothic Pro:bold:size=25'
conky: can't load font 'ITC Avant Garde Gothic Pro:bold:size=25'
conky: can't load font 'ITC Avant Garde Gothic Pro::size=30'
conky: can't load font 'ITC Avant Garde Gothic Pro::size=30'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=13'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=13'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=12'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=12'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=14'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=14'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=12'
conky: can't load font 'ITC Avant Garde Gothic Pro:size=12'
conky: can't load font 'UKIJ Diwani:size=12'
conky: can't load font 'UKIJ Diwani:size=12'
conky: can't load font 'Noto Sans CJK SC Black:size=12'
conky: can't load font 'Noto Sans CJK SC Black:size=12'
conky: can't load font 'Noto Sans Mono Light:size=11'
conky: can't load font 'Noto Sans Mono Light:size=11'
conky: can't load font 'Noto Sans CJK SC Black:size=12'
conky: can't load font 'Noto Sans CJK SC Black:size=12'
conky: can't load font 'Noto Sans Mono Light:size=11'
conky: can't load font 'Noto Sans Mono Light:size=11'

Hors ligne

#9 10-05-2020 11:58:54

Anonyme
Invité

Re : [Résolu] Erreur dans conky

Déjà il te manque les fonts (polices de caractère)


ITC Avant Garde Gothic
Noto Sans CJK SC
 



puis


conky: Unknown setting 'border_margin'



C'est plus la bonne syntax.



et encore un "=" ligne 4



...

Dernière modification par Anonyme (10-05-2020 12:05:19)

#10 10-05-2020 12:21:07

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

Re : [Résolu] Erreur dans conky

Merci à tous pour votre aide.

Le conky se lance, je vais donc laisser de coté cette erreur car je tourne en rond. Ce n'est pas clair pour moi.

Hors ligne

#11 10-05-2020 12:32:44

Anonyme
Invité

Re : [Résolu] Erreur dans conky

Il y a plein d'erreurs dans ton script, exemple :

color #FFFFFF



c'est :

color FFFFFF

#12 10-05-2020 13:34:41

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : [Résolu] Erreur dans conky

bonjour exodebian smile

conky depuis sa version 1.10, utilise lua pour son fichier de configuration. les commandes restent les mêmes mais la syntaxe change légèrement. pour exemple, voici mon conky sur kiss0s, tu verras très vite comment adapter le tien en changeant peu de choses

--[[
  fluxbox conkyrc 3hg @ 2017-2020 © WTFPL
]]

conky.config = {
  background = true,
  use_xft = true,
  font = 'Hack:pixelsize=12',
  xftalpha = 1,
  update_interval = 1.0,
  total_run_times = 0,
  own_window = true,
  own_window_transparent = false,
  own_window_colour = '002B36',
  own_window_type = 'override',
  own_window_title = 'Conky_Flux',
  double_buffer = true,
  maximum_width = 150,
  minimum_width = 150,
  draw_shades = false,
  draw_outline = false,
  draw_borders = true,
  border_inner_margin = 5,
  border_width = 1,
  draw_graph_borders = false,
  default_color = '839496',
  color1 = 'DBDBDB',
  color2 = 'ABABAB',
  color3 = '7D7D7D',
  default_shade_color = 'black',
  default_outline_color = 'white',
  alignment = 'tr',
  gap_x = 15,
  gap_y = 15,
  no_buffers = true,
  uppercase = false,
  text_buffer_size = 1024,
  top_name_width = 10,
  imlib_cache_size = 0,
  cpu_avg_samples = 2,
  show_graph_scale = false,
  show_graph_range = false,
  short_units = true,
  override_utf8_locale = true,
  use_spacer = 'none',
  if_up_strictness = 'address'
}

conky.text = [[
${voffset 5}${alignc}*^- kiss0s -^*
${hr 1}
${voffset 5}${color1}${time %a} ${time %d/%m}\
${alignr}${time %I:%M}${color}
${hr 1}
${voffset 5}CPU ${color1}${cpu}${color}%\
${alignr}${cpugraph 10,75 002B36 C40000 -t}${color}
${alignc}${loadavg 1} ${loadavg 2} ${loadavg 3}
 name${alignr}%cpu
${color1}${top name 1}${alignr}${top cpu 1}%${color}
${color2}${top name 2}${alignr}${top cpu 2}%${color}
${color3}${top name 3}${alignr}${top cpu 3}%${color}
${hr 1}
${voffset 5}RAM ${color1}${memperc}${color}%\
${alignr}SWAP ${color1}${swapperc}${color}%
${voffset 5}used${color1} ${mem} ${color}max${color1} ${memmax}${color}
 name${alignr}%ram
${color1}${top_mem name 1}${alignr}${top_mem mem 1}%${color}
${color2}${top_mem name 2}${alignr}${top_mem mem 2}%${color}
${color3}${top_mem name 3}${alignr}${top_mem mem 3}%${color}
${hr 1}
${voffset 5}SYS ${color1}${fs_used_perc /}${color}%${alignr}${fs_used /}/${fs_size /}
I/O${color1}${diskio}${color}\
${alignr}${diskiograph 10,80 eee8d5 657B83}
${hr 1}
help?? $alignr 'kisshelp'
Alt+m $alignr fluxmenu
Super+m $alignr appfinder
Alt+d $alignr dmenu
Alt+p $alignr fbrun
Alt+t $alignr terminal
Alt+r $alignr ranger
Super+r $alignr pcmanfm
Alt+w $alignr browser
Super+w $alignr torbrowser
Alt+x $alignr irc client
Alt+e $alignr vim
Alt+v $alignr volume
]]



pour le tien, voilà ce que ça pourrait donner (à tester chez toi) j'ai viré quelques doublons genre default color ... faut choisir entre 000000 et FFFFFF tongue


--[[ By Jesse_Avalos see me on Eye Candy linux google plus !!!!!
]]

conky.config = {
    background = true,
    use_xft = true,
    font = 'ITC Avant Garde Gothic Pro:pixelsize=9',
    xftalpha = 0.8,
    update_interval = 1,
    total_run_times = 0,
    own_window = true,
    own_window_transparent = true,
    own_window_type = 'desktop'
    own_window_argb_visual = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    double_buffer = true,
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
    stippled_borders = 10,
    border_margin = 10,
    border_width = 1,
    default_shade_color = '000000',
    default_outline_color = '000000',
    maximum_width = 1200,
    gap_x = 50,
    gap_y = 150,
    alignment = 'top_left',
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    net_avg_samples = 2,
    short_units = true,
    text_buffer_size = 2048,
    use_spacer = 'none',
    override_utf8_locale = true,
    default_color = 'FFFFFF',
    color1 = 'FFFFFF',
    color2 = 'grey',
    color3 = 'FFFFFF',
    own_window_argb_value = 0,
    own_window_colour = '000000'
}

conky.text = [[
${goto 95}${font ITC Avant Garde Gothic Pro:size=65} ${time %H}${font ITC Avant Garde Gothic Pro:size=25}${voffset -35}${time %P}${color3}${font ITC Avant Garde Gothic Pro:size=65}${voffset -10}${time %M}${color1}
${goto 20}${voffset -175}${font ITC Avant Garde Gothic Pro:size=10} ${time %a}
${goto 7}${voffset -1}${font ITC Avant Garde Gothic Pro:bold:size=25} ${time %b}
${goto 20}${voffset 1}${color3}${font ITC Avant Garde Gothic Pro::size=30}${time %d}${color1}
${goto 42}${voffset 10}${font ITC Avant Garde Gothic Pro:size=13}Mem${color3} $memperc%${color1}
${goto 160}${voffset -45}Cpu${color3} ${cpu cpu0}%${color1}
${goto 270}${voffset -45}Wifi ${color3}${wireless_link_qual wlp3s0}%${color1}
${goto 380}${voffset -45}Battery${color3} ${battery_percent BAT1}%
${offset 400}${voffset -105}${color3}${font ITC Avant Garde Gothic Pro:size=12}Exoset${color3}
${offset 0}${voffset 65}${font ITC Avant Garde Gothic Pro:size=14} Networking:Up:$color ${upspeed wlp3s0} kb/s${color grey} - Down:$color ${downspeed wlp3s0} kb/s
${font ITC Avant Garde Gothic Pro:size=12}${color FFFFFF}
${offset 0}${color1}OS : ${color1}${exec lsb_release -d | cut -f2 }
${offset 0}${color1}Noyaux : ${color1}${exec uname -r}${goto 160}${color2}
${offset 0}${color1}Arch:${color1} $machine
${offset 120}${font UKIJ Diwani:size=12}${color grey}${offset 0}
${if_up wlp3s0}${color}${color grey}${offset 0}${rss http://www.ephemeride-jour.fr/rss/rss_saints_jour.php 5 item_titles 3}${else}   pas de connexion réseau${endif}
${font Noto Sans CJK SC Black:size=12}${color FFFFFF}Mediapart: ${font Noto Sans Mono Light:size=11}${color FFFFFF}
${if_up wlp3s0}${color}${color #FFFFFF}
${rss https://www.mediapart.fr/articles/feed 5 item_titles 5}${else}   pas de connexion réseau${endif}
${font Noto Sans CJK SC Black:size=12}${color FFFFFF}Ariss: ${font Noto Sans Mono Light:size=11}${color FFFFFF}
${if_up wlp3s0}${color}${color #FFFFFF}
${rss http://www.ariss-f.org/feed 5 item_titles 5}${else}   pas de connexion réseau${endif}
]]
 



je précise que je n'ai pas testé le code chez moi... conky est une petite bestiole sensible... il faut souvent tester plusieurs fois avant d'obtenir un bon résultat, mais c'est formateur. perso, j'ai commencer à apprendre les fichiers de config avec conky en 2006 et ça m'a mené bien plus loin.. wink


nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#13 10-05-2020 13:59:59

Anonyme
Invité

Re : [Résolu] Erreur dans conky

@arpinux

Bonjour,

manque quelques petites fermetures "," wink

et deux "# " à virer sur FFFFFFF

smile

#14 10-05-2020 14:03:37

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : [Résolu] Erreur dans conky

Anonyme a écrit :

@arpinux

Bonjour,

manque quelques petites fermetures "," wink

et deux "# " à virer sur FFFFFFF

smile



vi, j'ai juste fait ça rapide histoire de montrer, mais en aucun cas je fais le taf à la place du user wink ... la découverte et les erreurs, c'est la moitié du plaisir big_smile


nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#15 10-05-2020 14:06:09

Anonyme
Invité

Re : [Résolu] Erreur dans conky

Pas faux tongue

EDIT: Testé, il se lance wink

Dernière modification par Anonyme (10-05-2020 14:07:03)

#16 10-05-2020 19:13:29

exodebian
Membre
Distrib. : Debian 12 KDE
Noyau : Linux 6.1.0-12
(G)UI : Dolphin
Inscription : 04-10-2018

Re : [Résolu] Erreur dans conky

Merci à tous pour vos contribs... J'ai du boulot pour tout saisir wink

Hors ligne

#17 10-05-2020 21:18:26

Anonyme
Invité

Re : [Résolu] Erreur dans conky

exodebian a écrit :

Merci à tous pour vos contribs... J'ai du boulot pour tout saisir wink



Si peu, tu verras plus c'est chiant et plus c'est un plaisir. C'est un peu le but l'informatique wink

#18 11-05-2020 07:00:30

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : [Résolu] Erreur dans conky

Anonyme a écrit :

tu verras plus c'est chiant et plus c'est un plaisir. C'est un peu le but l'informatique


Pffff... s'pèce de geek ! tongue


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

#19 04-12-2020 10:20:10

Anonyme-14
Invité

Re : [Résolu] Erreur dans conky

je reprends ce post qui date un peu juste pour faciliter la conversion d'un fichier avec l'ancien code conky vers un fichier avec l'actuel code.
le fichier est à placer dans le dossier en cours puis ouvrir le terminal dans ce même dossier.
la commande est

./convert.lua monconkyrc


ou si vous voulez créer un nouveau fichier conky à la norme sans écraser l'original pour le sauvegarder.

./convert.lua monconkyrc monconkyrc1


c'est tout, le fichier sera converti à la nouvelle norme de conky
le fichier à télécharger convert.lua
quand bien même il resterait des erreurs elles seront bien plus facilement repérables (ex #ffffff à remplacer par ffffff comme déjà cité ci-dessus).

et surtout un temps fou gagné !

#20 04-12-2020 10:41:12

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : [Résolu] Erreur dans conky

o/ Anonyme-14 smile

tu as les sources et l'auteur de ce script ? ce serait cool smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

#21 04-12-2020 10:46:13

Anonyme-14
Invité

Re : [Résolu] Erreur dans conky

#22 04-12-2020 10:49:19

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : nakeDeb
Noyau : Linux 6.1 amd64
(G)UI : sway - i3wm - fluxbox
Inscription : 30-06-2016
Site Web

Re : [Résolu] Erreur dans conky

merci big_smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile - Les cahiers du débutant - ISO Debian-Facile - 3hg - nakeDeb
GNU/Linux©2006-2024

Hors ligne

Pied de page des forums