个人喜欢用右上角显示时间天气,所以conky就不用显示了
结果是只需要conkyrc就行,不需要任何其他代码或者图片
效果图:

conky配置:
# Use Xft?
use_xft yes
xftfont cure:size=8
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent no
own_window_type widget
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 200
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 280 5
maximum_width 150
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color 303030
#default_shade_color white
#default_outline_color black
own_window_colour 262524
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 47
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer yes
TEXT
${color FFC125}Kernel:${color ffffff}${alignr}$kernel
${color FFC125}UpTime:${color ffffff}${alignr}$uptime
${color FFC125}${font Ubuntu:style=Bold:size=9}SYSTEM: ${font}
${color FFC125}CPU 1:${color ffffff}${alignr}${cpu cpu1}%
${color DAA520}${cpugraph cpu1 20,150 DAA520 FFC125}
${color FFC125}CPU 2:${color ffffff}${alignr}${cpu cpu2}%
${color DAA520}${cpugraph cpu2 20,150 DAA520 FFC125}
${color FFC125}RAM:${color ffffff}${alignr}$mem
${color DAA520}${membar 3,150}
${color FFC125}GPU:${color ffffff}${alignr}${execi 20 nvidia-settings -q GPUCurrentClockFreqs |grep Attribute |awk '{print $4}' |cut -c1-7}Hz ${color DAA520}${execi 20 nvidia-settings -q gpucoretemp |grep Attribute |awk '{print $4}' |cut -c1-2}°C
${color FFC125}Disk IO:${color ffffff}${alignr}$diskio
${color DAA520}${diskiograph 20,150 DAA520 FFC125}
${color FFC125}Root: ${color ffffff}${alignr}${fs_free /}
${color DAA520}${fs_bar 3,150 /}
${color FFC125}${font Ubuntu:style=Bold:size=9}Internet: ${font}
${color FFC125}Wireless signal: ${color ffffff}${alignr}${wireless_link_qual wlan0}%
${color FFC125}IP address: ${color ffffff}${alignr}${addr wlan0}
${color FFC125}Up:${color ffffff}${alignr}${upspeed wlan0}KB/s
${color DAA520}${upspeedgraph wlan0 20,150 DAA520 FFC125}
${color FFC125}Total: ${color ffffff}${totalup wlan0}
${color FFC125}Down:${color ffffff}${alignr}${downspeed wlan0}KB/s
${color DAA520}${downspeedgraph wlan0 20,150 DAA520 FFC125}
${color FFC125}Total: ${color ffffff}${totaldown wlan0}
${color FFC125}${font Ubuntu:style=Bold:size=9}Process: ${font}
${color FFC125}Running: ${color ffffff}${alignr}$running_processes
${color FFC125}Total: ${color ffffff}${alignr}$processes
${color FFC125}NAME $alignr PID CPU${color ffffff}
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}