靓丽OpenBSD桌面
作者: rainren
本文环境: OpenBSD 3.5
OpenBSD的强项是网络安全, 主要是使用PF构建防火墙. 但OpenBSD也有简单这个特性, 在它的系统里, 简单是一个特点; 也就是说让你的系统管理很简单.
今天, 我在这里show 一下我的桌面配置过程, 当然也请使用过fvwm的高手们指点一下我配置过程中的错误.
一. 配置fvwm桌面
OpenBSD3.5使用fvwm2.2.5作为默认的桌面, 当然, 如果你在安装系统时没有安装xserver.tgz等几个包, 现在也可以将那些包下载到硬盘上, 然后再:
Tar xvzfp *.tgz
安装这些软件包来使用桌面环境.
配置好XF86Config, startx出现的桌面是系统的缺省配置桌面, 这个配置文件.fvwmrc在/usr/X11R6/lib/X11/fvwm下, 在这个目录下还有关于fvwm使用的模块列表及另外一些桌面的配置文件. 介绍一下桌面位置: 左上角: +0+0, 左下角: +0-0, 右上角: -0+0, 右下角: -0-0!
如果你想深入了解fvwm的配置情况, 可以参考网上各种fvwm的学习教程, 下面我只是说一下我的改动情况!
Fvwm使用的图片格式是xpm, png, 你可以使用gimp将你使用的图片转换成xpm格式. 在配置文件中的颜色值可以是一个英文名或一个十六进制值。
首先, 我们在根目录下建立.fvwm文件夹, 然后
cp /usr/X11R6/lib/X11/fvwm/.fvwmrc ~/.fvwm/.fvwm2rc
下面, 将以我对~/.fvwm/.fvwm2rc文件所做的改动为例, 说说如何配置桌面:
# be sure to customize these paths for your installation:
ModulePath /usr/X11R6/lib/X11/fvwm[color=red:8fa26d1069]模块的路径名[/color:8fa26d1069]
PixmapPath /usr/X11R6/include/X11/pixmaps[color=red:8fa26d1069]fvwm使用图片的路径, 桌面背景图片就是放在这里, 我使用的桌面背景图片是:openbsddesktop.xpm[/color:8fa26d1069]
IconPath /usr/X11R6/include/X11/bitmaps
EdgeResistance 250 100
EdgeScroll 50 50[color=red:8fa26d1069]当mouse移到桌面边缘时, 桌面的移动情况[/color:8fa26d1069]
ClickTime 750
# make sure these fonts exist on your system:
WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*[color=red:8fa26d1069]窗口使用的字体[/color:8fa26d1069]
IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
HilightColor blue #898e84 [color=red:8fa26d1069]窗口的高亮显示时的颜色[/color:8fa26d1069]
MenuStyle #b0d5fc gray40 #49c671 -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* fvwm[color=red:8fa26d1069]菜单使用的前景色, 背景色,阴影色, 字体类型[/color:8fa26d1069]
DeskTopSize 2x2 [color=red:8fa26d1069] 每一个虚拟桌面的大小[/color:8fa26d1069]
ColormapFocus FollowsMouse
# default Styles:
Style "*" BorderWidth 5, HandleWidth 5, NoHandles [color=red:8fa26d1069]在这里我加了一个NoHandles, 也就是窗口不要柄 [/color:8fa26d1069]
Style "*" Icon unknown1.xpm, Color green/#698593[color=red:8fa26d1069] 定义窗口颜色 [/color:8fa26d1069]
Style "*" MWMFunctions, MWMDecor, HintOverride
Style "*" DecorateTransIEnt, NoPPosition
Style "*" IconBox -0 -1 +1 -1
Style "*" SloppyFocus, FocusFollowsMouse
Style "*" RandomPlacement, SmartPlacement
# Styles for various Fvwm modules:
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style "FvwmPager" StaysOnTop
Style "FvwmBanner" StaysOnTop
Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus
# Styles for your common terminal emulator programs:
AddToDecor terms
+ ButtonStyle 1 Pixmap mini.xterm.xpm
+ HilightColor blue #898e84
Style "XTerm" UseDecor terms
Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt" UseDecor terms
Style "rxvt" Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt" MWMBorder, MWMButtons
# Styles for various common programs:
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 "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus
Style "xgraph" Icon graphs.xpm, RandomPlacement, ClickToFocus
Style "xmosaic" Color Green/Yellow, ClickToFocus
Style "xdaliclock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus[color=red:8fa26d1069]你看到, 我的桌面上有一个电子钟, 在这里定义它的显示类型, 这样我就可以在每一个虚拟桌面上都看到它了。 [/color:8fa26d1069]
#Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky
# some simple default key bindings:
Key Next A SCM Next [*] Focus
Key Prior A SCM Prev [*] Focus
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A Menu RootMenu Nop
Mouse 2 R A Menu Window-Ops Nop
Mouse 3 R A WindowList
[color=red:8fa26d1069]窗口title上的各按键的定义说明[/color:8fa26d1069]
# for the title bar buttons:
Mouse 0 1 A Menu Window-Ops2 Close
Mouse 0 2 A Close
Mouse 0 4 A Iconify
Mouse 1 6 A Maximize-Func
# 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
Mouse 2 I A Iconify
Mouse 2 FST A Menu Window-Ops2 Nop
Mouse 3 TSIF A RaiseLower
[color=red:8fa26d1069] fvwm启动时的初始函数,配置文件中使用的模块要在这里启动 [/color:8fa26d1069]
######################## Initialization Functions ############################
AddToFunc InitFunction "I" Module FvwmPager 0 3 [color=red:8fa26d1069]虚拟桌面的启动情况[/color:8fa26d1069]
+ "I" Module FvwmButtons
+ "I" Module FvwmAuto 500 Raise Nop
+ "I" Exec exec /usr/X11R6/bin/xpmroot /usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm[color=red:8fa26d1069]设置桌面背景图片[/color:8fa26d1069]
[color=red:8fa26d1069]fvwm重启时的操作[/color:8fa26d1069]
AddToFunc RestartFunction "I" Module FvwmPager 0 3
+ "I" Module FvwmButtons
+ "I" Module FvwmAuto 500 Raise Nop
+ "I" Exec exec /usr/X11R6/bin/xpmroot /usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm
[color=red:8fa26d1069] 下面是菜单的配置情况, 当你安装了新的软件时, 可以在这里将它们加到菜单中去。[/color:8fa26d1069]
######################## Menus ###################
AddToMenu RootMenu "Root Menu" Title
+ "XTerm%mini.xterm.xpm%" Exec exec xterm
+ "Rxvt" Exec exec rxvt
+ "Mozilla-Firefox" Exec exec firefox[color=red:8fa26d1069]我安装的上网软件[/color:8fa26d1069]
+ "" Nop
#+ "Remote Logins" Popup Remote-Logins
#+ "" Nop
+ "Utilities" Popup Utilities
+ "" Nop
+ "Fvwm Modules" Popup Module-Popup
+ "Fvwm Window Ops" Popup Window-Ops
+ "Fvwm Simple Config Ops" Popup Misc-Ops
+ "" Nop
+ "Refresh Screen" Refresh
+ "Recapture Screen" Recapture
+ "(Re)Start" Popup Quit-Verify
+ "" Nop
+ "Exit" Module FvwmForm QuitVerify
[color=red:8fa26d1069] 定义的子菜单[/color:8fa26d1069]
AddToMenu Utilities "Utilities" Title
+ "Top" Exec exec xterm -T Top -n Top -e top
+ "Calculator" Exec exec xcalc
+ "Xman" Exec exec xman
+ "Xmag" Exec exec xmag
+ "Editres" Exec exec editres
+ "" Nop
#+ "XEMacs" Exec exec xemacs
#+ "Mail" MailFunction xmh "-font fixed"
+ "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults
AddToMenu Misc-Ops "Misc Config Opts" Title
+ "Sloppy Focus" ChangeDefaultFocus SloppyFocus
+ "Click To Focus" ChangeDefaultFocus ClickToFocus
+ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
+ "" Nop
+ "Colormap Follows Mouse" ColormapFocus FollowsMouse
+ "Colormap Follows Focus" ColormapFocus FollowsFocus
+ "" Nop
+ "Full Paging ON" EdgeScroll 100 100
+ "All Paging OFF" EdgeScroll 0 0
+ "Horizontal Paging Only" EdgeScroll 100 0
+ "Vertical Paging Only" EdgeScroll 0 100
+ "Partial Paging" EdgeScroll 50 50
+ "Full Paging && Edge Wrap" EdgeScroll 100000 100000
AddToMenu Window-Ops "Window Ops" Title
+ "Move%mini.move.xpm%" Move
+ "Resize%mini.resize.xpm%" Resize
+ "Raise%mini.raise.xpm%" Raise
+ "Lower%mini.lower.xpm%" Lower
+ "(De)Iconify%mini.iconify.xpm%" Iconify
+ "(Un)Stick%mini.stick2.xpm%" Stick
+ "(Un)Maximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "Delete%mini.excl.xpm%" Delete
+ "Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "Refresh Window%mini.refresh.xpm%" RefreshWindow
AddToMenu Window-Ops2 "&Move%mini.move.xpm%" Move
+ "&Resize%mini.resize.xpm%" Resize
+ "R&aise%mini.raise.xpm%" Raise
+ "&Lower%mini.lower.xpm%" Lower
+ "(De)&Iconify%mini.iconify.xpm%" Iconify
+ "(Un)&Stick%mini.stick2.xpm%" Stick
+ "(Un)Ma&ximize%mini.maximize.xpm%" Maximize
+ "" Nop
+ "&Delete%mini.excl.xpm%" Delete
+ "&Close%mini.cut.xpm%" Close
+ "Destroy%mini.destroy.xpm%" Destroy
+ "" Nop
+ "ScrollBar" Module FvwmScroll 2 2
+ "Print" PrintFunction
#+ "Print Reverse" PrintReverseFunction
# be sure to fill these in with your correct machine names:
AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY &
+ "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY &
+ "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY &
+ "happy" Exec rsh happy rxvt -display $HOSTDISPLAY &
+ "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY &
+ "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY &
+ "joker" Exec rsh joker rxvt -display $HOSTDISPLAY &
+ "signal" Exec rxterm signal
AddToMenu Module-Popup "FvwmModules" Title
+ "Identify" Module FvwmIdent
+ "Talk" Module FvwmTalk
+ "" Nop
+ "Button-Bar" Module FvwmButtons
+ "Pager" Module FvwmPager 0 0
+ "Pager (2 desks)" Module FvwmPager 0 1
+ "WinList" Module FvwmWinList
+ "" Nop
+ "Banner" Module FvwmBanner
+ "ScrollBar" Module FvwmScroll 50 50
+ "Background" Module FvwmBacker
+ "AutoRaise" Module FvwmAuto 200 Raise Nop
+ "Stop AutoRaise" KillModule FvwmAuto
+ "" Nop
+ "IconBox" Module FvwmIconBox
+ "IconMan" Module FvwmIconMan
+ "" Nop
+ "Form - Rlogin" Module FvwmForm Rlogin
+ "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk
+ "Form - QuitVerify" Module FvwmForm QuitVerify
AddToMenu Quit-Verify
+ "Restart Fvwm%mini.refresh.xpm%" Restart fvwm
+ "" Nop
+ "Start wm2" Restart wm2
+ "Start twm" Restart twm
+ "Start ctwm" Restart ctwm
+ "Start tvtwm" Restart tvtwm
+ "Start vtwm" Restart vtwm
+ "Start mwm" Restart mwm
+ "Start olwm" Restart olwm
+ "" Nop
+ "Start dummy%mini.xterm.xpm%" Restart xterm
+ "" Nop
+ "No, Don't Quit" Nop
######################## Sample Functions ##########################
AddToFunc MailFunction "I" Next [$0] Iconify -1
+ "I" Next [$0] Focus
+ "I" None [$0] Exec $0 $1
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
# RLOGIN machine fg bg
AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8
# TELNET machine fg bg
AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0
AddToFunc FocusAndWarp "I" Focus
+ "I" WarpToWindow 2p 2p
AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
+ "I" FocusAndWarp
AddToFunc ChangeDefaultFocus "I" Style "*" $0
+ "I" Recapture
############################################################################
# Now some keyboard shortcuts.
# Arrow Keys
# press arrow + control anywhere, and scroll by 1 page
Key Left A C Scroll -100 0
Key Right A C Scroll +100 +0
Key Up A C Scroll +0 -100
Key Down A C Scroll +0 +100
# press arrow + meta key, and scroll by 1/10 of a page
Key Left A M Scroll -10 +0
Key Right A M Scroll +10 +0
Key Up A M Scroll +0 -10
Key Down A M Scroll +0 +10
# press shift arrow + control anywhere, and move the pointer by 1% of a page
Key Left A SC CursorMove -1 0
Key Right A SC CursorMove +1 +0
Key Up A SC CursorMove +0 -1
Key Down A SC CursorMove +0 +1
# press shift arrow + meta key, and move the pointer by 1/10 of a page
Key Left A SM CursorMove -10 +0
Key Right A SM CursorMove +10 +0
Key Up A SM CursorMove +0 -10
Key Down A SM CursorMove +0 +10
# Keyboard accelerators
Key F1 A M Menu RootMenu
Key F2 A M Menu Window-Ops
Key F3 A M WindowList FvwmWinList
Key F4 A M Iconify
Key F5 A M Move
Key F6 A M Resize
Key F7 A M CirculateUp
Key F8 A M CirculateDown
#Page Up/Dapge Down keys are used to scroll by one desktop page
# in any context, press page up/down + control
# in root context, just pressing page up/down is OK
#
# I prefer the non-wrapping scroll. These are for example purposes only
#Key Next A C Scroll 100000 0
#Key Next R N Scroll 100000 0
#Key Prior A C Scroll -100000 0
#Key Prior R N Scroll -100000 0
################## FvwmButtons button-bar ################################
*FvwmButtonsBack #5c54c0
*FvwmButtonsGeometry 120x30+400-2[color=red:8fa26d1069]定义电子钟的大小和出现的位置[/color:8fa26d1069]
*FvwmButtons(Swallow(Respawn, NoHints) xdaliclock `Exec exec xdaliclock -bg gray40 -fg yellow -fn 12x24`)[color=red:8fa26d1069] bg背景色, fg前景色, fn字体大小[/color:8fa26d1069]
[color=red:8fa26d1069] 上面的buttons配置是我的桌面上的电子钟的配置情况[/color:8fa26d1069]
########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdentBack MidnightBlue
*FvwmIdentFore Yellow
*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
########################### Pager #########################################
*FvwmPagerRows 1[color=red:8fa26d1069] 虚拟桌面排列行数[/color:8fa26d1069]
*FvwmPagerColumns 4[color=red:8fa26d1069] 虚拟桌面排列列数[/color:8fa26d1069]
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*[color=red:8fa26d1069]使用的字体[/color:8fa26d1069]
*FvwmPagerBack #5c54c0[color=red:8fa26d1069]虚拟桌面的背景色[/color:8fa26d1069]
*FvwmPagerFore white[color=red:8fa26d1069]虚拟桌面的前景色[/color:8fa26d1069]
*FvwmPagerHilight #6b64b0[color=red:8fa26d1069]当前使用桌面的颜色[/color:8fa26d1069]
#*FvwmPagerGeometry 100x100-1-1
*FvwmPagerGeometry +0-0[color=red:8fa26d1069]桌面面板的出现位置[/color:8fa26d1069]
*FvwmPagerLabel 0 "OpenBSD 3.5"[color=red:8fa26d1069]每一个虚拟桌面的名称, 当名称中有空格时用双引号括起来[/color:8fa26d1069]
*FvwmPagerLabel 1 Maker
*FvwmPagerLabel 2 Mail
*FvwmPagerLabel 3 Study
*FvwmPagerSmallFont 5x8
*FvwmPagerBalloons All
*FvwmPagerBalloonBack yellow
*FvwmPagerBalloonFore black
*FvwmPagerBalloonFont -adobe-times-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerBalloonYOffset +2
*FvwmPagerBalloonBorderWidth 1
*FvwmPagerBalloonBorderColor black
##########################FvwmWinList##################################
*FvwmWinListBack #908090
*FvwmWinListFore Black
*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue
*FvwmScrollBack grey40
*FvwmScrollFore green
############################################################
############################################################
# Note that icons are shown in the module
# only if NoIcon commnand is applied.
#Style "*" NoIcon
############################################################
*FvwmIconBoxIconBack #cfcfcf
*FvwmIconBoxIconHiFore black
*FvwmIconBoxIconHiBack LightSkyBlue
*FvwmIconBoxBack #5f9ea0
#*FvwmIconBoxFore blue
*FvwmIconBoxGeometry 5x1+0+0
*FvwmIconBoxMaxIconSize 64x38
*FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBoxSortIcons IconName
*FvwmIconBoxPadding 4
*FvwmIconBoxLines 10
*FvwmIconBoxSBWidth 11
*FvwmIconBoxPlacement Right Buttom
*FvwmIconBoxPixmap fvwm.xpm
#*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxSetWMIconSize
*FvwmIconBoxHilightFocusWin
#*FvwmIconBoxResolution Desk
*FvwmIconBoxMouse 1 Click RaiseLower
*FvwmIconBoxMouse 1 DoubleClick Iconify
*FvwmIconBoxMouse 2 Click Iconify -1, Focus
*FvwmIconBoxMouse 3 Click Module FvwmIdent
*FvwmIconBoxKey r RaiseLower
*FvwmIconBoxKey space Iconify
*FvwmIconBoxKey d Close
*FvwmIconBoxKey n Next
*FvwmIconBoxKey p Prev
*FvwmIconBoxKey h Left
*FvwmIconBoxKey j Down
*FvwmIconBoxKey k Up
*FvwmIconBoxKey l Right
#
# Icon file specifications
#
# Mostly, you don't have to specify icon files, as FvwmIconBox now
# reads icon files specified in Style commands.
#
#*FvwmIconBox "Fvwm*" -
# FvwmForm alias - rlogin or telnet to host via xterm
*RloginWarpPointer
*RloginFont *helvetica*m*r*n*12*
*RloginButtonFont *helvetica*m*o*n*12*
*RloginInputFont *cour*m*r*n*12*
*RloginFore Black
*RloginBack White
*RloginItemFore Yellow
*RloginItemBack Wheat
# begin items
*RloginLine center
*RloginText "Login to Remote Host"
*RloginLine center
*RloginText "Host:"
*RloginInput HostName 30 ""
*RloginLine center
*RloginSelection meth single
*RloginChoice TN TN off "telnet"
*RloginChoice RL RL on "rlogin"
*RloginSelection UserSel single
#*RloginChoice Default Default on "same user"
#*RloginChoice Custom Custom off "user:"
*RloginText "(Userid:"
*RloginInput UserName 10 ""
*RloginText ")"
*RloginLine center
*RloginText "FG:"
*RloginInput FgColor 15 ""
*RloginText "BG:"
*RloginInput BgColor 15 ""
*RloginLine expand
*RloginButton quit "Login" ^M
*RloginCommand Exec xterm $(FgColor?-fg $(FgColor)) $(BgColor?-bg $(BgColor)) -T xterm@$(HostName) -e $(RL?rlogin) $(TN?telnet) $(HostName) $(RL?-8 $(UserName?-l $(UserName)))
*RloginButton restart "Clear"
*RloginCommand Beep
*RloginButton quit "Cancel"
*RloginCommand Nop
# FvwmForm alias - query exit ala mwm
*QuitVerifyGrabServer
*QuitVerifyWarpPointer
*QuitVerifyFont *helvetica*m*r*n*18*
#*QuitVerifyButtonFont *helvetica*m*o*n*18*
*QuitVerifyButtonFont 7x13bold
*QuitVerifyFore Black
*QuitVerifyBack Light Gray
*QuitVerifyItemFore Gold
*QuitVerifyItemBack Gray40
# begin items
*QuitVerifyLine center
*QuitVerifyText "Do you really want to exit FVWM?"
*QuitVerifyLine expand
*QuitVerifyButton quit " Exit "
*QuitVerifyCommand Quit
*QuitVerifyButton quit "Cancel"
*QuitVerifyCommand Nop
# MyTalk & MyFvwmTalk from Dave Goldberg
# MyTalk Form - dissappears after use
*MyTalkWarpPointer
*MyTalkFont *helvetica*m*r*n*14*
*MyTalkButtonFont *helvetica*m*o*n*14*
*MyTalkInputFont *cour*m*r*n*14*
*MyTalkFore Red
*MyTalkBack Gray
*MyTalkItemFore Blue
*MyTalkItemBack Gray
*MyTalkLine center
*MyTalkText "Fvwm Function"
*MyTalkInput Func 40 ""
*MyTalkLine expand
*MyTalkButton quit "Run" ^M
*MyTalkCommand $(Func)
*MyTalkButton restart "Clear" ^R
*MyTalkButton quit "Cancel" ^C
*MyTalkCommand Nop
# MyFvwmTalk Form - sticks around
*MyFvwmTalkWarpPointer
*MyFvwmTalkFont *helvetica*m*r*n*14*
*MyFvwmTalkButtonFont *helvetica*m*o*n*14*
*MyFvwmTalkInputFont *cour*m*r*n*14*
*MyFvwmTalkFore Red
*MyFvwmTalkBack Gray
*MyFvwmTalkItemFore Blue
*MyFvwmTalkItemBack Gray
*MyFvwmTalkLine center
*MyFvwmTalkText "Fvwm Function"
*MyFvwmTalkInput Func 40 ""
*MyFvwmTalkLine expand
*MyFvwmTalkButton restart "Run" ^M
*MyFvwmTalkCommand $(Func)
*MyFvwmTalkButton restart "Clear" ^R
*MyFvwmTalkCommand Nop
*MyFvwmTalkButton restart "Iconify" ^Z
*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify
*MyFvwmTalkButton quit "Quit" ^C
*MyFvwmTalkCommand Nop
# to change banner pixmap
#*FvwmBannerPixmap fvwm3.xpm
#*FvwmBannerTimeout 2
好了, 我的配置文件就这样修改的, 桌面我自认为还是很靓丽的, 当然, 你可以将你的桌面改的更靓丽 J
更多修改请参考网上各类fvwm学习文档。
另外我的.xinitrc文件:
[code:1:8fa26d1069]
exec /usr/X11R6/bin/fvwm -f ~/.fvwm/.fvwm2rc
[/code:1:8fa26d1069]
二. 为openbsd3.5增加中文字体
首先,我们简单地 修改/etc/X11/XF86Config, 加入load “xtt”, 及字体目录/usr/X11R6/lib/X11/fonts/TrueType,
从Windows系统上copy simsun.ttf, Tahoma.ttf, Tahomadb.ttf字体到目录/usr/X11R6/lib/X11/fonts/TrueType。
然后将下面的内容存为文件fonts.dir, fonts.scale:
以下为我的fonts.dir, fonts.scale:
[code:1:8fa26d1069]
39
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-8
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-9
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-10
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-11
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-13
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-15
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-koi8-e
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-adobe-standard
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-microsoft-cp1252
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso10646-1
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-8
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-11
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-13
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-koi8-e
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-adobe-standard
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-microsoft-cp1252
tahoma.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso10646-1
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-ascii-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-ibm-cp850
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-15
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-big5-0
[/code:1:8fa26d1069]
ok, 现在我使用的firefox已可以使用tahoma, simsun字体了, 浏览中文网页时一点问题都没。
好了, 暂时说到这里来, 感觉有点乱, 感谢你能看到这里来, 现在还有一项工作要做的是为openbsd找一个好的中文输入法, 我还没做成功, 装了xcin2.3.5, 能启动, 可是还不能输入中文!如果你已有输入法, 能告诉我吗? 谢谢: email: renhw@lingnan.net
标签: