Conky 2.0.0 own_window_argb_visual = true导致X错误


1

conky -v的输出

conky 2.0.0_pre compiled Wed Jul  2 18:53:50 BST 2014 for Linux 3.2.0-4-amd64 x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/local/lib/conky


 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * support for IBM/Lenovo notebooks
  * builtin default configuration
  * old configuration syntax
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
 X11:
  * Xdamage extension
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * MPD
  * MOC

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/local/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256

Conky配置: -

conky.config = {
    alignment = 'top_right',
    --background = true,
    use_xft = true,
    font = 'LMMono10 Regular:size=10',
    xftalpha = 1,
    cpu_avg_samples = 2,
    default_color = 'ffffff',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    gap_x = 12,
    gap_y = 35,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_type = 'desktop',
    own_window_argb_visual = true,
    own_window_transparent = true,
    own_window_colour = 'ffffff',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

此设置会导致以下输出: -

X Error of failed request:  BadMatch (invalid parameter attributes)                                                  
  Major opcode of failed request:  62 (X_CopyArea)                                                                   
  Serial number of failed request:  1074                                                                             
  Current serial number in output stream:  1077

评论出来 own_window_argb_visual = true, 除了那之外,line会导致conky正确呈现 own_window_colour = 'ffffff', 没有效果,它总是显示黑色背景。

如何使conky窗口透明,或至少改变其背景颜色?

NB 请注意,这个问题是指 conky版本2.0.0 它与早期版本具有不同的配置语法。

在与irc #conky上的Tucos对话之后,似乎构建conky 2.0.0_pre的默认设置已经存在 BUILD_XDBE 关掉了。这是X窗口错误的原因。

建筑用 BUILD_XDBE 打开后会停止X错误并允许 own_window_colour 上班。所以问题仍然存在: -

你如何获得一个带有conky 2.0.0_pre的透明窗口?

Answers:


1

评论出来 own_window_argb_visualown_window_argb_value
使窗口透明化 own_window_transparent = true
使窗口具有白色背景颜色设置 own_window_transparent = falseown_window_colour = '#ffffff'

编辑:似乎你必须打开 BUILD_XDBE 在编译时并注释掉 own_window_colour 获得透明的背景


非常感谢你的出色表现 BUILD_XDBE 小费。这就是为什么在尝试2.0.0(之前)之后我降级为1.9.x的实际原因。当我编译自己的v2构建时,透明度根本不起作用。当我在2.0.0中报告另一个错误时,其中一个主要的开发人员回答我,2.0.0仅仅是一个“游乐场”,而目前,1.9.x树计划进一步更新(更不用说了)因为v2将要求每个1.x脚本完全颠倒以使用预发布版本。换句话说,修补v2对真正的怪人来说意味着;)
syntaxerror
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.