Skip to content

Instantly share code, notes, and snippets.

@brunobiondi
Last active February 3, 2024 21:03
Show Gist options
  • Save brunobiondi/5ba0c62c86e660bee2b837c2572dd0de to your computer and use it in GitHub Desktop.
Save brunobiondi/5ba0c62c86e660bee2b837c2572dd0de to your computer and use it in GitHub Desktop.
~/.conkyrc

Config ~/.conkyrc

 conky.config = {
    alignment = 'top_right',
    use_xft = true,
    xftalpha = 0.8,
    font = 'Noto:normal:size=9',
    text_buffer_size = 2048,
    update_interval = 1.0,
    total_run_times = 0,
    background = true,
    double_buffer = true,
    no_buffers = true,
    imlib_cache_size = 0,
    cpu_avg_samples = 2,
    own_window = true,
    own_window_class = 'Conky',
    own_window_argb_visual = true,
    own_window_argb_value = 180,
    own_window_transparent = false,
    own_window_type = 'normal',
    own_window_hints = 'undecorated,below,skip_taskbar,sticky,skip_pager',
    own_window_colour = '#000000',
    draw_shades = false,
    default_shade_color = '#000000',
    draw_outline = false,
    default_outline_color = '#000000',
    draw_borders = false,
    gap_x = 0,
    gap_y = 0,
    minimum_height = 1000,
    minimum_width = 275,
    draw_graph_borders = true,
    show_graph_scale = false,
    show_graph_range = false,
    short_units = true,
    override_utf8_locale = true,
    uppercase = false,
    default_color = '#ffffff',
    color1 = 'c6396b',
    color2 = 'fc8c3b',
    color3 = 'f9e30f',
    color4 = '4291e2',
    color5 = '161925',
    color6 = '3bf4bb',
    use_spacer = 'none',
--    hddtemp_host = "127.0.0.1",
--    hddtemp_port = "7634",
}

conky.text = [[

# Time & Date
${alignc}${font Terminus(TTF):size=16}${color}${time %I:%M:%S%P}
${alignc}${font Terminus(TTF):bold:size=12}${color}${time %A %B %e, %Y}
${color4}${hr}${color}
${goto 20}${color}${font Noto:normal:size=9}Conky:${alignr 20}${color2}${conky_version}
${goto 20}${color}System:${alignr 20}${color2}${machine}
${goto 20}${color}Host:${color2}${alignr 20}${exec hostname}
${goto 20}${color}Uptime:${color2}${alignr 20}$uptime
${goto 20}${color}Kernel:${alignr 20}${color2}${kernel}
${color4}${hr}${color}

${alignc}${color6}${font Noto:normal:size=9}${execi 65000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //' | sed -e 's/Processor//'  | sed -e 's/(tm)/™/' | sed -e 's/(R)//' | sed -e 's/CPU//' | sed -e 's/@/:/' | sed -e 's/\ \ //' | sed -e 's/[0-9].[0-9][0-9]GHz//' | uniq}${color}
${alignc}${color6}${freq_g 1}GHz ${font}

${goto 20}${voffset 5}${color}${font Noto:normal:size=10}C1: ${color2}${cpu cpu1}%${goto 85}${color1}${freq 1}Mhz${color}${goto 160}C2: ${color2}${cpu cpu2}%${goto 225}${color1}${freq 2}Mhz
${goto 20}${color5}${cpugraph cpu1 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu2 15,125 fc8c3b c6396b -t}
${color}${goto 20}C3: ${color2}${cpu cpu3}%${goto 85}${color1}${freq 3}Mhz${color}${goto 160}C4: ${color2}${cpu cpu4}%${goto 225}${color1}${freq 4}Mhz
${goto 20}${color5}${cpugraph cpu3 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu4 15,125 fc8c3b c6396b -t}
${goto 20}${color}C5: ${color2}${cpu cpu5}%${goto 85}${color1}${freq 5}Mhz${color}${goto 160}C6: ${color2}${cpu cpu6}%${goto 225}${color1}${freq 6}Mhz
${goto 20}${color5}${cpugraph cpu5 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu6 15,125 fc8c3b c6396b -t}
${goto 20}${color}C7: ${color2}${cpu cpu7}%${goto 85}${color1}${freq 7}Mhz${color}${goto 160}C8: ${color2}${cpu cpu8}%${goto 225}${color1}${freq 8}Mhz
${goto 20}${color5}${cpugraph cpu7 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu8 15,125 fc8c3b c6396b -t}
${goto 20}${color}C9: ${color2}${cpu cpu9}%${goto 85}${color1}${freq 9}Mhz${color}${goto 160}C10: ${color2}${cpu cpu10}%${goto 225}${color1}${freq 10}Mhz
${goto 20}${color5}${cpugraph cpu9 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu10 15,125 fc8c3b c6396b -t}
${goto 20}${color}C11: ${color2}${cpu cpu11}%${goto 85}${color1}${freq 11}Mhz${color}${goto 160}C12: ${color2}${cpu cpu12}%${goto 225}${color1}${freq 12}Mhz
${goto 20}${color5}${cpugraph cpu11 15,125 fc8c3b c6396b -t} ${goto 160}${color5}${cpugraph cpu12 15,125 fc8c3b c6396b -t}

${color4}${hr}${color}

${goto 20}${color}Current Avg CPU Load: ${alignr 20}${color6}${cpu cpu0}%
${goto 20}${color1}${top name 1}${alignr 20}${color}${top cpu 1}%
${goto 20}${color1}${top name 2}${alignr 20}${color}${top cpu 2}%
${goto 20}${color1}${top name 3}${alignr 20}${color}${top cpu 3}%
${goto 20}${color1}${top name 4}${alignr 20}${color}${top cpu 4}%
${goto 20}${color1}${top name 5}${alignr 20}${color}${top cpu 5}%
${goto 20}${color1}${top name 6}${alignr 20}${color}${top cpu 6}%

${color4}${hr}${color}

${goto 20}${color}Current RAM Usage: ${alignr 20}${color6}${memperc}%
${goto 20}${color5}${memgraph 50,250 fc8c3b c6396b -t}
${color4}${hr}${color}

${goto 20}${color}Network: ${goto 250}${color6}${memperc}%
${goto 20}${color1}${top_mem name 1}${alignr 20}${color}${top mem 1}%
${color1}${goto 20}${top_mem name 2}${alignr 20}${color}${top mem 2}%
${color1}${goto 20}${top_mem name 3}${alignr 20}${color}${top mem 3}%
${color1}${goto 20}${top_mem name 4}${alignr 20}${color}${top mem 4}%
${color1}${goto 20}${top_mem name 5}${alignr 20}${color}${top mem 5}%
${color1}${goto 20}${top_mem name 6}${alignr 20}${color}${top mem 6}%

]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment