|

楼主 |
发表于 2003-11-28 20:44:46
|
显示全部楼层
好了,请兄弟们自己参考吧 
#设置图标的路径
imagePath $HOME/.fvwm/icons
# 设置鼠标样式
CursorStyle ROOT left_ptr
CursorStyle TITLE left_ptr
CursorStyle DEFAULT left_ptr
CursorStyle SYS left_ptr
CursorStyle MENU left_ptr
#设置标题栏的样式
TitleStyle Height 18
Style "*" FvwmBorder
Style "*" MWMButtons
TitleStyle LeftJustified
ButtonStyle all -- UseTitleStyle
ButtonStyle 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
ButtonStyle 4 4 50x25@1 75x75@0 25x75@0 50x25@1
ButtonStyle 6 4 50x65@1 35x35@1 65x35@1 50x65@0
ButtonStyle 1 - Clear MWMDecorMenu
ButtonStyle 2 - Clear
ButtonStyle 4 - Clear MWMDecorMax
ButtonStyle 6 - Clear MWMDecorShade
#设置窗口切换面板
*FvwmPagerPager: Back #1c5572
*FvwmPagerPager: Fore black
*FvwmPagerPager: Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
*FvwmPagerPager: Hilight white
*FvwmPagerPager: Balloons
*FvwmPagerPager: BalloonFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
*FvwmPagerPager: BalloonFore grey90
*FvwmPagerPager: BalloonBack #1c5572
*FvwmPagerPager: Geometry 319x69+5000+5000
*FvwmPagerPager: Label 0 虚拟桌面
*FvwmPagerPager: SmallFont 5x8
# 设置边框样式
Style "*" Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
Style "*" IconFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
Style "*" HilightFore white, HilightBack #1c5572
Style "*" BorderWidth 1, HandleWidth 1
Style "*" Color black/#8090A0
Style "*" MWMFunctions, MWMDecor, HintOverride
Style "*" MWMBorder
Style "*" DecorateTransient, NoPPosition
Style "*" IconBox 1096 404 1152 -120
Style "*" SmartPlacement
Style "*" MouseFocusClickRaises
Style "*" FPAllowFocusClickFunction, FPAllowRaiseClickFunction
Style "*" Frame 1
# 设置菜单样式
MenuStyle * fvwm, Foreground grey90, Background #1c5572
MenuStyle * SeparatorsShort
MenuStyle * Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*" fvwm, PopupOffset 1 90
# 设置标题栏的按钮和功能
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 3 A Stick
Mouse 0 2 A Close
Mouse 0 4 A Maximize
Mouse 0 6 A WindowShade
Mouse 0 3 A Stick
Mouse 0 2 A Close
Mouse 0 4 A Maximize
#Mouse 0 6 A Iconify
# 设置 ALT + F4 关闭窗口
Key F4 WTSFI M Close
Key F4 WTSFI M2 Close
# 设置鼠标动作
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops2 Nop
Mouse 3 R A WindowList
# 设置虚拟桌面定数目和排列方式
DesktopSize 2x2
# 设置是否鼠标移动切换窗口
# 100 是为是,0是为否
EdgeScroll 0 0
# 设置程序菜单 请根据自己的机子配置
AddToMenu RootMenu "Fvwm2 根菜单%16x16-gnome/linux.xpm" Title
#+ "Xterm 控制台%16x16-gnome/terminal.xpm" Exec exec xterm -bg black -fg white
+ "Rxvt 中文控制台%16x16-kde/terminal.xpm" Exec exec rxvt -bg black -fg white -sr -T RXVT\ 通用中文终端
#+ "Konqueror 浏览器%16x16-gnome/news.xpm" Exec exec konqueror
#+ "Opera Brower %16x16-gnome/amusement.xpm" Exec exec opera
+ "MozillaFirebird 浏览器%16x16-gnome/www.xpm" Exec exec MozillaFirebird
#+ "Mozilla 浏览器%16x16-kde/www.xpm" Exec exec mozilla
#+ "Netscape 浏览器%16x16-gnome/www.xpm" Exec exec netscape
#+ "Konqueror%16x16-gnome/news.xpm" Exec exec konqueror
+ "Xmms 音频播放器%16x16-gnome/music.xpm" Exec exec xmms
#+ "K Writer 3.0%16x16-gnome/kde.xpm" Exec exec kwrite
+ "GNP 文本编辑器%16x16-gnome/word-processor.xpm" Exec exec gnp
#+ "电子邮件%16x16-gnome/mail.xpm" Exec exec mutt -y
+ "" Nop%16x16-gnome/
+ "文本编辑器%16x16-gnome/editor.xpm" Popup editmenu
+ "图形图象%16x16-gnome/image-processor.xpm" Popup artmenu
+ "多媒体系统%16x16-gnome/multimedia.xpm" Popup multimediamenu
+ "网络工具%16x16-gnome/network.xpm" Popup Internet
+ "工具软件%16x16-gnome/utility.xpm" Popup Utilitaires
+ "" Nop%16x16-gnome/
+ "系统菜单%16x16-gnome/modules.xpm" Popup config
AddToMenu editmenu
+ "KDE文本编辑器%16x16-gnome/kde.xpm" Exec exec kedit
+ "K Writer 3.0%16x16-kde/word-processor.xpm" Exec exec kwrite
#+ "AbiWord 文字处理%16x16-general/word-processor.xpm" Exec exec AbiWord
+ "GNP 文本编辑器%16x16-gnome/word-processor.xpm" Exec exec gnp
+ "Gedit 文本编辑器%16x16-kde/word-processor.xpm" Exec exec gedit
+ "Gvim 编辑器" Exec exec gvim
AddToMenu artmenu
#+ "Gthumb%16x16-gnome/colors.xpm" Exec exec gthumb
#+ "GtkSee%16x16-gnome/colors.xpm" Exec exec gtksee
+ "Gimp 图像处理%16x16-gnome/gimp.xpm" Exec exec gimp
+ "Gqview 看图软件%16x16-gnome/science.xpm" Exec exec gqview
+ "Electric Eyes 电子眼%16x16-kde/science.xpm" Exec exec ee
+ "Ksnapshot 抓图软件%menu/video.xpm" Exec exec ksnapshot
#+ "X 基本抓图程序%mini.camera.xpm%" FvwmForm FvwmForm-Capture
AddToMenu multimediamenu
#+ "KDE音量控制器%16x16-gnome/sound.xpm" Exec exec kmix
+ "Gnome 音量控制器%16x16-gnome/sound.xpm" Exec exec gmix
+ "Xmms 音频播放器%16x16-gnome/music.xpm" Exec exec xmms
#+ "Xing 影像播放器%16x16-gnome/music.xpm" Exec exec xine
+ "RealPlayer 8.0 Basic%16x16-gnome/rp7mini.xpm" Exec exec realplay
#+ "VideoLanClient%16x16-gnome/display.xpm" Exec exec vlc
#+ "Xine 播放器%16x16-gnome/display.xpm" Exec exec xine
AddToMenu Internet
#+ "Nautilus 浏览器%16x16-gnome/www.xpm" Exec exec run-nautilus
+ "Mozilla 浏览器%16x16-kde/www.xpm" Exec exec mozilla
+ "MozillaFirebird 浏览器%16x16-kde/www.xpm" Exec exec MozillaFirebird
+ "Netscape 浏览器%16x16-gnome/www.xpm" Exec exec netscape
+ "Download For X%16x16-gnome/www.xpm" Exec exec nt
+ "Konqueror%16x16-gnome/news.xpm" Exec exec konqueror
+ "Opera Brower %16x16-gnome/amusement.xpm" Exec exec opera
#+ "电子邮件 Sylpheed %16x16-gnome/mail.xpm" Exec exec sylpheed
+ "Gaim%16x16-gnome/modules.xpm" Exec exec gaim
+ "Balsa 邮件工具%16x16-gnome/amusement.xpm" Exec exec balsa
+ "Gftp" Exec exec gftp
#+ "KPPP 拨号工具%16x16-gnome/game-cards.xpm" Exec exec kppp
+ "GNOME 网络配置工具%16x16-gnome/game-cards.xpm" Exec exec neat
AddToMenu Utilitaires
+ "系统监视器 Gkrell %16x16-kde/monitoring.xpm" Exec exec gkrellm
+ "Gnome系统监视器%16x16-gnome/monitoring.xpm" Exec exec gtop
+ "计算器%16x16-gnome/calculator.xpm" Exec exec xcalc
+ "放大镜%16x16-gnome/viewer.xpm" Exec exec xmag
#+ "字体管理%16x16-gnome/font.xpm" Exec exec xfontsel
#+ "电源" Exec exec xapm
#+ "X剪贴板%16x16-gnome/item.xpm" Exec exec xclipboard
AddToMenu config
+ "重新启动 Fvwm2%16x16-gnome/refresh.xpm" Restart fvwm2
+ "退出 Fvwm2 会话%16x16-gnome/choice-yes.xpm" Quit
+ "" Nop
#+ "重新启动计算机%16x16-kde/refresh.xpm" Exec exec init 6
#+ "关闭计算机%16x16-kde/choice-yes.xpm" Exec exec init 0
#+ "" Nop
+ "编辑 Fvwm 配置文件%16x16-gnome/editor.xpm" Exec exec gnp $HOME/.fvwm/.fvwm2rc
#增加窗口控制菜单
AddToMenu Window-Ops2
+ "移动窗口%16x16-kde/window-move.xpm" Move
+ "重新设定大小%16x16-kde/window-resize.xpm" Resize
+ "(恢复)图标化%16x16-kde/window-iconify.xpm" Iconify
+ "(恢复)粘贴窗口%16x16-kde/window-stick.xpm" Stick
+ "(恢复)最大化%16x16-kde/windows.xpm" Maximize
+ "" Nop
#+ "删除窗口%16x16-kde/window-delete.xpm" Delete
+ "关闭窗口%16x16-kde/window-close.xpm" Close
+ "毁灭窗口%16x16-kde/window-destroy.xpm" Destroy
#===============================================================================
#设置按钮面板
*FvwmBacker: Command(Desk 0, Page * *) -solid black
Style "FvwmBacker" NoTitle,Sticky,WindowListSkip,CirculateSkip,NoHandles
Style FvwmBacker NoTitle, Sticky, WindowListSkip, CirculateSkip
Style BarButtons NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 2, CirculateSkip
DestroyModuleConfig BarButtons: *
*BarButtons: Fore grey90
*BarButtons: Back #1c5572
*BarButtons: Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
*BarButtons: Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-*-*"
#设置按键深度
*BarButtons: Frame 1
#设置快捷面板的位置
*BarButtons: Geometry 797x75+0-0
#设置单牌按键单数量按键
*BarButtons: Columns 12
#LAPTOP 1 Are you a laptop user ?
#*BarButtons: (2x1, Title "电源", Swallow(Kill) "xapm" "Exec exec xapm -geometry -1500-1500 -p")
*BarButtons: (2x2, Swallow "FvwmPagerPager" 'FvwmPager FvwmPagerPager NoTitle,NoLabel')
#*BarButtons: (1x2, Title Fvwm, Icon 48x48-gnome/linux.xpm, Action '###', \
# Action(Mouse 2) '###', \
# Action(Mouse 3) '###')
*BarButtons: (1x2, Title Terminal, Icon 48x48-gnome/terminal.xpm, Action 'Exec exec rxvt -bg black -fg white -sr -T RXVT\ 通用中文终端')
*BarButtons: (1x2, Title Internet, Icon 48x48-gnome/www.xpm, Action 'Exec exec MozillaFirebird',
#Action(Mouse 2) 'Exec exec /home/Soft/MozillaFirebird/MozillaFirebird',\
#Action(Mouse 3) 'Exec exec Exec exec neat ')
*BarButtons: (1x2, Title Emacs, Icon 48x48-gnome/gnu.xpm, ####Action 'Exec exec xemacs')
*BarButtons: (1x2, Title Gaim, Icon 48x48-gnome/modules.xpm, Action 'Exec exec gaim', \
Action(Mouse 2) 'Exec exec ee', \
Action(Mouse 3) 'Exec exec gqview')
*BarButtons: (1x2, Title XmmS, Icon 48x48-gnome/multimedia.xpm, Action 'Exec exec xmms', \
Action(Mouse 2) 'Exec exec xdvi', \
Action(Mouse 3) 'Exec exec xpdf')
*BarButtons: (1x2, Title GIMP, Icon 48x48-gnome/gimp.xpm, Action 'Exec exec gimp', \
Action(Mouse 2) 'Exec exec xpaint', \
Action(Mouse 3) 'Exec exec kiconedit')
#*BarButtons: (3x2, Swallow "FvwmTaskBar" '#FvwmTaskBar #')
#*BarButtons: (3x2, Title FvwmTaskBar '#FvwmTaskBar #')
*BarButtons: (1x2, Padding 0 0, Container(Padding 0 0, Frame 1, Columns 3))
*BarButtons: (Icon hicolor/16x16/apps/acroread.png, Action 'Exec exec xpdf ')
*BarButtons: (Icon 16x16-gnome/science.xpm, Action 'Exec exec gqview ')
*BarButtons: (Icon hicolor/16x16/apps/ksnake.png, Action 'Exec exec ktron')
*BarButtons: (Icon 16x16-gnome/cd-player.xpm , Action 'Exec exec rxvt +sb -bg black -fg white -T CD\ 播放程序 -e cdp')
*BarButtons: (Icon ikons/16x16/filesystems/folder_html.png, Action 'Exec exec rxvt +sb -bg black -fg white -T MUTT\ 电子邮件 -e mutt ')
*BarButtons: (Icon 16x16-kde/editor.xpm, Action 'Exec exec gnp')
*BarButtons: (Icon 16x16-gnome/window-destroy.xpm, Action Destroy)
*BarButtons: (Icon 16x16-gnome/window-move.xpm, Action Move)
*BarButtons: (Icon hicolor/16x16/apps/access.png, Action Module FvwmIdent)
*BarButtons: (End)
*BarButtons: (1x2, Padding 0 0, Container(Padding 0 0, Frame 1, Columns 3))
*BarButtons: (Icon ikons/16x16/apps/wcspeedtouch.png, Action 'Exec exec rxvt +sb -bg black -fg white -T Mp3blaster -e mp3blaster')
*BarButtons: (Icon ikons/16x16/devices/mo_unmount.png, Action ###)
*BarButtons: (Icon ikons/16x16/devices/cdrom_unmount.png, Action ###)
*BarButtons: (Icon 16x16-gnome/calculator.xpm, Action 'Exec exec xcalc ')
*BarButtons: (Icon 16x16-kde/image-processor.xpm, Action 'Exec exec xpaint')
*BarButtons: (Icon 16x16-general/video.xpm, Action 'Exec exec ksnapshot')
*BarButtons: (Icon hicolor/16x16/actions/misc.png, Action 'Exec exec gnp $HOME/.fvwm/.fvwm2rc')
*BarButtons: (Icon hicolor/16x16/actions/exit.png, Action Restart fvwm2)
*BarButtons: (Icon hicolor/16x16/actions/fileclose.png, Action Quit)
*BarButtons: (End)
*BarButtons: (1x2, Title "系统状况", Swallow "xload" "Exec exec nice -16 \
xload -nolabel -update 4 -bg grey90 -hl grey70 \
-geometry -1500-1500")
*BarButtons: (1x2, Title "系统时钟", Swallow "xclock" "Exec \
exec xclock -padding 0 -bg grey90 -geometry -1500-1500")
#增加模块
#增加按钮面板模块
AddToFunc StartFunction I FvwmButtons BarButtons
AddToFunc Move-or-Raise "I" Raise
+ "M" Move
+ "D" Lower
AddToFunc Move-or-Raise2 "M" Raise
+ "M" Move
+ "D" Lower
AddToFunc Maximize-Func "M" Maximize 0 100
+ "C" Maximize 0 80
+ "D" Maximize 100 100
AddToFunc Move-or-Iconify "I" Raise
+ "M" Move
+ "D" Iconify
AddToFunc Resize-or-Raise "I" Raise
+ "M" Resize
+ "D" Lower
AddToFunc Resize-or-Raise2 "M" Raise
+ "M" Resize
+ "D" Lower
AddToFunc PrintFunction "I" Raise
+ "I" Exec xdpr -id $w
AddToFunc PrintReverseFunction "I" Raise
+ "I" Exec xdpr 1/2 -h -rv -id $w
AddToFunc Iconify-and-Raise "I" Iconify
+ "I" Raise
#设置墙纸
Exec exec xloadimage -onroot -fullscreen /home/WallPaper/Penguingang.jpg |
|