|
发表于 2004-1-2 14:10:31
|
显示全部楼层
你可能是没有声明模块,象这样就可以了:
AddToFunc StartFunction I FvwmButtons FvwmButtons
我下面贴出只有Buttons模块的配置,我以前配置的可能对你有点帮助。
# start my fav 
imagePath /usr/share/icons/wm-icons
# title
TitleStyle Height 18
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
EdgeScroll 100 100
DesktopSize 2x2
###################################### menu
#AddToMenu workmenu@my_sidepic.xpm@^black^ "Main menu" Title
AddToMenu RootMenu "Fvwm Root Menu%16x16-gnome/linux.xpm" Title
#+ "Xterm 控制台%16x16-gnome/terminal.xpm" Exec exec xterm -bg black -fg white
+ "Rxvt Terminal%16x16-kde/terminal.xpm" Exec exec rxvt +sr -T RXVT\ Terminal -scrollstyle next -bg black -fg White
#+ "Rxvt Terminal%16x16-kde/terminal.xpm" Exec exec rxvt +sr -T RXVT\ Terminal -scrollColor black -scrollstyle next -pixmap ~/.fvwm/Backgroud/backgroundA0.xpm
#+ "Konqueror 浏览器%16x16-gnome/news.xpm" Exec exec konqueror
+ "Emacs Editor%16x16-gnome/gnu.xpm" Exec exec emacs
#+ "Opera Brower %16x16-gnome/amusement.xpm" Exec exec opera
#+ "Konqueror%16x16-gnome/news.xpm" Exec exec konqueror
#+ "" Nop
#+ "电子邮件%16x16-gnome/mail.xpm" Exec exec mutt -y
+ "Gaim Chat%16x16-gnome/modules.xpm" Exec exec gaim
#+ "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
+ "Ghost view%16x16-gnome/ghostview.xpm" Exec exec gv
+ "Gqview%16x16-gnome/science.xpm" Exec exec gqview
+ "Gvim Editor%16x16-gnome/word-processor.xpm" Exec exec gvim
+ "MozillaFirebird %16x16-gnome/www.xpm" Exec exec MozillaFirebird
#+ "Gthumb%16x16-gnome/colors.xpm" Exec exec gthumb
+ "The Gimp%16x16-gnome/gimp.xpm" Exec exec gimp
#+ "GtkSee%16x16-gnome/colors.xpm" Exec exec gtksee
+ "Xpdf Viewer%16x16-gnome/xv.xpm" Exec exec xpdf
+ "Xmms Player%16x16-gnome/music.xpm" Exec exec xmms
#+ "Electric Eyes 电子眼%16x16-kde/science.xpm" Exec exec ee
#+ "Ksnapshot 抓图软件%menu/video.xpm" Exec exec ksnapshot
#+ "X 基本抓图程序%mini.camera.xpm%" FvwmForm FvwmForm-Capture
#+ "KDE音量控制器%16x16-gnome/sound.xpm" Exec exec kmix
#+ "Gnome 音量控制器%16x16-gnome/sound.xpm" Exec exec gmix
#+ "Xing 影像播放器%16x16-gnome/music.xpm" Exec exec xine
#+ "VideoLanClient%16x16-gnome/display.xpm" Exec exec vlc
#+ "Xine 播放器%16x16-gnome/display.xpm" Exec exec xine
#+ "Nautilus 浏览器%16x16-gnome/www.xpm" Exec exec run-nautilus
#+ "Mozilla 浏览器%16x16-kde/www.xpm" Exec exec mozilla
#+ "Netscape 浏览器%16x16-gnome/www.xpm" Exec exec netscape
#+ "Download For X%16x16-gnome/www.xpm" Exec exec nt
#+ "Opera Brower %16x16-gnome/amusement.xpm" Exec exec opera
#+ "电子邮件 Sylpheed %16x16-gnome/mail.xpm" Exec exec sylpheed
#+ "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
#+ "系统监视器 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
+ "" Nop
#+ "Restart Fvwm%16x16-gnome/refresh.xpm" Restart fvwm2
+ "Exit The Fvwm %16x16-gnome/choice-yes.xpm" Quit
#+ "" Nop
#+ "重新启动计算机%16x16-kde/refresh.xpm" Exec exec init 6
#+ "关闭计算机%16x16-kde/choice-yes.xpm" Exec exec init 0
#增加窗口控制菜单
AddToMenu Window-Ops
+ "Move%16x16-gnome/window-move.xpm" Move
+ "Resize%16x16-gnome/window-resize.xpm" Resize
+ "(Un)Iconify%16x16-gnome/window-iconify.xpm" Iconify
#+ "(Un)Stick%16x16-kde/window-stick.xpm" Stick
+ "(Un)Maximize%16x16-gnome/windows.xpm" Maximize
+ "" Nop
+ "Close%16x16-gnome/window-close.xpm" Close
#+ "Delete%16x16-kde/window-delete.xpm" Delete
+ "Destroy%16x16-gnome/window-destroy.xpm" Destroy
########################################### moudle
*FvwmButtonsFore #ffffff
*FvwmButtonsBack #527299
*FvwmButtonsFrame 1
*FvwmButtonsFont "-adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*,-kaiyuan-tangti-bold-r-normal-*-12-*-*-*-*-*-*-*"
#*FvwmButtonsGeometry 264x66-6-526
*FvwmButtonsGeometry 264x66-8-8
*FvwmButtonsRows 1
####### The BUTTONS
#*FvwmButtons (Swallow "wmCalClock" "Exec exec wmCalClock")
*FvwmButtons(Swallow "FvwmPager", Frame 1)
*FvwmButtons(1x1,Title Terminal, Icon 48x48-gnome/terminal.xpm, Action 'Exec exec rxvt -bg black -fg Yellow +sr -T Rxvt\ Terminal -scrollstyle next ')
############################################################################
#*FvwmButtons: (2x1, Padding 0 0, Container(Padding 0 0, Frame 1, Columns 3))
#*FvwmButtons: (Icon 16x16-gnome/modules.xpm, Action 'Exec exec gaim ')
#*FvwmButtons: (Icon 16x16-gnome/science.xpm, Action 'Exec exec gqview ')
#*FvwmButtons: (Icon 16x16-gnome/multimedia.xpm, Action 'Exec exec xmms')
#*FvwmButtons: (Icon 16x16-gnome/www.xpm, Action 'Exec exec rxvt +sb -bg black -fg white -T Mutt\ Mail -e mutt')
#*FvwmButtons: (Icon 16x16-gnome/editor.xpm,Action 'Exec exec gvim' )
#*FvwmButtons: (Icon 16x16-gnome/amusement.xpm, Action 'Exec exec realplay')
#*FvwmButtons: (Icon 16x16-gnome/sound.xpm, Action 'Exec exec rxvt +sb -bg black -fg white -T Mp3blaster -e mp3blaster')
#*FvwmButtons: (Icon 16x16-gnome/disk-cd.xpm, Action 'Exec exec rxvt +sb -bg black -fg white -e mount -o iocharset=gb2312 /dev/cdrom /mnt/cdrom ')
#*FvwmButtons: (Icon 16x16-gnome/disk-floppy.xpm, Action 'Exec exec rxvt +sb -bg black -fg white -e umount /mnt/cdrom ')
#*FvwmButtons: (End)
*FvwmButtons: (Swallow "cputnik" "Exec exec cputnik &")
#*FvwmButtons: (2x1, Swallow "wmppp" "Exec exec wmppp &")
#*FvwmButtons: (Swallow "WMMemFree" "Exec exec wmmemfree &")
*FvwmButtons: (Swallow "wmCalClock" "Exec exec wmCalClock &")
###########################################################################
#function
###################################################
AddToFunc StartFunction I FvwmButtons FvwmButtons
AddToFunc StartFunction I FvwmPager
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
+ "I" Iconify
AddToFunc Resize-or-Raise "I" Raise
+ "M" Resize
+ "I" Lower
AddToFunc FuncFvwmMoveOrIconify "I" Raise
+ "M" Move
+ "D" Iconify
########################################### style
# Configure The Mouse Style
CursorStyle ROOT left_ptr
CursorStyle TITLE left_ptr
CursorStyle DEFAULT left_ptr
CursorStyle SYS left_ptr
CursorStyle MENU left_ptr
Style "*" MWMFunctions, MWMDecor, HintOverride
Style "*" MWMBorder
Style "*" DecorateTransient, NoPPosition
Style "*" Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*,-kaiyuan-TangTi-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
Style "*" IconFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*, -kaiyuan-TangTi-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
Style "*" IconBox +50+50
Style "*" BorderWidth 1
Style "*" HandleWidth 3
Style "*" HilightFore #ffffff
Style "*" HilightBack #527299
Style "*" Color #000000/#527299
# Configure The Menu Style
MenuStyle * Font "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*, -kaiyuan-TangTi-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
MenuStyle * Foreground #ffffff
MenuStyle * Background #527299
MenuStyle * MenuFace Dgradient 50 #527299 #2e5877
#MenuStyle * MenuFace TiledPixmap /home/lufj/.fvwm/metal/menu.xpm
*FvwmPagerBack #527299
*FvwmPagerHilight #ffffff
*FvwmPagerFont none
#*FvwmPagerFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*,-kaiyuan-tangti-medium-r-normal-*-12-*-*-*-*-*-*-*"
*FvwmPagerBalloons All
*FvwmPagerLabel 0 普通
*FvwmPagerLabel 1 网络
*FvwmPagerLabel 2 工作
*FvwmPagerBalloonBack #527299
*FvwmPagerBalloonFore #ffffff
*FvwmPagerBalloonFont "-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*,-kaiyuan-tangti-medium-r-normal-*-12-*-*-*-*-*-*-*"
*FvwmPagerBalloonFont "-misc-quillscript-medium-r-normal-*-12-*-*-*-*-*-*-*, -kaiyuan-TangTi-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
#*FvwmPagerBalloonYOffset +2
#*FvwmPagerBalloonBorderWidth 1
Style "FvwmButtons" ClickToFocus,StaysOnBottom,NoHandles,BorderWidth 0
Style "Fvwm*" Sticky,WindowListSkip,CirculateSkip,NoHandles,NoTitle,StayOnBottom
Style "AppsPanel" NoTitle, NoHandles, BorderWidth 0
Style "ControlPanel" NoTitle, NoHandles, BorderWidth 0
Style "The GIMP" Icon 48x48-gnome/gimp.xpm,TitleAtLeft, NoHandles
Style "BarButtons" NoTitle, NoHandles, Sticky, WindowListSkip
Style "RXVT*" Icon 48x48-gnome/terminal.xpm
Style "Rxvt*" Icon 48x48-gnome/terminal.xpm
Style "emacs*" Icon 48x48-gnome/gnu.xpm
Style "XMMS*" Icon 48x48-gnome/multimedia.xpm
Style "GQview*" Icon 48x48-gnome/science.xpm
Style "Mozilla*" Icon 48x48-gnome/www.xpm
Style "Xpdf*" Icon 48x48-gnome/ghostview.xpm
########################################### keys & mounes
#Configure The Mouse String
Mouse 0 1 A Menu Window-Ops Close
#Mouse 0 3 A Stick
#Mouse 0 6 A WindowShade
Mouse 0 6 A Iconify
Mouse 0 4 A Maximize
Mouse 0 2 A Close
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
Mouse 1 I A FuncFvwmMoveOrIconify
#Configurt The Keyboard String Under The Window
Key F4 WTSFI M Close
Key F4 WTSFI M2 Close
Key F3 WTSFI M Maximize
Key F3 WTSFI M2 Mazimize
Key F2 WTSFI M Iconify
Key F2 WTSFI M2 Iconify
#Configure The Keyboard String
Key F1 A M Exec exec rxvt +sr -T RXVT\ Terminal -scrollstyle next -bg Black -fg White
#Key F1 A M Exec exec rxvt +sr -T RXVT\ Terminal -scrollColor black -scrollstyle next -pixmap ~/.fvwm/Backgroud/backgroundA0.xpm
Key F2 R M Exec exec FvwmConsole
Key F3 R M Exec exec
Key F4 R M Exec exec
Key F5 R M Exec exec
Key F6 R M Exec exec
Key F7 R M Exec exec
Key F8 R M Exec exec
Key F8 R M Exec exec rxvt +sb -bg black -fg white -T PPP... -e wvdial 96163
Key F9 R M Exec exec
Key F10 R M FvwmConsole
#Key F11 R M Restart fvwm
Key F12 R M Quit
#Key F12 A A Exec exec rxvt +sb -bg black -fg white -T FvwmConfigure -e vi $HOME/.fvwm/.fvwm2rc
Key R R M Exec exec rxvt -bg black -fg white +sr -T RXVT\ Terminal -scrollstyle next -pixmap ~/.fvwm/Backgroud/ckgroundA0.xpm
#Key A R C Exec exec
Key A R M Exec exec gaim
Key E R M Exec exec emacs
Key F R M Exec exec gftp
Key G R M Exec exec gimp
Key I R M Exec exec gvim
Key M R M Exec exec MozillaFirebird
Key P R M Exec exec xpdf
Key Q R M Exec exec gqview
Key U R M Exec exec rxvt +sb -bg black -fg white -T Mutt\ Mail -e mutt
Key V R M Exec exec gv
Key X R M Exec exec xmms
Exec exec xloadimage -onroot -fullscreen ~/Wallpaper/0315.jpg &
#Exec exec xloadimage -onroot -fullscreen ~/Wallpaper/0340.jpg & |
|