当前位置: 首页 > 工具软件 > ProcMeter3 > 使用案例 >

ProcMeter3 使用经验

袁玮
2023-12-01
ProcMeter3 是一个系统状态显示程序,在 fvwm, sawfish, plan9port 等非主流桌面环境下使用非常简单方便。

平常总觉得面板上各模块间的分隔线太粗了,想改改。

要修改源码两处地方:
xaw/window.c:117
 pane=XtVaCreateManagedWidget("pane",panedWidgetClass,toplevel,
                              XtNwidth, vertical?100:200,
                              XtNheight,vertical?45:100,
                              XtNinternalBorderWidth,2,
                              XtNorientation,vertical?XtorientVertical:XtorientHo\
rizontal,
                              NULL);
将
                              XtNinternalBorderWidth,2,
改为:
                              XtNinternalBorderWidth,1,


xaw/window.c:572
       msize+=2,gsize-=2;       /* separator between panes */
改为:
       msize+=1,gsize-=1;       /* separator between panes */


另外, 可以移除掉一些不使用的模块,连 procmeter.so 都可以移除。
模块目录: /usr/lib/X11/ProcMeter3/modules
我的 ubuntu 11.10 系统中只留下 datetime.so,libsensors-temp.so 两个模块,用来显示日期、时间和 CPU 温度。

部分配置(/etc/procmeterrc):
order=  Temperature.temp1-t \
        Date_Time.Time_HM-t \
        Date_Time.Date_DM-t

[Temperature]
label-position = none
update = 5

[Date_Time]
label-position = none

参考:
	man procmeter3
	man procmeterrc
 类似资料: