conky.config = {
    background = true,
    use_xft = true,
    font = 'Roboto-Light:size=9',
    xftalpha = 0.8,
    update_interval = 0.1,
    total_run_times = 0,
    own_window = true,
    own_window_type = 'normal', -- ✅ reste affiché et ne disparaît pas au clic
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_argb_visual = true,
    own_window_argb_value = 0,
    own_window_colour = '000000',
    double_buffer = true,
    minimum_width = 1200,
    minimum_height = 1000,
    maximum_width = 1000,
    draw_shades = true,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = true,
    stippled_borders = 0,
    border_width = 3,
    default_color = 'FFFFFF',
    alignment = 'middle_middle',
    gap_x = 0,
    gap_y = 0,
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    net_avg_samples = 2,
    override_utf8_locale = true,
    use_spacer = 'none',

    color1 = '#FFFF00', -- Jaune vif
    color2 = '#00FF00', -- Vert pur
    color3 = '#FFA500', -- Orange
    color4 = '#66FFCC', -- Vert menthe clair
    color5 = '#FF66CC', -- Rose vif
    color6 = '#1E90FF', -- Bleu schtroumpf (Dodger Blue)
    color7 = '#FF4500', -- Rouge-orangé (Orange Red)
    color8 = '#00FA9A', -- Vert menthe (Medium Spring Green)
}

conky.text = [[
${font clean:size=14}
${alignc}${color}CPU: ${cpu}%   |   Disk: ${fs_used_perc /}%   |   RAM: ${memperc}%   |   Download: ${downspeedf eth0} KiB/s   |   Upload: ${upspeedf eth0} KiB/s

${alignc}${color FFFFFF}${cpugraph 40,140 FFFF00 0000FF}   ${diskiograph 40,140 00FF00 FF0000}   ${memgraph 40,140 FFA500 8A2BE2}   ${downspeedgraph eth0 40,140 66ffcc 003366}   ${upspeedgraph eth0 40,140 ff66cc 660066}

${voffset 20}${font sans:pixelsize=110}${alignc}${color3}${time %H:%M:%S}${font}
${voffset 10}${font sans:pixelsize=45}${color}${alignc}${time %A} | ${time %d} ${time %B} ${font}

# --- Téléchargement image NASA toutes les 12 min ---
${execi 720 wget -q -O ~/.conky/MX-TopBar-exe/sdo_latest.jpg https://sdo.gsfc.nasa.gov/assets/img/latest/f_211_193_171pfss_2048.jpg}


# --- Logo exactement centré (fenêtre 1000x1000, image 200x200) ---
${image ~/.conky/MX-TopBar-exe/mx-logo.png -p 425,370 -s 133x133}

# --- Affichage image NASA (1/3 de la taille précédente) ---

${image ~/.conky/MX-TopBar-exe/sdo_latest.jpg -p 400,515 -s 175x175}

# --- Météo ---
${voffset 250}
${alignc}${font sans:pixelsize=30}${color}Temperature: ${color5}${execi 900 curl -s "https://api.open-meteo.com/v1/forecast?latitude=45.1167&longitude=-73.4530&current=temperature_2m,wind_speed_10m" | jq '.current.temperature_2m'}°C
${alignc}${font sans:pixelsize=30}${color}Wind speed: ${color6}${execi 900 curl -s "https://api.open-meteo.com/v1/forecast?latitude=45.1167&longitude=-73.4530&current=temperature_2m,wind_speed_10m" | jq '.current.wind_speed_10m'} km/h
${alignc}${font sans:pixelsize=32}${color darkgrey}Distribution: ${color2}${execi 900 lsb_release -d | awk -F'\t' '{print $2}'}
]]
