Skip to content

Instantly share code, notes, and snippets.

@qpgmr-de
Created February 5, 2022 21:07
Embed
What would you like to do?
conky.config = {
use_xft = true,
xftalpha = 0.1,
font = 'Sans:size=8',
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
minimum_width = 250,
maximum_width = 250,
draw_shades = false,
default_color = 'DimGray',
alignment = 'top_right',
double_buffer = true,
update_interval = 0.5,
total_run_times = 0,
cpu_avg_samples = 2,
net_avg_samples = 1,
no_buffers = true,
background = true,
}
conky.text = [[
${font Sans:bold:size=15}${color White}${time %x} ${color Orange}${time %X}
${font Sans:bold:size=20}${color Orange}RPi ${color Ivory}$nodename
${font Sans:bold:size=10}${color Orange}SYSTEM ${color DarkSlateGray} ${hr 2}$color$font
$sysname $kernel $alignr $machine
Uptime $alignr${uptime}
${font Sans:bold:size=10}${color Orange}CPU ${color DarkSlateGray}${hr 2}$color$font
Frequency $alignr${freq cpu} Mhz
Temperature $alignr ${exec vcgencmd measure_temp | cut -c6-11}
${execgraph "vcgencmd measure_temp | cut -c6-9" 24,250 508050 805050 96 -t}
CPU1 ${cpu cpu1} %${goto 75}${cpubar cpu1}
CPU2 ${cpu cpu2} %${goto 75}${cpubar cpu2}
CPU3 ${cpu cpu3} %${goto 75}${cpubar cpu3}
CPU4 ${cpu cpu4} %${goto 75}${cpubar cpu4}
${cpugraph 508050 805050 -t}
${font Sans:bold:size=10}${color Orange}MEMORY ${color DarkSlateGray}${hr 2}$color$font
RAM $alignc $mem / $memmax $alignr $memperc %
$membar
${memgraph 508050 805050 -t}
Swap $alignc $swap / $swapmax $alignr $swapperc %
$swapbar
${font Sans:bold:size=10}${color Orange}STORAGE ${color DarkSlateGray}${hr 2}$color$font
SD ${goto 95}${diskio_read /dev/mmcblk0}? $alignr ${diskio_write /dev/mmcblk0}?
${diskiograph_read /dev/mmcblk0 24,120 508050 508050 -t} ${goto 130}${diskiograph_write /dev/mmcblk0 24,120 805050 805050 -t}
/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /} %
${fs_bar /home}${if_mounted /media/pi/99-USB}
99-USB ${goto 95}${diskio_read /dev/sda}? $alignr ${diskio_write /dev/sda}?
${diskiograph_read /dev/sda 24,120 508050 508050 -t} ${goto 130}${diskiograph_write /dev/sda 24,120 805050 805050 -t}
/media/pi/99-USB $alignc ${fs_used /media/pi/99-USB} / ${fs_size /media/pi/99-USB} $alignr ${fs_used_perc /media/pi/99-USB} %
${fs_bar /media/pi/99-USB}$endif
${font Sans:bold:size=10}${color Tan2}NETWORK ${color DarkSlateGray}${hr 2}$color$font
${if_up eth0}IP eth0 $alignr ${addr eth0}?
Down ${goto 75} ${totaldown eth0} $alignr ${downspeed eth0}?
${downspeedgraph eth0 508050 508050 -t}
${voffset -4}Up ${goto 75} ${totalup eth0} $alignr ${upspeed eth0}?
${upspeedgraph eth0 805050 805050 -t}$endif
${if_up wlan0}IP wlan0 $alignr ${addr wlan0}?
Down ${goto 75} ${totaldown wlan0} $alignr ${downspeed wlan0}?
${downspeedgraph wlan0 508050 508050 -t}
${voffset -4}Up ${goto 75} ${totalup wlan0} $alignr ${upspeed wlan0}?
${upspeedgraph wlan0 805050 805050 -t}$endif
${font Sans:bold:size=10}${color Orange}TOP PROCESSES ${color DarkSlateGray}${hr 2}$color$font
${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
${top_mem name 3}${alignr}${top mem 3} %
${top_mem name 4}${alignr}${top mem 4} %
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment