Conky 的框架随机出现

Conky 的框架随机出现

我调整了 Harmattan Texture conky,创建了舒适版和神模式版的混合版。问题是,在某些我无法预料的时刻,我的 conky 周围会出现黑框或阴影。

有框和无框

今天早上我也注意到时间不是显示在中间,而是显示在右上角。我打开了 conkyrc 文件,保存了两次以刷新它,时间又回到了中间。我不知道这两件事是否有关联。

这是我的 conkyrc 文件

# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
imlib_cache_size 10

# Window specifications #
gap_x 20
gap_y 100
minimum_size 268 450
maximum_width 268
own_window yes
own_window_type override  # other options are: override/dock/desktop/panel
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment top_right
#own_window_argb_visual yes
#own_window_argb_value 0

# Graphics settings #
draw_shades no
default_shade_color AAAAAA
draw_outline no
default_outline_color AAAAAA
draw_borders no
draw_graph_borders no
default_graph_size 26 80
show_graph_scale no
show_graph_range no

# Text settings #
use_xft yes
xftalpha 0
xftfont Droid Sans:size=10
text_buffer_size 256
override_utf8_locale yes

# Useful shortenings #
short_units yes
pad_percents 2
top_name_width 7

# Color scheme #
default_color F9F9F9
color1 F9F9F9
color2 F9F9F9
color3 F9F9F9
color4 F9F9F9
color5 DCDCDC
color6 F9F9F9
color7 F9F9F9
color8 F9F9F9

TEXT
# Various images #
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=603413&u=c" -o ~/.cache/weather.xml}\
${image ~/.conky-weather/assets/Texture/Comfortable/shadow.png -p 6,12 -s 256x367}\
${execi 300 cp -f ~/.conky-weather/icons/weather-photos-8/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 20,25 -s 228x229}\
${image ~/.conky-weather/assets/Texture/Comfortable/photo-filter.png -p 20,25 -s 228x229}\
${image ~/.conky-weather/assets/Texture/Comfortable/top-bg.png -p 20,25 -s 228x66}\
${image ~/.conky-weather/assets/Texture/Comfortable/bottom-bg.png -p 20,254 -s 228x110}\
${image ~/.conky-weather/assets/Texture/Comfortable/border.png -p 20,25 -s 228x339}\
${image ~/.conky-weather/assets/Texture/Comfortable/separator-v.png -p 95,270 -s 1x83}\
${image ~/.conky-weather/assets/Texture/Comfortable/separator-v.png -p 172,270 -s 1x83}\
\
# The name of days #
\
${color2}${voffset 268}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}
${color2}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}
${color2}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}
\
# Temperatures #
\
${color2}${voffset 53}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
${color2}${voffset -17}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
${color2}${voffset -17}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
\
# Weather conditions section #
\
${color1}${font Droid Sans:size=48}${goto 32}${voffset -204}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}\
${color2}${alignr 54}${voffset -90}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %
${color2}${alignr 54}${voffset 20}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${color2}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${color2}${alignr 54}${voffset 20}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${color1}${font Droid Sans :size=12}${goto 46}${voffset -14}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}\
\
# Clock + calendar #
\
${voffset -194}${font Droid Sans Mono :size=22}${alignc}${color2}${time %H:%M}${font}${color}
${voffset 4}${font Droid Sans :size=10}${alignc}${color6}${time %A, %d %B}${font}${color}
\
# Variousecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 118,296 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weath images including the forecast icons #
\
${image ~/.conky-weather/assets/Texture/Comfortable/humidity.png -p 224,108 -s 16x16}\
${image ~/.conky-weather/assets/Texture/Comfortable/wind-2.png -p 224,145 -s 16x16}\
${image ~/.conky-weather/assets/Texture/Comfortable/sunrise.png -p 224,182 -s 16x16}\
${image ~/.conky-weather/assets/Texture/Comfortable/sunset.png -p 224,219 -s 16x16}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 42,296 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 118,296 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 194,296 -s 32x32}${font}\

我想永久保留这个框架,甚至如果可能的话,改变它的颜色,但我不知道如何做到这一点,也不明白这种奇怪行为的原因。

谢谢你们。

答案1

我终于解决了我的问题感谢这个来自 noobslab 的页面。

我没有尝试 compiz 解决方案,但是改变了

own_window_type override

own_window_type dock

并调整了 gap_x(新设置下 conky 在我的屏幕上消失了)。因为它看起来运行良好,而且非常稳定。

相关内容