0

我正在使用 Xmonad 和一个最小的 debian 作为操作系统,我正在尝试设置一个底部 dze2 栏,并带有一些 conky 信息管道。问题是,除了我的栏显示的信息之外,我还有纯配置文本,如屏幕截图所示: 截屏

执行我的 dzen2 bar 的 xmonad 行:

myDzenStyle     = "-p -h '14' -bg '" ++ myBlackColor ++ "' -fg '" ++ myWhiteColor ++ "' -fn " ++ myFont
myDzenBottomBar = "conky -c /home/capella/.xmonad/bottomBar   | dzen2 -ta 'c' -x    '0' -y '768' -w '1024' " ++ myDzenStyle
dzenBottomBar <- spawnPipe myDzenBottomBar

conky 脚本是:

background yes
short_units yes

out_to_console yes
update_interval 1
total_run_times 0
pad_percents 2

TEXT
^i(/home/capella/.xmonad/icons/mini/cpu13.xbm) ${cpu cpu0}% ^fg(\#802216)^i(/home/capella/.xmonad/icons/mini/square.xbm)^fg() \
^i(/home/capella/.xmonad/icons/mini/mem1.xbm) ${mem} ^fg(\#802216)^i(/home/capella/.xmonad/icons/mini/square.xbm)^fg() \
^i(/home/capella/.xmonad/icons/mini/downarrow1.xbm) ${downspeed eth0}/s ^i(/home/capella/.xmonad/icons/mini/uparrow1.xbm) ${upspeed eth0}/s

似乎显示的文本正是栏中的结果,但没有图标只是路径。如果有人可以帮忙

PS:我用的是虚拟机

4

1 回答 1

0

The solution is to add this line to the conky config file :

out_to_x no

This line tell conky to run in the background and not to output the results directly to the X.

于 2015-08-27T22:30:06.090 回答