LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2634|回复: 12

求教fvwm 的问题!

[复制链接]
发表于 2004-1-1 20:24:10 | 显示全部楼层 |阅读模式
我今天安装了fvwm,仔细阅读了AMD-K6的文章和王垠的文章,依样花葫芦,可是我设定的BarButtons就是出现不了!我是全盘照搬amd-k6兄弟的rc,欧又输入fvwmConsole里面是王垠的一条命令:
Key F3 A A Module FvwmConsole -terminal rxvt -geometry 45x5-0+0 \
-bg gold -fg midnightblue \
-fn "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-*-*"
可是居然啥都没有出现!我ps-ax看了一下!进程是有的!我糊涂了!那位高手兄弟指点一下!
 楼主| 发表于 2004-1-2 09:55:21 | 显示全部楼层
帮忙啊!fvwm高手!
发表于 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 &
 楼主| 发表于 2004-1-2 18:14:48 | 显示全部楼层
仔细研究!呵呵!是不是你使用任何一个东西,都得先声明一下!
发表于 2004-1-2 18:28:20 | 显示全部楼层
最初由 yugilq 发表
仔细研究!呵呵!是不是你使用任何一个东西,都得先声明一下!

兄弟见笑了,问题往往就处在我们最不在意的地方,所以我配置的文件经常很大(以防万一,呵呵)还有什么错误的地方请兄弟多多的指正,谢谢
 楼主| 发表于 2004-1-2 18:35:59 | 显示全部楼层
ft不好意思!误会了!
我说的是那个BarButtons和其他的比如按键,任务栏一类的是不是得声明一下!
发表于 2004-1-2 22:24:21 | 显示全部楼层
你说的是载入模块吧?

我的习惯是先声明模块以后,然后再定义Style
 楼主| 发表于 2004-1-2 22:33:31 | 显示全部楼层
好的!我明白了!我去试试!呵呵!我觉得先声明比较好!
发表于 2004-1-5 17:24:31 | 显示全部楼层
对了K6,FVWM下可以再跟窗口下建快捷方式吗?就像gnome那样的在桌面上放置图标:p
发表于 2004-1-5 19:29:27 | 显示全部楼层
最初由 ge_johnny 发表
对了K6,FVWM下可以再跟窗口下建快捷方式吗?就像gnome那样的在桌面上放置图标:p


至少我没有实现,但是我估计可以调用外部程序实现。

我想到了,用一个透明的FvwmBar然后。。。。呵呵,我没有试过 :)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表