Created
July 22, 2024 00:22
-
-
Save ZaneH/956abebc18a46cd855953b304ca25f94 to your computer and use it in GitHub Desktop.
Conky config file with uptime, CPU cores, network speed/usage, (NVIDIA) GPU usage, temps, disk space, etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conky.config = { | |
alignment = 'top_left', | |
use_xft = true, | |
xftalpha = 0.8, | |
font = 'Ubuntu Mono:size=12', | |
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 = 0, | |
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 = 100, | |
gap_y = 50, | |
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' | |
} | |
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} | |
# Title | |
${font}${goto 10}Desktop# | |
${color4}${hr}${color} | |
# Day/time | |
${goto 10}${color}Uptime:${color2}${alignr 10}$uptime | |
# Processor section | |
${color4}${hr}${color} | |
${font Ubuntu Mono:size=10}${color6}${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}@ ${color6}${freq_g 1}GHz${font} | |
# Cores | |
${goto 10}${voffset 5}${color}C1: ${color2}${cpu cpu1}%${goto 70}${color1}${freq 1}Mhz${color}${goto 145}C2: ${color2}${cpu cpu2}%${goto 210}${color1}${freq 2}Mhz | |
${goto 10}${color5}${cpugraph cpu1 15,110 fc8c3b c6396b -t} ${goto 150}${color5}${cpugraph cpu2 15,110 fc8c3b c6396b -t} | |
${color}${goto 10}C3: ${color2}${cpu cpu3}%${goto 70}${color1}${freq 3}Mhz${color}${goto 145}C4: ${color2}${cpu cpu4}%${goto 210}${color1}${freq 4}Mhz | |
${goto 10}${color5}${cpugraph cpu3 15,110 fc8c3b c6396b -t} ${goto 150}${color5}${cpugraph cpu4 15,110 fc8c3b c6396b -t} | |
${goto 10}${color}C5: ${color2}${cpu cpu5}%${goto 70}${color1}${freq 5}Mhz${color}${goto 145}C6: ${color2}${cpu cpu6}%${goto 210}${color1}${freq 6}Mhz | |
${goto 10}${color5}${cpugraph cpu5 15,110 fc8c3b c6396b -t} ${goto 150}${color5}${cpugraph cpu6 15,110 fc8c3b c6396b -t} | |
${goto 10}${color}C7: ${color2}${cpu cpu7}%${goto 70}${color1}${freq 7}Mhz${color}${goto 145}C8: ${color2}${cpu cpu8}%${goto 210}${color1}${freq }Mhz | |
${goto 10}${color5}${cpugraph cpu7 15,110 fc8c3b c6396b -t} ${goto 150}${color5}${cpugraph cpu8 15,110 fc8c3b c6396b -t} | |
# Temperature | |
${voffset} | |
${goto 10}${color}CPU Temp: ${color2}${execi 2 sensors coretemp-isa-0000 | awk '/Package/{ printf "%2.f\n" , $4 }'}°C | |
${color4}${hr}${color} | |
# Top processes | |
${goto 10}${color}Current Avg CPU Load: ${alignr 10}${color6}${cpu cpu0}% | |
${goto 10}${color1}${top name 1}${alignr 10}${color}${top cpu 1}% | |
${goto 10}${color1}${top name 2}${alignr 10}${color}${top cpu 2}% | |
${goto 10}${color1}${top name 3}${alignr 10}${color}${top cpu 3}% | |
# GPU Section | |
${color4}${hr} | |
##------------Nvidia RTX 3060-------------## | |
${color}${alignc}${color6}${execi 65000 nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits} ${color} | |
${voffset -8} | |
${goto 10}Power: ${color6}${execpi 5 nvidia-smi -q | grep 'Power Draw' | awk '{print $4}' | head -1} W ${goto 158}${color}Total: ${color1}${execi 65000 nvidia-smi -q | grep 'Default Power Limit' | awk '{print $5'} | head -1} W | |
${color}${goto 10}Load: ${color2}${nvidia gpuutil} %${goto 158}${color}Vram: ${color2}${execi 5 nvidia-smi --query-gpu=memory.used --format=csv,noheader} | |
${color5}${goto 10}${execigraph 1 "nvidia-smi -a | grep -A 2 "Utilization" | tr -d % | grep "Gpu" | awk '{print $3'}" 20,110 fc8c3b c6396b -t } ${goto 158}${execigraph 1 "nvidia-smi -a | grep -A 2 "Utilization" | tr -d % | grep "Memory" | awk '{print $3'}" 20,110 fc8c3b c6396b -t} | |
${goto 10}${color}Gclk: ${goto 70}${color6}${nvidia gpufreq}GHz ${goto 158}${color}Mclk: ${color1}${nvidia mtrfreq}GHz | |
${goto 10}${color}Temp: ${goto 70}${color2}${nvidia temp}°C${goto 158}${color} | |
# Top memory | |
${color4}${hr}${color} | |
${goto 10}${color}Current RAM Usage: ${goto 250}${color6}${memperc}% | |
${goto 15}${color5}${memgraph 20,250 fc8c3b c6396b -t} | |
${goto 10}${color1}${top_mem name 1}${alignr 10}${color}${top mem 1}% | |
${color1}${goto 10}${top_mem name 2}${alignr 10}${color}${top mem 2}% | |
${color1}${goto 10}${top_mem name 3}${alignr 10}${color}${top mem 3}% | |
# Network | |
${color4}${hr}${color} | |
${if_existing /sys/class/net/eno2/operstate up}${color}${goto 10}Internal IP: ${color6}${alignr 10}${addr eno2} | |
${goto 10}${color}Speed (U): ${color2}${upspeed eno2}${goto 140}${color}Speed (D): ${alignr 10}${color2}${downspeed eno2} | |
${color}${goto 10}Up: ${color2}${totalup eno2}${goto 140}${color}Down: ${alignr 10}${color2}${totaldown eno2} | |
${goto 15}${color5}${upspeedgraph eno2 20,110 fc8c3b c6396b -t}${goto 140}${color5}${downspeedgraph eno2 20,110 fc8c3b c6396b -t} | |
# Storage | |
${color4}${hr}${color} | |
${goto 10}${color}SSD:${goto 130}${color6}${fs_used /}${color} / ${color2}${fs_size /} | |
${goto 10}${color}Temp: ${color1}${execi 2 sensors nvme-pci-0200| awk '/Composite/{ printf "%2.f\n" , $2 ; exit}'}°C${goto 130}${color}Available: ${color6}${fs_free_perc /}% | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment