示例图
.conkyrc
conky.config = {
background = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
use_xft = true,
font = 'FreeSans:size=15',
own_window_transparent = false,
--own_window_colour hotpink
xftalpha = 0.8,
-- on_bottom yes
--mail_spool $MAIL
update_interval = 1,
own_window = true,
own_window_argb_visual = true,
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--own_window_type override
double_buffer = true,
minimum_width = 260, minimum_height = 5,
maximum_width = 400,
draw_shades = true,
draw_outline = false,
draw_borders = false,
stippled_borders = no,
--border_margin 4
border_width = 1,
default_color = 'white',
default_shade_color = '#aa0',
default_outline_color = 'white',
--alignment top_left
--minimum_size 10 10
gap_x = 0,
gap_y = 35,
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
use_spacer = 'none',
no_buffers = true,
uppercase = false,
};
conky.text = [[
${color #ffa200}${font Freesans:size=20}S${font Freesans:size=10}YSTEM ${hr 1}${color}
Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp}°C
Login User: ${alignr}${exec whoami}
CPU: ${alignr}${freq dyn} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
${color #ffa200}${font Freesans:size=20}C${font Freesans:size=10}PU${hr 1}
${color}CPU0 ${alignr}${cpu cpu0}%
${color #78af78}${cpubar cpu0}
${color}CPU1 ${alignr}${cpu cpu1}%
${color #78af78}${cpubar cpu1}
${color}CPU2 ${alignr}${cpu cpu2}%
${color #78af78}${cpubar cpu2}
${color}CPU3 ${alignr}${cpu cpu3}%
${color #78af78}${cpubar cpu3}
${color}CPU4 ${alignr}${cpu cpu4}%
${color #78af78}${cpubar cpu4}
${color}CPU5 ${alignr}${cpu cpu5}%
${color #78af78}${cpubar cpu5}
${color}CPU6 ${alignr}${cpu cpu6}%
${color #78af78}${cpubar cpu6}
${color}CPU7 ${alignr}${cpu cpu7}%
${color #78af78}${cpubar cpu7}
${color}${top name 1}${alignr}${top cpu 1}%
${color #ffa200}${font Freesans:size=20}F${font Freesans:size=10}ILE ${font Freesans:size=20}S${font Freesans:size=10}YSTEM ${hr 1}${color}
${color}READ${alignr}${color}${diskio_read sda}
${color}WRITE${alignr}${color}${diskio_write sda}
Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
${color #ffa200}${font Freesans:size=20}M${font Freesans:size=10}EMORY${hr 1}
${color}Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
${color}swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
${color #ffa200}${font Freesans:size=20}N${font Freesans:size=10}VIDIA ${hr 1}${color}
${color}Temp ${alignr}${exec nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C
${color}GPU Clock ${alignr}${exec nvidia-smi --query-gpu=clocks.current.graphics --format=csv,noheader,nounits} Mhz
#${color}Video RAM ${color black}${alignr} ${exec nvidia-settings -q videoram -t}% KiB
#${color}Driver Version ${color black}${alignr}${exec nvidia-settings -q NvidiaDriverVersion -t}
${color #ffa200}${font Freesans:size=20}A${font Freesans:size=10}PPLICATIONS ${hr 1}${color}
â–³Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1} ${top mem 1}
${top name 2}$alignr${top cpu 2} ${top mem 2}
${top name 3}$alignr${top cpu 3} ${top mem 3}
â–³Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3} ${top_mem mem 3}
#${color #ffa200}${font Freesans:size=20}F${font Freesans:size=10}ILE ${font Freesans:size=20}S${font Freesans:size=10}YSTEM ${hr 1}${color}
#${color}READ${alignr}${color}${diskio_read sda}
#${color}WRITE${alignr}${color}${diskio_write sda}
#Root: ${alignr}${fs_free /} / ${fs_size /}
#${fs_bar 4 /}
#Home: ${alignr}${fs_free /home} / ${fs_size /home}
#${fs_bar 4 /home}
${color #ffa200}${font Freesans:size=20}N${font Freesans:size=10}ETWORK ${hr 1}${color}
Down ${downspeed wlp2s0} k/s ${alignr}Up ${upspeed wlp2s0} k/s
${downspeedgraph wlp2s0 25,107} ${alignr}${upspeedgraph wlp2s0 25,107}
Total ${totaldown wlp2s0} ${alignr}Total ${totalup wlp2s0}
]];