![Conky 不在桌面上显示日历](https://linux22.com/image/906548/Conky%20%E4%B8%8D%E5%9C%A8%E6%A1%8C%E9%9D%A2%E4%B8%8A%E6%98%BE%E7%A4%BA%E6%97%A5%E5%8E%86.png)
我已经配置了 conky 和 gcalcli 来在我的桌面上显示谷歌日历。
我的conky配置文件如下:
conky.config = {
background = true,
update_interval = 1.5,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
own_window = true,
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 10,
border_outer_margin = 0,
xinerama_head = 1,
alignment = 'top_right',
gap_x = 90,
gap_y = 90,
draw_shades = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_xft = true,
font = 'Ubuntu Mono:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = '#FFFFFF',
own_window_colour = '#000000',
minimum_width = 0, minimum_height = 0,
};
conky.text = [[
${execpi 300 PYTHONIOENCODING=utf8 gcalcli --conky --nolineart calm --monday}
]];
运行以下行时,我得到了合理的输出:
gcalcli --conky --nolineart calm --monday
${color white}+----------------------------------------------------------------------------+
${color white}|${color yellow}November 2018 ${color white}|
${color white}+----------+----------+----------+----------+----------+----------+----------+
${color white}|${color yellow}Monday ${color white}|${color yellow}Tuesday ${color white}|${color yellow}Wednesday ${color white}|${color yellow}Thursday ${color white}|${color yellow}Friday ${color white}|${color yellow}Saturday ${color white}|${color yellow}Sunday ${color white}|
${color white}+----------+----------+----------+----------+----------+----------+----------+
${color white}|${color yellow} ${color white}|${color yellow} ${color white}|${color yellow} ${color white}|${color yellow}01 ${color white}|${color yellow}02 ${color white}|${color yellow}03 ${color white}|${color yellow}04 ${color white}|
${color white}| ${color white}| ${color white}| ${color white}| ${color white}| ${color white}| ${color white}| ${color white}|
${color white}| ${color white}| ${color white}| ${color white}|${color magenta}12:00 ${color white}|${color green}Dragana ${color white}|${color magenta}18:00 ${color white}|${color magenta}11:00 ${color white}|
${color white}| ${color white}| ${color white}| ${color white}|${color magenta}Lunch ${color white}|${color green}@Strangewa${color white}|${color magenta}Dinner ${color white}|${color magenta}Brunch ${color white}|
${color white}| ${color white}| ${color white}| ${color white}| ${color white}|${color green}ys ${color white}| ${color white}| ${color white}|
${color white}| ${color white}| ${color white}| ${color white}|${color magenta}18:00 ${color white}| ${color white}|${color magenta}11:00 ${color white}|${color magenta}18:00 ${color white}|
${color white}| ${color white}| ${color white}| ${color white}|${color magenta}Dinner ${color white}|${color magenta}12:00 ${color white}|${color magenta}Brunch ${color white}|${color magenta}Dinner ${color white}|
${color white}| ${color white}| ${color white}| ${color white}| ${color white}|${color magenta}Lunch ${color white}| ${color white}| ${color white}|
${color white}| ${color white}| ${color white}| ${color white}|${color cyan}7:00am Go ${color white}| ${color white}|${color cyan}11:30am ${color white}| ${color white}|
.......
我还附加了我的桌面的截图,右上角的黑色矩形似乎是由 conky 创建的。