conky.config = {
    -- Use double buffering (eliminates flickering)
    double_buffer = true,
 
   -- Update interval in seconds
    update_interval = 1,

    -- Number of samples to take for CPU and network readings
    cpu_avg_samples = 1,
    net_avg_samples = 1,
   
    draw_graph_borders = true,
    border_width = 2,

    -- Use Xft (anti-aliased font and stuff)
    use_xft = true,
    font = 'DejaVu Sans:bold:size=9',
    xftalpha = 1.0, 

    -- Prevent text from moving around while using a mono font
    use_spacer = 'right',
   
    -- Default color and border settings
    default_color = 'white',
    default_shade_color = 'white',
    default_outline_color = 'white',
    color2 = '#ffffff',
    color4 = 'yellow',
    color8 = '#77ccff',
    color9 = '#5599cc',
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
   
    own_window = true,
    own_window_transparent = true,
    own_window_type = 'desktop',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

    -- Window size and position
    minimum_width = 200,
    minimum_height = 200,
    maximum_width = 180,
    alignment = 'top_right',
    gap_x = 20,
    gap_y = 40,
}

conky.text = [[
${alignc}antiX
${alignc}${color8}${font DejaVu Sans:size=12}${time %H:%M} ${color} ${font}
${alignc}${time %a %d %b}
${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
${alignc}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
${alignc}$kernel
${alignc}Uptime: $uptime

CPU:${alignr}${cpu}%
Freq:${alignr}${freq}
$alignr${cpugraph cpu0 30, 170 5599cc 5599cc}
Disk:${alignr}${diskio}
${alignr}${diskiograph 30,170 5599cc 5599cc}
${if_up eth0}eth0 up: $alignr ${upspeed eth0}
$alignr${upspeedgraph eth0 30,170 5599cc 5599cc}
eth0 down: $alignr ${downspeed eth0}
$alignr${downspeedgraph eth0 30,170  5599cc 5599cc}${endif}
${if_up wlan0} wlan0 up: $alignr ${upspeed wlan0}
$alignr${upspeedgraph wlan0 30,170 5599cc 5599cc}
wlan0 down: $alignr ${downspeed wlan0}
$alignr${downspeedgraph wlan0 30,170 5599cc 5599cc}${endif}
${alignr}${color8}Used / Total ${color}
RAM:${alignr}$mem / $memmax
Swap:${alignr}$swap / $swapmax
/ Disk:${alignr}${fs_used /} / ${fs_size /}
${alignc}${execi 1000 persist-enabled}
Battery: ${battery_percent BAT0}% ${alignr}${color8}${battery_bar 8,70 BAT0} # You may need to change BAT0 to BAT1 or add the same line again if you have more then one battery.
#${execi 1000 acpi 2>/dev/null | grep -q . && echo "Battery: "}${execi 10 acpi -b 2>/dev/null | cut -d" " -f3,4 | sed 's/,$//'}
]]