Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1076 Le 19/11/2015, à 00:15

Ferod

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai trouvé ce topic en anglais et un peu décousu...
http://crunchbang.org/forums/viewtopic.php?id=39997&p=1
Je ne l'ai pas encore parcouru entièrement. Mais ils expliquent qu'il y a un script (/usr/share/doc/conky-all/convert.lua) qui permet de faire la conversion du .conkyrc. Normalement les scripts lua ne doivent pas être modifiés. Pour l'utiliser, il faut le copier, le rendre executable. Ce qui donne :

cp /usr/share/doc/conky-all/convert.lua ~
chmod u+x convert.lua
./convert.lua .conkyrc .conkyrc_1.10

Ensuite il faut vérifier que tout est ok dans le fichier .conkyrc_1.10 puis remplacer l'ancien fichier (.conkyrc) par celui-ci.
Pour moi ça a marché : le script génère un fichier qui me permet d'afficher une partie du script. Par contre je suis obligé de commenter certaines parties parce que sinon des erreurs empêche l'affichage complet du conky. Mais il y a beaucoup d'incertitudes, d'hésitations et d'info divergentes. D'ailleurs je me demande pourquoi cette mise à jour est poussée dans les dépôts si elle oblige à tout refaire... roll
Pour l'instant j'affiche ça :
http://pix.toile-libre.org/?img=1447884842.jpg


"When I was in the military, they gave me a medal for killing
two men, and a descharge for loving one !" Leonard Matlovich

Hors ligne

#1077 Le 19/11/2015, à 01:33

konrad54

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

chepioq a écrit :
konrad54 a écrit :

tu pense y arrivée?

Je ne sais même pas par où commencer...

et si on commencé par un truc qui semble marché partiellement

${voffset -3}${color}Bluetooth${alignr}${color2}${if_running pand /bt_num}${color}device(s)

${voffset -8}${color2}${stippled_hr 1}

${voffset -4}${alignc}${color}${if_running pand}${font :size=6:Italic}${bt_pand bnep0 10}

${font}${else}No Bluetooth Networks${endif}

${voffset -8}${color2}${stippled_hr 1}

Hors ligne

#1078 Le 19/11/2015, à 07:15

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Ferod a écrit :

J'ai trouvé ce topic en anglais et un peu décousu...
http://crunchbang.org/forums/viewtopic.php?id=39997&p=1
Je ne l'ai pas encore parcouru entièrement. Mais ils expliquent qu'il y a un script (/usr/share/doc/conky-all/convert.lua) qui permet de faire la conversion du .conkyrc. Normalement les scripts lua ne doivent pas être modifiés. Pour l'utiliser, il faut le copier, le rendre executable. Ce qui donne :

cp /usr/share/doc/conky-all/convert.lua ~
chmod u+x convert.lua
./convert.lua .conkyrc .conkyrc_1.10

Ensuite il faut vérifier que tout est ok dans le fichier .conkyrc_1.10 puis remplacer l'ancien fichier (.conkyrc) par celui-ci.
Pour moi ça a marché : le script génère un fichier qui me permet d'afficher une partie du script. Par contre je suis obligé de commenter certaines parties parce que sinon des erreurs empêche l'affichage complet du conky. Mais il y a beaucoup d'incertitudes, d'hésitations et d'info divergentes. D'ailleurs je me demande pourquoi cette mise à jour est poussée dans les dépôts si elle oblige à tout refaire... roll
Pour l'instant j'affiche ça :
http://pix.toile-libre.org/?img=1447884842.jpg

Peux-tu nous afficher le contenu de ton conky ?


Tout est dans tout et réciproquement....

Hors ligne

#1079 Le 20/11/2015, à 15:02

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

chepioq a écrit :

Je suis aussi passer sur conky 1.10 avec ma Fedora 24 rawhide, et chez moi aucun script lua ne veut fonctionner correctement.

J'ai eu beau chercher sur le net, je n'ai trouvé nulle part un tuto expliquant comment fonctionne un script .lua avec cette nouvelle version.
Quelqu'un aurait une idée, ou un lien ?

Bonjour chepioq;

J'ai eu de gros soucis avec mes conkys lors de la maj vers 1.10. Il y a un "thread" ici ou je fais part de mon problème... La solution que j'ai utilisé fut de retourner en v1.9 et de bloquer cette version pour les mises à jour... Cette version 1.10 ne correspond pas à mes attentes, et aurais bien trop de modifs de codes à faire pour que tous mes scripts refonctionnent... Je ne voudrais non plus lancer un débat "à la  sauce systemd..."
bloquage version 1.9

Bon courage si tu restes en v1.10 wink
Amicalement

Dernière modification par ragamatrix (Le 20/11/2015, à 15:03)

Hors ligne

#1080 Le 20/11/2015, à 16:40

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ragamatrix a écrit :

Bonjour chepioq;

J'ai eu de gros soucis avec mes conkys lors de la maj vers 1.10. Il y a un "thread" ici ou je fais part de mon problème... La solution que j'ai utilisé fut de retourner en v1.9 et de bloquer cette version pour les mises à jour... Cette version 1.10 ne correspond pas à mes attentes, et aurais bien trop de modifs de codes à faire pour que tous mes scripts refonctionnent... Je ne voudrais non plus lancer un débat "à la  sauce systemd..."
bloquage version 1.9

Bon courage si tu restes en v1.10 wink
Amicalement

Bonjour ragamatrix.
Je me suis déjà lancé dans l'étude du topic dans crunchbang, ainsi qu'un thread sur archlinux, mais c'est vrai que, comme tu le dis si bien, cette version 1.10 est un "unbearable nightmare" .
De toute façon, je n'utilise la version 1.10 que sur ma Fedora 24 rawhide de test, quand elle passera en stable (d'ici 6 mois) et si conky 1.10 ne s'est pas améliorer, je retournerais sous la version 1.9.


Tout est dans tout et réciproquement....

Hors ligne

#1081 Le 20/11/2015, à 17:31

enebre

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour,
je suis maintenant sur une xubuntu 15.04 et le conky loungeradio ne fonctionne plus, j'y ai il me semble apporté les modifications selon le nouveau code, mais je dois avoir oublié quelque chose... l'image ne s'affiche plus et la radio ne démarre pas j'obtient néanmoins les infos du morceau en cours.
Le terminal n'est pas très content:

$ /home/ombre/.conky/conky-perso/loungeradio-linux/start-stop-conky-radio-mplayer-128.sh
kill : utilisation : kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
Start conky1 -c /home/ombre/.conky/conky-perso/loungeradio-linux/conkyrc
kill : utilisation : kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
Start mplayer http://www.lounge-radio.com/listen128.m3u -af volume=-25 
kill : utilisation : kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
kill : utilisation : kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
Il y a eu un souci au lancement tout a été coupé
ombre@ombre-dv6-PC:~$ conky: desktop window (e00003) is subwindow of root window (e4)
conky: window type - normal
conky: drawing to created window (0x1a00001)
conky: drawing to double buffer
conky: unknown variable '$image'
conky: forked to background, pid is 11932

MPlayer2 2.0-728-g2c378c7-4build1 (C) 2000-2012 MPlayer Team

Playing http://www.lounge-radio.com/listen128.m3u.
Resolving www.lounge-radio.com for AF_INET6...
Couldn't resolve name for AF_INET6: www.lounge-radio.com
Resolving www.lounge-radio.com for AF_INET...
Connecting to server www.lounge-radio.com[104.25.51.13]: 80...
Resolving www.lounge-radio.com for AF_INET6...
Couldn't resolve name for AF_INET6: www.lounge-radio.com
Resolving www.lounge-radio.com for AF_INET...
Connecting to server www.lounge-radio.com[104.25.51.13]: 80...

This looks like a playlist, but playlist support will not be used automatically.
MPlayer's playlist code is unsafe and should only be used with trusted sources.
Playback will probably fail.

Cache size set to 320 KiB
Cache fill:  0.00% (0 bytes)   
Dead key input on file descriptor 0
Cache fill:  0.00% (0 bytes)   
Failed to recognize file format.


Exiting... (End of file)

voici les fichiers:
conkyrc --

conky.config = {
background = true,
use_xft = true,
update_interval = 3, 
own_window = true,
own_window_transparent = true,
own_window_hints  = 'undecorated,below,sticky,skip_taskbar,skip_pager,below',
double_buffer = true,
--maximum_height = 600,
maximum_width = 700,
text_buffer_size = 516,
default_color = 'orange', 
alignment = 'middle_middle',
--gap_x = 55,
--gap_y = 820,
no_buffers = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
--imlib_cache_size = 0
}
conky.text = [[
 	${font Open Sans Light:size=14}${image /home/ombre/.conky/conky-perso/loungeradio-linux/loungeradio_shadow.png -p 0,0 -s 700x600}
    	${voffset 555}${texeci 60 /home/ombre/.conky/conky-perso/loungeradio-linux/loungeradio.sh}



]]

le script:

#!/bin/bash
    #pulling info from loung-radio.com for conky by nlinedesignz(at)web(dot)de 2013
 
    wget http://www.lounge-radio.com/code/pushed_files/now.html -O $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.html >/dev/null 2>&1 &&
 
    artist=$(awk '/id="artist"/{getline; print}' $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.html | sed "s/<div>\|<\/div>//g")
    album=$(awk '/id="album"/{getline; print}'   $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.html | sed "s/<div>\|<\/div>//g")
    track=$(awk '/id="track"/{getline; print}'   $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.html | sed "s/<div>\|<\/div>//g")
 
    wget "http://www.lounge-radio.com/code/pushed_files/$(awk '/id="covercontainer"/{print}' $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.html | sed -r 's/.*src="(.*)" width=.*/\1/')" -O $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.jpg >/dev/null 2>&1 &&
convert $HOME/.conky/conky-perso/loungeradio-linux/loungeradio.jpg -mattecolor grey -frame 2x2+1+1 \( +clone -background navy -shadow 70x7+15+25 \) +swap -background none -mosaic $HOME/.conky/conky-perso/loungeradio-linux/loungeradio_shadow.png
echo 
echo	 'Artist   :' $artist
echo	 'Album :' $album
echo	 'Piste   :' $track 

# https://www.dropbox.com/s/i6wx3az5ngw72y1/loungeradio-linux.zip?dl=0

le lanceur:

#!/bin/bash

PROG_NAME1="conky1 -c /home/$USER/.conky/conky-perso/loungeradio-linux/conkyrc"	# Nom du programme à  démarrer/arrêter.
PROG_NAME2="mplayer http://www.lounge-radio.com/listen128.m3u -af volume=-25" # Nom du programme à  démarrer/arrêter.

PROCESSPID1=$(pgrep -f /home/$USER/.conky/conky-perso/loungeradio-linux/conkyrc)	# Récupère le PID du processus.
PROCESSPID2=$(pgrep -f "mplayer http://www.lounge-radio.com/listen128.m3u -af volume=-25")	# Récupére le PID du processus.


if [[ "$PROCESSPID1" != ""  && "$PROCESSPID2" != "" ]]; then	# Si les deux processus existe alors on le(s) kill.
        kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
        kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
else	# Si aucun processus on démarre le programme.
        kill $PROCESSPID1 
        $PROG_NAME1 & 
        echo "Start $PROG_NAME1"
        kill $PROCESSPID2  
        $PROG_NAME2 & 
        echo "Start $PROG_NAME2 "
        if [[ "$PROCESSPID1" == ""  || "$PROCESSPID2" == "" ]]; then	# Si un des processus n'existe pas alors on le(s) kill.
                kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
                kill $PROCESSPID2  && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
                echo "Il y a eu un souci au lancement tout a été coupé"
        fi
fi

exit 0

J'ai essayé mplayer (avant fonctionnait très bien) mplayer2 et seulement smplayer démarre la radio mais reste avec l'interface visible sad
pour conky je l'ai doublé avec conky1 pour raison de facilité d'usage avec les autres conky

$ sudo cp /usr/bin/conky /usr/bin/conky1

Donc voila je suis coincé avec le loungeradio et une petite aide serait bienvenue, merci.

Dernière modification par enebre (Le 20/11/2015, à 17:44)

Hors ligne

#1082 Le 20/11/2015, à 20:26

Ferod

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

chepioq a écrit :

Peux-tu nous afficher le contenu de ton conky ?

Je ne comprends pas très bien ce que tu attends. Si c'est les fichiers tu les trouveras ici : https://transfer.sh/12ESGP/conky-1.10 (sachant que le principal fichier lua s'appelle script.lua, tous les autres qui commencent par 'script' sont des sauvegardes). Si c'est une image de ce qui marche en version 1.10, je l'ai mise ici http://pix.toile-libre.org/?img=1447884842.jpg. Si c'est à quoi il devrait ressembler lorsque tout marche (ce que j'avais en version 1.9) c'est ici http://pix.toile-libre.org/?img=1434719565.png

Dernière modification par Ferod (Le 22/11/2015, à 10:43)


"When I was in the military, they gave me a medal for killing
two men, and a descharge for loving one !" Leonard Matlovich

Hors ligne

#1083 Le 20/11/2015, à 20:51

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Merci Ferod, apparemment chez toi le scrip lua fonctionne, à part pour la partie météo, chez moi rien ne fonctionne en lua, mais je pense que la version conky 1.10 de Fedora n'est pas encore au point.

Je vais voir à récupérer les source de la version ubuntu et regarder ce qui diffère.


Tout est dans tout et réciproquement....

Hors ligne

#1084 Le 22/11/2015, à 10:43

Ferod

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'en ai eu marre... Je suis revenu à la version 1.9 et j'ai bloqué la mise à jour de ce paquet. Ne perd pas trop ton temps cheploq.
D'autre part comme j'utilise openweather pour la météo et qu'ils ont rajouté une clé associé à mon compte ça risque de ne pas marcher pour toi. C'est les chiffres et les lettres qui sont après appid. D'ailleurs comme c'est lié à mon compte je vais supprimer les liens vers cette archive...


"When I was in the military, they gave me a medal for killing
two men, and a descharge for loving one !" Leonard Matlovich

Hors ligne

#1085 Le 24/11/2015, à 07:36

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Ferod a écrit :

J'en ai eu marre... Je suis revenu à la version 1.9 et j'ai bloqué la mise à jour de ce paquet. Ne perd pas trop ton temps cheploq.
D'autre part comme j'utilise openweather pour la météo et qu'ils ont rajouté une clé associé à mon compte ça risque de ne pas marcher pour toi. C'est les chiffres et les lettres qui sont après appid. D'ailleurs comme c'est lié à mon compte je vais supprimer les liens vers cette archive...

Je ne pers pas de temps, je fais cela car j'aime bien comprendre et quand les choses fonctionnent correctement.

Je cherche sur le net, et je viens de voir une chose :
pour les scripts lua, il y a quelqu'un qui a fait ceci

dans la partie setting il a mis :
lua-load = /chemin/vers/le script-lua ,

et dans la partie text

${lua le_nom-de_fonction-lua }

ce qui pourrait donner, pour un script nommé meteo et une fonction conky_main :

lua_load = /chemin_vers_meteo ,

et
${lua main}

Voir ici post 80 https://bbs.archlinux.org/viewtopic.php?id=199217&p=4

Dernière modification par chepioq (Le 24/11/2015, à 07:40)


Tout est dans tout et réciproquement....

Hors ligne

#1086 Le 24/11/2015, à 22:36

Ferod

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Merci d'avoir cherché pour moi cheploq. Je testerai ça dès que je peux !


"When I was in the military, they gave me a medal for killing
two men, and a descharge for loving one !" Leonard Matlovich

Hors ligne

#1087 Le 25/11/2015, à 16:10

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Ferod a écrit :

Merci d'avoir cherché pour moi cheploq. Je testerai ça dès que je peux !

En cherchant un peu, je viens de voir que ce que je t'ai donné ne fonctionne uniquement que si le script retourne une sortie "string", c'est à dire une chaîne de caractères, si c'est une image tu auras une erreur.

lua    function_name (function parameters)    Executes a Lua function with given parameters, then prints the returned string. See also 'lua_load' on how to load scripts. Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you put you place 'conky_' in front of it yourself.

Par ailleurs j'ai pu obtenir un résultat avec un conky intégrant un script lua en installant par compilation le conky de GitHub : https://github.com/brndnmtthws/conky

Il a fallu quand même que je le bidouille un peu, cette version ne prenant en charge que lua 5.1 et 5.2, alors que sur ma fedora j'ai lua en 5.3

J'ai donc modifié le fichier /conky/cmake/ConkyPlatformChecks.cmake , ligne 252 ainsi :

pkg_search_module(LUA REQUIRED lua5.3 lua-5.3 lua>=5.1 lua5.1 lua-5.1)

J'ai ensuite suivi ce qu'il y avait indiqué dans le fichier README.cmake, avec l'option ccmake ../

Et après installation, j'ai eu un bon résultat :
http://pix.toile-libre.org/?img=1448460115.jpg


Pour ceux que cela intéresserait, voici mon conkyrc :

conky.config = {
background = false,
use_xft = true,
font = 'MgOpen Modata L:size=9:bold',
update_interval = 3600.0,
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',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'middle_middle',
minimum_width = 250,
minimum_height = 200,
gap_x = 570,
gap_y = -190,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 1024,

lua_load = '/home/dominique/.conkyrc/conky-soleil1/solar.lua',
lua_draw_hook_pre = 'sun',

}

conky.text = [[

]]

Ainsi que le script lua associé :
solar.lua

require 'cairo'
require 'imlib2'
function rgb_to_r_g_b(colour)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255.
end
    

function conky_sun()
    if conky_window == nil then return end
    
    image = imlib_load_image("/home/dominique/.conkyrc/conky-soleil1/fg6.png")
imlib_context_set_image(image)
imlib_render_image_on_drawable(0,0)
imlib_free_image()
--Vous pouvez changer ces paramètres
--couleur du texte à afficher
    local text_color={50,50,0}
--localisation du lieu à afficher
     local text_l= conky_parse("${exec sunwait -p 43.2882N 5.5778E | grep rises | awk '{print $3}'}")
     local text_c= conky_parse("${exec sunwait -p 43.2882N 5.5778E | grep rises | awk '{print $6}'}")
     local text_z= conky_parse("${exec sunwait -p 43.2882N 5.5778E | grep meridian | awk '{print$4}'}")
--Police à utiliser
     local font= "URW Chancery L"
     local font_size= 18
--fin des paramétres

    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable,
        conky_window.visual, conky_window.width,conky_window.height)
    cr=cairo_create(cs)

    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL,
                               CAIRO_FONT_WEIGHT_NORMAL)
    cairo_set_font_size (cr, font_size)
    cairo_set_source_rgba (cr, text_color[1]/255, text_color[2]/255, text_color[3]/255,1)


    cairo_move_to (cr, 20.0, 143.0)
    cairo_show_text (cr, "Lever")

    cairo_move_to (cr, 20.0, 163.0)
    cairo_show_text (cr, text_l)


    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL,
                               CAIRO_FONT_WEIGHT_NORMAL)
    cairo_set_font_size (cr, font_size)
    cairo_set_source_rgba (cr, text_color[1]/255, text_color[2]/255, text_color[3]/255,1)

    cairo_move_to (cr, 165.0, 143.0)
    cairo_show_text (cr, "Coucher")

    cairo_move_to (cr, 173.0, 163.0)
    cairo_show_text (cr, text_c)


    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL,
                               CAIRO_FONT_WEIGHT_NORMAL)
    cairo_set_font_size (cr, font_size)
    cairo_set_source_rgba (cr, text_color[1]/255, text_color[2]/255, text_color[3]/255,1)

    cairo_move_to (cr, 93.0, 43.0)
    cairo_show_text (cr, "Zenith")

    cairo_move_to (cr, 95.0, 63.0)
    cairo_show_text (cr, text_z)

    cairo_destroy(cr)
end

Dernière modification par chepioq (Le 25/11/2015, à 22:12)


Tout est dans tout et réciproquement....

Hors ligne

#1088 Le 25/11/2015, à 22:10

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Suite et surement pas fin de mes test avec conky 1.10.

J'ai un conky calendrier qui m'indique aussi les phase de la lune avec une image de cette lune.
Malheureusement il fonctionne avec deux script lua, et je n'arrivais pas à les faire fonctionner en même temp.
Je me suis souvenu d'un sujet de wlourf : http://u-scripts.blogspot.fr/2011/02/ho … conky.html , qui permet de lancer deux script lua par l'intermédiaire d'un troisième.

BINGO !!!
Après quelques tâtonnements cela fonctionne.

Mes deux scripts se nomment square_to_round.lua et calendar.lua, avec un appel à une variable pour le second.
J'ai donc créé un script loadAll.lua :

--script by wlourf : http://u-scripts.blogspot.fr/2011/02/howto-run-multiple-lua-scripts-in-conky.html

package.path = "/home/dominique/.conkyrc/conky-calendrier/?.lua"
require 'calendar' --for script.lua ".lua" is not required here
require 'square_to_round'

function conky_loadAll()
     conky_calendar_box()
     conky_main('/home/dominique/.conkyrc/conky-calendrier/moon-phase/moon.jpg')
end

Dans mon conkyrc j'ai mis, avant la partie text :

lua_load = '/home/dominique/.conkyrc/conky-calendrier/loadAll.lua',
lua_draw_hook_post = 'loadAll',

Et cela fonctionne : http://pix.toile-libre.org/?img=1448482140.jpg


Tout est dans tout et réciproquement....

Hors ligne

#1089 Le 11/04/2016, à 13:24

ibrahim54

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour, je me permet de vous contacter car j'ai un souci avec mon conky. Il ne s'affiche plus et je ne sais pas comment résoudre le problème.

background true
update_interval 1.0
use_xft yes
xftfont Sans:size=8
xftalpha 1
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager,below
double_buffer yes
minimum_size 280 800
maximum_width 280
text_buffer_size 258
default_color orange 
alignment top_left
gap_x 10
gap_y 10
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
#white
color1                white
#white
color2                white
#orange
color3                green
#orange - yellow
color4                green
color5                red
 
# Lua Load  #
#lua_load ~/.conky/ring.lua
#lua_draw_hook_pre clock_rings

TEXT
${font Angelina:size=18}${color3}BetaSeries${hr}${color2}${font}
 
${alignc}${color3}Avancement actuel : ${color1}49.93 %

${goto 30}${color3}Nombre d'épisodes vu : ${color1}${goto 217}7 057
${goto 30}${color3}Nombre d'épisodes restant : ${color1}${goto 217}7 076
${goto 30}${color3}Nombre d'épisodes total : ${color1}${goto 210}14 133
${alignc}${color3}Durée passée : ${color1}5 ${color3}m ${color1}4 ${color3}s ${color1}0 ${color3}j ${color1}10 ${color3}h ${color1}26 ${color3}m
${alignc}${color3}Durée restante : ${color1}6 ${color3}m ${color1}0 ${color3}s ${color1}4 ${color3}j ${color1}10 ${color3}h ${color1}58 ${color3}m

${alignc}${color3}Mise à jour : ${color1}10/04/2016

${font Angelina:size=18}${color3}ToDo List${hr}${color2}${font}
${color2}${offset 5}${font Droid sans mono:size=8}${exec cat ~/.conky/ToDo | fold -s -w 65}${font}

${font Angelina:size=18}${color3}Coran${hr}${color2}${font}

${alignc}${color1}Depuis le 01/08/2007

${alignc}${color3}Objectif : ${color5}Lire 1 fois tous les 2 mois

${color3}Nb lu : ${color1}${goto 69}3
${color3}Nb a lire : ${color1} 51

${color3}Pages lu : ${color1}${goto 85}1 812
${color3}Pages a lire : ${color1}30 804

${alignc}${color3}Objectif : ${color5}Lire 1 fois par mois

${color3}Nb lu : ${color1}${goto 69}3
${color3}Nb a lire : ${color1} 102

${color3}Pages lu : ${color1}${goto 85}1 812
${color3}Pages a lire : ${color1}61 608

${alignc}${color3}Mise à jour : ${color1}14/01/2016

${font Angelina:size=18}${color3}Youtube${hr}${color2}${font}

${goto 30}${color3}Nombre de videos : ${color1}${goto 217}19
${goto 30}${color3}Nombre d'abonnés : ${color1}${goto 217}6
${goto 30}${color3}Nombre de vues : ${color1}${goto 217}328

${alignc}${color3}Mise à jour : ${color1}10/04/2016

Le probleme est survenu en mettant trop de texte dans un de mes "widget"
J'avais pourtant mis des # devant chaque ligne inutile pour le moment pour eviter de faire un truc trop grand mais le conky refuse toujours de s afficher...
Actuellement je suis sur une config dual screen. L'ecran ou le conky ne s affiche pas est en 1920x1080 pour 27 pouces (vivement la 4k ^^).
Alors que sur mon autre ecran en 19 pouces n est qu'en 1280x1024... Pourtant celui ci n a pas de souci. Voici son conky attitré :

background true
update_interval 1.0
use_xft yes
xftfont Sans:size=8
xftalpha 1
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager,below
double_buffer yes
minimum_size 280 1000
maximum_width 280
text_buffer_size 258
default_color orange 
alignment top_left
gap_x 1810
gap_y 10
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
#white
color1                white
#white
color2                white
#orange
color3                green
#orange - yellow
color4                green
color5                red
 
# Lua Load  #
#lua_load ~/.conky/ring.lua
#lua_draw_hook_pre clock_rings

TEXT
${font Angelina:size=18}${color3}BetaSeries${hr}${color2}${font}
 
${alignc}${color3}Avancement actuel : ${color1}49.77 %

${goto 30}${color3}Nombre d'épisodes vu : ${color1}${goto 217}6 927
${goto 30}${color3}Nombre d'épisodes restant : ${color1}${goto 217}6 991
${goto 30}${color3}Nombre d'épisodes total : ${color1}${goto 210}13 918
${alignc}${color3}Durée passée : ${color1}5 ${color3}m ${color1}3 ${color3}s ${color1}4 ${color3}j ${color1}17 ${color3}h ${color1}15 ${color3}m
${alignc}${color3}Durée restante : ${color1}5 ${color3}m ${color1}4 ${color3}s ${color1}1 ${color3}j ${color1}12 ${color3}h ${color1}16 ${color3}m

${alignc}${color3}Mise à jour : ${color1}09/02/2016

${font Angelina:size=18}${color3}ToDo List${hr}${color2}${font}
${color2}${offset 5}${font Droid sans mono:size=8}${exec cat ~/.conky/ToDo | fold -s -w 65}${font}

${font Angelina:size=18}${color3}Coran${hr}${color2}${font}

${alignc}${color1}Depuis le 01/08/2007

${alignc}${color3}Objectif : ${color5}Lire 1 fois tous les 2 mois

${color3}Nb lu : ${color1}${goto 69}3
${color3}Nb a lire : ${color1} 51

${color3}Pages lu : ${color1}${goto 85}1 812
${color3}Pages a lire : ${color1}30 804

${alignc}${color3}Objectif : ${color5}Lire 1 fois par mois

${color3}Nb lu : ${color1}${goto 69}3
${color3}Nb a lire : ${color1} 102

${color3}Pages lu : ${color1}${goto 85}1 812
${color3}Pages a lire : ${color1}61 608

${alignc}${color3}Mise à jour : ${color1}14/01/2016

${font Angelina:size=18}${color3}Priere Avril 2016${hr}${color2}${font}

${color3}${goto 49}Fajr${goto 92}Dhor${goto 144}3asr${goto 186}Maghrib${goto 244}3isha

${color3}D10${color1}${goto 190}20h23${goto 240}22h08
${color3}L11${color1}${goto 45}05h12${goto 88}13h37${goto 140}17h20${goto 190}20h24${goto 240}22h10
${color3}M12${color1}${goto 45}05h10${goto 88}13h37${goto 140}17h21${goto 190}20h26${goto 240}22h12
${color3}M13${color1}${goto 45}05h08${goto 88}13h37${goto 140}17h21${goto 190}20h27${goto 240}22h14
${color3}J14${color1}${goto 45}05h05${goto 88}13h36${goto 140}17h22${goto 190}20h29${goto 240}22h16
${color3}V15${color1}${goto 45}05h03${goto 88}13h36${goto 140}17h23${goto 190}20h30${goto 240}22h18
#${color3}S16${color1}${goto 45}05h01${goto 88}13h36${goto 140}17h23${goto 190}20h32${goto 240}22h20
#${color3}D17${color1}${goto 45}04h59${goto 88}13h36${goto 140}17h24${goto 190}20h33${goto 240}22h22
#${color3}L18${color1}${goto 45}04h57${goto 88}13h35${goto 140}17h25${goto 190}20h35${goto 240}22h24
#${color3}M19${color1}${goto 45}04h55${goto 88}13h35${goto 140}17h25${goto 190}20h36${goto 240}22h27
#${color3}M20${color1}${goto 45}04h53${goto 88}13h35${goto 140}17h26${goto 190}20h37${goto 240}22h29
#${color3}J21${color1}${goto 45}04h50${goto 88}13h35${goto 140}17h27${goto 190}20h39${goto 240}22h31
#${color3}V22${color1}${goto 45}04h48${goto 88}13h35${goto 140}17h27${goto 190}20h40${goto 240}22h33
#${color3}S23${color1}${goto 45}04h46${goto 88}13h34${goto 140}17h28${goto 190}20h42${goto 240}22h35 
#${color3}D24${color1}${goto 45}04h44${goto 88}13h34${goto 140}17h28${goto 190}20h43${goto 240}22h38
#${color3}L25${color1}${goto 45}04h42${goto 88}13h34${goto 140}17h29${goto 190}20h45${goto 240}22h40
#${color3}M26${color1}${goto 45}04h40${goto 88}13h34${goto 140}17h30${goto 190}20h46${goto 240}22h42
#${color3}M27${color1}${goto 45}04h37${goto 88}13h34${goto 140}17h30${goto 190}20h48${goto 240}22h45
#${color3}J28${color1}${goto 45}04h35${goto 88}13h34${goto 140}17h31${goto 190}20h49${goto 240}22h47
#${color3}V29${color1}${goto 45}04h33${goto 88}13h33${goto 140}17h31${goto 190}20h51${goto 240}22h49
#${color3}S30${color1}${goto 45}04h31${goto 88}13h33${goto 140}17h32${goto 190}20h52${goto 240}22h52
#${color3}D01${color1}${goto 45}04h29${goto 88}13h33${goto 140}17h32${goto 190}20h54${goto 240}22h54
#${color3}L02${color1}${goto 45}04h27${goto 88}13h33${goto 140}17h33${goto 190}20h55${goto 240}22h57
#${color3}M03${color1}${goto 45}04h24${goto 88}13h33${goto 140}17h33${goto 190}20h56${goto 240}22h59
#${color3}M04${color1}${goto 45}04h22${goto 88}13h33${goto 140}17h34${goto 190}20h58${goto 240}23h02
#${color3}J05${color1}${goto 45}04h20${goto 88}13h33${goto 140}17h35${goto 190}20h59${goto 240}23h04
#${color3}V06${color1}${goto 45}04h18${goto 88}13h33${goto 140}17h35${goto 190}21h01${goto 240}23h07
#${color3}S07${color1}${goto 45}04h16${goto 88}13h33${goto 140}17h36${goto 190}21h02${goto 240}23h09
#${color3}D08${color1}${goto 45}04h14${goto 88}13h33${goto 140}17h36${goto 190}21h04${goto 240}23h12
#${color3}L09${color1}${goto 45}04h12${goto 88}13h33${goto 140}17h37${goto 190}21h05${goto 240}23h14
#${color3}M10${color1}${goto 45}04h10${goto 88}13h33${goto 140}17h37${goto 190}21h06${goto 240}23h17
#${color3}M11${color1}${goto 45}04h08${goto 88}13h33${goto 140}17h38${goto 190}21h08${goto 240}23h19
#${color3}J12${color1}${goto 45}04h06${goto 88}13h33${goto 140}17h38${goto 190}21h09${goto 240}23h22
#${color3}V13${color1}${goto 45}04h04${goto 88}13h33${goto 140}17h39${goto 190}21h10${goto 240}23h24
#${color3}S14${color1}${goto 45}04h02${goto 88}13h33${goto 140}17h39${goto 190}21h12${goto 240}23h27
#${color3}D15${color1}${goto 45}04h00${goto 88}13h33${goto 140}17h40${goto 190}21h13${goto 240}23h30
#${color3}L16${color1}${goto 45}03h58${goto 88}13h33${goto 140}17h40${goto 190}21h14${goto 240}23h32
#${color3}M17${color1}${goto 45}03h56${goto 88}13h33${goto 140}17h41${goto 190}21h16${goto 240}23h35
#${color3}M18${color1}${goto 45}03h54${goto 88}13h33${goto 140}17h41${goto 190}21h17${goto 240}23h38
#${color3}J19${color1}${goto 45}03h52${goto 88}13h33${goto 140}17h42${goto 190}21h18${goto 240}23h40
#${color3}V20${color1}${goto 45}03h50${goto 88}13h33${goto 140}17h42${goto 190}21h20${goto 240}23h41
#${color3}S21${color1}${goto 45}03h48${goto 88}13h33${goto 140}17h43${goto 190}21h21${goto 240}23h42
#${color3}D22${color1}${goto 45}03h46${goto 88}13h33${goto 140}17h43${goto 190}21h22${goto 240}23h42
#${color3}L23${color1}${goto 45}03h44${goto 88}13h33${goto 140}17h44${goto 190}21h23${goto 240}23h43
#${color3}M24${color1}${goto 45}03h42${goto 88}13h33${goto 140}17h44${goto 190}21h24${goto 240}23h44
#${color3}M25${color1}${goto 45}03h41${goto 88}13h33${goto 140}17h45${goto 190}21h25${goto 240}23h44
#${color3}J26${color1}${goto 45}03h39${goto 88}13h33${goto 140}17h45${goto 190}21h27${goto 240}23h45
#${color3}V27${color1}${goto 45}03h37${goto 88}13h33${goto 140}17h45${goto 190}21h28${goto 240}23h45
#${color3}S28${color1}${goto 45}03h36${goto 88}13h34${goto 140}17h46${goto 190}21h29${goto 240}23h46
#${color3}D29${color1}${goto 45}03h34${goto 88}13h34${goto 140}17h46${goto 190}21h30${goto 240}23h46
#${color3}L30${color1}${goto 45}03h32${goto 88}13h34${goto 140}17h47${goto 190}21h31${goto 240}23h47
#${color3}M31${color1}${goto 45}03h31${goto 88}13h34${goto 140}17h47${goto 190}21h32${goto 240}23h47
#${color3}M01${color1}${goto 45}03h29${goto 88}13h34${goto 140}17h47${goto 190}21h33${goto 240}23h48
#${color3}J02${color1}${goto 45}03h28${goto 88}13h34${goto 140}17h47${goto 190}21h34${goto 240}23h48
#${color3}V03${color1}${goto 45}03h27${goto 88}13h34${goto 140}17h47${goto 190}21h35${goto 240}23h49
#${color3}S04${color1}${goto 45}03h25${goto 88}13h35${goto 140}17h48${goto 190}21h36${goto 240}23h49
#${color3}D05${color1}${goto 45}03h24${goto 88}13h35${goto 140}17h48${goto 190}21h36${goto 240}23h50
#${color3}L06${color5}${goto 45}03h23${color1}${goto 88}13h35${goto 140}17h49${color5}${goto 190}21h37${color1}${goto 240}23h50
#${color3}M07${color5}${goto 45}03h22${color1}${goto 88}13h35${goto 140}17h49${color5}${goto 190}21h38${color1}${goto 240}23h51
#${color3}M08${color5}${goto 45}03h21${color1}${goto 88}13h35${goto 140}17h49${color5}${goto 190}21h39${color1}${goto 240}23h51
#${color3}J09${color5}${goto 45}03h20${color1}${goto 88}13h36${goto 140}17h50${color5}${goto 190}21h39${color1}${goto 240}23h51
#${color3}V10${color5}${goto 45}03h19${color1}${goto 88}13h36${goto 140}17h50${color5}${goto 190}21h40${color1}${goto 240}23h52
#${color3}S11${color5}${goto 45}03h18${color1}${goto 88}13h36${goto 140}17h50${color5}${goto 190}21h41${color1}${goto 240}23h52
#${color3}D12${color5}${goto 45}03h17${color1}${goto 88}13h36${goto 140}17h51${color5}${goto 190}21h41${color1}${goto 240}23h53
#${color3}L13${color5}${goto 45}03h17${color1}${goto 88}13h36${goto 140}17h51${color5}${goto 190}21h42${color1}${goto 240}23h53
#${color3}M14${color5}${goto 45}03h16${color1}${goto 88}13h37${goto 140}17h51${color5}${goto 190}21h42${color1}${goto 240}23h53
#${color3}M15${color5}${goto 45}03h16${color1}${goto 88}13h37${goto 140}17h52${color5}${goto 190}21h43${color1}${goto 240}23h54
#${color3}J16${color5}${goto 45}03h16${color1}${goto 88}13h37${goto 140}17h52${color5}${goto 190}21h43${color1}${goto 240}23h54
#${color3}V17${color5}${goto 45}03h15${color1}${goto 88}13h37${goto 140}17h52${color5}${goto 190}21h44${color1}${goto 240}23h54
#${color3}S18${color5}${goto 45}03h15${color1}${goto 88}13h37${goto 140}17h52${color5}${goto 190}21h44${color1}${goto 240}23h54
#${color3}D19${color5}${goto 45}03h15${color1}${goto 88}13h38${goto 140}17h53${color5}${goto 190}21h44${color1}${goto 240}23h55
#${color3}L20${color5}${goto 45}03h15${color1}${goto 88}13h38${goto 140}17h53${color5}${goto 190}21h44${color1}${goto 240}23h55
#${color3}M21${color5}${goto 45}03h15${color1}${goto 88}13h38${goto 140}17h53${color5}${goto 190}21h45${color1}${goto 240}23h55
#${color3}M22${color5}${goto 45}03h15${color1}${goto 88}13h38${goto 140}17h53${color5}${goto 190}21h45${color1}${goto 240}23h55
#${color3}J23${color5}${goto 45}03h15${color1}${goto 88}13h39${goto 140}17h53${color5}${goto 190}21h45${color1}${goto 240}23h55
#${color3}V24${color5}${goto 45}03h16${color1}${goto 88}13h39${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}S25${color5}${goto 45}03h16${color1}${goto 88}13h39${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}D26${color5}${goto 45}03h17${color1}${goto 88}13h39${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}L27${color5}${goto 45}03h18${color1}${goto 88}13h39${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}M28${color5}${goto 45}03h18${color1}${goto 88}13h40${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}M29${color5}${goto 45}03h19${color1}${goto 88}13h40${goto 140}17h54${color5}${goto 190}21h45${color1}${goto 240}23h56
#${color3}J30${color5}${goto 45}03h20${color1}${goto 88}13h40${goto 140}17h54${color5}${goto 190}21h44${color1}${goto 240}23h56

${font Angelina:size=18}${color3}Youtube${hr}${color2}${font}

${goto 30}${color3}Nombre de videos : ${color1}${goto 217}19
${goto 30}${color3}Nombre d'abonnés : ${color1}${goto 217}6
${goto 30}${color3}Nombre de vues : ${color1}${goto 217}328

${alignc}${color3}Mise à jour : ${color1}10/04/2016

Vous pouvez voir a partir de la ligne 76 et suivantes les # permettant de cacher ce qui n'est pas utile pour le moment (il s’agit d’horaire de prière sur 3 mois).

Merci de votre aide et n’hésitez pas a me demander pour plus de renseignements ^^


mon poste info : Dual-screen 27+17" ; i3-2100, 16Go de ram (Windows 10)
mon poste nomade : Lenovo ThinkPad X260 (Ubuntu 22.04)
Musée :  Lenovo ThinkPad X200 (Ubuntu 21.10)

Hors ligne

#1090 Le 11/04/2016, à 14:59

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Essaye en augmentant le text_buffer_size  a 1024, voir à 2048


Tout est dans tout et réciproquement....

Hors ligne

#1091 Le 11/04/2016, à 15:36

ibrahim54

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

chepioq a écrit :

Essaye en augmentant le text_buffer_size  a 1024, voir à 2048

Je viens de tester le text_buffer_size en 1024 et cela fonctionne a merveille apres un reload du conky complet.

Merci de votre aide précieuse wink

J'ai meme pu modifier la taille de mon conky en hauteur pour que cela soit pris en compte

Merci encore !

Ibrahim


mon poste info : Dual-screen 27+17" ; i3-2100, 16Go de ram (Windows 10)
mon poste nomade : Lenovo ThinkPad X260 (Ubuntu 22.04)
Musée :  Lenovo ThinkPad X200 (Ubuntu 21.10)

Hors ligne

#1092 Le 11/04/2016, à 20:02

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ibrahim54 a écrit :

...................................................
Merci encore !

Ibrahim

De rien, nous sommes ici pour aider les fans de conky.

Ce programme est merveilleux et peut faire à peu près tout ce que tu veux.


Tout est dans tout et réciproquement....

Hors ligne

#1093 Le 22/04/2016, à 16:48

Compte anonymisé

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour !

Avant la mise-à-jour vers la 16.04 ce script fonctionnait parfaitement :

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 10
# gap_x 80
gap_y 500
minimum_size 190 550
maximum_width 190
own_window yes
own_window_type override
own_window_transparent no
own_window_colour 3c3b37
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment top_right

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

# Orange DD4814
# Aubergine 772953

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 666666

lua_load ~/.conky/scripts/system.lua
lua_draw_hook_post main

TEXT
${voffset 35}
${goto 95}${color4}${font ubuntu:size=22}${time %e}${color1}${offset -50}${font ubuntu:size=10}${time %A}
${goto 85}${color2}${voffset -2}${font ubuntu:size=9}${time %b}${voffset -2} ${color3}${font ubuntu:size=12}${time %Y}${font}

# CPU #############################################################
${voffset 80}
${goto 90}${font Ubuntu:size=7,weight:bold}${color}CPU
${goto 90}${font ubuntu:size=7,weight:normal}${color1}${top name 1}${alignr}${top cpu 1}%
${goto 90}${font ubuntu:size=7,weight:normal}${color2}${top name 2}${alignr}${top cpu 2}%
${goto 90}${font ubuntu:size=7,weight:normal}${color3}${top name 3}${alignr}${top cpu 3}%
${goto 90}${cpugraph 10,100 666666 666666}
${goto 90}${voffset -10}${font ubuntu:size=7,weight:normal}${color1}${threads} processus

# MÉMOIRE #########################################################
${voffset 20}
${goto 90}${font ubuntu:size=7,weight:bold}${color}MÉMOIRE${alignr}
${goto 90}${font ubuntu:size=7,weight:normal}${color1}${top_mem name 1}${alignr}${top_mem mem 1}%
${goto 90}${font ubuntu:size=7,weight:normal}${color2}${top_mem name 2}${alignr}${top_mem mem 2}%
${goto 90}${font ubuntu:size=7,weight:normal}${color3}${top_mem name 3}${alignr}${top_mem mem 3}%

# DISQUES #########################################################
${voffset 15}
${goto 90}${font ubuntu:size=7,weight:bold}${color}DISQUES

${goto 90}${diskiograph 30,100 666666 666666}${voffset -30}
${goto 90}${font ubuntu:size=7,weight:normal}${color1}/home${alignr}${fs_used /home}
${goto 90}${font ubuntu:size=7,weight:normal}${color1}/${alignr}${fs_used /}

# NET #############################################################
# ${voffset 10}
# Type de connexion & IP LAN
${goto 70}${font ubuntu:size=18,weight:bold}${color3}NET${font Ubuntu:size=7,weight:normal}${color1}${alignr}${if_up eth1}eth ${addr eth1}${endif}${if_up wlan0}wifi ${addr wlan0}${endif}
# IP WAN ##########################################################
${font ubuntu:size=7,weight:normal}${color1}${alignr}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
# IP LAN ##########################################################
# ${goto 90}${font ubuntu:size=7,weight:bold}${color}ip lan : ${alignr}${color2}${addr eth1}
# IP WAN (à externaliser)
# ${goto 90}${font ubuntu:size=7,weight:bold}${color}ip wan : ${alignr}${color2}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
# Upload ##########################################################
${goto 90}${upspeedgraph eth0 10,100 666666 666666 -t}
${goto 90}${voffset -10}${font ubuntu:size=7,weight:normal}${color1}upload${alignr}${color2}${totalup eth0}
# Download ########################################################
${goto 90}${downspeedgraph eth0 10,100 666666 666666 -t}
${goto 90}${voffset -10}${font Ubuntu:size=7,weight:normal}${color1}download${alignr}${color2}${totaldown eth0}

Depuis, la font Ubuntu ne s'affiche plus, je ne peux d'ailleurs plus changer de police.
Any idea?

[EDIT] Mes couleurs ont disparues, aussi. :-(

[EDIT (encore)] ce script là :

# Locale, fonts and font sizes
use_xft yes
# xftfont Droid Sans:size=9
xftfont Ubuntu:size=9
override_utf8_locale yes

# Conky performance
update_interval 3
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
text_buffer_size 2048
imlib_cache_size 0

# Execute it in its own window
own_window yes
own_window_transparent no
own_window_colour 3c3b37
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Borders, margins
draw_borders no
draw_outline no
draw_graph_borders no
border_inner_margin 0
border_outer_margin 0

# Own window color

# Font colors
default_color FFFFFF

# Text shadows
draw_shades no

# Header colors

# Minimum dimensions
minimum_size 400 400

maximum_width 1000

# Conky positioning
alignment top_right
gap_x 10
gap_y 85

# Script Lua
lua_load ~/.conky/scripts/photo_album.lua
lua_draw_hook_pre photo_album

# Output
TEXT

qui fonctionnait lui aussi tout-à-fait, ne se lance même plus.
Voilà le retour en console :

conky '/home/shamanphenix/.conky/conkyrc_photo_album' conky: desktop window (340000a) is subwindow of root window (4b6)
conky: window type - desktop
conky: drawing to created window (0x4e00001)

Dernière modification par Compte anonymisé (Le 22/04/2016, à 17:01)

#1094 Le 22/04/2016, à 17:02

enebre

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Il faudra réécrire le script du conky, depuis la màj du soft conky, tout à changé cfr la doc ou chercher conky new code, si je retrouve le lien je le posterai.
edit:
le tread :
https://bbs.archlinux.org/viewtopic.php?id=199217
exemple:
http://codepad.org/zNZnCfDc

Dernière modification par enebre (Le 22/04/2016, à 17:15)

Hors ligne

#1095 Le 22/04/2016, à 17:20

enebre

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Qu'a tu fais pour que les polices ne soient plus reconnue ?
reconfigurer les fonts pourrait résoudre ton problème.
Sit u veux je te donne mon conkyrc avec le new code , juste pour voir si ca passe mieux.

Hors ligne

#1096 Le 22/04/2016, à 17:24

Compte anonymisé

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai fait la mise-à-jour vers la 16.04, et depuis mon conky est comme ça.
Je n'ai pas touché à mes scripts Conky.

#1097 Le 22/04/2016, à 17:25

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Il faudrait déjà savoir quelle version de conky tu utilises.
Donne nous le retour de la commande :

conky -v

Tout est dans tout et réciproquement....

Hors ligne

#1098 Le 22/04/2016, à 17:27

enebre

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Oui c'est ça, le soft conky à installé la dernière version, soit tu change ton conkyrc soit tu rétrograde de version de conky, mais le problème te suivra dans ce cas advitam, le mieux c'est de faire la conversion de ton rc une bonne fois

Hors ligne

#1099 Le 22/04/2016, à 18:09

Compte anonymisé

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

chepioq a écrit :

Il faudrait déjà savoir quelle version de conky tu utilises.
Donne nous le retour de la commande :

conky -v
conky -v
conky 1.10.1 compiled Wed Jan  6 17:11:44 UTC 2016 for Linux 3.19.0-43-generic x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky


 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support

 Lua bindings:
  * Cairo
  * Imlib2
  * RSVG
 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

#1100 Le 22/04/2016, à 18:20

chepioq

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

C'est donc bien la version 1.10 de conky que tu as, et il faut donc ré-écrire ton conky pour qu'il fonctionne de nouveau.
Consulte le lien que t'a indiqué enebre, si tu as des problèmes dis le nous.


Tout est dans tout et réciproquement....

Hors ligne