Skip to content

Instantly share code, notes, and snippets.

@pete
Created September 25, 2024 04:59
Show Gist options
  • Save pete/5a5191f4c3e78d67f791179e445ade60 to your computer and use it in GitHub Desktop.
Save pete/5a5191f4c3e78d67f791179e445ade60 to your computer and use it in GitHub Desktop.
The .conkyrc I am using on my DevTerm.
conky.config = {
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
minimum_width = 5,
default_graph_width = 200,
default_graph_height = 40,
default_gauge_width = 200,
alignment = 'top_left',
background = false,
default_outline_color = 'white',
default_shade_color = 'CornflowerBlue',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = '6x13',
gap_x = 0,
gap_y = 6,
minimum_height = 3,
net_avg_samples = 2,
no_buffers = true,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
own_window = false,
own_window_class = 'Conky',
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
--update_interval = 10.0,
update_interval = 1.5, -- 2.7,
uppercase = false,
use_spacer = 'none',
use_xft = false,
color0 = 'fff8e0',
color1 = 'ff2222',
color2 = '00ee00',
color3 = 'bb8833',
color4 = '0072ff',
color5 = '706c9a',
color6 = '00aabb',
color7 = 'efef60',
color8 = '999999',
color9 = 'ff8442',
}
-- urxvt*background: #000008
-- urxvt*foreground: #fff8e0
conky.text = [[
$color0${no_update $nodename}${execi 90001 echo $DISPLAY} ${no_update $sysname} ${no_update $kernel}/${no_update $machine}$color
${color8}Uptime:$color $uptime ${color8}Load:$color ${loadavg}
${color0}${time}$color | ${color9}${execi 11 /home/pete/bin/battery}${color}
${color8}${tztime America/Los_Angeles}$color | ${color7} $acpitemp°C${color} | $color6 BL: ${execi 13 /home/pete/bin/cbl}
${color4}[CPU:$color $cpu% ${freq_g}GHz ${color4}]${hr}$color
${color white}${cpugraph 40,270 00e4ff ff4da1 -t}$color
${cpugraph cpu1 15,40 224422 0072ff -t} ${cpugraph cpu2 15,40 222244 00aabb -t} ${cpugraph cpu3 15,40 222244 0072ff -t} ${cpugraph cpu4 15,40 224422 00aabb -t} ${cpugraph cpu5 15,40 442222 ff8442 -t} ${cpugraph cpu6 15,40 442222 ff8442 -t}
${color8}RAM: $color $mem/$memmax - $memperc% ${membar 4}
${color8}Swap:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color4}[FS]${hr}$color
${color white}/ $color${fs_used_perc /}% used / ${fs_free /} free
${fs_bar 6 /}
${color white}/tmp $color${fs_used_perc /tmp}% used / ${fs_free /tmp} free
${fs_bar 6 /tmp}${if_mounted /opt/tmp}
${color white}/opt/tmp $color${fs_used_perc /opt/tmp}% used / ${fs_free /opt/tmp} free
${fs_bar 6 /opt/tmp}${endif}${if_mounted /mnt}
${color white}/mnt $color${fs_used_perc /mnt}% used / ${fs_free /mnt} free
${fs_bar 6 /mnt}${endif}
${color4}[wlan0 $color${wireless_essid wlan0} $color8${addr wlan0}${color4}]${hr}$color
[${wireless_link_qual wlan0}] ${wireless_link_bar 8,60 wlan0} (${wireless_link_qual_perc wlan0}%) ${wireless_bitrate wlan0} @ ${wireless_freq wlan0}
UP: ${upspeedgraph wlan0 10,150 004da1 ff4da1 -t} ${upspeed wlan0}
DOWN: ${downspeedgraph wlan0 10,150 ff00a1 ffffa1 -t} ${downspeed wlan0}
${color4}[PS]${hr}$color
${color8}Name PID CPU% MEM%
${color #fff8e0}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey}${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color lightgrey}${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment