cela fait pas mal de temps que j’essaie de faire fonctionner l'horloge et les bargraphe lua tout comme sur la photo ci dessous
le soucis c'est que depuis peu, la methodologie écrite dans conky a changé et quand j'essais de faire executer les deux ligne de code, ca ne fonctionne pas
voila ce que j'obtient
Code : Tout sélectionner
[moi@ArchLinuxi7 ~]$ conky -c /home/moi/.conky/.conkyrc
conky: Syntax error (/home/moi/.conky/.conkyrc:64: unexpected symbol near '.') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:147: attempt to index a nil value (local 'settings')
[moi@ArchLinuxi7 ~]$
lua_load /home/moi/.conky/lua/conky_grey.lua
lua_draw_hook_pre main
le conkyrc
Code : Tout sélectionner
--[[
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 = {
background = true,
own_window = false,
own_window_class = 'Conky',
own_window_transparent = false,
own_window_type = 'desktop',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 0,
double_buffer = true,
no_buffers = true,
use_spacer = 'none',
use_xft = true,
xftalpha = 1,
font = 'Sans:size=10',
update_interval = 1,
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 = true,
show_graph_range = true,
alignment = 'top_right',
gap_x = 10,
gap_y = 100,
net_avg_samples = 1,
cpu_avg_samples = 6,
short_units = true,
pad_percents = 2,
text_buffer_size = 2048,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
}
conky.text = [[
${offset 80}${voffset 105}
${font SF Square Head:size=10}Ordinateur${font} ${hr 2}
${font DejaVu:size=7}${voffset -2}Systeme
${offset 60}${voffset -12}:
${offset 90}${voffset -12}Archlinux
${offset 15}${voffset 1}Kernel
${offset 60}${voffset -12}:
${offset 87}${voffset -11}$kernel}
${offset 15}${voffset 3}Temps
${offset 60}${voffset -12}:
${offset 87}${voffset -12}$uptime$
${offset 15}${voffset 2}Cpu i7
${offset 60}${voffset -12}:
${offset 87}${voffset -12}${freq_g} GHz${font}
${font SF Square Head:size=10}${offset -6}${voffset -5}Intel i7${font}${hr 1}
${font DejaVu:size=7}${offset 13}${voffset -2}Core 1
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu1}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 2
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu2}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 3
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu3}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 4
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu4}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 5
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu5}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 6
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu6}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 7
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu7}
${offset 90}${voffset -12}%
${offset 14}${voffset 3}Core 8
${offset 58}${voffset -12}:
${offset 65}${voffset -12}${cpu cpu8}
${offset 90}${voffset -12}%${font}
${font SF Square Head:size=10}${voffset -4}Disque Dur${font} ${hr 2}
${font DejaVu:size=7}${offset 15}${voffset -4}Systeme
${offset 120}${voffset -12}Home
${offset 10}${voffset 2}${fs_used /} / ${fs_size /}
${offset 100}${voffset -12}${fs_used /home} / ${fs_size /home}
${offset 100}${voffset -10}
${offset 25}${voffset 10}Antera
${offset 10}${fs_free /run/media/moi/Antera} / ${fs_size /run/media/moi/Antera}
${offset 120}${voffset -25}Epsilon
${offset 100}${fs_free /run/media/moi/Epsilon} / ${fs_size /run/media/moi/Epsilon}s${font}
${font SF Square Head:size=10}${voffset 4}Memoire${font} ${hr 2}
${font DejaVu:size=7}${offset 5}${voffset -5}Utilisé
${offset 65}${voffset -12}:
${offset 100}${voffset -12}${mem} / ${memmax}${font}
${voffset 7}${font SF Square Head:size=10}Resaux par le cable${font} ${hr 2}
${font DejaVu:size=7}${offset 3}${voffset -5}Down
${offset 40}${voffset -12}:
${offset 50}${voffset -12}${downspeed enp0s31f6}
${offset 90}${voffset -12}/s
${offset 4}${voffset 2}Upload
${offset 40}${voffset -11}:
${offset 50}${voffset -12}${upspeed enp0s31f6}
${offset 90}${voffset -12}/s${font}
#${voffset -5}${font SF Square Head:size=10}Resaux Wifi${font} ${hr 2}
# ${font DejaVu:size=7} Down
# ${offset 35}${voffset -11}:
# ${offset 44}${voffset -12}${downspeed wlp0s20f0u2}
# ${offset 80}${voffset -12}/s
#Upload
# ${offset 37}${voffset -11}:
# ${offset 44}${voffset -12}${upspeed wlp0s20f0u2}
#${offset 80}${voffset 4}/s${font}
${offset -6}${voffset -5}${font SF Square Head:size=10}Mise a jour${font} ${hr 2}
${voffset -6}${offset 30}${font DejaVu:size=7}mise a jour de disponible(s)
${offset 5}${voffset -12}${execpi 600 yaourt -Sya --logfile /dev/null > /dev/null; yaourt -Qu | wc -l}
${hr 2}
]]