我希望我的屏幕上运行两个 conky 实例(以后可能为三个),因为我想显示来自我的两个 Raspberry Pi 的统计数据。顺便说一下,我正在运行 Xubuntu/XFCE4 :)
我已经准备好了两个配置文件,并且当地的脚本像这样执行
sh -c "sleep 10; conky;"
还有偏僻的脚本像这样执行
ssh -X [email protected] sh -c "sleep 10; conky;"
两个脚本似乎都在单独运行 - 但不能同时运行。当它们都运行时,实例会闪烁并在可见状态之间切换。
这两个脚本几乎完全相同 - 并且确实不是很花哨 - 只是有用。
# GENERAL CONFIGURATIONS
out_to_x yes
# Update interval in seconds
update_interval 5.0
# Text alignment, other possible values are commented
alignment bottom_left
# Aligning vertical
gap_y 15
gap_x 10 <-- This variable is set to 100 in the local script
# Use double buffering (reduces flicker)
double_buffer yes
TEXT
$nodename - $sysname $kernel on $machine
$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
$color$stippled_hr
${color lightgrey}File systems:
ROOT $color${fs_used /}/${fs_size /} ${fs_bar /}
SLAVE $color${fs_used /media/slave}/${fs_size /media/slave} ${fs_bar /media/slave}
谁能帮我?
答案1
我不明白为什么你所做的事情会导致闪烁,但请尝试将这些添加到你的.conkyrc
:
text_buffer_size 556
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
完全不确定这是否有帮助,但可能有。