个人跑实验的时候希望看内存泄露,是否跑gpu等等,所以conky几乎是必不可少的插件。
在/home/yonghu/下建立.conkyrc文件
wlp4s0和enp5s0f1分别改为自己电脑网卡设备编号
ifconfig查看
override由于本人电脑只能使用override所以无法融入背景,可以的话,可以尝试own_window_type
如果own_window为yes 可以指定窗口样式为normal, desktop, dock或者override 默认为nomal desktop是指没有装饰 置顶 不显示在pager和taskbar上 出现在所有workspace上的的特殊窗口 override指的是不在控制之下的窗口 会忽略提示 某些时候很有用
# Conky settings # background yes update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 2048 #imlib_cache_size 0 temperature_unit celsius # Window specifications # own_window yes own_window_transparent yes own_window_type dock own_window_class conky-semi own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_argb_visual true own_window_transparent true border_inner_margin 0 border_outer_margin 0 minimum_size 520 600 maximum_width 520 alignment top_right gap_x 0 gap_y 100 # Graphics settings # draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color gray default_shade_color red default_outline_color green # Text settings # use_xft yes override_utf8_locale yes xftfont Pf Tempesta Five:bold:size=6 xftalpha 0.9 uppercase no temperature_unit celsius default_color 999999 color0 d00420 color1 d00420 color2 d00420 #color3 1994D1 # Lua Load ##${voffset 750} lua_load ~/.conky/rings-v1.2.1.lua_dark #lua_draw_hook_pre ring_stats lua_draw_hook_pre conky_main TEXT ${font Pf Tempesta Five:bold:size=6}${voffset 16}${goto 160}${color1}${acpitemp} °C ${font Pf Tempesta Five:bold:size=6}${voffset -1}${goto 128}${color1}CPU 1 ${alignr 330}${color1}${cpu cpu0}% ${font Pf Tempesta Five:bold:size=6}${voffset 4}${goto 128}${color1}CPU 2${alignr 330}${color1}${cpu cpu1}% ${font Pf Tempesta Five:bold:size=6}${voffset 4}${goto 128}${color1}CPU 3${alignr 330}${color1}${cpu cpu2}% ${font Pf Tempesta Five:bold:size=6}${voffset 2}${goto 128}${color1}CPU 4${alignr 330}${color1}${cpu cpu3}% ${goto 50}${voffset 12}${font Pf Tempesta Five:bold:size=6}${color1}${top name 1}${alignr 306}${top cpu 1}% ${goto 50}${font Pf Tempesta Five:bold:size=6}${color1}${top name 2}${alignr 306}${top cpu 2}% ${goto 50}${font Pf Tempesta Five:bold:size=6}${color1}${top name 3}${alignr 306}${top cpu 3}% ${font Birch Std:size=18}${color0}${goto 52}${voffset 8}CPU ${freq_g cpu0} Ghz ${font Birch Std:size=18}${color0}${goto 400}${voffset 48}MEMORY ${goto 320}${voffset -6}${font Pf Tempesta Five:bold:size=6}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}% ${goto 320}${font Pf Tempesta Five:bold:size=6}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}% ${goto 320}${font Pf Tempesta Five:bold:size=6}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}% ${font Pf Tempesta Five:bold:size=6}${voffset 6}${goto 350}${color1}SWAP${alignr 30}${color1}${swap} / ${color1}${swapmax} ${font Pf Tempesta Five:bold:size=6}${voffset 4}${goto 350}${color1}RAM ${alignr 30}${color1}${mem} / ${color1}${memmax} ${font Pf Tempesta Five:bold:size=6}${goto 80}${voffset -68}Root${color1}${alignr 310}${fs_used /} / ${fs_size /} ${font Pf Tempesta Five:bold:size=6}${goto 80}${voffset 2}Home${alignr 310}${color1}${fs_used /home} / ${fs_size /home} ${font Pf Tempesta Five:bold:size=6}${goto 80}${voffset 1}Usr${alignr 310}${color1}${fs_used /usr} / ${fs_size /usr} ${font Birch Std:size=18}${color0}${goto 102}${voffset 12}HARD DRIVE ${font Birch Std:size=18}${color0}${voffset 30}${goto 330}INTERNET INFO # EDITION FINIR wlp4s0 ${if_existing /proc/net/route wlp4s0}${font Pf Tempesta Five:bold:size=6}${color1}${goto 320}${voffset -14}WiFi${goto 350}${color1}${wireless_essid wlp4s0 }${font Pf Tempesta Five:bold:size=6}${color1}${goto 300}${voffset 9}Up${goto 350}${color1}${totalup wlp4s0} / ${color1}${upspeed wlp4s0 } ${font Pf Tempesta Five:bold:size=6}${goto 300}${color1}Down${goto 350}${color1}${totaldown wlp4s0 } / ${color1}${downspeed wlp4s0 } ${font Pf Tempesta Five:bold:size=7}${goto 300}${voffset 2}Local IP${goto 370}${addr wlp4s0 } ${font Pf Tempesta Five:bold:size=7}${goto 300}${voffset -1}${color2}Public IP:${alignr}${color1}${goto 370}${execi 1800 curl icanhazip.com} ${font WenQuanYi Micro Hei Std:size=10}${goto 80}${voffset -40}${color0}${time %Y %b %A %b %d } ${font Birch Std:size=22}${goto 162}${color1}${voffset 0}${time %H}:${time %M} ${font Birch Std:size=18}${color0}${goto 300}${voffset 22}BATTERIE:${battery_time} ${font Birch Std:size=16}${color0}${goto 282}${voffset -2}${color1}${battery_percent}% # |--enp5s0f1 ${else}${if_existing /proc/net/route enp5s0f1}${font Pf Tempesta Five:bold:size=6}${color1}${goto 300}${voffset -6}Up${goto 350}${color1}${totalup enp5s0f1 } / ${color1}${upspeed enp5s0f1 } ${font Pf Tempesta Five:bold:size=6}${goto 300}${color1}Down${goto 350}${color1}${totaldown enp5s0f1 } / ${color1}${downspeed enp5s0f1 } ${font Pf Tempesta Five:bold:size=7}${goto 300}${voffset 2}Local IP${goto 370}${addr enp5s0f1 } ${color2}Public IP:${alignr}${color1}${goto 370}${execi 1800 curl icanhazip.com} ${font WenQuanYi Micro Hei Std:size=10}${goto 80}${voffset -40}${color0}${time %Y %b %A %b %d } ${font Birch Std:size=22}${goto 162}${color1}${voffset 0}${time %H}:${time %M} ${font Birch Std:size=18}${color0}${goto 300}${voffset 26}BatteryTime:${battery_time} ${font Birch Std:size=16}${color0}${goto 282}${voffset -2}${color1}${battery_percent}%${endif}${endif} #${font Pf Tempesta Five:bold:size=6}${goto 180}Uptime${color1}${alignr 100}${uptime_short} ### 相应的conky-colors配置参数--nvidia 好像没有ATI的 ### ${voffset 0}${font simhei:style=Bold:size=9}显卡 NVIDIA 英伟达 $stippled_hr${font} ${color0}${voffset -4}${font Poky:size=17}N${font}${color}${voffset -8}GPU 温度 Temp:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${font}${color}°C GPU 时钟 Clock:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q GPUCurrentClockFreqs -t}${font}${color}MHz 显存容量 Video RAM:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q VideoRam -t}${font}${color}KiB 驱动版本 Driver Version:${alignr}${font Droid Sans:style=Bold:size=8}${color1} ${exec nvidia-settings -q NvidiaDriverVersion -t}${font}${color} ${voffset 2}${font OpenLogos:size=16}u${font} ${color1}${font Anklepants:size=12}SYSTEM${font} ${hr 1}${color1} HOSTNAME: $alignr$nodename KERNEL: $alignr$kernel UPTIME: $alignr$uptime