Skip to content

Instantly share code, notes, and snippets.

@jsmithdev
Created January 22, 2023 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmithdev/ca604bb85d001e979921eff01062de1f to your computer and use it in GitHub Desktop.
Save jsmithdev/ca604bb85d001e979921eff01062de1f to your computer and use it in GitHub Desktop.
Conky config: 16 core, amdgpu
alignment top_left
background true
border_width 1
color1 e100ff
color2 D1E7D1
color3 FF0000
color4 FFFFFF
cpu_avg_samples 2
default_color D1E7D1
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
#gap_x 20
#gap_y 20
border_outer_margin 20
max_port_monitor_connections 64
maximum_width 500
minimum_width 500
# max_specials 512
max_user_text 16384
minimum_size 330 10
net_avg_samples 2
no_buffers yes
out_to_console no
# wm_class_name Conky
stippled_borders 2
# wn_window yes
#settings to define how to draw the window. compiz needs these settings, adjust for your WM
own_window true
own_window_class Conky
#own_window_type override
#own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 50
update_interval 2
uppercase no
use_xft yes
xftalpha 0.8
xftfont Bitstream Vera Sans Mono:size=9
# WIDTH = 500pixel, ${goto 270} for 2 column designs
# SMALL BAR HEIGHT: 12, LARGE GRAPH HEIGHT: 240
TEXT
${color1}$nodename ${alignr}$kernel
${color1}Uptime:${color} $uptime ${color1} ${alignr}Load:${color} $loadavg
$hr
# CPU Info
${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 1-26}
${font sans-serif:bold:size=8}PROCESSOR UTILIZATION & FREQUENCY ${hr 2}${font}${color}
CPU1: ${cpu cpu1}% $alignr ${freq (1)} MHz $alignr ${cpubar cpu1 8,60}
CPU2: ${cpu cpu2}% $alignr ${freq (2)} MHz $alignr ${cpubar cpu2 8,60}
CPU3: ${cpu cpu3}% $alignr ${freq (3)} MHz $alignr ${cpubar cpu3 8,60}
CPU4: ${cpu cpu4}% $alignr ${freq (4)} MHz $alignr ${cpubar cpu4 8,60}
CPU5: ${cpu cpu5}% $alignr ${freq (5)} MHz $alignr ${cpubar cpu5 8,60}
CPU6: ${cpu cpu6}% $alignr ${freq (6)} MHz $alignr ${cpubar cpu6 8,60}
CPU7: ${cpu cpu7}% $alignr ${freq (7)} MHz $alignr ${cpubar cpu7 8,60}
CPU8: ${cpu cpu8}% $alignr ${freq (8)} MHz $alignr ${cpubar cpu8 8,60}
CPU9: ${cpu cpu9}% $alignr ${freq (9)} MHz $alignr ${cpubar cpu9 8,60}
CPU10: ${cpu cpu10}% $alignr ${freq (10)} MHz $alignr ${cpubar cpu10 8,60}
CPU11: ${cpu cpu11}% $alignr ${freq (11)} MHz $alignr ${cpubar cpu11 8,60}
CPU12: ${cpu cpu12}% $alignr ${freq (12)} MHz $alignr ${cpubar cpu12 8,60}
CPU13: ${cpu cpu13}% $alignr ${freq (13)} MHz $alignr ${cpubar cpu13 8,60}
CPU14: ${cpu cpu14}% $alignr ${freq (14)} MHz $alignr ${cpubar cpu14 8,60}
CPU15: ${cpu cpu15}% $alignr ${freq (15)} MHz $alignr ${cpubar cpu15 8,60}
CPU16: ${cpu cpu16}% $alignr ${freq (16)} MHz $alignr ${cpubar cpu16 8,60}
$hr
# RAM Info
${alignr}${color4}RAM: $memperc% = $mem / $memmax
${color1}${cpugraph 60,240 07CC0D FF0000 -t} ${goto 270}${color1}${memgraph 60,250 07CC0D FF0000 -t}${color4}
${color4}Swap Usage: $swapperc% = $swap/$swapmax ${color1} ${swapbar 4 color1 color3}
$hr
# Net Info
${color1}Net Down:${color} ${downspeed wlp113s0} ${goto 270}${color1}Net Up:${color} ${upspeed wlp113s0}
${color1}${downspeedgraph wlp113s0 60,240 07CC0D FF0000 -t}${color1} ${goto 270}${upspeedgraph wlp113s0 60,250 07CC0D FF0000 -t}
$hr
${color1}Temperatures in Celsius:
${color1}HDDs ${color} ${hddtemp /dev/sda} ${hddtemp /dev/sdb}
${color1}CPUs ${color} ${hwmon 0 temp 1}
${color1}PCH ${color} ${hwmon 1 temp 1}
#GPU Info
${alignc}${font Dejavu Sans Mono:size=8}GPU ${exec cat /sys/class/drm/card0/device/gpu_busy_percent}%${font}
${color3}${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 3fa5ff 3fa5ff}
${color1}Temp${color} ${hwmon 2 temp 1}
${color1}GPU clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_sclk}
${color1}Mem clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_mclk}
${color1}Mem${color} ${exec numfmt --to=iec < /sys/class/drm/card0/device/mem_info_vram_used}
${color1}Fan${color} ${hwmon 2 fan 1}
${color1}Top Processes:
${color1}Name PID CPU% MEM% TIME USER
${color}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${top time 1} ${top user 1}
${color}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${top time 2} ${top user 2}
${color}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${top time 3} ${top user 3}
${color}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} ${top time 4} ${top user 4}
${color}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} ${top time 5} ${top user 5}
$hr
#${color Tan2}ESTABLISHED Connections${color DarkSlateGray}${hr 2}
#
#${offset 10}${color lightgrey}Inbound: ${color white}${tcp_portmon 1 32767 count} ${color lightgrey}Outbound: ${color white}${tcp_portmon 32768 61000 count}${alignr}${color lightgrey}Total: ${color white}${tcp_portmon 1 65535 count}
#
#${color slate grey}Process ${color slate grey}Remote Host ${color slate grey}L-Port ${alignr}${color slate grey}R-Port${color lightgrey}
#
#${texeci 3 netstat -ap | grep 'ESTABLISHED' | sed -r 's|.*[0-9.]+:([0-9]*)\s*([^:]+):([a-zA-Z]+)[^/]+/([a-zA-Z0-9]*)|\4 \2 \1 \3|' | awk '{printf("%-14s %-20s %5s %7s\n",$1,$2,$3,$4)}'}
#old way for network
${color1} Port(s) ${alignr} #Connections
${color} Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count} ${alignr} ALL: ${tcp_portmon 1 65535 count}
${color1} Inbound Connection ${alignr} Local Service/Port ${color}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${color1}Outbound Connection ${alignr} Remote Service/Port${color}
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment