![Conky 버퍼가 너무 작나요?](https://linux55.com/image/2336/Conky%20%EB%B2%84%ED%8D%BC%EA%B0%80%20%EB%84%88%EB%AC%B4%20%EC%9E%91%EB%82%98%EC%9A%94%3F.png)
예: 내 예 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자로 제한하곤 했는데, 그 수가 두 배로 늘어날 수도 있습니다.
(15(+1줄 바꿈) = 줄당 16자 x 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가 충분히 길면 이 제한을 더 늘리거나 스크립트를 여러 명령으로 나누어야 할 수도 있습니다.