靓丽OpenBSD桌面Unix系统 -电脑资料

时间:2017-02-05 03:16:50
染雾
分享
WORD下载 PDF下载 投诉

靓丽OpenBSD桌面 作者:rainren 本文环境:OpenBSD3.5 OpenBSD的强项是 网络安全 ,主要是使用PF构建防火墙.但OpenBSD也有简单这个特性,在它的系统里,简单是一个特点;也就是说让你的系统管理很简单. 今天,我在这里show一下我的桌面配置过程,当然也请使用过fvwm

靓丽OpenBSD桌面

作者:rainren

本文环境:OpenBSD3.5

OpenBSD的强项是网络安全,主要是使用PF构建防火墙.但OpenBSD也有简单这个特性,在它的系统里,简单是一个特点;也就是说让你的系统管理很简单.

今天,我在这里show一下我的桌面配置过程,当然也请使用过fvwm的高手们指点一下我配置过程中的错误.

一. 配置fvwm桌面

OpenBSD3.5使用fvwm2.2.5作为默认的桌面,当然,如果你在安装系统时没有安 server.tgz等几个包,现在也可以将那些包下载到硬盘上,然后再:

Tarxvzfp*.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格式.在配置文件中的颜色值可以是一个英文名或一个十六进制值,

靓丽OpenBSD桌面Unix系统

首先,我们在根目录下建立.fvwm文件夹,然后

cp/usr/X11R6/lib/X11/fvwm/.fvwmrc~/.fvwm/.fvwm2rc

下面,将以我对~/.fvwm/.fvwm2rc文件所做的改动为例,说说如何配置桌面:

#besuretocustomizethesepathsforyourinstallation:

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

EdgeResistance250100

EdgeScroll5050[color=red:8fa26d1069]当mouse移到桌面边缘时,桌面的移动情况[/color:8fa26d1069]

ClickTime750

#makesurethesefontsexistonyoursystem:

WindowFont-adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*[color=red:8fa26d1069]窗口使用的字体[/color:8fa26d1069]

IconFont-adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*

HilightColorblue#898e84[color=red:8fa26d1069]窗口的高亮显示时的颜色[/color:8fa26d1069]

MenuStyle#b0d5fcgray40#49c671-adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*fvwm[color=red:8fa26d1069]菜单使用的前景色,背景色,阴影色,字体类型[/color:8fa26d1069]

DeskTopSize2x2[color=red:8fa26d1069]每一个虚拟桌面的大小[/color:8fa26d1069]

ColormapFocusFollowsMouse

#defaultStyles:

Style"*"BorderWidth5,HandleWidth5,NoHandles[color=red:8fa26d1069]在这里我加了一个NoHandles,也就是窗口不要柄[/color:8fa26d1069]

Style"*"Iconunknown1.xpm,Colorgreen/#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

#StylesforvariousFvwmmodules:

Style"Fvwm*"NoTitle,Sticky,WindowListSkip

Style"Fvwm*"BorderWidth2,CirculateSkipIcon,CirculateSkip

Style"FvwmPager"StaysOnTop

Style"FvwmBanner"StaysOnTop

Style"FvwmButtons"Icontoolbox.xpm,ClickToFocus

#Stylesforyourcommonterminalemulatorprograms:

AddToDecorterms

+ButtonStyle1Pixmapmini.xterm.xpm

+HilightColorblue#898e84

Style"XTerm"UseDecorterms

Style"XTerm"Iconxterm.xpm,SloppyFocus,IconBox-701-1-140

Style"rxvt"UseDecorterms

Style"rxvt"Iconterm.xpm,SloppyFocus,IconBox-701-1-140

Style"rxvt"MWMBorder,MWMButtons

#Stylesforvariouscommonprograms:

Style"xcalc"Iconxcalc.xpm,NoButton2,RandomPlacement,ClickToFocus

Style"xmh"Iconmail1.xpm,NoIconTitle,StickyIcon

Style"xmh"RandomPlacement,NoButton2

Style"xman"Iconxman.xpm,RandomPlacement,ClickToFocus

Style"xmag"Iconmag_glass.xpm,RandomPlacement,ClickToFocus

Style"xgraph"Icongraphs.xpm,RandomPlacement,ClickToFocus

Style"xmosaic"ColorGreen/Yellow,ClickToFocus

Style"xdaliclock"NoTitle,NoHandles,Sticky,WindowListSkip,ClickToFocus[color=red:8fa26d1069]你看到,我的桌面上有一个电子钟,在这里定义它的显示类型,这样我就可以在每一个虚拟桌面上都看到它了。[/color:8fa26d1069]

#Style"xconsole"Iconrterm.xpm,WindowListSkip,Sticky

#somesimpledefaultkeybindings:

KeyNextASCMNext[*]Focus

KeyPriorASCMPrev[*]Focus

#somesimpledefaultmousebindings:

#fortherootwindow:

Mouse1 RAMenuRootMenuNop

Mouse2 RAMenuWindow-OpsNop

Mouse3 RAWindowList

[color=red:8fa26d1069]窗口title上的各按键的定义说明[/color:8fa26d1069]

#forthetitlebarbuttons:

Mouse0 1AMenuWindow-Ops2Close

Mouse0 2AClose

Mouse0 4AIconify

Mouse16A Maximize-Func

#forotherpartsofthewindow/borders/icons:

Mouse1 F A Resize-or-Raise

Mouse1 TS A Move-or-Raise

Mouse1 I A Move-or-Iconify

Mouse2 I A Iconify

Mouse2 FST A MenuWindow-Ops2Nop

Mouse3 TSIF A RaiseLower

[color=red:8fa26d1069]fvwm启动时的初始函数,配置文件中使用的模块要在这里启动[/color:8fa26d1069]

########################InitializationFunctions############################

AddToFuncInitFunction"I"ModuleFvwmPager03[color=red:8fa26d1069]虚拟桌面的启动情况[/color:8fa26d1069]

+"I"ModuleFvwmButtons

+"I"ModuleFvwmAuto500RaiseNop

+"I"Execexec/usr/X11R6/bin/xpmroot/usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm[color=red:8fa26d1069]设置桌面背景图片[/color:8fa26d1069]

[color=red:8fa26d1069]fvwm重启时的操作[/color:8fa26d1069]

AddToFuncRestartFunction"I"ModuleFvwmPager03

+"I"ModuleFvwmButtons

+"I"ModuleFvwmAuto500RaiseNop

+"I"Execexec/usr/X11R6/bin/xpmroot/usr/X11R6/lib/X11/xdm/pixmaps/openbsd.xpm

[color=red:8fa26d1069]下面是菜单的配置情况,当你安装了新的软件时,可以在这里将它们加到菜单中去。[/color:8fa26d1069]

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

AddToMenuRootMenu "RootMenu" Title

+ "XTerm%mini.xterm.xpm%" Execexecxterm

+ "Rxvt" Execexecrxvt

+"Mozilla-Firefox" Execexecfirefox[color=red:8fa26d1069]我安装的上网软件[/color:8fa26d1069]

+ "" Nop

#+ "RemoteLogins" PopupRemote-Logins

#+ "" Nop

+"Utilities"PopupUtilities

+ "" Nop

+ "FvwmModules"PopupModule-Popup

+"FvwmWindowOps"PopupWindow-Ops

+"FvwmSimpleConfigOps"PopupMisc-Ops

+ "" Nop

+"RefreshScreen"Refresh

+"RecaptureScreen"Recapture

+ "(Re)Start" PopupQuit-Verify

+ "" Nop

+"Exit"ModuleFvwmFormQuitVerify

[color=red:8fa26d1069]定义的子菜单[/color:8fa26d1069]

AddToMenuUtilities"Utilities"Title

+ "Top" Execexecxterm-TTop-nTop-etop

+ "Calculator" Execexecxcalc

+ "Xman" Execexecxman

+ "Xmag" Execexecxmag

+"Editres"Execexeceditres

+ "" Nop

#+ "XEmacs" Execexecxemacs

#+"Mail"MailFunctionxmh"-fontfixed"

+"ResetXdefaults"Execxrdb-load$HOME/.Xdefaults

AddToMenuMisc-Ops"MiscConfigOpts"Title

+"SloppyFocus"ChangeDefaultFocusSloppyFocus

+"ClickToFocus"ChangeDefaultFocusClickToFocus

+"FocusFollowsMouse"ChangeDefaultFocusFocusFollowsMouse

+""Nop

+"ColormapFollowsMouse"ColormapFocusFollowsMouse

+"ColormapFollowsFocus"ColormapFocusFollowsFocus

+""Nop

+"FullPagingON"EdgeScroll100100

+"AllPagingOFF"EdgeScroll00

+"HorizontalPagingOnly"EdgeScroll1000

+"VerticalPagingOnly"EdgeScroll0100

+"PartialPaging"EdgeScroll5050

+"FullPaging&&EdgeWrap"EdgeScroll100000100000

AddToMenuWindow-Ops "WindowOps" 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

+ "RefreshWindow%mini.refresh.xpm%"RefreshWindow

AddToMenuWindow-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"ModuleFvwmScroll22

+ "Print"PrintFunction

#+"PrintReverse"PrintReverseFunction

#besuretofilltheseinwithyourcorrectmachinenames:

AddToMenuRemote-Logins "dopey"Execrshdopeyrxvt-display$HOSTDISPLAY&

+ "snoopy"Execrshsnoopyrxvt-display$HOSTDISPLAY&

+ "grumpy"Execrshgrumpyrxvt-display$HOSTDISPLAY&

+ "happy"Execrshhappyrxvt-display$HOSTDISPLAY&

+ "bailey"Execrshbaileyrxvt-display$HOSTDISPLAY&

+ "barnum"Execrshbarnumrxvt-display$HOSTDISPLAY&

+ "joker"Execrshjokerrxvt-display$HOSTDISPLAY&

+ "signal"Execrxtermsignal

AddToMenuModule-Popup "FvwmModules" Title

+ "Identify" Module FvwmIdent

+ "Talk"Module FvwmTalk

+ "" Nop

+ "Button-Bar" Module FvwmButtons

+ "Pager" ModuleFvwmPager00

+ "Pager(2desks)"ModuleFvwmPager01

+ "WinList" ModuleFvwmWinList

+ "" Nop

+ "Banner" Module FvwmBanner

+"ScrollBar"ModuleFvwmScroll5050

+ "Background" ModuleFvwmBacker

+"AutoRaise"ModuleFvwmAuto200RaiseNop

+"StopAutoRaise"KillModuleFvwmAuto

+ "" Nop

+ "IconBox" Module FvwmIconBox

+"IconMan"ModuleFvwmIconMan

+ "" Nop

+"Form-Rlogin"ModuleFvwmFormRlogin

+"Form-MyFvwmTalk"ModuleFvwmFormMyFvwmTalk

+"Form-QuitVerify"ModuleFvwmFormQuitVerify

AddToMenuQuit-Verify

+"RestartFvwm%mini.refresh.xpm%"Restartfvwm

+""Nop

+"Startwm2"Restartwm2

+"Starttwm"Restarttwm

+"Startctwm"Restartctwm

+"Starttvtwm"Restarttvtwm

+"Startvtwm"Restartvtwm

+"Startmwm"Restartmwm

+"Startolwm"Restartolwm

+""Nop

+"Startdummy%mini.xterm.xpm%"Restartxterm

+""Nop

+"No,Don'tQuit"Nop

########################SampleFunctions##########################

AddToFuncMailFunction"I"Next[$0]Iconify-1

+"I"Next[$0]Focus

+"I"None[$0]Exec$0$1

AddToFuncMove-or-Raise "I"Raise

+ "M"Move

+"D"Lower

AddToFuncMove-or-Raise2 "M"Raise

+ "M"Move

+"D"Lower

AddToFuncMaximize-Func "M"Maximize0100

+ "C"Maximize080

+ "D"Maximize100100

AddToFuncMove-or-Iconify "I"Raise

+ "M"Move

+ "D"Iconify

AddToFuncResize-or-Raise "I"Raise

+ "M"Resize

+ "D"Lower

AddToFuncResize-or-Raise2 "M"Raise

+ "M"Resize

+ "D"Lower

AddToFuncPrintFunction "I"Raise

+ "I"Execxdpr-id$w

AddToFuncPrintReverseFunction"I"Raise

+"I"Execxdpr1/2-h-rv-id$w

AddToFuncIconify-and-Raise"I"Iconify

+"I"Raise

#RLOGINmachinefgbg

AddToFuncRLOGIN"I"Execxterm-fg$1-bg$2-erlogin$0-8

#TELNETmachinefgbg

AddToFuncTELNET"I"Execxterm-fg$1-bg$2-etelnet$0

AddToFuncFocusAndWarp"I"Focus

+"I"WarpToWindow2p2p

AddToFuncDeiconifyFocusAndWarp"I"Iconify-1

+"I"FocusAndWarp

AddToFuncChangeDefaultFocus"I"Style"*"$0

+"I"Recapture

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

#Nowsomek

eyboardshortcuts.

#ArrowKeys

#pressarrow+controlanywhere,andscrollby1page

KeyLeft A C Scroll-1000

KeyRight A C Scroll+100+0

KeyUp A C Scroll+0-100

KeyDown A C Scroll+0+100

#pressarrow+metakey,andscrollby1/10ofapage

KeyLeft A M Scroll-10+0

KeyRight A M Scroll+10+0

KeyUp A M Scroll+0-10

KeyDown A M Scroll+0+10

#pressshiftarrow+controlanywhere,andmovethepointerby1%ofapage

KeyLeft A SC CursorMove-10

KeyRight A SC CursorMove+1+0

KeyUp A SC CursorMove+0-1

KeyDown A SC CursorMove+0+1

#pressshiftarrow+metakey,andmovethepointerby1/10ofapage

KeyLeft A SM CursorMove-10+0

KeyRight A SM CursorMove+10+0

KeyUp A SM CursorMove+0-10

KeyDown A SM CursorMove+0+10

#Keyboardaclearcase/" target="_blank" >ccelerators

KeyF1 A M MenuRootMenu

KeyF2 A M MenuWindow-Ops

KeyF3 A M WindowListFvwmWinList

KeyF4 A M Iconify

KeyF5 A M Move

KeyF6 A M Resize

KeyF7 A M CirculateUp

KeyF8 A M CirculateDown

#PageUp/DapgeDownkeysareusedtoscrollbyonedesktoppage

#inanycontext,presspageup/down+control

#inrootcontext,justpressingpageup/downisOK

#

#Ipreferthenon-wrappingscroll.Theseareforexamplepurposesonly

#KeyNext ACScroll1000000

#KeyNext RNScroll1000000

#KeyPrior ACScroll-1000000

#KeyPrior RNScroll-1000000

##################FvwmButtonsbutton-bar################################

*FvwmButtonsBack#5c54c0

*FvwmButtonsGeometry120x30+400-2[color=red:8fa26d1069]定义电子钟的大小和出现的位置[/color:8fa26d1069]

*FvwmButtons(Swallow(Respawn,NoHints)xdaliclock`Execexecxdaliclock-bggray40-fgyellow-fn12x24`)[color=red:8fa26d1069]bg背景色,fg前景色,fn字体大小[/color:8fa26d1069]

[color=red:8fa26d1069]上面的buttons配置是我的桌面上的电子钟的配置情况[/color:8fa26d1069]

##########################Window-Identifier###############################

#Justchoosecolorsandafonts

*FvwmIdentBackMidnightBlue

*FvwmIdentForeYellow

*FvwmIdentFont-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

###########################Pager#########################################

*FvwmPagerRows1[color=red:8fa26d1069]虚拟桌面排列行数[/color:8fa26d1069]

*FvwmPagerColumns4[color=red:8fa26d1069]虚拟桌面排列列数[/color:8fa26d1069]

*FvwmPagerFont-adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*[color=red:8fa26d1069]使用的字体[/color:8fa26d1069]

*FvwmPagerBack#5c54c0[color=red:8fa26d1069]虚拟桌面的背景色[/color:8fa26d1069]

*FvwmPagerForewhite[color=red:8fa26d1069]虚拟桌面的前景色[/color:8fa26d1069]

*FvwmPagerHilight#6b64b0[color=red:8fa26d1069]当前使用桌面的颜色[/color:8fa26d1069]

#*FvwmPagerGeometry100x100-1-1

*FvwmPagerGeometry+0-0[color=red:8fa26d1069]桌面面板的出现位置[/color:8fa26d1069]

*FvwmPagerLabel0"OpenBSD3.5"[color=red:8fa26d1069]每一个虚拟桌面的名称,当名称中有空格时用双引号括起来[/color:8fa26d1069]

*FvwmPagerLabel1Maker

*FvwmPagerLabel2Mail

*FvwmPagerLabel3Study

*FvwmPagerSmallFont5x8

*FvwmPagerBalloons All

*FvwmPagerBalloonBack yellow

*FvwmPagerBalloonFore black

*FvwmPagerBalloonFont -adobe-times-bold-r-*-*-10-*-*-*-*-*-*-*

*FvwmPagerBalloonYOffset +2

*FvwmPagerBalloonBorderWidth 1

*FvwmPagerBalloonBorderColor black

##########################FvwmWinList##################################

*FvwmWinListBack#908090

*FvwmWinListForeBlack

*FvwmWinListFont-adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*

*FvwmWinListActionClick1Iconify-1,Focus

*FvwmWinListActionClick2Iconify

*FvwmWinListActionClick3Module"FvwmIdent"FvwmIdent

*FvwmWinListUseSkipList

*FvwmWinListGeometry+0-1

*FvwmBackerDesk0-solidsteelblue

*FvwmBackerDesk1-solidmidnightblue

*FvwmScrollBackgrey40

*FvwmScrollForegreen

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

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

#Notethaticonsareshowninthemodule

#onlyifNoIconcommnandisapplied.

#Style"*"NoIcon

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

*FvwmIconBoxIconBack#cfcfcf

*FvwmIconBoxIconHiForeblack

*FvwmIconBoxIconHiBackLightSkyBlue

*FvwmIconBoxBack#5f9ea0

#*FvwmIconBoxForeblue

*FvwmIconBoxGeometry5x1+0+0

*FvwmIconBoxMaxIconSize64x38

*FvwmIconBoxFont-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

*FvwmIconBoxSortIconsIconName

*FvwmIconBoxPadding4

*FvwmIconBoxLines10

*FvwmIconBoxSBWidth11

*FvwmIconBoxPlacementRightButtom

*FvwmIconBoxPixmapfvwm.xpm

#*FvwmIconBoxHideSCHorizontal

*FvwmIconBoxSetWMIconSize

*FvwmIconBoxHilightFocusWin

#*FvwmIconBoxResolutionDesk

*FvwmIconBoxMouse1ClickRaiseLower

*FvwmIconBoxMouse1DoubleClickIconify

*FvwmIconBoxMouse2ClickIconify-1,Focus

*FvwmIconBoxMouse3ClickModuleFvwmIdent

*FvwmIconBoxKeyrRaiseLower

*FvwmIconBoxKeyspaceIconify

*FvwmIconBoxKeydClose

*FvwmIconBoxKeynNext

*FvwmIconBoxKeypPrev

*FvwmIconBoxKeyhLeft

*FvwmIconBoxKeyjDown

*FvwmIconBoxKeykUp

*FvwmIconBoxKeylRight

#

#Iconfilespecifications

#

#Mostly,youdon'thavetospecifyiconfiles,asFvwmIconBoxnow

#readsiconfilesspecifiedinStylecommands.

#

#*FvwmIconBox"Fvwm*"-

#FvwmFormalias-rloginortelnettohostviaxterm

*RloginWarpPointer

*RloginFont*helvetica*m*r*n*12*

*RloginButtonFont*helvetica*m*o*n*12*

*RloginInputFont*cour*m*r*n*12*

*RloginForeBlack

*RloginBackWhite

*RloginItemForeYellow

*RloginItemBackWheat

#beginitems

*RloginLinecenter

*RloginText"LogintoRemoteHost"

*RloginLinecenter

*RloginText"Host:"

*RloginInputHostName30""

*RloginLinecenter

*RloginSelectionmethsingle

*RloginChoiceTNTNoff"telnet"

*RloginChoiceRLRLon"rlogin"

*RloginSelectionUserSelsingle

#*RloginChoiceDefaultDefaulton"sameuser"

#*RloginChoiceCustomCustomoff"user:"

*RloginText"(Userid:"

*RloginInputUserName10""

*RloginText")"

*RloginLinecenter

*RloginText"FG:"

*RloginInputFgColor15""

*RloginText"BG:"

*RloginInputBgColor15""

*RloginLineexpand

*RloginButtonquit"Login"^M

*RloginCommandExecxterm$(FgColor?-fg$(FgColor))$(BgColor?-bg$(BgColor))-Txterm@$(HostName)-e$(RL?rlogin)$(TN?telnet)$(HostName)$(RL?-8$(UserName?-l$(UserName)))

*RloginButtonrestart"Clear"

*RloginCommandBeep

*RloginButtonquit"Cancel"

*RloginCommandNop

#FvwmFormalias-queryexitalamwm

*QuitVerifyGrabServer

*QuitVerifyWarpPointer

*QuitVerifyFont*helvetica*m*r*n*18*

#*QuitVerifyButtonFont*helvetica*m*o*n*18*

*QuitVerifyButtonFont7x13bold

*QuitVerifyForeBlack

*QuitVerifyBackLightGray

*QuitVerifyItemForeGold

*QuitVerifyItemBackGray40

#beginitems

*QuitVerifyLinecenter

*QuitVerifyText"DoyoureallywanttoexitFVWM?"

*QuitVerifyLineexpand

*QuitVerifyButtonquit"Exit"

*QuitVerifyCommandQuit

*QuitVerifyButtonquit"Cancel"

*QuitVerifyCommandNop

#MyTalk&MyFvwmTalkfromDaveGoldberg

#MyTalkForm-dissappearsafteruse

*MyTalkWarpPointer

*MyTalkFont*helvetica*m*r*n*14*

*MyTalkButtonFont*helvetica*m*o*n*14*

*MyTalkInputFont*cour*m*r*n*14*

*MyTalkForeRed

*MyTalkBackGray

*MyTalkItemForeBlue

*MyTalkItemBackGray

*MyTalkLinecenter

*MyTalkText"FvwmFunction"

*MyTalkInputFunc40""

*MyTalkLineexpand

*MyTalkButtonquit"Run"^M

*MyTalkCommand$(Func)

*MyTalkButtonrestart"Clear"^R

*MyTalkButtonquit"Cancel"^C

*MyTalkCommandNop

#MyFvwmTalkForm-sticksaround

*MyFvwmTalkWarpPointer

*MyFvwmTalkFont*helvetica*m*r*n*14*

*MyFvwmTalkButtonFont*helvetica*m*o*n*14*

*MyFvwmTalkInputFont*cour*m*r*n*14*

*MyFvwmTalkForeRed

*MyFvwmTalkBackGray

*MyFvwmTalkItemForeBlue

*MyFvwmTalkItemBackGray

*MyFvwmTalkLinecenter

*MyFvwmTalkText"FvwmFunction"

*MyFvwmTalkInputFunc40""

*MyFvwmTalkLineexpand

*MyFvwmTalkButtonrestart"Run"^M

*MyFvwmTalkCommand$(Func)

*MyFvwmTalkButtonrestart"Clear"^R

*MyFvwmTalkCommandNop

*MyFvwmTalkButtonrestart"Iconify"^Z

*MyFvwmTalkCommandNext[MyFvwmTalk]Iconify

*MyFvwmTalkButtonquit"Quit"^C

*MyFvwmTalkCommandNop

#tochangebannerpixmap

#*FvwmBannerPixmapfvwm3.xpm

#*FvwmBannerTimeout2

好了,我的配置文件就这样修改的,桌面我自认为还是很靓丽的,当然,你可以将你的桌面改的更靓丽J

更多修改请参考网上各类fvwm学习文档,

电脑资料

《靓丽OpenBSD桌面Unix系统》()。

另外我的.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系统上copysimsun.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

桌面图片请到www.cnfug.org的openbsd版下载!

[color=blue:8fa26d1069]转载请注明出自:http://openbsd.linuxsir.org,openbsd中文学习小组![/color:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087120277.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087120561.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087120835.gif[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087120956.gif[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087269209.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087269373.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087269209.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087269373.jpg[/img:8fa26d1069]

[img:8fa26d1069]http://forum.cnfug.org/uploads/post-15-1087269538.jpg[/img:8fa26d1069]

GoldSn0ke 回复于:2004-06-15 11:09:24不错,顶顶...

xiaohua 回复于:2004-06-15 11:41:46

iceblood 回复于:2004-06-15 12:11:32不错,但太复杂。

zero-B 回复于:2004-06-15 19:29:46麻烦到家了

不过还是很好看的

quakelee 回复于:2004-06-15 22:18:16这么努力,一定支持一下

sniper 回复于:2004-06-16 11:16:14不过是设置了fvwm而已。不管哪个平台都一样的。

但是我们缺少X和桌面套件的知识,所以还是很欢迎这样的帖子的。

hughr 回复于:2004-06-16 14:02:06一般般靓

白狐狸 回复于:2004-06-16 17:00:43看到openBSD的吉祥物,就想到了红袖添香~~

氧气 回复于:2004-06-19 07:05:55应该支持以下的不过界面做的实在是有点垃圾

echoxyc 回复于:2004-06-19 22:04:55有没有配置fvwm界面的工具?

wangbinm 回复于:2004-06-22 17:06:42不错,桌面相当漂亮!!!!:em02:

eagerlinuxer 回复于:2004-07-09 15:40:08不会是看到照片漂亮才支持一下的吧,嘿嘿,开个玩笑。

原文转自:http://www.ltesting.net

靓丽OpenBSD桌面Unix系统 -电脑资料

手机扫码分享

Top