Conkyバッファが小さすぎますか?

Conkyバッファが小さすぎますか?

例:私の例conkyrc(最後の行は唯一の重要な部分です!):

background yes
use_xft yes
xftfont Terminus:size=8
xftalpha 0.8
update_interval 5.0
total_run_times 0
double_buffer yes
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 0 0
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color ffffff
default_shade_color black
default_outline_color ffffff
alignment top_left
# gap_x - 1280x800 = 1105; 1024x768 = 820
gap_x 1200
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer yes
TEXT

${execpi 15 sleep $[ ($RANDOM % 3 ) ]; sh conkyscripts.sh}

そして

cat conkyscripts.sh 
#!/bin/bash

for i in {1..40}; do echo "Welcome $i times"; done

したがって、「sh conkyscript.sh」を実行したときと同じ出力を提供する必要があります。

Welcome 1 times
Welcome 2 times
Welcome 3 times
Welcome 4 times
Welcome 5 times
Welcome 6 times
Welcome 7 times
Welcome 8 times
Welcome 9 times
Welcome 10 times
Welcome 11 times
Welcome 12 times
Welcome 13 times
Welcome 14 times
Welcome 15 times
Welcome 16 times
Welcome 17 times
Welcome 18 times
Welcome 19 times
Welcome 20 times
Welcome 21 times
Welcome 22 times
Welcome 23 times
Welcome 24 times
Welcome 25 times
Welcome 26 times
Welcome 27 times
Welcome 28 times
Welcome 29 times
Welcome 30 times
Welcome 31 times
Welcome 32 times
Welcome 33 times
Welcome 34 times
Welcome 35 times
Welcome 36 times
Welcome 37 times
Welcome 38 times
Welcome 39 times
Welcome 40 times

しかし、そうではありません。なぜなら、conkyはデスクトップに次のような出力を提供するからです。

ここに画像の説明を入力してください。

なぜ?なぜ16時に止まったのですか?一部のバッファが小さすぎますか?それとも、conkyが16行以上を出力するスクリプトを書くことはできませんか? :ああ

ベストアンサー1

文字数を数えると、conkyは257文字を表示します。これはconkyのTEXT行のランダム制限と非常によく似ています。 conkyとシェル拡張子の中に隠された引用符を追加すると、「time」文字が失われます。 Conkyはマークを最初の128文字に制限していましたが、その数が2倍になる可能性があります。

(15(+ 1行改行)= 1行あたり16文字×16行= 256文字。

Google 検索で次のことが判明しました。

http://lifehacker.com/5067341/customize-conky-for-ambient-linux-productivity

If your to-do file or any other section is getting cut off too soon, that's because Conky has an unseen default text limit for any object. You can tweak it by adding a text_buffer_size 512 to the top section of your .conkyrc, changing that number to fit your needs.

TEXTが十分に長い場合は、この制限をさらに増やすか、スクリプトを複数のコマンドに分割する必要があります。

おすすめ記事