Closed rudrab closed 8 years ago
The syntax of the conky config files has changed (a lot) for conky version 1.10 and onwards. You seem to use the conky 1.9 syntax so you will have to update your config (ps: lua files will still work on both, no need to change them) or have to revert to an older version of conky (1.9.1 or previous).
There is no extensive guide on how to change/update your config file but here are some tips and tricks. If you encounter something which is not covered by the wiki page please feel free to expand it or report it on this github.
I agree with Nooby4Ever. I test Fedora 24 and conky 1.10 work well after rewrite all my conky with the new syntax. Example : `conky.config = { double_buffer = true, background = false , use_xft = true, font = "MgOpen Modata L:size=7:bold", update_interval = 1, total_run_times = 0, own_window = true, own_window_type = 'normal', own_window_transparent = true, own_window_argb_visual = true, own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
draw_shades = false, draw_outline = false, draw_borders = false, draw_graph_borders = true, default_color = 'white', alignment = 'top_right', gap_x = 12, gap_y = 250, no_buffers = true, uppercase = false, cpu_avg_samples = 2, net_avg_samples = 2, override_utf8_locale = true, text_buffer_size = 4096,
color1 = '00f5ff', color2 = 'cd5555', color3 = '11B3F8', color4 = '0000ff', color5 = '176e88', color6 = 'ff4500', color7 = '00FF00', color8 = 'FF8000', color9 = 'FF0000',
}
conky.text = [[ ${font Waltograph UI:size=12:bold} ${alignc} ${color1}${exec lsb_release -irs} ${exec lsb_release -sc}
${font} ${alignc} ${color2}Kernel : ${color3}${exec uname -r} ${alignc}${color2}Démarrage : ${color3}${exec systemd-analyze time | awk '{print $13}'}
${color1}${membar 0,170} ${color3}CPU ${color1}${membar 0,170} ${alignc}${color2}Processeur : ${color3}${exec grep -i -m 1 'Model name' /proc/cpuinfo |sed 's/^.: //'| sed -e 's/([^()])//g' } ${alignc}${color2}Pilote : ${color3}${exec cpupower frequency-info |grep pilote | awk '{print $3}'} ${color2}Fréquence CPU 1 : ${color3}${freq 1} MHz ${goto 200}${color2}Fréquence CPU 2 : ${color3}${freq 2} MHz ${color2}Fréquence CPU 3 : ${color3}${freq 3} MHz ${goto 200}${color2}Fréquence CPU 4 : ${color3}${freq 4} MHz ${color4}${cpugraph cpu1 20,181 00ff00 ff0004 -t} ${color4}${cpugraph cpu2 20,181 00ff00 ff0004 -t} ${color4}${cpugraph cpu3 20,181 00ff00 ff0004 -t} ${color4}${cpugraph cpu4 20,181 00ff00 ff0004 -t} ${color2}Utilisation Core 1 : ${color3}${cpu cpu1}%${goto 200}${color2}Utilisation Core 2 : ${color3}${cpu cpu2}% ${color2}Utilisation Core 3 : ${color3}${cpu cpu3}%${goto 200}${color2}Utilisation Core 4 : ${color3}${cpu cpu4}% ${color2}Température Core 1 : ${execpi 6 sensors | awk '/Core 0/ {gsub(/+/,"",$3); gsub(/..+/,"",$3); print $3}' | xargs /home/dominique/.conkyrc/conky_monitor/colorizeCPU.sh}°C${goto 200}${color2}Température Core 2 : ${color3}${execpi 6 sensors | awk '/Core 1/ {gsub(/+/,"",$3); gsub(/..+/,"",$3); print $3}' | xargs /home/dominique/.conkyrc/conky_monitor/colorizeCPU.sh}°C
${color1}${membar 0,170} ${color3}GPU ${color1}${membar 0,170} ${color2}Carte Graphique : ${color3}GeForce GT 525M ${color2}Pilote NVidia : ${color3}Nouveau
${color1}${membar 0,170} ${color3}DD ${color1}${membar 0,175} ${alignc}${color2} Disque dur : ${color3} Samsung SSD 840 PRO 256 Go ${alignc}${color2}Accès disque ${color2}${goto 70}Lecture : ${color3}${diskio_read} ${color2}${goto 250}Ecriture : ${color3}${diskio_write} ${diskiograph_read 20,181 00ff00 ff0000 -t} ${diskiograph_write 20,181 00ff00 ff0000 -t} ${color1}${membar 0,170} ${color3}RAM ${color1}${membar 0,170} ${color2}Utilisation RAM ${color5}${alignc} Totale Utilisée Pourcentage ${alignc} ${color3}${goto 120}$memmax${goto 195}$mem${goto 290}$memperc% ${color4}${memgraph 20,364 00ff00 ff0004 -t} ${color1}${membar 0,170} ${color3}SWAP ${color1}${membar 0,162} ${color2}Utilisation Swap : ${color3} $swap/$swapmax - $swapperc% ${color1} ${swapbar 8,165}
${color1}${membar 0,160} ${color3}RESEAU ${color1}${membar 0,162} ${color5}Reception :${color6} ${downspeedf enp4s0} k/s${goto 200}${color3}Envoi : ${color6}${upspeedf enp4s0} k/s ${color5}Total : ${color6} ${totaldown enp4s0}${goto 200}${color3}Total :${color6} ${totalup enp4s0} ${color4}${downspeedgraph enp4s0 20,181 00ff00 ff0004 -t} ${color1}${upspeedgraph enp4s0 20,181 00ff00 ff0004 -t} ${color1}${membar 0,130} ${color3}SYSTEME DE FICHIERS ${color1}${membar 0,120} ${color2}Système ${color3} ${fs_used /} / ${fs_size /} : ${goto 160}${color1}${fs_bar 6,208 /} ${color2}Home ${color3} ${fs_used /home} / ${fs_size /home} : ${goto 160}${color1}${fs_bar 6,208 /home}
${color1}${membar 0,170} ${color3}TOP ${color1}${membar 0,170} ${color2}${alignc}Processus : ${color3}$processes ${color3}En cours : ${color6}$running_processes
${color5}En cours : ${alignc} PID ${goto 180}CPU% MEM% ${color6} ${top name 1} ${alignc} ${top pid 1} ${goto 180}${top cpu 1} ${top mem 1} ${color3} ${top name 2} ${alignc} ${top pid 2} ${goto 180}${top cpu 2} ${top mem 2} ${color3} ${top name 3} ${alignc} ${top pid 3} ${goto 180}${top cpu 3} ${top mem 3} ${color5}En mémoire : ${color6} ${top_mem name 1} ${alignc} ${top_mem pid 1} ${goto 180}${top_mem cpu 1} ${top_mem mem 1} ${color3} ${top_mem name 2} ${alignc} ${top_mem pid 2} ${goto 180}${top_mem cpu 2} ${top_mem mem 2} ${color3} ${top_mem name 3} ${alignc} ${top_mem pid 3} ${goto 180}${top_mem cpu 3} ${top_mem mem 3} ]] `
Thanks a lot. I checked and its working now. Closing it
Hi, I am using conky from fedora repo(
conky-1.10.1-5.20160413git06f87b.fc24.x86_64
) which shows:while running my conky, I am getting error:
My conkyrc is very normal and using it for long (f16 days). I am pasting it:
The drw-bg.lua script is also very old script, so I am not pasting it (this is not written by me).