我有两个以 xinit 开头的 conky 窗口。一个使用旧的语法并且工作得很好。另一个使用新语法,从终端启动时可以完美运行。但是,当使用 xinit 启动时,使用新语法的窗口出现在我打开的所有其他窗口之上。如果我保存配置文件o触发conky重新启动,它会按预期出现在正常窗口下方。
使用新语法的 Conky 配置:
conky.config = {
alignment = 'bottom_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'black',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = "Fira Sans",
gap_x = 30,
gap_y = 69,
border_inner_margin = 20,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_type = 'override',
own_window_class = Conky,
own_window_argb_visual = true,
own_window_argb_value = 200,
own_window_hints = undecorated,below,sticky,skip_taskbar,skip_pager,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
text_buffer_size = 1024,
double_buffer = true,
show_graph_scale = false,
show_graph_range = false,
draw_graph_borders = false,
lua_load = "/home/marcel/.dotfiles/conky/mpd.lua",
}
conky.text = '${texeci 10 artwork 2>&1 > /dev/null}${lua main}'
.xinitrc
:
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
conky -d -c ~/.dotfiles/conky/mpd.conky &
conky -c ~/.dotfiles/conky/system.conky &
compton -b --config ~/.dotfiles/compton/compton.conf &
dunst &
exec startxfce4
uname -a
:
Linux Hermes 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux
pacman -Q | grep conky
:
conky 1.10.6-1
我尝试过使用和不使用 -d 选项的每个own_window_type
设置background
。似乎什么都不起作用。