如何解决:conky显示文本信息不完整

各种窗口管理器和美化相关
回复
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

如何解决:conky显示文本信息不完整

#1

帖子 kashu » 2016-01-28 14:11

问题: conky显示文本信息不完整

我有一段纯文本信息想输出在conky界面中,如:

代码: 全选

echo "pkg hold" | dpkg --set-selections
git add -A; git status; git commit -m 'XXX'
git remote -v; git push origin master
grep -sqm1o a.txt
ffmpeg -f concat -i list -c copy a.flv
sync; sudo sysctl -w vm.drop_caches=1
dstat -cdnmpy -Neth0 -Dtotal,sda --top-bio-adv -t
enca -L zh -x UTF-8 a.txt
wget -O - URL > a.txt
但是,没有完整显示出来(实际只显示到了倒数第3行而已):
图片

请问如何解决?[/b][/size]
上次由 kashu 在 2016-01-28 14:33,总共编辑 1 次。


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 如何解决:conky显示文本信息不完整

#2

帖子 vickycq » 2016-01-28 14:18

增加选项

代码: 全选

text_buffer_size 512
(默认为 256)
text_buffer_size
Size of the standard text buffer (default is 256 bytes). This buffer is used for intermediary text, such as individual lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky's performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 256 bytes.
参考
http://conky.sourceforge.net/config_settings.html
http://superuser.com/questions/132338/c ... -from-file
https://bbs.archlinux.org/viewtopic.php?id=124165
https://bbs.archlinux.org/viewtopic.php?id=92705
https://bbs.archlinux.org/viewtopic.php?id=48455
上次由 vickycq 在 2016-01-28 14:21,总共编辑 2 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
kashu
帖子: 451
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位

Re: 如何解决:conky显示文本信息不完整

#3

帖子 kashu » 2016-01-28 14:21

谢谢,一步到位! 果然是这问题


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
回复