fvwm学习笔记之启动和退出函数 by stack

本文介绍了FVWM窗口管理器中如何在启动和退出时调用特定函数,如StartFunction、InitFunction、RestartFunction和ExitFunction。通过配置,可以在FVWM启动时启动xscreensaver、FvwmButtons等程序,并在退出或重启时关闭它们,确保Windows X server正常工作。此外,还提到了fbsetbg在Ubuntu中设置壁纸的方法,以及nm-applet用于检测无线网络的功能。
摘要由CSDN通过智能技术生成

在 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值