我有一些 xmobarrc 配置
Config { lowerOnStart = False,
font = "xft:Terminus-12"
, bgColor = "#000000"
, fgColor = "#8080A1"
, position = Top
, commands = [ Run Network "eth0" ["-L","0","-H","32","--normal","#429942","--high","#A36666"] 10
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Date "/%a/ %_d.%m.%Y / %H:%M" "date" 10
, Run Com "sh" ["~/bin/weather.sh"] "weather" 60
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = " %StdinReader% }{ W:<fc=#fce94f>%weather%</fc> | %cpu% | %memory% | %eth0% | %date%"
}
我有两个问题:
- 例如,如果我需要一个着色分隔符
|
,我应该全部更改为 。那么如何使用变量in呢?|
<fc=#ffffff>|</fc>
separator = <fc=#ffffff>|</fc>
template
- 文本,那个
Network
和Cpu
返回,总是有不同的长度,所以所有的笔划总是有不同的大小。如何设置Network
固定大小的文本?