2020-06-14 23:05:17 +08:00
|
|
|
configfile="配置文件"
|
|
|
|
usage="使用方法: {0} [选项]\n\n选项:\n"
|
2020-06-19 08:51:01 +08:00
|
|
|
total="Total"
|
2020-06-14 23:05:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
[help]
|
|
|
|
paths="按顺序从以下位置优先读取配色方案、布局方案和配置文件:"
|
|
|
|
log="日志文件位于 {0}"
|
|
|
|
written="配置文件已写入 {0}"
|
|
|
|
|
|
|
|
|
|
|
|
[args]
|
|
|
|
help="显示当前内容。"
|
|
|
|
color="制定配色方案。"
|
|
|
|
scale="图形缩放比例,>0"
|
|
|
|
version="显示版本并退出。"
|
|
|
|
percpu="在 CPU 组件中显示每个 CPU。"
|
|
|
|
cpuavg="在 CPU 组件中平均 CPU。"
|
|
|
|
temp="显示华氏温度。"
|
|
|
|
statusbar="显示时间状态栏。"
|
|
|
|
rate="刷新频率。常见的时间单位皆可用。\"1m\" = 每分钟刷新。\"100ms\" = 每100毫秒刷新。"
|
|
|
|
layout="布局描述文件名。使用 \"-\" 连接。"
|
|
|
|
net="选择网卡。多个网卡用逗号分隔。使用 \"!\" 忽略指定网卡。"
|
|
|
|
export="在指定端口上启用指标输出。"
|
|
|
|
mbps="显示网速为 mbps."
|
|
|
|
test="执行测试并返回成功或失败码。"
|
|
|
|
conffile="用于替代缺省参数的配置文件(必须是第一个参数)"
|
|
|
|
list="""
|
|
|
|
List <devices|layouts|colorschemes|paths|keys>
|
2020-06-19 08:51:01 +08:00
|
|
|
devices: Prints out device names for filterable widgets
|
|
|
|
layouts: Lists build-in layouts
|
|
|
|
colorschemes: Lists built-in colorschemes
|
|
|
|
paths: List out configuration file search paths
|
|
|
|
widgets: Widgets that can be used in a layout
|
|
|
|
keys: Show the keyboard bindings."""
|
|
|
|
write="Write out a default config file."
|
|
|
|
|
|
|
|
|
|
|
|
[error]
|
|
|
|
configparse="failed to parse config file: {0}"
|
|
|
|
cliparse="parsing CLI args: {0}"
|
|
|
|
logsetup="failed to setup log file: {0}"
|
|
|
|
unknownopt="Unknown option \"{0}\"; try layouts, colorschemes, keys, paths, or devices\n"
|
|
|
|
writefail="Failed to write configuration file: {0}"
|
|
|
|
checklog="errors encountered; from {0}:"
|
|
|
|
metricsetup="error setting up {0} metrics: {1}"
|
|
|
|
nometrics="no metrics for {0} {0}"
|
|
|
|
fatalfetch="fatal error fetching {0} info: {1}"
|
|
|
|
recovfetch="recoverable error fetching {0} info; skipping {0}: {0}"
|
|
|
|
nodevfound="no usable {0} found"
|
|
|
|
setuperr="error setting up {0}: {1}"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.label]
|
|
|
|
disk=" Disk Usage "
|
|
|
|
cpu=" CPU Usage "
|
|
|
|
gauge=" Power Level "
|
|
|
|
battery=" Battery Status "
|
|
|
|
batt=" Battery "
|
2020-06-19 09:03:42 +08:00
|
|
|
# INSERTED JUST FOR TEST
|
|
|
|
temp=" 显示华氏温度。 "
|
2020-06-19 08:51:01 +08:00
|
|
|
net=" Network Usage "
|
|
|
|
netint=" Network Usage: {0} "
|
|
|
|
mem=" Memory Usage "
|
|
|
|
help="""
|
|
|
|
Quit: q or <C-c>
|
|
|
|
|
|
|
|
Process navigation:
|
|
|
|
- k and <Up>: up
|
|
|
|
- j and <Down>: down
|
|
|
|
- <C-u>: half page up
|
|
|
|
- <C-d>: half page down
|
|
|
|
- <C-b>: full page up
|
|
|
|
- <C-f>: full page down
|
|
|
|
- gg and <Home>: jump to top
|
|
|
|
- G and <End>: jump to bottom
|
|
|
|
|
|
|
|
Process actions:
|
|
|
|
- <Tab>: toggle process grouping
|
|
|
|
- dd: kill selected process or group of processes with SIGTERM (15)
|
|
|
|
- d3: kill selected process or group of processes with SIGQUIT (3)
|
|
|
|
- d9: kill selected process or group of processes with SIGKILL (9)
|
|
|
|
|
|
|
|
Process sorting:
|
|
|
|
- c: CPU
|
|
|
|
- m: Mem
|
|
|
|
- p: PID
|
|
|
|
|
|
|
|
Process filtering:
|
|
|
|
- /: start editing filter
|
|
|
|
- (while editing):
|
|
|
|
- <Enter>: accept filter
|
|
|
|
- <C-c> and <Escape>: clear filter
|
|
|
|
|
|
|
|
CPU and Mem graph scaling:
|
|
|
|
- h: scale in
|
|
|
|
- l: scale out
|
|
|
|
|
|
|
|
Network:
|
|
|
|
- b: toggle between mbps and scaled bytes per second
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
[widget.net.err]
|
|
|
|
netactivity="failed to get network activity from gopsutil: {0}"
|
|
|
|
negvalrecv="error: negative value for recently received network data from gopsutil. recentBytesRecv: {0}"
|
|
|
|
negvalsent="error: negative value for recently sent network data from gopsutil. recentBytesSent: {0}"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.disk]
|
|
|
|
disk="Disk"
|
|
|
|
mount="Mount"
|
|
|
|
used="Used"
|
|
|
|
free="Free"
|
|
|
|
rs="R/s"
|
|
|
|
ws="W/s"
|
|
|
|
|
|
|
|
|
|
|
|
[widget.proc]
|
|
|
|
filter=" Filter: "
|
|
|
|
label=" Processes "
|
|
|
|
[widget.proc.header]
|
|
|
|
count="Count"
|
|
|
|
command="Command"
|
|
|
|
cpu="CPU%"
|
|
|
|
mem="Mem%"
|
|
|
|
pid="PID"
|
|
|
|
[widget.proc.err]
|
|
|
|
count="failed to get CPU count from gopsutil: {0}"
|
|
|
|
retrieve="failed to retrieve processes: {0}"
|
|
|
|
ps="failed to execute 'ps' command: {0}"
|
|
|
|
gopsutil="failed to get processes from gopsutil: {0}"
|
|
|
|
pidconv="failed to convert PID to int: {0}. line: {1}"
|
|
|
|
cpuconv="failed to convert CPU usage to float: {0}. line: {1}"
|
|
|
|
memconv="failed to convert Mem usage to float: {0}. line: {1}"
|
|
|
|
getcmd="failed to get process command from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|
|
|
|
cpupercent="failed to get process cpu usage from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|
|
|
|
mempercent="failed to get process memeory usage from gopsutil: {0}. psProc: {1}. i: {2}. pid: {3}"
|