conky显示实时缓存
openSUSE    2017-01-21 21:14:00    184    0    0
tianwaifeixian   openSUSE


conky.config = {  
    alignment = 'top_right',  
      
    background = false,  
      
    border_width = 1,  
      
    cpu_avg_samples = 2,  
    net_avg_samples = 2,  
      
    use_xft = true,  
    -- Xft font when Xft is enabled  
    font = 'Sans:size=9',  
    -- Text alpha when using Xft  
    xftalpha = 0.8,  
      
    default_color = 'black',  
    default_outline_color = 'black',  
    default_shade_color = '',  
      
    draw_borders = false,  
    draw_graph_borders = true,  
    draw_outline = false,  
    draw_shades = false,  
  
    gap_x = 10,  
    gap_y = 1,  
    minimum_height = 5,  
    minimum_width = 100,
    maximum_width = 200,  
      
    no_buffers = true,  
    out_to_console = false,  
    out_to_stderr = false,  
    extra_newline = false,  
  
    double_buffer = true,  
    -- Create own window instead of using desktop (required in nautilus)  
    own_window = true,  
    own_window_class = 'Conky', 
    own_window_colour = white , 
    own_window_argb_visual = true,  
    own_window_transparent = true,  
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',  
    own_window_type = 'normal',  
  
    stippled_borders = 0,  
    update_interval = 1.0,  
    uppercase = false,  
    use_spacer = 'none',  
    show_graph_scale = false,  
    show_graph_range = false  
}  
  
conky.text = [[  
${color}${font Cantarell:size=12}Date: ${color white}${time %B%d,%A}
${color}Time: ${color white}${time %k:%M:%S}${alignr}${color}
${color yellow}系统信息:${color}  
内核版本: $alignr$kernel  
开机时长: $alignr$uptime  
温度: $alignr$acpitemp°C 
CPU:${alignr}${cpu cpu0}%: ${alignr}${freq dyn} MHz   
${cpubar 4 cpu0}
Processes:${color }$running_processes/$processes${color}
Cached:${color}${alignr}$cached/$memmax${color}
RAM:${alignr}$memperc%$mem/$memmax
${membar 4} 

${color yellow}硬盘分区:${color} 
/root   ${fs_used /}/${fs_size /}${alignr}${fs_used_perc /}%
${fs_bar /}
/home   ${fs_used /home}/${fs_size /home}${alignr}${fs_used_perc /home}%
${fs_bar /home}
/var    ${fs_used /var}/${fs_size /var}${alignr}${fs_used_perc /var}%
${fs_bar /var}
/opt   ${fs_used /opt}/${fs_size /opt}${alignr}${fs_used_perc /opt}%
${fs_bar /opt}
${color yellow}无线网络${color}  
Down${downspeed wlan0}/s ${alignr}Up ${upspeed wlan0}/s  
${downspeedgraph wlan0 17,100} ${alignr}${upspeedgraph wlan0 17,100}  
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}  
${color yellow}有线网络${color} 
Down ${downspeed eth0}/s ${alignr}Up ${upspeed 0}/s  
${downspeedgraph eth0 17,100} ${alignr}${upspeedgraph eth0 17,100}  
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}


上一篇: Qt5.7---qmlscene未安装 QtCreator无法输入中文

下一篇: YOCTO 初始化安装与构建

184 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航