Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2019 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <>.

#own_window_transparent= true,


conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'blue',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    extra_newline = false,
    font = 'Fira Code Regular:size=12',
    gap_x = 60,
    gap_y = 60,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type= 'override',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,

conky.text = [[
${font LCD:style=Bold:pixelsize=25}${alignc}${time %I:%M:%S}
${font LCD:style=Bold:pixelsize=12}${time %Y年%b%d日 星期%a}${alignc}
${color pink}系统信息:$color  ${exec whoami}'system: $kernel $machine 
${color pink}系统运行时间:$color $uptime
${color pink}CPU使用频率(MHz)$color $freq
${color pink}内存使用量:$color $mem/$memmax - $memperc% ${membar 4}
${color pink}交换空间使用量:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color pink}CPU状态$color $cpu% ${cpubar 4}
${color pink}进程数:$color $processes  ${color pink}正在运行数:$color $running_processes
${color pink}有线地址:$color ${addr enp3s0}
上行:$color ${upspeed enp3s0} ${color pink} - 下行:$color ${downspeed enp3s0}
${color pink}无线地址:$color ${addr wlp2s0}
上行:$color ${upspeed wlp2s0} ${color pink} - 下行:$color ${downspeed wlp2s0}
${color pink}Name              PID     CPU%   MEM%
${color pink} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color pink} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color pink} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color pink} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$color $hr
${color pink}文件系统状态:
$color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color pink}电池状态:${color} $battery





我记得是受这几个选项的影响 。

我用的KDE ,没有写own_window_type= ‘override’,只有以下四项,工作正常。

     own_window = true,                                                       
     own_window_transparent = true,                                           
     own_window_argb_visual = true,                                           
     own_window_hints = 'undecorated,skip_taskbar,below,skip_pager',





你看我的,根本没有 own_window_type 这一项啊,谈何 override .

From conky(1) — conky-all — Debian testing — Debian Manpages:


if own_window is yes, you may specify type normal, desktop, dock, panel or override (default: normal). Desktop windows are special windows that have no window decorations; are always visible on your desktop; do not appear in your pager or taskbar; and are sticky across all workspaces. Panel windows reserve space along a desktop edge, just like panels and taskbars, preventing maximized windows from overlapping them. The edge is chosen based on the alignment option. Override windows are not under the control of the window manager. Hints are ignored. This type of window can be useful for certain situations.

From Window Configuration · brndnmtthws/conky Wiki · GitHub:

Generally black flickering may occur, Conky is designed to draw to the root desktop window. However, there are several other applications which like drawing to the root desktop window. Because of this, Conky has two options available to get around this problem:

  • You can try enabling double-buffer. Conky’s double-buffer option uses the X double-buffer extension to provide a flicker-free Conky. This can be done by adding double_buffer = true to your conky config file. If the double buffer is not working you X11 installation is likely not loading the double buffer extension. Open up the Xorg configuration file (usually /etc/X11/xorg.conf) with your favourite text editor, and find the line that says: Section "Module". Then, after that line, add: Load "dbe", restart Xorg (my preferred method is the good-ole control+alt+backspace) and enjoy.
  • Conky can run in windowed mode, meaning that instead of drawing the the root window it draws to it’s own window. You can move this window around and resize it by right-clicking or left-clicking on the window while holding down the Alt key. This can be accomplished by running Conky with the ‘-o’ parameter, or by adding the following to your conky config file: own_window = true

针对 Cinnamon 和 XFCE 的参考配置

conky.config = {
    own_window = true,
    own_window_type = 'normal',
    own_window_transparent = false,
    own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
    own_window_argb_visual = true, own_window_argb_value = 192,

    double_buffer = true,