FreeBSD 桌面應用配置文件

From : http://www.lslnet.com/linux/f/docs1/i13/big5167360.htm

 

FreeBSD 桌面應用配置文件

還是筆記本電腦好。在家和在公司各有一台電腦用,安裝、配置的工作都是雙份的。公司的好說,沒有太多東西,備份起來比較輕鬆,所以公司的 FreeBSD 經常更新,實在不行就重裝,因此總能用上新版本。FreeBSD 已出到 6.1 ,我眼紅裡面的 gnome 2.12,一狠心,就把家中機器上的 FreeBSD 5.4 刪掉了,但配置文件是精心設置的,當時很花了一些時間和力氣(大多數是拷貝+粘貼),用著也算順手,也就保存下來,用在了 FreeBSD 6.1 上。現將其匯總在一個文件並發在這裡,一為備份,二為交流。這不是完整的配置文件,而是一些需要添加或修改的局部,如果其中有什麼錯誤,期待你的指出,這不是什麼客套,而是自私的初衷。另外,如標題,這是「桌面應用配置文件」,拿 FB 做服務器的用不著,拿 Windows 做桌面的用不著,拿 FB 做桌面的或許有用。

附: 1,編譯 mplayer 用:make WITH_GTK1=yes install clean
     2,Downloader 的啟動命令是:d4x
     3,附文檔,請將 chm 改為 txt

1  Xorg:/etc/X11/xorg.conf

[code]FontPath     "/usr/X11R6/lib/X11/fonts/TrueType/" #字體

Load  "freetype"

Option      "ZAxisMapping" "4 5"  # 鼠標滾輪

HorizSync    60.0-70.0   #場頻 行頻
VertRefresh  50.0-90.0

DefaultColorDepth   24   #分辨率 色深
modes     "1152x864"[/code]

2 ~/.cshrc

[code]# 語種及輸入法
setenv          LC_ALL        zh_CN.eucCN
setenv          LANG          zh_CN.eucCN
setenv          LC_CTYPE      zh_CN.eucCN
setenv          XMODIFIERS    @im=fcitx

# Java
# Install:pkg_add -r javavmwrapper
# Install:pkg_add diablo-jdk-freebsd6.i386.1.5.0.0.7.00.tbz
setenv          JAVA_HOME /usr/local/diablo-jdk1.5.0
setenv          CLASSPATH $JAVA_HOME/libJAVA_HOME/jre/lib
setenv          PATH $JAVA_HOME/binJAVA_HOME/jre/binPATH[/code]

3 ~/.xinitrc

[code]fcitx &
#exec startxfce4
exec gnome-session
#exec startkde
#exec fluxbox
#exec icewm
#exec enlightenment
#exec fvwm2[/code]

4 Xmms

[code]"-misc-mingliu-medium-r-normal-*-*-120-*-*-p-*-gb2312.1980-0",*-r-*[/code]

5 ~/.fonts.conf

[code]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- for mingliu.ttc --> <match target="font" >
  <test name="family" >
   <string>mingliu</string>
  </test>
  <edit name="antialias" >
   <bool>true</bool>
  </edit>
  <edit name="hinting" >
   <bool>true</bool>
  </edit>
  <edit name="autohint" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <test name="family" >
   <string>Nmingliu</string>
  </test>
  <edit name="antialias" >
   <bool>true</bool>
  </edit>
  <edit name="hinting" >
   <bool>true</bool>
  </edit>
  <edit name="autohint" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <test name="family" >
   <string>mingliu</string>
  </test>
  <test compare="less_eq" name="size" >
   <int>16</int>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <test name="family" >
   <string>Nmingliu</string>
  </test>
  <test compare="less_eq" name="size" >
   <int>16</int>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <test name="family" >
   <string>Nmingliu</string>
  </test>
  <edit name="globaladvance" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <test compare="less_eq" name="size" >
   <double>16</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <test compare="less_eq" name="pixelsize" qual="any" >
   <double>16</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintmedium</const>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
</fontconfig>[/code]
(未完)

6 ~/.fvwm/.fvwm2rc      推薦fvwm 2.5.x。這個文件中主要改的是類似 「-*-mingliu-medium-r-*-*-14-*-*-*-*-*-*-*」的地方,目的是顯示中文。

[code]# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm.
# It should be customized before install.  See other sample .fvwm2rc files
# for hints, as well as pointers from the various links on the official
# fvwm web page (see the FAQ).

EdgeResistance 250 10
EdgeScroll 100 100
ClickTime 750

DeskTopSize 2x2
Menustyle * fvwm, Font -*-mingliu-medium-r-*-*-14-*-*-*-*-*-*-*
MenuStyle * Foreground maroon, Background grey60, Greyed grey40

ColormapFocus FollowsMouse

# default Styles:
# make sure these fonts exist on your system:
Style *           Font -*-mingliu-medium-r-*-*-14-*-*-*-*-*-*-*
Style *           IconFont -*-mingliu-medium-r-*-*-14-*-*-*-*-*-*-*
Style *           HilightFore black, HilightBack palevioletred
Style *           BorderWidth 7, HandleWidth 7
Style *           Icon unknown1.xpm, Color lightgrey/dimgrey
Style *           MWMFunctions, MWMDecor, HintOverride
Style *           DecorateTransient, NoPPosition
Style *           IconBox 0 -10 -280 -1
Style *           FocusFollowsMouse
Style *           TileCascadePlacement

# 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:
Style "XTerm"       Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt"        Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "rxvt"        MWMBorder, MWMButtons

# Styles for various common programs:
Style "*lock"       NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
Style "xbiff"       NoTitle, Sticky, WindowListSkip, ClickToFocus
Style "xcalc"       Icon xcalc.xpm, NoButton 2,ClickToFocus
Style "xmh"         Icon mail1.xpm, NoIconTitle,StickyIcon
Style "xmh"            NoButton 2
Style "xman"            Icon xman.xpm, ClickToFocus
Style "xmag"            Icon mag_glass.xpm, ClickToFocus
Style "xgraph"      Icon graphs.xpm, ClickToFocus
Style "xmosaic"     Color Green/Yellow, ClickToFocus


# some simple default key bindings:
Key Next         A       SCM     Next (AcceptsFocus) Focus
Key Prior        A       SCM     Prev (AcceptsFocus) 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

#   for the title bar buttons:
Mouse 0        1            A              Menu Window-Ops2 Close
Mouse 0        2            A             Maximize-Func
Mouse 0        4            A             Iconify
Mouse 0 6       A       Close

#   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

######################## Initialization Functions ############################
AddToFunc StartFunction
+ I Module FvwmButtons

AddToFunc InitFunction
+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70

# For some SM-s (like gnome-session) there is an internal background setter.
AddToFunc SessionInitFunction
+ I Nop

######################## Menus ###################
AddToMenu RootMenu        "RootMenu(菜單)"        Title
+                        "XTerm"                Exec exec xterm
+                        "Rxvt"                Exec exec rxvt
+                       "Firefox"       Exec exec firefox
+                       "Eva"           Exec exec eva
+                       "Rox-filer"     Exec exec rox
+                       "Gaim_QQ"       Exec exec gaim
+                       ""              Nop
+                       "Program"       Popup Program
+                        ""                Nop
+                       "Edit"          Popup Edit
+                       ""              Nop
+                       "Gnome-set"     Popup Gnome-set
+                       ""              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
+                        ""                Nop
+                        "Exit Fvwm"        Popup Quit-Verify

AddToMenu Program       "Program"       Title
+                       "Xmms"          Exec exec xmms
+                       "Gimp"          Exec exec gimp
+                       "Xine"          Exec exec xine
+                       "Realplayer"    Exec exec realplay

AddToMenu Edit          "Edit"          Title
+                       "Nedit"         Exec exec nedit
+                       "Acroread7"     Exec exec acroread7

AddToMenu Gnome-set     "Gnome-set"     Title
+                       "Gnome-panel"   Exec exec gnome-panel
+                       "Gnome-theme"   Exec exec gnome-theme-manager

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"
+                        ""                Nop
+                       "XLock"         Exec exec xlock -mode random
+                        ""                Nop
+                       "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"                Move
+                        "Resize"        Resize
+                        "Raise"                Raise
+                        "Lower"                Lower
+                         "(De)Iconify"        Iconify
+                        "(Un)Stick"        Stick
+                        "(Un)Maximize"        Maximize
+                        ""                Nop
+                        "Delete"        Delete
+                        "Close"                Close
+                        "Destroy"        Destroy
+                        ""                Nop
+                        "Refresh Window" RefreshWindow

AddToMenu Window-Ops2        "&Move"                Move
+                        "&Resize"        Resize
+                        "R&aise"        Raise
+                        "&Lower"        Lower
+                        "(De)&Iconify"        Iconify
+                        "(Un)&Stick"        Stick
+                       "(Un)Ma&ximize" Maximize
+                        ""                Nop
+                        "&Delete"        Delete
+                        "&Close"        Close
+                        "Destroy"        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         "Really Quit Fvwm?" Title
+                              "Yes, Really Quit"  Quit
+                              ""                    Nop
+                       "Restart Fvwm"      Restart
+                              "Restart Fvwm 1.x"  Restart fvwm -s
+                              ""                    Nop
+                              "Start twm"         Restart twm
+                              "Start ctwm"        Restart ctwm
+                        "Start tvtwm"       Restart tvtwm
+                        "Start vtwm"        Restart vtwm
+                              "Start mwm"                Restart mwm
+                                    "Start olwm"        Restart /usr/openwin/bin/olwm
+                              ""                    Nop
+                              "Start dummy"       Restart xterm
+                              ""                    Nop
+                              "No, Don't Quit"    Nop

######################## Sample Functions ##########################

AddToFunc MailFunction           I Next (AcceptsFocus $0) Iconify -1
+                           I Next (AcceptsFocus $0) Focus
+                           I None (AcceptsFocus $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

################## FvwmButtons button-bar ################################
*FvwmButtons: Geometry 520x100-1-1
*FvwmButtons: Back bisque3
*FvwmButtons: (Frame 2 Padding 2 2 Container(Rows 2 Columns 5 Frame 1 /
                                             Padding 10 0))
*FvwmButtons: (3x2 Frame 2 Swallow "FvwmIconMan" "Module FvwmIconMan")
*FvwmButtons: (1x2 Frame 2 Swallow(UseOld) "FvwmPager" "Module FvwmPager 0 0")
*FvwmButtons: (1x2 Frame 0 Container(Rows 2 Columns 2 Frame 0))
*FvwmButtons: (Frame 2 Swallow(UseOld,NoHints,Respawn) "xbiff" `Exec exec xbiff -bg bisque3`)
*FvwmButtons: (Frame 3 Swallow(UseOld,NoHints,Respawn) "xclock" `Exec exec xclock -bg bisque3 -fg black -hd black -hl black -padding 0 -update 1`)
*FvwmButtons: (2x1 Frame 2 Swallow(UseOld,NoHints,Respawn) "xload" `Exec exec xload -bg bisque3 -fg black -update 5 -nolabel`)
*FvwmButtons: (End)
*FvwmButtons: (End)

########################## 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        -*-mingliu-medium-r-*-*-12-*-*-*-*-*-*-*
*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        name
*FvwmIconMan: plainbutton          up black bisque3
*FvwmIconMan: selectbutton         down black bisque3
*FvwmIconMan: focusbutton          up yellow firebrick
*FvwmIconMan: focusandselectButton down yellow firebrick
*FvwmIconMan: dontshow icon=Untitled title=Untitled
#*FvwmIconMan: drawicons true
*FvwmIconMan: buttongeometry  300x0
*FvwmIconMan: managergeometry 1x5

########################## Window-Identifier ###############################
# Just choose colors and a fonts
*FvwmIdent: Back MidnightBlue
*FvwmIdent: Fore Yellow
*FvwmIdent: Font -*-mingliu-medium-r-*-*-12-*-*-*-*-*-*-*

########################### Pager #########################################
*FvwmPager: Back #908090
*FvwmPager: Fore #484048
#*FvwmPager: Font -*-mingliu-medium-r-*-*-10-*-*-*-*-*-*-*
# turn off desktop names for swallowing in above button bar example:
*FvwmPager: Font none
*FvwmPager: Hilight #cab3ca
*FvwmPager: Geometry -1-1
*FvwmPager: Label 0 Misc
*FvwmPager: Label 1 Maker
*FvwmPager: Label 2 Mail
*FvwmPager: Label 3 Matlab
*FvwmPager: SmallFont 5x8
*FvwmPager: Balloons            All
*FvwmPager: BalloonBack         Yellow
*FvwmPager: BalloonFore         Black
*FvwmPager: BalloonFont         lucidasanstypewriter-12
*FvwmPager: BalloonYOffset      +2
*FvwmPager: BalloonBorderWidth  1
*FvwmPager: BalloonBorderColor  Black

##########################FvwmWinList##################################
*FvwmWinList: Back #908090
*FvwmWinList: Fore Black
*FvwmWinList: Font -*-mingliu-medium-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinList: Action Click1 Iconify -1,Focus
*FvwmWinList: Action Click2 Iconify
*FvwmWinList: Action Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinList: UseSkipList
*FvwmWinList: Geometry +0-1


*FvwmBacker: Desk 0 -solid steelblue
*FvwmBacker: Desk 1 -solid midnightblue

*FvwmScroll: Back grey40
*FvwmScroll: Fore green

############################################################
############################################################
# Note that icons are shown in the module
#    only if NoIcon commnand is applied.
#Style     *  NoIcon

############################################################
*FvwmIconBox: IconBack    #cfcfcf
*FvwmIconBox: IconHiFore  black
*FvwmIconBox: IconHiBack  LightSkyBlue
*FvwmIconBox: Back        #5f9ea0
#*FvwmIconBox: Fore       blue
*FvwmIconBox: Geometry    5x1+0+0
*FvwmIconBox: MaxIconSize 64x38
*FvwmIconBox: Font        -*-mingliu-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBox: SortIcons   IconName
*FvwmIconBox: Padding     4
*FvwmIconBox: Lines       10
*FvwmIconBox: SBWidth     11
*FvwmIconBox: Placement   Left Top
*FvwmIconBox: Pixmap      fvwm.xpm
#*FvwmIconBo: xHideSC Horizontal
*FvwmIconBox: SetWMIconSize
*FvwmIconBox: HilightFocusWin
#*FvwmIconBox: Resolution          Desk
*FvwmIconBox: Mouse       1       Click           RaiseLower
*FvwmIconBox: Mouse       1       DoubleClick     Iconify
*FvwmIconBox: Mouse       2       Click           Iconify -1, Focus
*FvwmIconBox: Mouse       3       Click           Module FvwmIdent
*FvwmIconBox: Key         r       RaiseLower
*FvwmIconBox: Key         space   Iconify
*FvwmIconBox: Key         d       Close
*FvwmIconBox: Key         n       Next
*FvwmIconBox: Key         p       Prev
*FvwmIconBox: Key         h       Left
*FvwmIconBox: Key         j       Down
*FvwmIconBox: Key         k       Up
*FvwmIconBox: Key         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
*Rlogin: WarpPointer
*Rlogin: Font         *mingliut*m*r*n*12*
*Rlogin: ButtonFont   *mingliu*m*o*n*12*
*Rlogin: InputFont    *mingliu*m*r*n*12*
*Rlogin: Fore         Black
*Rlogin: Back         Light Gray
*Rlogin: ItemFore          Wheat
*Rlogin: ItemBack          Gray50
# begin items
*Rlogin: Line         center
*Rlogin: Text         "Login to Remote Host"
*Rlogin: Line         center
*Rlogin: Text         "Host:"
*Rlogin: Input        HostName  30   ""
*Rlogin: Line         center
*Rlogin: Selection    meth single
*Rlogin: Choice       TN TN off "telnet"
*Rlogin: Choice       RL RL on "rlogin"
*Rlogin: Selection    UserSel   single
#*Rlogin: Choice       Default   Default   on   "same user"
#*Rlogin: Choice       Custom    Custom    off  "user:"
*Rlogin: Text         "(Userid:"
*Rlogin: Input        UserName  10   ""
*Rlogin: Text         ")"
*Rlogin: Line         center
*Rlogin: Text         "FG:"
*Rlogin: Input        FgColor 15 ""
*Rlogin: Text         "BG:"
*Rlogin: Input        BgColor 15 ""
*Rlogin: Line         expand
*Rlogin: Button       quit "Login" ^M
*Rlogin: Command Exec xterm  $(FgColor?-fg $(FgColor)) $(BgColor?-bg $(BgColor)) -T xterm@$(HostName) -e $(RL?rlogin) $(TN?telnet) $(HostName) $(RL?-8 $(UserName?-l $(UserName)))
*Rlogin: Button       restart   "Clear"
*Rlogin: Command Beep
*Rlogin: Button       quit "Cancel"
*Rlogin: Command Nop

# FvwmForm alias - query exit ala mwm
*QuitVerify: GrabServer
*QuitVerify: WarpPointer
*QuitVerify: Font          *mingliu*m*r*n*14*
#*QuitVerify: ButtonFont    *mingliu*m*o*n*14*
*QuitVerify: ButtonFont    7x13bold
*QuitVerify: Fore          Black
*QuitVerify: Back          Light Gray
*QuitVerify: ItemFore Wheat
*QuitVerify: ItemBack Gray50
# begin items
*QuitVerify: Line          center
*QuitVerify: Text          "Do you really want to exit FVWM?"
*QuitVerify: Line          expand
*QuitVerify: Button   quit      " Exit "
*QuitVerify: Command  Quit
*QuitVerify: Button   quit      "Cancel"
*QuitVerify: Command  Nop

# MyTalk & MyFvwmTalk from Dave Goldberg
# MyTalk Form - dissappears after use
*MyTalk: WarpPointer
*MyTalk: Font *mingliu*m*r*n*14*
*MyTalk: ButtonFont *mingliu*m*o*n*14*
*MyTalk: InputFont *mingliu*m*r*n*14*
*MyTalk: Fore Red
*MyTalk: Back Gray
*MyTalk: ItemFore Blue
*MyTalk: ItemBack Gray
*MyTalk: Line center
*MyTalk: Text "Fvwm Function"
*MyTalk: Input Func 40 ""
*MyTalk: Line expand
*MyTalk: Button quit "Run" ^M
*MyTalk: Command $(Func)
*MyTalk: Button restart "Clear" ^R
*MyTalk: Button quit "Cancel" ^C
*MyTalk: Command Nop
# MyFvwmTalk Form - sticks around
*MyFvwmTalk: WarpPointer
*MyFvwmTalk: Font *mingliu*m*r*n*14*
*MyFvwmTalk: ButtonFont *mingliu*m*o*n*14*
*MyFvwmTalk: InputFont *mingliu*m*r*n*14*
*MyFvwmTalk: Fore Red
*MyFvwmTalk: Back Gray
*MyFvwmTalk: ItemFore Blue
*MyFvwmTalk: ItemBack Gray
*MyFvwmTalk: Line center
*MyFvwmTalk: Text "Fvwm Function"
*MyFvwmTalk: Input Func 40 ""
*MyFvwmTalk: Line expand
*MyFvwmTalk: Button restart "Run" ^M
*MyFvwmTalk: Command $(Func)
*MyFvwmTalk: Button restart "Clear" ^R
*MyFvwmTalk: Command Nop
*MyFvwmTalk: Button restart "Iconify" ^Z
*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
*MyFvwmTalk: Button quit "Quit" ^C
*MyFvwmTalk: Command Nop

# to change banner pixmap
#*FvwmBanner: Pixmap fvwm3.xpm
#*FvwmBanner: Timeout 2[/code]
(完)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值