在 FVWM 启动和重新启动时都会调用 StartFunction, 而且在首次启动时会调用 InitFunction, 在重新启动时会调用 RestartFunction, InitFunction 和 RestartFunction 都是在 StartFunction 之后调用。每次重起和完全退出时都要执行 ExitFunction.
如果你有什么程序需要在FVWM启动时启动,那么就把它加到合适的函数里面去。比如,我的配置文件有这些内容:
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec fbsetbg -f $fvwm_wallpaper
+ I Exec exec gnome-settings-daemon
+ I Exec exec xscreensaver -no-splash
+ I Exec exec nm-applet
+ I Exec exec trayer --edge top --align right --widthtype pixel --width 100 --highttype /
pixel --height 20 --transparent true --alpha 200 --distance 0 --distance 0 --expand true/
--SetDockType false
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmPager
+ I Module Animate
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All (xscreensaver) Close
+ I All