Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#51 31-10-2020 19:41:08

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

201031074237858974.png

Dans la configuration ci-dessus j'ouvre le terminal dans ce dossier et entre la commande

conky -b -c ./conkycarouselrc

En ligne

#52 31-10-2020 21:39:14

jeremix
Membre
Distrib. : Debian Buster
Noyau : Linux 4.19.0-9-amd64
(G)UI : Xfce
Inscription : 21-09-2009

Re : Partagez vos conky !

J'ai réessayé de la même façon avec tes fichiers d'origine, dans le terminal :

jeremy@jeremy-desktophp:~$ conky -b -c /home/jeremy/.conky/ConkyCarousel/conkycarousel
conky: Invalid value 'middle_bottom' for setting 'alignment'. Valid values are: 'top_left', 'top_right', 'top_middle', 'bottom_left', 'bottom_right', 'bottom_middle', 'middle_left', 'middle_middle', 'middle_right', 'tl', 'tr', 'tm', 'bl', 'br', 'bm', 'ml', 'mm', 'mr', 'none'.
conky: desktop window (1200003) is subwindow of root window (6b1)
conky: window type - normal
conky: drawing to created window (0x6c00001)
conky: drawing to double buffer
sh: 1: ./conkycarousel.sh: not found
sh: 1: ./conkycarousel.sh: not found
sh: 1: ./conkycarousel.sh: not found
sh: 1: ./conkycarousel.sh: not found
conky: '/home/jeremy/.conky/ConkyCarousel/conkycarousel' modified, reloading...
conky: desktop window (1200003) is subwindow of root window (6b1)
conky: window type - normal
conky: drawing to created window (0x6c00001)
conky: drawing to double buffer
^Cconky: received SIGINT or SIGTERM to terminate. bye!



Premièrement, j'ai modifié middle_bottom en bottom_middle
Deuxièmement, j'ai modifié le chemin ./conkycarousel.sh en mettant le chemin complet /home/blabla

enfin, voici le dernier résultat :

jeremy@jeremy-desktophp:~$ conky -b -c /home/jeremy/.conky/ConkyCarousel/conkycarousel
conky: desktop window (1200003) is subwindow of root window (6b1)
conky: window type - normal
conky: drawing to created window (0x7200001)
conky: drawing to double buffer
convert-im6.q16: unable to open image `pics/*.*': Aucun fichier ou dossier de ce type @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no decode delegate for this image format `' @ error/constitute.c/ReadImage/560.
convert-im6.q16: no such image `black' @ error/mogrify.c/MogrifyImageList/8794.
convert-im6.q16: ImageSequenceRequired `-composite' @ error/mogrify.c/MogrifyImageList/7995.
convert-im6.q16: no images defined `current.png' @ error/convert.c/ConvertImageCommand/3258.
convert-im6.q16: unable to open image `pix/photobg_bg_big.png': Aucun fichier ou dossier de ce type @ error/blob.c/OpenBlob/2874.
convert-im6.q16: ImageSequenceRequired `-composite' @ error/mogrify.c/MogrifyImageList/7995.
convert-im6.q16: no images defined `result.png' @ error/convert.c/ConvertImageCommand/3258.
convert-im6.q16: unable to open image `result.png': Aucun fichier ou dossier de ce type @ error/blob.c/OpenBlob/2874.
convert-im6.q16: unable to open image `pix/photobg_shadow_big.png': Aucun fichier ou dossier de ce type @ error/blob.c/OpenBlob/2874.
convert-im6.q16: unable to open image `pix/photobg_shadow_big.png': Aucun fichier ou dossier de ce type @ error/blob.c/OpenBlob/2874.
convert-im6.q16: no images defined `result.png' @ error/convert.c/ConvertImageCommand/3258.
conky: Unable to load image 'result.png'


Desktop HP: AMD PhenomII X6 Gallium 0.4 on AMD TURKS [AMD/ATI]  HDMI Audio [Radeon HD 6000] RalinkRT5390
Laptop ThinkPad L540 : i5-4340M 2.90Ghz
1256545775.png

Hors ligne

#53 31-10-2020 21:51:16

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

Pour bien faire j'ai supprimé le lien du téléchargement au commentaire #26 et inséré directement le code exact que j'ai utilisé dans la démo commentaire #51

En ligne

#54 31-10-2020 22:34:02

solar66
Adhérent(e)
Distrib. : debian buster
Noyau : Linux 4-19-0-12-amd64
(G)UI : cinnamon
Inscription : 23-08-2016

Re : Partagez vos conky !

@Toulibre

As-tu une capture d'écran stp ?

  #29 
je viens de voir que la copie d'écran a disparue, et à la place, j'ai: Test du bbcode FluxBB
tu utilises quel site pour ces copies d'écran?

Hors ligne

#55 31-10-2020 22:44:45

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

En ce moment (et souvent) le serveur de toile libre à des arrêts alors j'utilise en attendant casimages

En ligne

#56 31-10-2020 23:08:42

solar66
Adhérent(e)
Distrib. : debian buster
Noyau : Linux 4-19-0-12-amd64
(G)UI : cinnamon
Inscription : 23-08-2016

Re : Partagez vos conky !

ok, ça y est, c'est remis

Hors ligne

#57 01-11-2020 00:23:43

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

Cool, super alors big_smile

En ligne

#58 01-11-2020 02:23:06

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

2 fichiers conky + 1 conky_startup.sh pour démarrer le tout.
---1conkyrc

conky.config = {
 alignment = 'top_right',
 border_inner_margin = 0,
 border_outer_margin = 0,
 cpu_avg_samples = 2,
 default_color = '222222',
 double_buffer = true,
 font ='font Roboto Light:size=12',
 gap_x = 185,
 gap_y = 100,
 imlib_cache_size =0,
 maximum_width = 347,
 minimum_height = 157,
 minimum_width = 400,
 net_avg_samples = 2,
 no_buffers = true,
 override_utf8_locale = true,
 own_window_argb_visual = true,
 own_window_argb_value = 164,
 own_window = true,
 own_window_type = 'desktop',
 own_window_transparent = false,
 own_window_hints = 'undecorated,below,sticky,skip_pager,skip_taskbar',
 text_buffer_size = 2048,
 total_run_times = 0,
 update_interval = 1.0,
 use_xft = true,
 xftalpha = 0.5,

 color1 = 'D7D7D7',      
 color2 = 'DB8100',        
 color3 = 'A3A3A3',      
 color4 = '26DB00',        
 color5 = 'DB0500',      
 color6 = '0068DB',      
 draw_shades = true,
 draw_outline = false,
 default_shade_color = '222222',
 if_up_strictness = 'address',

}


conky.text = [[
${image /home/chemin/img/cadre.png}
${voffset -10}
${font Roboto Light:size=12}${if_match ${battery_percent BAT0} < 10}${color5}${else}${color3}${endif}${goto 30}${font Abstract:size=12}batterie$font\
${goto 100}${if_match ${battery_percent BAT0} > 0}${color5}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 10}${color5}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 15}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 20}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 25}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 30}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 35}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 40}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 45}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 50}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 55}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 60}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 65}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 70}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 75}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 80}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 85}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 90}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 95}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} == 100}${color6}${else}${color}${endif}▪
${color3}${goto 30}${font Abstract:size=12}horaire${goto 100}${if_match ${time %H%M} > 0}${color6}${else}${color}${endif}▪\
${if_match ${time %H%M} > 112}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 224}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 336}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 448}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 600}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 712}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 824}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 936}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1048}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1200}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1312}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1424}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1536}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1700}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1812}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1924}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2048}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2200}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2312}${color6}${else}${color}${endif}▪
${if_match ${fs_used_perc} > 95}${color5}${else}${color3}${endif}${goto 30}${font Abstract:size=12}hdd${goto 100}${if_match ${fs_used_perc} > 0}${color6}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 10}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 15}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 20}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 80}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 85}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 90}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc} == 100}${color5}${else}${color}${endif}▪
${color3}${goto 30}${font Abstract:size=12}ram${goto 100}${if_match ${memperc} > 0}${color6}${else}${color}${endif}▪\
${if_match ${memperc} > 10}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 15}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 20}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 80}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 85}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 90}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${memperc} == 100}${color5}${else}${color}${endif}▪
${color3}${goto 30}${font Abstract:size=12}ctp/cpu${goto 100}${if_match ${cpu} > 0}${color6}${else}${color}${endif}▪\
${if_match ${cpu} > 10}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 15}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 20}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 70}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 75}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 80}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 85}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 90}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu} == 100}${color5}${else}${color}${endif}▪

]]



---2 conkypicrc

conky.config = {
 alignment = 'top_right',
 cpu_avg_samples = 2,
 default_color = '222222',
 double_buffer = true,
 font ='font Roboto Light:size=12',
 gap_x = 290,
 gap_y = 258,
 imlib_cache_size =0,
 maximum_width = 240,
 minimum_height = 240,
 minimum_width = 240,
 net_avg_samples = 2,
 no_buffers = true,
 override_utf8_locale = true,
 own_window_argb_visual = true,
 own_window = true,
 own_window_type = 'desktop',
 own_window_transparent = true,
 own_window_hints = 'undecorated,below,sticky,skip_pager,skip_taskbar',
 text_buffer_size = 2048,
 total_run_times = 0,
 update_interval = 1.0,
 use_xft = true,
 xftalpha = 0.5,

 color1 = 'D7D7D7',      
 color2 = 'DB8100',        
 color3 = 'A3A3A3',      
 color4 = '26DB00',        
 color5 = 'DB0500',      
 color6 = '0068DB',      
 draw_shades = true,
 draw_outline = false,
 default_shade_color = '222222',
 if_up_strictness = 'address',

}


conky.text = [[
${image /home/chemin/img/cadre2.png}
]]



---3 conky_startup.sh

#!/bin/bash
sleep 15
conky -b -c /home/chemin/conkypicrc &
conky -b -c /home/chemin/conkyrc &

exit



Pensez à ajuster le chemin des images

Démarrer le terminal dans le dossier avec la commande ./conky_startup.sh

cadre.png
201101021854594118.png
cadre2.png
201101022006109311.png
Le fond
mini_20110102204799387.jpg
Le résultat !
201101020830611166.png
Fortement inspiré de Conky led d'arpinux smile

En ligne

#59 01-11-2020 02:41:41

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

Re : Partagez vos conky !

belle adaptation au format lua, merci, je vais me permettre de le choper pour nakeDeb big_smile
une version avec la font forkawesome

file-R5babb5aa1365d3d95fde42ea84a87dbc

et le conkyrc qui va avec

--[[
  conky_leds
  adpatation lua par Toulibre (merci@lui)
  source : https://arpinux.org/public/conky/leds.tgz
  mods : https://debian-facile.org/viewtopic.php?pid=346357#p346357
]]

conky.config = {
 alignment = 'top_left',
 border_inner_margin = 0,
 border_outer_margin = 0,
 cpu_avg_samples = 2,
 default_color = '222222',
 double_buffer = true,
 use_xft = true,
 font = 'Hack:size=14',
 gap_x = 10,
 gap_y = 10,
 imlib_cache_size =0,
 minimum_width = 260,
 minimum_height = 96,
 net_avg_samples = 2,
 no_buffers = true,
 override_utf8_locale = true,
 own_window_argb_visual = true,
 own_window_argb_value = 164,
 own_window = true,
 own_window_type = 'desktop',
 own_window_transparent = false,
 own_window_hints = 'undecorated,below,sticky,skip_pager,skip_taskbar',
 text_buffer_size = 2048,
 total_run_times = 0,
 update_interval = 1.0,
 use_xft = true,
 xftalpha = 0.5,

 color1 = 'D7D7D7',      
 color2 = 'DB8100',        
 color3 = 'A3A3A3',      
 color4 = '26DB00',        
 color5 = 'DB0500',      
 color6 = '0068DB',      
 draw_shades = false,
 draw_outline = false,
 default_shade_color = '222222',
 if_up_strictness = 'address',

}


conky.text = [[
${voffset -5}${if_match ${battery_percent BAT0} < 10}${color5}${else}${color3}${endif}\
${goto 5}${font forkawesome:pixelsize=12}$font\
${voffset -6}${goto 30}${if_match ${battery_percent BAT0} > 0}${color5}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 10}${color5}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 15}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 20}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 25}${color2}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 30}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 35}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 40}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 45}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 50}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 55}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 60}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 65}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 70}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 75}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 80}${color1}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 85}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 90}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} > 95}${color4}${else}${color}${endif}▪\
${if_match ${battery_percent BAT0} == 100}${color6}${else}${color}${endif}▪
${voffset -5}${color3}${goto 5}${font forkawesome:pixelsize=12}${font}${goto 30}\
${voffset -6}${if_match ${time %H%M} > 0}${color6}${else}${color}${endif}▪\
${if_match ${time %H%M} > 112}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 224}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 336}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 448}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 600}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 712}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 824}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 936}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1048}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1200}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1312}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1424}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1536}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1700}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1812}${color1}${else}${color}${endif}▪\
${if_match ${time %H%M} > 1924}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2048}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2200}${color4}${else}${color}${endif}▪\
${if_match ${time %H%M} > 2312}${color6}${else}${color}${endif}▪
${voffset -5}${if_match ${fs_used_perc} > 95}${color5}${else}${color3}${endif}\
${goto 5}${font forkawesome:pixelsize=12}$font${goto 30}\
${voffset -6}${if_match ${fs_used_perc} > 0}${color6}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 10}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 15}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 20}${color4}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 80}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 85}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 90}${color2}${else}${color}${endif}▪\
${if_match ${fs_used_perc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${fs_used_perc} == 100}${color5}${else}${color}${endif}▪
${voffset -5}${color3}${goto 5}${font forkawesome:pixelsize=12}${font}\
${voffset -6}${goto 30}${if_match ${memperc} > 0}${color6}${else}${color}${endif}▪\
${if_match ${memperc} > 10}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 15}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 20}${color4}${else}${color}${endif}▪\
${if_match ${memperc} > 25}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 30}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 35}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 40}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 45}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 50}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 55}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 60}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 65}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 70}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 75}${color1}${else}${color}${endif}▪\
${if_match ${memperc} > 80}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 85}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 90}${color2}${else}${color}${endif}▪\
${if_match ${memperc} > 95}${color5}${else}${color}${endif}▪\
${if_match ${memperc} == 100}${color5}${else}${color}${endif}▪
${voffset -5}${color3}${goto 5}${font forkawesome:pixelsize=12}$font\
${voffset -6}${goto 30}${if_match ${cpu} > 0}${color6}${else}${color}${endif}▪\
${if_match ${cpu} > 10}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 15}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 20}${color4}${else}${color}${endif}▪\
${if_match ${cpu} > 25}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 30}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 35}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 40}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 45}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 50}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 55}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 60}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 65}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 70}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 75}${color1}${else}${color}${endif}▪\
${if_match ${cpu} > 80}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 85}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 90}${color2}${else}${color}${endif}▪\
${if_match ${cpu} > 95}${color5}${else}${color}${endif}▪\
${if_match ${cpu} == 100}${color5}${else}${color}${endif}▪\
]]
 

Dernière modification par arpinux (01-11-2020 03:35:27)


nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile -- Les cahiers du débutant -- ISO Debian-Facile -- anar'prez

En ligne

#60 01-11-2020 08:45:55

TyZef
Membre
Lieu : ވޭމަންޑޫ ٠ ތ ٠ ދިވެހިރާއްޖެ
Distrib. : дебиан ١٠ かめはめ波
Noyau : Linus 5.8.0-0.bpo.2-amd64
(G)UI : खुला बॉक्स
Inscription : 09-05-2013

Re : Partagez vos conky !

Hey il est cool votre conky !!! Et minimaliste à block ! Ça dépote !!!

Bravo !

Pour une fois qu'j'kiff kekshoz!!!

Hors ligne

#61 01-11-2020 08:49:41

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

C'est du re re re en toujours mieux smile , ça va bien le faire pour nakedeb !

Ça ne m'était pas venu à l'idée les font forkawesome, ça rend nickel ! Du coup je me permets aussi lol , je n'ai pas trouvé pour la partie internet et les "mauvais arguments" , un problème de décimale (?)

En ligne

#62 01-11-2020 11:43:00

golgot200
Membre
Distrib. : Archlinux 2018-02-03
Noyau : 5.9.4-arch1-1
(G)UI : Mate (Strict Minimum)
Inscription : 05-08-2007

Re : Partagez vos conky !

@arpinux

Bonjour,

file-R5babb5aa1365d3d95fde42ea84a87dbc

La première indication, c'est bien le niveau de la batterie ?
Les LED indiquent quoi ? smile
elle est pleine ou t'es plein lol

@TyZef

J'ai bien ton profil : big_smile

   
Lieu : ވޭމަންޑޫ ٠ ތ ٠ ދިވެހިރާއްޖެ
    Distrib. : дебиан ١٠ かめはめ波
    Noyau : Linus 5.8.0-0.bpo.2-amd64
    (G)UI : खुला बॉक्स
    Inscription : 09-05-2013
 

Dernière modification par golgot200 (01-11-2020 11:48:17)

Hors ligne

#63 01-11-2020 13:57:55

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

Re : Partagez vos conky !

^^ je devrais faire une ligne avec le taux d'acoolémie aussi tongue ya une jolie icone en forme de verre à coktail sur forkawesome big_smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile -- Les cahiers du débutant -- ISO Debian-Facile -- anar'prez

En ligne

#64 02-11-2020 00:28:59

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

C'est le Conky chat,
201102122326736856.png
toujours pareil, vérifiez/changez vos noms de connexions filaire et sans fil en tapant ip link dans le terminal et vérifiez/changez les chemins.
Normalement tout démarre avec

./conky_demarre.sh


Le fichier à télécharger sur Jyraphe
Enfin si ça vous plaît, sinon pour prendre des bouts de codes smile

Edit : évidemment j'ai oublié une ligne dans le script conky_demarre.sh lol
À rajouter :

conky -b -c /home/utilisateur/.config/Conky-DF/conkymeteorc &

Dernière modification par Toulibre (02-11-2020 00:48:22)

En ligne

#65 02-11-2020 17:15:42

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

S'lut, j'ai oublié de préciser, il y a le fond d'écran en SVG qui se trouve dans le dossier en cas si vous souhaitez changer les tons, c'est plus pratique.

En ligne

#66 03-11-2020 18:15:39

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

Message à Jeremix, Gurushots c'est addictif, cela dit c'est sympa pour se motiver sur des sujets précis et faire évoluer son regard.

Étonnament un peu occupé là avec mon taf mais j'ai en tête de faire un Conky sympa pour bientôt, j'ai fait quelques tests concluants smile

En ligne

#67 04-11-2020 13:00:51

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

sur la même base que le conky leds d'arpinux

201104010101719229.png


--[[
  conky_leds
  re-re-re-adpatation lua par Toulibre (merci@lui)
  source : https://arpinux.org/public/conky/leds.tgz
  mods : https://debian-facile.org/viewtopic.php?pid=346357#p346357
]]
conky.config = {
    alignment = 'top_right',
    background = false,
    border_width = 5,
    cpu_avg_samples = 2,
    default_color = '4E9258',
    default_outline_color = 'black',
    default_shade_color = 'black',
    double_buffer = true,
    draw_borders = true,
    draw_graph_borders = true,
    draw_outline = true,
    draw_shades = false,
    extra_newline = false,
    font = 'font sans-serif:bold:size=8',
    gap_x = 30,
    gap_y = 80,
    minimum_height = 80,
    minimum_width = 320,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window_argb_visual = true,
    own_window_argb_value = 140,    
    own_window = true,
    own_window_colour = '000000',
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_transparent = false,
    own_window_hints = 'below',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    temperature_unit = 'celsius',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    color1 ='green',
    color2 ='yellow',
    color3 ='orange',
    color4 ='red',
    color5 ='blue',
    color6 ='4E9258',
}

conky.text = [[
${goto 20}${font fontawesome:bold:size=12}${if_match ${acpitemp} > 70}${color4}${else}${color 4E9258}${endif}${font}
${voffset -14}${goto 60}${if_match ${battery_percent BAT0} > 0}${color4}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 4}${color4}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 8}${color4}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 12}${color4}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 16}${color4}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 20}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 24}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 28}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 32}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 36}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 38}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 42}${color3}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 46}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 50}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 54}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 58}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 62}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 66}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 70}${color1}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 74}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 78}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 82}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 86}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 90}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 94}${color5}${else}${color}${endif}=\
${if_match ${battery_percent BAT0} > 98}${color5}${else}${color}${endif}=
${goto 20}${font fontawesome:bold:size=12}${if_match ${time %H%M} > 1924}${color4}${else}${color 4E9258}${endif}${font}
${voffset -14}${goto 60}${if_match ${time %H%M} > 112}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 224}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 336}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 448}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 600}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 712}${color1}${else}${color}${endif}=\
${if_match ${time %H%M} > 824}${color2}${else}${color}${endif}=\
${if_match ${time %H%M} > 936}${color2}${else}${color}${endif}=\
${if_match ${time %H%M} > 1048}${color2}${else}${color}${endif}=\
${if_match ${time %H%M} > 1200}${color2}${else}${color}${endif}=\
${if_match ${time %H%M} > 1312}${color3}${else}${color}${endif}=\
${if_match ${time %H%M} > 1424}${color3}${else}${color}${endif}=\
${if_match ${time %H%M} > 1536}${color3}${else}${color}${endif}=\
${if_match ${time %H%M} > 1700}${color3}${else}${color}${endif}=\
${if_match ${time %H%M} > 1812}${color3}${else}${color}${endif}=\
${if_match ${time %H%M} > 1924}${color4}${else}${color}${endif}=\
${if_match ${time %H%M} > 2048}${color4}${else}${color}${endif}=\
${if_match ${time %H%M} > 2200}${color4}${else}${color}${endif}=\
${if_match ${time %H%M} > 2312}${color4}${else}${color}${endif}=
${goto 20}${font fontawesome:bold:size=12}${if_match ${cpu} > 80}${color4}${else}${color 4E9258}${endif}${font}
${voffset -14}${goto 60}${if_match ${cpu} > 0}${color1}${else}${color}${endif}=\
${if_match ${cpu} > 4}${color1}${else}${color}${endif}=\
${if_match ${cpu} > 8}${color1}${else}${color}${endif}=\
${if_match ${cpu} > 12}${color1}${else}${color}${endif}=\
${if_match ${cpu} > 16}${color1}${else}${color}${endif}=\
${if_match ${cpu} > 20}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 24}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 28}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 32}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 36}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 38}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 42}${color2}${else}${color}${endif}=\
${if_match ${cpu} > 46}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 50}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 54}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 58}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 62}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 66}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 70}${color3}${else}${color}${endif}=\
${if_match ${cpu} > 74}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 78}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 82}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 86}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 90}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 94}${color4}${else}${color}${endif}=\
${if_match ${cpu} > 98}${color4}${else}${color}${endif}=
${goto 20}${font fontawesome:bold:size=12}${if_match ${memperc} > 80}${color4}${else}${color 4E9258}${endif}${font}
${voffset -14}${goto 60}${if_match ${memperc} > 0}${color1}${else}${color}${endif}=\
${if_match ${memperc} > 4}${color1}${else}${color}${endif}=\
${if_match ${memperc} > 8}${color1}${else}${color}${endif}=\
${if_match ${memperc} > 12}${color1}${else}${color}${endif}=\
${if_match ${memperc} > 16}${color1}${else}${color}${endif}=\
${if_match ${memperc} > 20}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 24}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 28}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 32}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 36}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 38}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 42}${color2}${else}${color}${endif}=\
${if_match ${memperc} > 46}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 50}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 54}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 58}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 62}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 66}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 70}${color3}${else}${color}${endif}=\
${if_match ${memperc} > 74}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 78}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 82}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 86}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 90}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 94}${color4}${else}${color}${endif}=\
${if_match ${memperc} > 98}${color4}${else}${color}${endif}=
${goto 20}${font fontawesome:bold:size=12}${if_match ${fs_used_perc} > 80}${color4}${else}${color 4E9258}${endif}${font}
${voffset -14}${goto 60}${if_match ${fs_used_perc} > 0}${color1}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 4}${color1}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 8}${color1}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 12}${color1}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 16}${color1}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 20}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 24}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 28}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 32}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 36}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 38}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 42}${color2}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 46}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 50}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 54}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 58}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 62}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 66}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 70}${color3}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 74}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 78}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 82}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 86}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 90}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 94}${color4}${else}${color}${endif}=\
${if_match ${fs_used_perc} > 98}${color4}${else}${color}${endif}=
${goto 18}${color 4E9258}${font fontawesome:bold:size=12}${font}${goto 60}${upspeedgraph enp3s0 7,232 4E9258 F87217 F70D1A}
${goto 22}${color 4E9258}${font fontawesome:bold:size=12}${font}${goto 60}${upspeedgraph wlp2s0b1 7,232 4E9258 F87217 F70D1A}
]]

En ligne

#68 04-11-2020 15:23:17

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

Re : Partagez vos conky !

^^ jolie modif' big_smile
très 8bits comme style avec les "=" smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile -- Les cahiers du débutant -- ISO Debian-Facile -- anar'prez

En ligne

#69 04-11-2020 17:16:26

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

j'ai rallongé le nombre des valeurs du coup ça le rend plus réactif, merci je l'aime bien aussi big_smile

En ligne

#70 05-11-2020 11:59:53

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

Difficile de trouver des versions conky à jour, pour celles et ceux qui aimeraient avoir une version aboutie avec un installateur pour Debian et Arch
https://www.deviantart.com/im-wayfarer/ … -830457210 la mise à jour date de février 2020, les instructions détaillées sont dans le dossier.
vous pouvez traduire les textes ici https://www.deepl.com/fr/translator pour celles et ceux qui ont des difficultés en anglais.
mini_201105120113351738.png
Si quelqu'un l'installe je suis intéressé d'avoir un retour

En ligne

#71 07-11-2020 23:09:56

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

201107110030937069.png

Pffffiiiooouuu j'ai mis celui-ci à jour et à ma sauce.

conkyrc

--[[
Infini par Toulibre, l'original s'est perdu dans la nuit des temps :) . Mis à jour sous une nouvelle forme.
fonctionne avec conky 1.10.8
]]

conky.config = {

  background = false,
  update_interval = 1,

  override_utf8_locale = true,

  double_buffer = true,
  no_buffers = true,

  text_buffer_size = 2048,
  imlib_cache_size = 0,

  temperature_unit = 'celsius',



  own_window = true,
  own_window_type = 'normal',
  own_window_transparent = true,
  own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
  minimum_width = 1030, minimum_height = 280,
  maximum_width = 1030,


  alignment = 'top_left',
  gap_x = 280,
  gap_y = 100,


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


  use_xft = true,
  font = 'GE Inspira:size=8',
  xftalpha = 0.5,

  uppercase = false,
  default_shade_color = '#000000',
  default_color = '#ffffff',
  color1 = '#FFFFFF',



  lua_load = '/home/toulibre/Téléchargements/clock_rings.lua',
  lua_draw_hook_pre = 'clock_rings',

};

conky.text = [[
${image /home/toulibre/Téléchargements/orb-1b.png -p 0,117}
${image /home/toulibre/Téléchargements/orb-1a.png -p 140,44}
${alignc 309}${voffset 38}${font GE Inspira:size=26}${cpu}$font
${goto 195}cpu [ % ]
${goto 195}T ${exec expr `cat /sys/class/hwmon/hwmon0/temp1_input` / 1000}°
${image /home/toulibre/Téléchargements/orb-1a.png -p 290,-4}
${goto 340}${voffset -120}${font GE Inspira:size=26}${memperc}$font
${goto 345}mem [ % ]
${goto 345}Gpu ${hwmon 0 temp 1} °C
${image /home/toulibre/Téléchargements/orb-1a.png -p 450,-6}
${goto 502}${voffset -75}${font GE Inspira:size=26}${fs_used_perc /}$font
${goto 506}Ssd[ % ]
${goto 506}T ${hddtemp /dev/sda} °C
${image /home/toulibre/Téléchargements/orb-1a.png -p 600,5}
${goto 655}${voffset -60}${font GE Inspira:size=26}${fs_used_perc /home}$font
${goto 649}home ${color}[ % ]
${image /home/toulibre/Téléchargements/orb-1a.png -p 750,28}
${alignc -300}${voffset -40}${font GE Inspira:size=16}${downspeedf enp3s0}$font
${goto 798}entrant [ k/s ]
${image /home/toulibre/Téléchargements/orb-1a.png -p 900,92}
${alignc -450}${voffset 20}${font Ge Inspira:size=16}${upspeedf enp3s0}$font
${goto 950}sortant [ k/s ]
${voffset -240}]];



clock_rings.lua

--[[
Infini par Toulibre, l'original s'est perdu dans la nuit des temps :) . Mis à jour sous une nouvelle forme.
fonctionne avec conky 1.10.8


Pour appeler ce script dans Conky, utilisez ce qui suit (en supposant que vous enregistrez ce script dans ~ / scripts / rings.lua):
  lua_load ~/scripts/haunted.lua
  lua_draw_hook_pre ring_stats
 
Changelog:
+ v1.0 -- Original release (07/06/2012)
+ v1.1 -- Mis à jour (07/11/2020)
]]

settings_table = {
  {
    -- Modifiez ce tableau pour personnaliser vos anneaux.
    -- Vous pouvez créer plus d'anneaux simplement en ajoutant plus d'éléments à settings_table.
    -- "name" est le type de statistique à afficher; vous pouvez choisir 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
    name='time',
    -- "arg" est l'argument du type statistique, par exemple dans Conky vous écririez ${cpu cpu0}, 'cpu0' ce serait l'argument. Si vous n'utilisez pas d'argument dans la variable Conky, utilisez ''.
    arg='%I.%M',
    -- "max" est la valeur maximale de l'anneau. Si la variable Conky génère un pourcentage, utilisez 100.
    max=12,
    -- "bg_colour" est la couleur de base de l'anneau.
    bg_colour=0xffffff,
    -- "bg_alpha" est la valeur alpha de l'anneau de base.
    bg_alpha=0.0,
    -- "fg_colour" est la couleur de la partie indicatrice de l'anneau.
    fg_colour=0x86eeff,
    -- "fg_alpha" est la valeur alpha de la partie indicatrice de l'anneau.
    fg_alpha=0.0,
    -- "x" et "y" sont les coordonnées x et y du centre de l'anneau, par rapport au coin supérieur gauche de la fenêtre Conky.
    x=67, y=61,
    -- "radius" est le rayon de l'anneau.
    radius=30,
    -- "thickness" est l'épaisseur de l'anneau, centrée autour du rayon.
    thickness=2,
    -- "start_angle" est l'angle de départ de l'anneau, en degrés, dans le sens des aiguilles d'une montre à partir du haut. La valeur peut être positive ou négative.
    start_angle=0,
    -- "end_angle" est l'angle de fin de l'anneau, en degrés, dans le sens des aiguilles d'une montre à partir du haut. La valeur peut être positive ou négative, mais doit être plus grande (par exemple plus dans le sens des aiguilles d'une montre) que start_angle.
    end_angle=360
  },
  {
    name='cpu',
    arg='cpu0',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=212, y=105,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
  {
    name='memperc',
    arg='',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=362, y=58,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
  {
    name='fs_used_perc',
    arg='/',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=522, y=56,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
  {
    name='fs_used_perc',
    arg='/home',
    max=100,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=672, y=66,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
  {
    name='downspeedf',
    arg='enp3s0',
    max=450,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=822, y=89,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
 
  {
    name='upspeedf',
    arg='enp3s0',
    max=450,
    bg_colour=0xffffff,
    bg_alpha=0.0,
    fg_colour=0xffffff,
    fg_alpha=0.2,
    x=972, y=153,
    radius=36,
    thickness=8,
    start_angle=-90,
    end_angle=180
  },
   
}

-- Utilisez ces paramètres pour définir l'origine et l'étendue de votre horloge.

clock_r=29



clock_x=73
clock_y=180

-- "clock_x" et "clock_y" sont les coordonnées du centre de l'horloge, en pixels, à partir du coin supérieur gauche de la fenêtre Conky.


clock_colour=0xffffff
clock_alpha=0.5



show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
  return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
  local w,h=conky_window.width,conky_window.height

  local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
  local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

  local angle_0=sa*(2*math.pi/360)-math.pi/2
  local angle_f=ea*(2*math.pi/360)-math.pi/2
  local t_arc=t*(angle_f-angle_0)

 

  cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
  cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
  cairo_set_line_width(cr,ring_w)
  cairo_stroke(cr)

 

  cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
  cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
  cairo_stroke(cr)
end

function draw_clock_hands(cr,xc,yc)
  local secs,mins,hours,secs_arc,mins_arc,hours_arc
  local xh,yh,xm,ym,xs,ys

  secs=os.date("%S")
  mins=os.date("%M")
  hours=os.date("%I")

  secs_arc=(2*math.pi/60)*secs
  mins_arc=(2*math.pi/60)*mins+secs_arc/60
  hours_arc=(2*math.pi/12)*hours+mins_arc/12

 

  xh=xc+0.7*clock_r*math.sin(hours_arc)
  yh=yc-0.7*clock_r*math.cos(hours_arc)
  cairo_move_to(cr,xc,yc)
  cairo_line_to(cr,xh,yh)

  cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
  cairo_set_line_width(cr,5)
  cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha))
  cairo_stroke(cr)

 

  xm=xc+clock_r*math.sin(mins_arc)
  ym=yc-clock_r*math.cos(mins_arc)
  cairo_move_to(cr,xc,yc)
  cairo_line_to(cr,xm,ym)

  cairo_set_line_width(cr,3)
  cairo_stroke(cr)

 

  if show_seconds then
    xs=xc+clock_r*math.sin(secs_arc)
    ys=yc-clock_r*math.cos(secs_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xs,ys)

    cairo_set_line_width(cr,1)
    cairo_stroke(cr)
  end
end

function conky_clock_rings()
  local function setup_rings(cr,pt)
    local str=''
    local value=0

    str=string.format('${%s %s}',pt['name'],pt['arg'])
    str=conky_parse(str)

    value=tonumber(str)
    if value == nil then value = 0 end
    pct=value/pt['max']

    draw_ring(cr,pct,pt)
  end

 

  if conky_window==nil then return end
  local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)

  local cr=cairo_create(cs)

  local updates=conky_parse('${updates}')
  update_num=tonumber(updates)

  if update_num>5 then
    for i in pairs(settings_table) do
      setup_rings(cr,settings_table[i])
    end
  end

  draw_clock_hands(cr,clock_x,clock_y)
end

--[[ RING WIDGET ]]
--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
  "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
  "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
  "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
  "bg_colour" is the colour of the base ring.
  "bg_alpha" is the alpha value of the base ring.
  "fg_colour" is the colour of the indicator part of the ring.
  "fg_alpha" is the alpha value of the indicator part of the ring.
  "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
  "radius" is the radius of the ring.
  "thickness" is the thickness of the ring, centred around the radius.
  "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
  "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]

function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
  local function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
  end
 
  local function draw_ring(pct)
    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local pct_arc=pct*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,t)
    cairo_stroke(cr)
 
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)
  end
 
  local function setup_ring()
    local str = ''
    local value = 0
   
    str = string.format('${%s %s}', name, arg)
    str = conky_parse(str)
   
    value = tonumber(str)
    if value == nil then value = 0 end
    pct = value/max
   
    draw_ring(pct)
  end
 
  local updates=conky_parse('${updates}')
  update_num=tonumber(updates)
 
  if update_num>5 then setup_ring() end
end

--[[ END RING WIDGET ]]



orb-1a.png
201107110755893940.png
orb-1b.png
201107110902844482.png
le fond d'écran
mini_201107110641422768.jpg

Tout les fichiers dans le même dossier chez moi ça démarre avec
conky -b -c ./conkyrc

Cherchez "toulibre" dans le fichier conkyrc pour trouver votre propre chemin smile

En ligne

#72 08-11-2020 07:06:52

Michel007
Membre
Lieu : Coueron
Distrib. : Buster-Stable
Noyau : 4.19
(G)UI : xfce
Inscription : 13-03-2017

Re : Partagez vos conky !

Très chouette ! C'est le tirage du loto ?? out.gif

En ligne

#73 08-11-2020 07:19:59

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

aarrfff, peut toujours essayer, 1 chance sur 140 millions que je file les bons numéros lol

- Astuce pour convertir les anciens conky en nouveau format lua, trouvé hier soir, nécessite d'installer le paquet lua-any :

apt-get install lua-any

puis,
***placez le fichier convert.lua ci-dessous dans le dossier contenant le fichier à convertir puis ouvrir le terminal dans le dossier***

./convert.lua monconkyrc


le fichier convert.lua

#! /usr/bin/lua

local usage = [[
Usage: convert.lua old_conkyrc [new_conkyrc]

Tries to convert conkyrc from the old v1.x format to the new, lua-based format.

Keep in mind that there is no guarantee that the output will work correctly
with conky, or that it will be able to convert every conkyrc. However, it
should provide a good starting point.

Although you can use this script with only 1 arg and let it overwrite the old
config, it's suggested to use 2 args so that the new config is written in a new
file (so that you have backup if something went wrong).

Optional: Install dos2unix. We will attempt to use this if it is available
because Conky configs downloaded from Internet sometimes are created on DOS/Windows
machines with different line endings than Conky configs created on Unix/Linux.

For more information about the new format, read the wiki page
<https://github.com/brndnmtthws/conky/wiki>
]];

local function quote(s)
    if not s:find("[\n'\\]") then
        return "'" .. s .. "'";
    end;
    local q = '';
    while s:find(']' .. q .. ']', 1, true) do
        q = q .. '=';
    end;
    return string.format('[%s[\n%s]%s]', q, s, q);
end;

local bool_setting = {
    background = true, disable_auto_reload = true, double_buffer = true, draw_borders = true,
    draw_graph_borders = true, draw_outline = true, draw_shades = true, extra_newline = true,
    format_human_readable = true, no_buffers = true, out_to_console = true,
    out_to_ncurses = true, out_to_stderr = true, out_to_x = true, override_utf8_locale = true,
    own_window = true, own_window_argb_visual = true, own_window_transparent = true,
    short_units = true, show_graph_range = true, show_graph_scale = true,
    times_in_seconds = true, top_cpu_separate = true, uppercase = true, use_xft = true,
    draw_blended = true, forced_redraw = true
};

local num_setting = {
    border_inner_margin = true, border_outer_margin = true, border_width = true,
    cpu_avg_samples = true, diskio_avg_samples = true, gap_x = true, gap_y = true,
    imlib_cache_flush_interval = true, imlib_cache_size = true,
    max_port_monitor_connections = true, max_text_width = true, max_user_text = true,
    maximum_width = true, mpd_port = true, music_player_interval = true, net_avg_samples = true,
    own_window_argb_value = true, pad_percents = true, stippled_borders = true,
    text_buffer_size = true, top_name_width = true, total_run_times = true,
    update_interval = true, update_interval_on_battery = true, xftalpha = true,
    xinerama_head = true,
};

local split_setting = {
    default_bar_size = true, default_gauge_size = true, default_graph_size = true,
    minimum_size = true
};

local colour_setting = {
    color0 = true, color1 = true, color2 = true, color3 = true, color4 = true, color5 = true,
    color6 = true, color7 = true, color8 = true, color9 = true, default_color = true,
    default_outline_color = true, default_shade_color = true, own_window_colour = true
};

local function alignment_map(value)
    local map = { m = 'middle', t = 'top', b = 'bottom', r = 'right', l = 'left' };
    if map[value] == nil then
        return value;
    else
        return map[value];
    end;
end;

local function handle(setting, value)
    setting = setting:lower();
    if setting == '' then
        return '';
    end;
    if split_setting[setting] then
        local x, y = value:match('^(%S+)%s*(%S*)$');
        local ret = setting:gsub('_size', '_width = ') .. x .. ',';
        if y ~= '' then
            ret = ret .. ' ' .. setting:gsub('_size', '_height = ') .. y .. ',';
        end;
        return '\t' .. ret;
    end;
    if bool_setting[setting] then
        value = value:lower();
        if value == 'yes' or value == 'true' or value == '1' or value == '' then
            value = 'true';
        else
            value = 'false';
        end;
    elseif not num_setting[setting] then
        if setting == 'alignment' and value:len() == 2 then
            value = alignment_map(value:sub(1,1)) .. '_' .. alignment_map(value:sub(2,2));
        elseif colour_setting[setting] and value:match('^[0-9a-fA-F]+$') then
            value = '#' .. value;
        elseif setting == 'xftfont' then
            setting = 'font';
        end;
        value = quote(value);
    end;
    return '\t' .. setting .. ' = ' .. value .. ',';
end;

local function convert(s)
    local setting, comment = s:match('^([^#]*)#?(.*)\n$');
    if comment ~= '' then
        comment = '--' .. comment;
    end;
    comment = comment .. '\n';
    return handle(setting:match('^%s*(%S*)%s*(.-)%s*$')) ..  comment;
end;

local input;
local output;

if conky == nil then --> standalone program
    -- 1 arg: arg is input and outputfile
    -- 2 args: 1st is inputfile, 2nd is outputfile
    -- 0, 3 or more args: print usage to STDERR and quit
    if #arg == 1 or #arg == 2 then
        if os.execute('command -v dos2unix 2>&1 >/dev/null') == 0 then
            os.execute('dos2unix ' .. arg[1]);
        end
        input = io.input(arg[1]);
    else
        io.stderr:write(usage);
        return;
    end;
else
    -- we are called from conky, the filename is the first argument
    input = io.open(..., 'r');
end;


local config = input:read('*a');
input:close();

local settings, text = config:match('^(.-)TEXT\n(.*)$');

local converted = 'conky.config = {\n' .. settings:gsub('.-\n', convert) .. '};\n\nconky.text = ' ..
                quote(text) .. ';\n';

if conky == nil then
    if #arg == 2 then
        output = io.output(arg[2]);
    else
        output = io.output(arg[1]);
    end
    output:write(converted);
    output:close();
else
    return assert(load(converted, 'converted config'));
end;
 


économise des heures !

Dernière modification par Toulibre (08-11-2020 09:50:19)

En ligne

#74 08-11-2020 08:07:28

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

201108074515548660.png

*recherchez dans les fichiers "toulibre" afin de faciliter la rechherche pour modifier les chemins à votre convenance.

*creéz un fichier "notes.txt" dans votre home.

*démarrez le terminal dans le dossier avec la commande ./startconky.sh

* Textes traduits en français.

le dossier compressé

En ligne

#75 08-11-2020 19:09:40

Toulibre
Adhérent(e)
Lieu : Ganges, Cévennes
Distrib. : Debian Buster
Noyau : Linux 4.19.0-10-amd64
(G)UI : xfce
Inscription : 10-08-2020
Site Web

Re : Partagez vos conky !

201108070739371464.png
Le dossier avec le fond d'écran inclus

Cherchez 'toulibre' dans le fichier conkyrc_G-Rings pour vous faciliter à modifier les chemins.
dans le dossier ouvrez le terminal et entrez la commande

conky -b -c ./conkyrc_G-Rings

En ligne

Pied de page des forums