我有一个外部显示器,可以显示屏幕的右侧部分(--right-of
xrandr 中的选项),
而我的 conky 面板就不见了。(占用空间,但在两个显示器上都不可见)
我想要的是 conky 的相同视图,对于我的笔记本电脑显示器和外部显示器,有什么想法吗?
谢谢
我的 conkyrc 的一部分,可能会有所帮助
own_window yes
if_up_strictness address
own_window_colour 262729
own_window_transparent no
own_window_type panel
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
font snap.se-7
xftalpha 1
text_buffer_size 2048
#alignment tl
alignment bl
gap_x 0
gap_y 3
Run Code Online (Sandbox Code Playgroud)
小智 8
有很多解决方案可以做到这一点。gap_x 和 gap_y 是最差的。显示器的配置要复杂得多。我的笔记本电脑上还有一个外接显示器。
我的 conky 配置文件在启动列表中,它们看起来像这样。我使用 Ubuntu 12.04:
bash -c "sleep 30; conky -c conky1 -a top_right -x 7 -y 70 -d"
bash -c "sleep 30; conky -c conky2 -a top_left -x 150 -y 550 -d"
Run Code Online (Sandbox Code Playgroud)
两个文件中的 gap_x 和 gap_y 都设置为 1。使用相对坐标将始终在同一位置输出。
从终端: conky -c conky1 -a top_right -x 7 -y 70 -d
每次使用辅助显示器启动时,我都不必重置 gap-x 或 y 的值。
xinerama_head
添加未记录的设置是为了简化事情,因为如果使用不同的位置/分辨率/显示器,-x
该-y
方法非常耗时且难以维护(或缺乏灵活性)。
conky.config = {
xinerama_head = 1 (or 2, 3...)
}
Run Code Online (Sandbox Code Playgroud)
供进一步阅读。