[Conky] Scintillements (Résolu)

Xorg, Compiz, KDE / Gnome / Xfce / Fluxbox / e17 / fvwm ... GDM/KDM/XDM...
@rché0
Daikyu
Messages : 90
Inscription : jeu. 09 sept. 2021, 20:57

[Conky] Scintillements (Résolu)

Message par @rché0 »

Bonjour,

j'ai un scintillement de Conky, celui-ci a lieu de façon aléatoire (de quelques secondes à une trentaines). J'ai essayé d'activer le module 'dbe' dans /etc/X11 sans succès, en faisant la commande 'grep LoadModule /var/log/Xorg.0.log' le module est listé mais je n'ai pas ce module dans /var/lib ?

Voici la partie config du Conky:

Code : Tout sélectionner

conky.config = {
use_xft = true,
xftalpha = 0.8,
background = true,

-- Update interval in seconds
update_interval = 1,
-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
total_run_times = 0,

-- Create own window instead of using desktop (required in nemo)
own_window = true,
own_window_argb_visual = false,
own_window_class = 'Conky',
own_window_transparent = true,
own_window_type = 'desktop',
--own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,

-- Draw shades?
draw_shades = false,

-- Draw outlines?
draw_outline = false,

-- Draw borders around text
draw_borders = false,

-- Stippled borders?
stippled_borders = 0,

-- Border width
border_width = 60,

-- Subtract file system buffers from used memory?
no_buffers = true,

-- set to true if you want all text to be in uppercase
uppercase = false,

-- Number of cpu samples to average
-- Set to 1 to disable averaging
cpu_avg_samples = 4,

-- Number of net samples to average
-- Set to 1 to disable averaging
net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
override_utf8_locale = true,

-- Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer = 'none',

-- Alignment = bl,
gap_x = 60,
gap_y = 60,

color1 = '5294E2', -- 2EB398-green / 5294E2-blue / 3498DB-azul ip execi 180
color2 = 'FFFFFF',
color3 = 'CCCCCC',
}
Je ne vois pas trop ce qui fait ce problème, si vous avez une idée je vous serai reconnaissant :bravo: .
Dernière modification par @rché0 le sam. 06 nov. 2021, 20:26, modifié 1 fois.
@rché0
Daikyu
Messages : 90
Inscription : jeu. 09 sept. 2021, 20:57

Re: [Conky] Scintillements

Message par @rché0 »

Bonsoir,

Avec la commande 'conky', l'affichage (sur fond noir) marche correctement. J'ai donc mis cette configuration dans mon Conky mais le résultat est le même :/

Le problème vient surement de la partie TEXT que voici:

Code : Tout sélectionner

conky.text = [[
${voffset 11}${font Brizel:size=65}${color1}${time %H:%M}${font}${voffset -11}
${voffset 11}${font Brizel:size=26}${color2}${time %A %d %B}${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}${color3}RM: ${font Sans:size=9}$mem/$memmax $memperc%${font Sans:bold:size=9}   HD: ${font Sans:size=9}${fs_used /}/${fs_size /}${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}BATT: ${font Sans:size=9}${battery_percent BAT0}%${font Sans:bold:size=9} UPT: ${font Sans:size=9}${uptime_short}${font Sans:bold:size=9}   CPU: ${font Sans:size=9}${freq_g}GHz $cpu% ${exec sensors|grep Core\ 0|cut -c17-18}°${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}IP: ${font Sans:size=9}${texeci 120 curl -4 https://icanhazip.com 2>/dev/null}${font Sans:bold:size=9}   DOWN: ${font Sans:size=9}${downspeedf enp0s31f6}KB/s${font Sans:bold:size=9} UP: ${font Sans:size=9}${upspeedf enp0s31f6}KB/s${font}${voffset -11}
 ]]
Les voffset était à l'origine à 8, le passage à 11 ne change toujours rien. La police Brizel est récupérée sur le web, j'ai recrée le cache des polices: nada.
@rché0
Daikyu
Messages : 90
Inscription : jeu. 09 sept. 2021, 20:57

Re: [Conky] Scintillements

Message par @rché0 »

Bonsoir,

j'ai fini par trouver après tâtonnements.
Voici le conky fonctionnel :D

Code : Tout sélectionner

conky.config = {

background = true,
use_xft = true,
xftalpha = 0.8,

-- Update interval in seconds.
update_interval = 1.0,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
total_run_times = 0,

-- Create own window instead of using desktop.
own_window = true,
own_window_argb_visual = false,
own_window_class = 'Conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'desktop',

-- Use double buffering (reduces flicker, may not work for everyone).
double_buffer = true,

-- Subtract file system buffers from used memory?
no_buffers = true,

-- set to true if you want all text to be in uppercase.
uppercase = false,

-- Number of cpu samples to average.
-- Set to 1 to disable averaging.
cpu_avg_samples = 2,

-- Number of net samples to average.
-- Set to 1 to disable averaging.
net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT.
override_utf8_locale = true,

-- Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer = 'none',

gap_x = 60,
gap_y = 60,

color1 = '5294E2',
color2 = 'FFFFFF',
color3 = 'CCCCCC',
}

conky.text = [[
${voffset 11}${font Brizel:size=65}${color1}${time %H:%M}${font}${voffset -11}
${voffset 11}${font Brizel:size=26}${color2}${time %A %d %B}${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}${color3}RM: ${font Sans:size=9}$mem/$memmax $memperc%${font Sans:bold:size=9}   HD: ${font Sans:size=9}${fs_used /}/${fs_size /}${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}BATT: ${font Sans:size=9}${battery_percent BAT0}%${font Sans:bold:size=9} UPT: ${font Sans:size=9}${uptime_short}${font Sans:bold:size=9}   CPU: ${font Sans:size=9}${freq_g}GHz $cpu% ${exec sensors|grep Core\ 0|cut -c17-18}°${font}${voffset -11}
${voffset 11}${font Sans:bold:size=9}IP: ${font Sans:size=9}${texeci 120 curl -4 https://icanhazip.com 2>/dev/null}${font Sans:bold:size=9}   DOWN: ${font Sans:size=9}${downspeedf enp0s31f6}KB/s${font Sans:bold:size=9} UP: ${font Sans:size=9}${upspeedf enp0s31f6}KB/s${font}${voffset -11}
 ]]
Répondre