QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1068|回复: 2

请教高手:关于FVWM的安装配置

[复制链接]
发表于 2003-8-18 18:40:14 | 显示全部楼层 |阅读模式
按照从网上找到的资料安装后将文件/etc/X11/xinit/xinitrc备份成xinitrc.old,然后在/home/cisco/下新建一个.xinitrc文件,写入:exec  fvwm,在命令行下起动startx,起作用的只有鼠标,还有一个shell窗口,上边提示:could not find charset data for local zh_CN.GB 18030;using ISO8859-1
下边的shell还能正常使用.但不能正常显示中文.
我不知道是不时因为FVWM下的配置文件没有作相应改动造成的,又该怎么解决?
谢谢!!!
急!!!!!!
发表于 2003-8-19 07:33:57 | 显示全部楼层
你自己要写一个配置文件才行.fvwm2rc, 不然使用不方便! 最好你自己学学它的配置文件是怎么写的!
这下面是我以前用的一个文件:

################################  ImagePath  ############################

ImagePath +:$HOME/.fvwm/buttonbar
ImagePath +:$HOME/.fvwm/pager
ImagePath +:$HOME/.fvwm/background
ImagePath +:$HOME/.fvwm/decor

ImagePath +:$HOME/.fvwm/IcOsX/22x22/devices
ImagePath +:$HOME/.fvwm/IcOsX/22x22/apps
ImagePath +:$HOME/.fvwm/IcOsX/22x22/filesystems
ImagePath +:$HOME/.fvwm/IcOsX/22x22/actions
EdgeResistance 250 100
EdgeScroll 100 100
ColormapFocus FollowsMouse
ClickTime 750
DeskTopSize 2x2


*FvwmTheme: Colorset 51 fg blue, bg #b0d5fc, Plain, NoShape
*FvwmTheme: Colorset 52 fg green, bg blue, Plain, NoShape
Colorset 12 Transparent

*FvwmButtons:Colorset 12
*FvwmWharf:Colorset 12
*FvwmPager:Colorset 12

# default Styles:
Style * BorderWidth 5, HandleWidth 5, DepressableBorder
Style * Icon $HOME/.fvwm/IcOsX/64x64/devices/monitor.png
Style * MWMFunctions, MWMDecor, MWMButtons, HintOverride
Style * DecorateTransient, NoPPosition
Style * SloppyFocus, MouseFocusClickRaises
Style * SmartPlacement
Style * Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
Style * Font  -*-fixed-medium-r-semicondensed-*-13-*
Style * IconFont  -*-fixed-medium-r-semicondensed-*-13-*
Style * HilightFore black, HilightBack gainsboro
Style * IconBox 360x200-0-0, IconFill right bottom

Style * WindowShadeShrinks, WindowShadeSteps 100

TitleStyle height 22
AddTitleStyle ActiveDown VGradient 8 gold black


###################################MenuStyle#####################################################

MenuStyle * Foreground #b0d5fc, Background gray40

Menustyle * fvwm, Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
MenuStyle *  HilightBackOff, Hilight3DThickness -3, ActiveForeOff, PopupOffset -3 100

#MenuStyle *  SidePic /usr/local/share/fvwm/icons/side.fvwm2.xpm,SideColor black
MenuStyle *  ItemFormat "%s%10p%|%i%12p%l%|%6p%>%10p%s"

#MenuStyle * MenuColorset 12, ActiveColorset 51, GreyedColorset 52

MenuStyle * ActiveFore #49C671
MenuStyle * MenuFace VGradient 64 darkgray MidnightBlue
MenuStyle * MenuFace TiledPixmap  gray.png
ButtonStyle All -- UseTitleStyle
ButtonStyle All ActiveDown VGradient 8 palevioletred black






############################################################################################
CursorStyle ROOT 58
CursorStyle TITLE 62
CursorStyle STROKE 86

Style "acroread"  VariablePosition, VariableUSPosition

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


Style "NoResource" NoTitle BorderWidth 0, HandleWidth 0

Style "gqview"            Icon /usr/local/AquaFusion/Windows-XP-Logo.png
Style "stardict"   Icon /usr/local/AquaFusion/64x64/apps/gnome-apps.png

Style * RaiseTransient LowerTransient StackTransientParent

Style "xbiff"       NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xcalc"       Icon xcalc.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 "Captura"            Icon /usr/local/AquaFusion/64x64/apps/lyx.png
Style "FvwmButtons"  BorderWidth 1 , NoHandles




Read fvwm.strokes
##########################################################
Style "xmms"           Icon $HOME/.fvwm/IcOsX/64x64/apps/xmms.png
Style "xmms"       MiniIcon  $HOME/.fvwm/IcOsX/32x32/apps/xmms.png

Style "*term"            Icon $HOME/.fvwm/IcOsX/64x64/apps/knosole.png
Style "FvwmConsole" Icon $HOME/.fvwm/IcOsX/64x64/apps/log.png



Style "gaim"      MiniIcon  $HOME/.fvwm/IcOsX/32x32/apps/gaim.png

Style "gkrellm"    Icon $HOME/.fvwm/IcOsX/64x64/apps/note.png

Style "xchat"      Icon $HOME/.fvwm/IcOsX/64x64/apps/MSN.png
Style "emacs"      Icon $HOME/.fvwm/IcOsX/64x64/apps/Paint.png
Style "emacs"      MiniIcon $HOME/.fvwm/IcOsX/48x48/apps/Paint.png
Style "mozilla"    Icon $HOME/.fvwm/IcOsX/64x64/apps/mozilla.png


Style "gimp"      MiniIcon  $HOME/.fvwm/IcOsX/32x32/apps/gimp.png
Style "arcoread"        MiniIcon $HOME/.fvwm/IcOsX/48x48/apps/Arcoread.png

Style "xine"        MiniIcon  $HOME/.fvwm/IcOsX/32x32/apps/xine.png
Style "evolution"           MiniIcon  $HOME/.fvwm/IcOsX/48x48/apps/kmail2.png


##########################################################
# 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 "-*-fixed-medium-r-semicondensed-*-13-*"
    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 FvwmButtons-bar
    + I Module FvwmButtons FvwmButtons-dock
    + I Module FvwmBanner
    + I Module FvwmPager 0 1
    + I Module FvwmAuto 500 Raise Nop
    + I Module FvwmAnimate
    + I Module FvwmTheme
    + I Module FvwmWharf

    SendToModule FvwmTheme Colorset 12 Transparent
    *FvwmButtons-bar:Colorset 12
    *FvwmWharf:Colorset 12

    DestroyFunc InitFunction
    AddToFunc InitFunction           
    + I Exec exec xscreensaver -no-splash

    DestroyFunc ExitFunction
    AddToFunc ExitFunction
    + I All (gkrellm) Close




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

    DestroyMenu RootMenu
    AddToMenu RootMenu        "Root Menu"        Title
    +                        "&mozilla%mozilla.png%"    Exec exec mozilla
    +                        "gaim%gaim.png%"        Exec exec gaim
    +                        "gnome-terminal%knosole.png%"        Exec exec gnome-terminal
    +                        "xchat%MSN.png%" Exec exec xchat
    +                        ""                Nop
    +                       "&Programs%hancom.png%"      Popup ProgramsMenu
    +                       "&Utilities%kdmconfig.png%"     Popup Utilities
    +                       "Re&fresh Screen%kbabeldict.png%"   Refresh
    +                        ""                Nop
    +                       "&Lock%lock.png%"         Exec exec xscreensaver-command -lock
    +                        "ExitFvwm%terminal.png%"        Popup Quit-Verify


    DestroyMenu ProgramsMenu
    AddToMenu "ProgramsMenu" "Choose-Pro%view_icon.png%" Title
    +                        "gedit%kate.png%"  Exec exec gedit
    +                        "emacs%klpq.png"  Exec exec emacs
    +                        "g&imp%gimp.png"  Exec exec gimp
    +                        "&acroread%Acroread.png%"  Exec exec acroread
    +                        "&xmms%xmms.png%" Exec exec xmms
    +                        "xine%xine.png%" Exec exec xine
    +                        "OpenOffice-write%Microsoft_Word.png%" Exec exec oowriter
    +                        "evolution%kmail2.png%" Exec exec evolution
    +                        "gftp%download.png%" Exec exec gftp
    +                        "gkrellm%note.png%"           Exec exec gkrellm

    DestroyMenu Utilities
    AddToMenu Utilities     "Utilities%scanner.png%" Title
    +                        "Tracerouter%news.png%"                Exec exec xmtr
    +                        "konqueror%go.png%"                Exec exec konqueror
    +                        ""                Nop
    +                        "kcontrol%kopete.png%"                Exec exec kcontrol

    +                        "xlogo%x.png%"                Exec exec xlogo
    +                          "Captura%kcmkwm.png%"         Exec captura
    +                        "ksnapshot%editshred.png%"                Exec exec ksnapshot
    +          "FvwmCommand%xterm.png%"   Module FvwmConsole -terminal aterm -geometry 45x15-300+250 \
            -bg black -fg white -cr green \
            -fn 8*16


    DestroyMenu Quit-Verify        
    AddToMenu Quit-Verify         "Choose%xconsole.png%" Title       
    +                              "Yes, Really Quit%xchat.png%"  Quit       
    +                       "Restart Fvwm2%network_local.png%"     Restart fvwm2
    +                              "No, Don't Quit%hancom.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 ############################## ##########################################################


    *FvwmButtons-bar: ButtonGeometry   70x70+250-0
    *FvwmButtons-bar:Rows 1
    *FvwmButtons-bar: Frame  0

    *FvwmButtons-bar( Icon Phoenix.png, Action 'menu RootMenu ')

    *FvwmButtons-bar( Icon bitchx.png, Action 'Module FvwmConsole -terminal aterm  -tr -sh -1  -geometry 45x15-300+250 \
            -bg black -cr white -fg green -C -fn 8x16 -sl 500 \
            -fn "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-*-*"')



    *FvwmButtons-bar(2x1,Icon  viewmag+.png,Action 'Exec mozilla')

    *FvwmButtons-bar(Icon kstars.png,Action 'exec xmms')

    *FvwmButtons-bar(Icon shredder.png, Action 'Restart fvwm2')

    #############################################################################

    *FvwmButtons-dockixmap bsd_new.xpm
    *FvwmButtons-dock: ButtonGeometry   55x40+0+0
    *FvwmButtons-dock:Rows 1
    *FvwmButtons-dock:Frame  0


    *FvwmButtons-dock(2x1,Swallow "xdaliclock"  "Exec xdaliclock -bg black -transparent  -fg green   -fn 12x24 ")





    ########################### Pager #########################################
    *FvwmPager: Rows 2
    *FvwmPager: Columns 1

    *FvwmPagerixmap blue.png
    *FvwmPagerBack #5c54c0
    *FvwmPagerFore white
    *FvwmPager:Font  -*-fixed-medium-r-semicondensed-*-13-*-gb2312.1980-0

    *FvwmPagerHilight #6b64b0
    *FvwmPagerLabel 0 Main
    *FvwmPagerLabel 1 Fvwm
    *FvwmPager:SmallFont  -*-fixed-medium-r-semicondensed-*-13-*-gb2312.1980-0
    *FvwmPagerBalloons            All
    *FvwmPagerBalloonBack         white
    *FvwmPagerBalloonFore         black
    *FvwmPager:BalloonFont         -*-fixed-medium-r-semicondensed-*-13-*-gb2312.1980-0
    *FvwmPagerBalloonBorderWidth  4
    *FvwmPagerBalloonBorderColor  white


    *FvwmPager: WindowBorderWidth 1
    *FvwmPager: Window3DBorders

    *FvwmPager: DeskTopScale 20
    *FvwmPager: Geometry -0+0
    *FvwmPager: SmallFont 5x8
    *FvwmPager: MiniIcons
    *FvwmPager: UseSkipList
    *FvwmPager: SloppyFocus

    ############################################################################
    *FvwmScrollBack grey40
    *FvwmScrollFore #89A9DD
           
    *FvwmAnimate: Delay 25
    *FvwmAnimate: Effect Random
    *FvwmAnimate: Width 3
    Read $HOME/.fvwm/windecor











    ????
    ############################ Window-Identifier ##########################
    #Just choose colors and a fonts
    *FvwmIdentBack MidnightBlue
    *FvwmIdentForc Yellow
    *FvwmIdentFont -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*

    ########################### FvmwWinlist ################################
    *FvwmWinListBack #908090
    *FvwmWinListFore Black
    *FvwmWinListFont -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
    *FvwmWinListAction Click1 Iconify -1, Focus
    *FvwmWinListAction Click2 Iconify
    *FvwmWinListAction Click3 Module "FvwmIdent' FvwmIdent
    *FvwmWinListUseSkipList
    *FvwmWinListGeometry +0-1
  • 回复

    使用道具 举报

    发表于 2003-8-19 07:39:30 | 显示全部楼层
    sunwm2.cosoft.org.cn
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    GMT+8, 2024-11-27 08:26 , Processed in 0.040680 second(s), 16 queries .

    © 2021 Powered by Discuz! X3.5.

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