我有一些xmobarrc配置在分隔符|中使用顏色xmobar命令字段的固定寬度
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%"
}
而且我有2個問題:
- 如果我需要着色
|
分離我 應該改變所有|
上<fc=#ffffff>|</fc>
,爲例。那麼 如何在template
中使用變量separator = <fc=#ffffff>|</fc>
? - 文本,即
Network
和Cpu
回來,總是有不同的 長度,因此所有行程都有不同 大小所有的時間。我如何設置Network
的固定大小的文本?
你確定這應該在'xmobarrc'中工作嗎? – 2012-05-02 20:53:50
xmobar自此評論以來可能有許多版本,因此可能會進行格式更改。我在很長一段時間內沒有使用過xmobarrc。如果您遇到問題,我建議您提出一個新問題。 – 2012-05-02 22:50:39