LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: iplogic

有谁在MDK91下成功安装FVWM-2.5.6?

[复制链接]
发表于 2003-5-6 13:27:08 | 显示全部楼层
MDK9.1没有带FVWM2.5.6,自己装后设置的。
可以参考我的:
http://www.linuxeden.com/edu/doctext.php?docid=2941
我的两个配置文件如下:

.fvwm2rc:

magePath +:/usr/share/icons:/usr/share/pixmaps:/usr/share/icons/hicolor/48x48/apps:/usr/local/share/fvwm/iconsHOME/.fvwm/icons:/usr/share/icons/mini:/usr/share/icons/kdeclassic/32x32/apps:/usr/share/icons/kdeclassic/32x32/actions
EdgeResistance 250 100
EdgeScroll 100 100
ColormapFocus FollowsMouse
ClickTime 750
DeskTopSize 2x2

# default Styles:
Style * BorderWidth 5, HandleWidth 5, DepressableBorder
Style * Icon kcmkwm.png
Style * MWMFunctions, MWMDecor, MWMButtons, HintOverride
Style * DecorateTransient, NoPPosition
Style * SloppyFocus, MouseFocusClickRaises
Style * SmartPlacement
Style * Font  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
Style * IconFont  -misc-SimSun-medium-r-*-*-12-*-*-*-*-*-*-*
Style * HilightFore white, HilightBack SlateBlue
Style * IconBox 360x200+1-1, IconFill left bottom

Style * WindowShadeShrinks, WindowShadeSteps 100

TitleStyle height 22
AddTitleStyle ActiveDown VGradient 8 gold black

MenuStyle * MWM
MenuStyle * PopupDelayed, PopupDelay 160, Animation, TitleWarp
MenuStyle * Foreground Black, Background #c0c0c0
MenuStyle * ActiveFore Blue
MenuStyle * Font  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
MenuStyle * MenuFace Black #c0c0c0
#MenuStyle * MenuFace TiledPixmap weird10dark.xpm

ButtonStyle All -- UseTitleStyle
ButtonStyle All ActiveDown VGradient 8 palevioletred black

ButtonStyle 1 Vector 7 \
  65x15@0 25x55@1 45x55@0 35x85@1 75x45@0 55x45@1 65x15@0
ButtonStyle 6 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1

CursorStyle ROOT 58
CursorStyle TITLE 62
CursorStyle STROKE 86


# Styles for various Fvwm modules:
Style "Fvwm*"       Layer 5,  NoTitle,  Sticky, WindowListSkip
Style "Fvwm*"       BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style "FvwmPager"   StaysOnTop
Style "FvwmBanner"  StaysOnTop
Style "FvwmButtons" Icon toolbox.xpm, NeverFocus
Style "FvwmConsole" SloppyFocus

# Styles for your common terminal emulator programs:
Style "xterm"       Icon /usr/share/icons/Bluecurve/48x48/apps/gnome-term-tiger.png, SloppyFocus
Style "rxvt"        NoTitle, Icon /usr/share/icons/Bluecurve/48x48/apps/gnome-term-linux.png
Style "gv"            ClickToFocus
Style "mozilla"            RandomPlacement, SloppyFocus
Style "NoResource" NoTitle BorderWidth 0, HandleWidth 0
Style "xdaliclock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, Layer 6
Style "MPlayer" NoTitle, Layer 7
Style "RealPlayer" Layer 7
Style "fcitx"            Layer 7, NoTitle, HandleWidth 1, Sticky, WindowListSkip
Style "emacs"            Icon gnu-animal.xpm
Style "gv"            Icon gv.xpm
Style "Xdvi help"        NoTitle
Style "AcroRead"        VariablePosition, VariableUSPosition
Style * RaiseTransient LowerTransient StackTransientParent
#Style * NoActiveIconOverride

# Styles for various common programs:
Style "xbiff"       NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "kcalc"       Icon kcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus
Style "xmh"         Icon mail1.xpm, NoIconTitle,StickyIcon
Style "xmh"            RandomPlacement, NoButton 2
Style "xman"            Icon xman.xpm, RandomPlacement, ClickToFocus
Style "xmag"            RandomPlacement, ClickToFocus
Style "FvwmButtons"        BorderWidth 0,NoHandles

Read fvwm.strokes


# some simple default key bindings:
Key Tab A M -
Key Next         A       SCM     Next
  • Focus
    Key Prior        A       SCM     Prev
  • Focus

    Key F1 A M GotoDesk -1
    Key F2 A M GotoDesk 1

    Mouse 3 A M MoveToDesk 1
    Mouse 1 A M MoveToDesk -1


    Key F3 A A Module FvwmConsole -terminal rxvt -geometry 45x5-0+0 -bg gold -fg midnightblue -fn "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-*-*"
    Key F5 A C Exec exec import -window root shot.png
    Key F11 A C Exec xscreensaver-command -lock

    # some simple default mouse bindings:
    Mouse 1        R           A       Menu RootMenu Nop
    Mouse 2        R            A              Menu ProgramsMenu Nop

    Mouse 3 WI        SC        CloseOrNot
    Mouse 3        A           MC      Menu RootMenu Nop
    Mouse 3 A        S        Move

    DestroyFunc CloseOrNot
    AddToFunc CloseOrNot
    + C Silent Close
    + M Nop

    #   for the title bar buttons:
    Mouse 1        4            A             Iconify
    Mouse 1 6        A        Close
    Mouse 3        2            A             Maximize-Func2

    #   for other parts of the window/borders/icons:
    Mouse 1        F        A        Resize-or-Raise
    Mouse 1        TS        A        Move-or-Raise
    Mouse 1        I        A        Move-or-Iconify

    ######################## Initialization Functions ############################
    DestroyFunc StartFunction
    AddToFunc StartFunction
    + I Module FvwmButtons MainPanel
    + I Module FvwmAuto 500 Raise Nop
    + I Module FvwmAnimate
    + I Module FvwmTaskBar
    # + I Exec exec xloadimage -onroot -fullscreen ~/pic/cat_20.jpg
    # + I Exec exec ksim  
    DestroyFunc InitFunction
    AddToFunc InitFunction
    # + I Exec exec xscreensaver -no-splash

    DestroyFunc ExitFunction
    AddToFunc ExitFunction
    + I All (xdaliclock) Close
    # + I All (ksim) Close
    # + I All (xscreensaver) Close
    + I All (fcitx) Close

    ######################## Menus ###################

    DestroyMenu RootMenu
    AddToMenu RootMenu@side.fvwm2.xpm@^black^
    +                        "我的电脑%home-mdk.png%"        Exec exec konqueror
    +                        "&G终端%gnome-terminal.png%"        Exec exec gnome-terminal
    +                        "&K终端%terminals_section.png%"        Exec exec konsole
    +                        ""                Nop
    +                       "程序%applications_section.png%"      Popup ProgramsMenu
    +                       "组件%accessibility_section.png%"     Popup Utilities
    +                       "办公%office_section.png%"     Popup Work
    +                       "网络%networking_www_section.png%"     Popup NetWork
    +                       "设置%configuration_section.png%"     Popup Setting
    +                        ""                Nop
    +                       "刷新屏幕%xrefresh.xpm%"   Refresh
    +                       "重设屏幕%default_section.png%" Recapture
    +                        ""                Nop
    +                       "锁定%lock.png%"         Exec exec xscreensaver-command -lock
    +                        "退出 Fvwm%exit.png%"        Popup Quit-Verify

    DestroyMenu ProgramsMenu
    AddToMenu "rogramsMenu" "程序%applications_section.png%" Title
    +                        "xine%xine.png%"  Exec exec xine
    +                        "G编辑器%gedit.png%"  Exec exec gedit
    +                        "K编辑器%editors_section.png%"  Exec exec kate
    +                        "文件管理器(管理员)%other_archiving.png%"  Exec exec kdesu konqueror
    +                        "gv%gv.png%"  Exec exec gv
    +                        "xpdf%xpdf.png%"  Exec exec xpdf
    +                        "xmms%xmms.xpm%" Exec exec xmms
    +                        "RealPlayer%realplayer.png%" Exec exec realplay
    +                        "媒体播放器%gmplayer.png%" Exec exec gmplayer
    +                        "金山词霸2002%gdict.png%" Exec exec wine /mnt/win_e/Kingsoft/XDict/xdict.exe
    +                        "星际译王%kdict.png%" Exec exec stardict
    +                        "截图%ksnapshot.png%" Exec exec ksnapshot
    +                        "绘图%kpaint.png%" Exec exec kpaint
    +                        "看图%kview.png%" Exec exec kview

    DestroyMenu Utilities
    AddToMenu Utilities     "组件%accessibility_section.png%" Title
    +                        "资源显示%procman.png%"                Exec exec ksim
    +                        "计算器%xcalc.png%"        Exec exec kcalc
    +                        "Xman%help_index.png%"                Exec exec xman
    +                        "Xmag%xmag.png%"                Exec exec xmag
    +                        ""                Nop
    +                       "恢复默认%kbackgammon_engine.png%" Exec xrdb -load $HOME/.Xdefaults
    +                          "保存屏幕%ksnapshot.png%"         Exec import -window root shot.png

    DestroyMenu Work
    AddToMenu Work     "办公%office_section.png%" Title
    +                        "电子表格%spreadsheet_section.png%"        Exec exec /usr/lib/openoffice/program/scalc
    +                        "演示文稿%presentation_section.png%"        Exec exec /usr/lib/openoffice/program/simpress
    +                        "书写文档%text_tools_section.png%"        Exec exec /usr/lib/openoffice/program/swriter
    +                        "公式编辑%office_accessories_section.png%"        Exec exec /usr/lib/openoffice/program/smath
    +                        "绘图程序%graphs_section.png%"        Exec exec /usr/lib/openoffice/program/sdraw

    DestroyMenu NetWork
    AddToMenu NetWork     "网络%networking_www_section.png%" Title
    +                        "Opera%opera.xpm" Exec exec opera
    +                        "Mozilla%mozilla.png%" Exec exec mozilla
    +                        "K浏览器%konqueror.png%" Exec exec konqueror
    +                        "网上邻居%LinNeighborhood.xpm%"        Exec exec  LinNeighborhood
    +                        "Gaim%qq.xpm%"        Exec exec gaim
    +                        "Gftp%gftp.png%"        Exec exec gftp
    +                        "网络快车%nt.png%"        Exec exec nt

    DestroyMenu Setting
    AddToMenu Setting     "设置%configuration_section.png%" Title
    +                        "系统设置%boot_init_section.png%" Exec exec gedit ~/.fvwm/.fvwm2rc
    +                        "控制中心%drakconf.png%" Exec exec kdesu drakconf
    +                        "打印机%printing_section.png%" Exec exec kprinter

    DestroyMenu Quit-Verify
    AddToMenu Quit-Verify         "退出吗?%exit.png%" Title       
    +                              "退出!%exit.xpm%"  Quit
    +                       "重启动%reload.png%"  Restart fvwm2
    +                              "不退出%undo.png%"    Nop

    ######################## Sample Functions ##########################
    DestroyFunc Move-or-Raise
    AddToFunc Move-or-Raise                I Raise
    +                                "M" Move
    +                                  "D" WindowShade
    DestroyFunc Move-or-Raise2
    AddToFunc Move-or-Raise2        "M" Raise
    +                                "M" Move
    +                                  "D" Lower
    DestroyFunc Maximize-Func               
    AddToFunc Maximize-Func                "M" Maximize         0 100
    +                                "C" Maximize         0 80
    +                                "D" Maximize         100 98
    DestroyFunc Maximize-Func2
    AddToFunc Maximize-Func2        "M" Maximize         100 0
    +                                "C" Maximize         80 0
    +                                "D" Maximize         100 98
    DestroyFunc Move-or-Iconify
    AddToFunc Move-or-Iconify        I Raise
    +                                "M" Move
    +                                "D" Iconify
    DestroyFunc Resize-or-Raise       
    AddToFunc Resize-or-Raise        I Raise
    +                                "M" Resize
    +                                "D" Lower
    DestroyFunc Resize-or-Raise2
    AddToFunc Resize-or-Raise2        "M" Raise
    +                                "M" Resize
    +                                "D" Lower
    DestroyFunc Iconify-and-Raise
    AddToFunc Iconify-and-Raise     I Iconify
    +                               I Raise

    ################## FvwmButtons button-bar ################################
    *FvwmButtonsBack bisque3
    *MainPanel: Geometry 80x18+40+4
    *MainPanel: Back #c0c0c0
    *MainPanel: (Panel(down, indicator, delay 0, steps 1) \
                    PagerPanel "Module FvwmButtons PagerPanel")
    *MainPanel: Font  -misc-SimSun-medium-r-*-*-16-*-*-*-*-*-*-*
    *PagerPanel: Geometry 80x352
    *PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 3")
    *PagerPanel: Font  -misc-SimSun-medium-r-*-*-16-*-*-*-*-*-*-*

    ########################## Icon Manager ####################################
    # this FvwmIconMan setup is for swallowing in above button bar example
    *FvwmIconMan*numManagers 1
    *FvwmIconMan*Resolution  page
    *FvwmIconMan*background  bisque3
    *FvwmIconMan*foreground  black
    *FvwmIconMan*font        -misc-SimSun-medium-r-*-*-16-*-*-*-*-*-gb2312.1980-0
    *FvwmIconMan*format      "%t"
    *FvwmIconMan*action      Mouse   1 N sendcommand Focus, sendcommand "Iconify"
    *FvwmIconMan*action      Mouse   2 N sendcommand "Iconify 1"
    *FvwmIconMan*action      Mouse   3 N sendcommand "FvwmIdent"
    *FvwmIconMan*followfocus true
    *FvwmIconMan*sort        none
    *FvwmIconMan*plainbutton          up black bisque3
    *FvwmIconMan*selectbutton         down black bisque3
    *FvwmIconMan*focusbutton          up yellow firebrick
    *FvwmIconMan*focusandselectButton down yellow firebrick
    *FvwmIconMan*dontshow icon=Untitled
    #*FvwmIconMan*drawicons true
    *FvwmIconMan*buttongeometry  300x0
    *FvwmIconMan*managergeometry 1x5

    ########################## Window-Identifier ###############################
    # Just choose colors and a fonts
    *FvwmIdentBack MidnightBlue
    *FvwmIdentFore Yellow
    *FvwmIdentFont  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*

    ########################### Pager #########################################
    *FvwmPager: Rows 4
    *FvwmPager: Columns 1
    *FvwmPagerBack #908090
    *FvwmPagerFore #484048
    *FvwmPager:Font  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmPagerHilight #cab3ca
    *FvwmPagerLabel 0 Main
    *FvwmPagerLabel 1 Internet
    *FvwmPagerLabel 2 Program
    *FvwmPagerLabel 3 Amusement
    *FvwmPager:SmallFont  -misc-SimSun-medium-r-*-*-12-*-*-*-*-*-*-*
    *FvwmPagerBalloons            All
    *FvwmPagerBalloonBack         Yellow
    *FvwmPagerBalloonFore         Black
    *FvwmPager:BalloonFont         -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmPagerBalloonYOffset      +2
    *FvwmPagerBalloonBorderWidth  1
    *FvwmPagerBalloonBorderColor  Black

    ##########################FvwmWinList##################################
    *FvwmWinListBack #908090
    *FvwmWinListFore Black
    *FvwmWinListFont  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmWinListAction Click1 Iconify -1,Focus
    *FvwmWinListAction Click2 Iconify
    *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
    *FvwmWinListUseSkipList
    *FvwmWinListGeometry +0-1


    #for FvwmBacker
    *FvwmBackerDesk 0 -solid steelblue
    *FvwmBackerDesk 1 -solid midnightblue

    #for FvwmScroll
    *FvwmScrollBack grey40
    *FvwmScrollFore green

    *FvwmAnimate: Delay 25
    *FvwmAnimate: Effect Random
    *FvwmAnimate: Width 3

    Style FvwmTaskBar HandleWidth 0, BorderWidth 0
    *FvwmTaskBar: UseSkipList
    *FvwmTaskBar: AutoStick
    *FvwmTaskBar: PageOnly
    #*FvwmTaskBar: Action Click1 DeiconifyRaiseAndFocus
    *FvwmTaskBar: Action Click2 Iconify On
    *FvwmTaskBar: Action Click3 Lower
    #*FvwmTaskBar: Action Click3 FvwmIdent
    #*FvwmTaskBar: MailCommand Exec exec rxvt -e mutt
    *FvwmTaskBar: 3DFvwm
    *FvwmTaskBar: StartName 开始
    *FvwmTaskBar: StartMenu RootMenu
    *FvwmTaskBar: StartIcon start.png
    #*FvwmTaskBar: StartIcon mini.penguin.xpm
    *FvwmTaskBar: Font  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
    #*FvwmTaskBar: Font  "xftuxi Mono"
    *FvwmTaskBar: SelFont  -misc-SimSun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmTaskBar: ShowTips
    *FvwmTaskBar: ClockFormat %H:%M
    *FvwmTaskBar: WindowButtonsRightMargin 20

    *FvwmTaskBar: Back #c0c0c0
    *FvwmTaskBar: Fore Black
    *FvwmTaskBar: FocusFore blue
    *FvwmTaskBar: IconBack #c0c0c0
    *FvwmTaskBar: IconFore Black

    #*FvwmTaskBar: Button Title hello, Icon mini.x.xpm, Action (Mouse 1) Module FvwmConsole
    #*FvwmTaskBar: DateFormat "%A, %B %d, %Y"
    #*FvwmTaskBar: WindowButtonsLeftMargin 20
    #*FvwmTaskBar: HighlightFocus
    #*FvwmTaskBar: AutoHide 6
    ---------------------------------------------------------------------------
    fvwm.strokes


    #strokes
    #window list without drag
    Stroke 0 0 R N WindowList

    #button 3 guesture with Ctrl starts programs in any context
    #"r" like guestures starts rxvt
    Stroke N5456 0 A C Exec exec xkill
    Stroke N65456 0 A C Exec exec xkill
    Stroke N7414789 0 A C Exec exec rxvt
    Stroke N7414759 0 A C Exec exec rxvt
    Stroke N74147589 0 A C Exec exec rxvt
    Stroke N7414756 0 A C Exec exec rxvt
    Stroke N74156         0 A C Exec exec rxvt
    Stroke N74159         0 A C Exec exec rxvt
    Stroke N7536951 0 A C Exec exec xterm
    Stroke N9514753 0 A C Exec exec xterm
    Stroke N7412369 0 A C Exec exec gvim
    Stroke N1478963 0 A C Exec exec mozilla
    Stroke N7896321 0 A C Exec exec stardict
    Stroke N9874123 0 A C Exec exec drscheme
    Stroke N258 0 A C Exec exec vmware

    #grow horizontal and vertically
    Stroke N258 0 TSF2 N Maximize True 0 growup
    Stroke N852 0 TSF2 N Maximize True 0 growdown
    Stroke N456 0 TSF2 N Maximize True growright 0
    Stroke N654 0 TSF2 N Maximize True growleft 0

    #grow bidirectional
    Stroke N25852         0 TSF2 N Maximize True 0 grow
    Stroke N5852         0 TSF2 N Maximize True 0 grow
    Stroke N85258         0 TSF2 N Maximize True 0 grow
    Stroke N5258         0 TSF2 N Maximize True 0 grow
    Stroke N65456         0 TSF2 N Maximize True grow 0
    Stroke N5456         0 TSF2 N Maximize True grow 0
    Stroke N45654         0 TSF2 N Maximize True grow 0
    Stroke N5654         0 TSF2 N Maximize True grow 0

    #grow diagonally
    Stroke N159         0 TSF2 N Maximize True growright growup
    Stroke N951         0 TSF2 N Maximize True growleft growdown
    Stroke N753         0 TSF2 N Maximize True growright growdown
    Stroke N357         0 TSF2 N Maximize True growleft growup
    Stroke N5159         0 TSF2 N Maximize True grow grow
    Stroke N5951         0 TSF2 N Maximize True grow grow
    Stroke N5753         0 TSF2 N Maximize True grow grow
    Stroke N5357         0 TSF2 N Maximize True grow grow

    #reverse to unmaximized
    Stroke N74123 0 TSF2 N Maximize False

    #window functions
    Stroke 0         0 TSF        N RaiseLower
    Stroke 0         0 2           N Maximize-Func
    Stroke 0         0 A        C Lower
    Stroke N852         0 A C Iconify

    #Drag mouse on the root window
    Mouse 3 R N StrokeFunc DrawMotion

    #Drag mouse with Ctrl key
    Mouse 3 A C StrokeFunc DrawMotion

    #Drag mouse on the border
    Mouse 3 TSF N StrokeFunc DrawMotion

    #Drag mouse 1 on the maxmize button
    Mouse 1 2 N StrokeFunc DrawMotion


    BWT:如果.fvwm下这个目录没有.fvwm2rc和
    fvwm.strokes这个文件的话,FVWM会调用一个简单的script文件。你可以在FVWM的桌面上按右键,里面有一些设置。可以让你将FVWM设置成WINDOWS95或者WMAKER模式。
         在我的PIII-866和128M下,用FVWM2.5.6比windows2000还快! :O
  •  楼主| 发表于 2003-5-6 16:58:34 | 显示全部楼层
    神游九州,
    thanks very much!
    I can learn much from u about FVWM....
    发表于 2003-5-7 17:17:17 | 显示全部楼层
    good!
    九洲兄辛苦了~~~~~~~~~~~~~~~~~~~
    发表于 2003-5-13 01:21:49 | 显示全部楼层

    有没有人汉化了icewvm?

    安装中文版电脑老出问题
    就装了一个英文的,可是不能认出中文的文件夹,文件名,什么term也不支持中文
    怎么斑?
    谢谢
    发表于 2003-5-13 08:03:01 | 显示全部楼层
    icewm可以直接用quicktime的方法汉化,效果一样好!至于中文文件的问题因该修改i18n或者fstab来实现!
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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