archlinux配置conky

配置主要来自:http://my.oschina.net/diefrom/blog/347668,感谢一下。

主要地方说明一下,double_buffer = true这句是为了防止conky闪烁。

另外自1.10.0版本开始,conky的语法变成下面这样了,如果用以前的语法会出错。

下面是~/.conky文件的完整内容。

conky.config = {
        alignment = 'top_right',
        background = false,
        use_xft = true,
        font = 'Sans:bold:size=14',
        update_interval = 1.0,
        own_window = true,
        own_window_transparent = true,
        own_window_argb_visual = true,
        own_window_class = 'Conky',
        own_window_type = 'desktop',
        minimum_height = 10,
        minimum_width = 10,
        top_name_width = 8,
        draw_shades = false,
        draw_outline = false,
        draw_borders = false,
        draw_graph_borders = false,
        default_color = sienna,
        default_shade_color = sienna,
        default_outline_color = sienna,
        gap_x = 5,
        gap_y = 60,
        no_buffers = true,
        out_to_console = false,
        out_to_stderr = false,
        extra_newline = false,
        uppercase = false,
        cpu_avg_samples = 2,
        use_spacer = 'none',
        show_graph_scale = false,
        show_graph_range = false,
        double_buffer = true
}
conky.text = [[
${scroll 26 6 $nodename - $sysname $kernel on $machine |}
$hr
${color sienna}Linux:  ${color} $kernel
${color sienna}Uptime: ${color} $uptime
${color sienna}Disk:   ${color} ${fs_used /}/${fs_size /} - ($fs_used_perc%)
${fs_bar 4 /}
${color sienna}RAM:${color} $mem/$memmax - ($memperc%)
${membar 4}
${color sienna}CPU:${color} $cpu%
${cpubar 4}
${color sienna}Processes:$color $processes ${color sienna}\
 Running:$color $running_processes
${color sienna}CPU's Temperature:$color ${acpitemp}
$hr
${color sienna}Name            PID    CPU%    MEM%
${color }${top name 1}  ${top pid 1}   ${top cpu 1}   ${top mem 1}
${color }${top name 2}  ${top pid 2}   ${top cpu 2}   ${top mem 2}
${color }${top name 3}  ${top pid 3}   ${top cpu 3}   ${top mem 3}
${color }${top name 4}  ${top pid 4}   ${top cpu 4}   ${top mem 4}
]]

效果如下:

archlinux配置conky_第1张图片

你可能感兴趣的:(new,conky,archLinux,syntax)