⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 172-193.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML>

<HEAD>

<TITLE>Linux Configuration and Installation:Installing and Configuring XFree86</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=1558285660//-->

<!--TITLE=Linux Configuration and Installation//-->

<!--AUTHOR=Patrick Volkerding//-->

<!--AUTHOR=Kevin Reichard//-->

<!--AUTHOR=Eric Foster//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--CHAPTER=3//-->

<!--PAGES=172-193//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="168-172.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="193-196.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading41"></A><FONT COLOR="#000077">Putting It All Together</FONT></H4>

<P>To put all this together, the following is our <B>.fvwmrc</B> file. You can use this as a base for your modifications. We don&#146;t expect you to type this in. Instead, we provide it as a source of ideas and information for configuring <B>fvwm</B> to your liking. The only lines we changed&#151;and there are only a few&#151;are marked in italic type.</P>

<!-- CODE //-->

<PRE>

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

  # set up the colors

  #

  # OK some people like bright clear colors on

  # their window decorations.

  # These people, I guess would mostly be from nice

  # sunny/good weather places

  # line California.

  #

  # StdForeColor      Black

  # StdBackColor      LightSkyBlue

  # HiForeColor       yellow

  # HiBackColor       PeachPuff1

  # PagerBackColor    BlanchedAlmond



  # Me, I'm from Upstate New York and live

  # in New Hampshire, so I prefer

  # these dark muddy colors...



  # this is used for nonselected windows,

  # menus, and the panner

  StdForeColor        Black

  StdBackColor        #60a0c0



  # this is used for the selected window

  HiForeColor         Black

  HiBackColor         #c06077



  PagerBackColor      #5c54c0

  PagerForeColor      orchid



  StickyForeColor     Black

  StickyBackColor     #60c0a0



  # Menu colors

  MenuForeColor           Black

  MenuBackColor           grey

  MenuStippleColor        SlateGrey



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

  # Now the fonts - one for menus, another

  # for window titles, another for icons

  Font       -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*

  #Font      -*-times-medium-i-*-*-*-140-*-*-*-*-*-*

  WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*

  #IconFont  -adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*

  IconFont   fixed

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

  # Set up the major operating modes

  #

  #######      FOCUS STUFF     ########

  # Set windows to autoraise after 750

  # milliseconds if you like it.

  # Autoraise can sometimes obscure pop-up

  # windows. Performance is now

  # similar to olvwm's auto-raise feature.

  #AutoRaise 750



  # Normally, we'll be in focus-followsmouse

  # mode, but uncomment this

  # for mwm-style click-to-focus

  <I>#ClickToFocus</I>



  #######      ICON STUFF     #########

  # Auto Place Icons is a nice feature....

  # This creates two icon boxes, one on the

  # left side, then one on the

  # bottom. Leaves room in the upper left

  # for my clock and xbiff,

  # room on the bottom for the Pager.

  #IconBox -150 90 -5 -140

  #IconBox 5 -140 -140 -5

  #IconBox -70 1 -1 -140

  <I>IconBox 130 5 600 15</I>



  # If you uncomment this, and make sure

  # that the WindowList is bound to

  # something, it works pretty much

  # like an icon manager.

  #SuppressIcons



  # StubbornIcons makes icons de-iconify into

  # their original position on the

  # desktop, instead of on the current page.

  #StubbornIcons



  # With AutoPlacement, icons will normally

  # place themselves underneath active

  # windows. This option changes that.

  <I>StubbornIconPlacement</I>



  # If you want ALL you icons to follow you around

  # the desktop (Sticky), try this

  #StickyIcons



  ######      MWM EMULATION     #######

  #

  # My feeling is that everyone should use

  # MWMDecorHints and MWMFunctionHints,

  # since some applications depend on having

  # the window manager respect them.



  # MWMFunction hints parses the function

  # information in the MOTIF_WM_HINTS

  # property, and prohibits use of these

  # functions on the window. Appropriate

  # portions of the window decorations are removed.

  MWMFunctionHints



  # MWM is kinda picky about what can be done

  # to transients, and it was keeping

  # me from iconifying some windows that I

  # like to iconify, so here's an

  # over-ride that will allow me to do the

  # operation, even tough the menu

  # item is shaded out.

  MWMHintOverride



  # MWMDecor hints parses the decoration

  # information in the MOTIF_WM_HINTS

  # property, and removes these decoratons

  # from the window. This does not affect

  # the functions that can be performed via the menus.

  MWMDecorHints



  # These are affect minor aspects for the

  # look-and-feel.

  # Sub-menus placement mwm-style?

  <I>MWMMenus</I>

  # mwm-style border reliefs (less deep

  # than default fvwm) ?

  # MWMBorders

  # Maximize button does mwm-inversion thingy

  # MWMButtons



  ###      MISCELLANEOUS STUFF     ####

  # If you don't like the default 150 msec click delay

  # for the complex functions

  # change this and uncomment it.

  #ClickTime 150



  # OpaqueMove has a number (N) attached

  # to it (default 5).

  # if the window occupies less than

  # N% of the screen,

  # then opaque move is used. 0 &lt;= N &lt;= 100

  OpaqueMove 100



  # flip by whole pages on the edge of the screen.

  <I>#EdgeScroll 100 100</I>



  # A modest delay before flipping pages seems

  # to be nice...

  # I thresh in a 50 pixel Move-resistance too,

  # just so people

  # can try it out.

  #EdgeResistance 250 50



  # I like to use a large virtual screen and move

  # from page to page with the

  # pager.

  <I>#EdgeResistance 10000 0</I>



  ####      WINDOW PLACEMENT     ######

  # RandomPlacement prevents user interaction

  # while placing windows:

  # Make windows appear without requiring user

  # interaction to place them.

  <I>RandomPlacement</I>



  # SmartPlacement makes new windows pop-up

  # in blank regions of screen

  # if possible, or falls back to random

  # or interactive placement.

  #SmartPlacement



  # With SmartPlacement, windows will normally

  # place themselves over icons.

  # Uncomment this to change that.

  #StubbornPlacement



  # NoPPosition instructs fvwm to ignore

  # the PPosition field in window

  # geometry hints. Emacs annoyingly sets

  # PPosition to (0,0)!

  <I>#NoPPosition</I>



  #########      DECORATIONS     ######

  # If you want decorated transient windows,

  # uncomment this:

  <I># Ensure that a title-bar appears on dialogs.</I>

  DecorateTransients



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

  # Set up the virtual desktop and pager



  # Set the desk top size in units of

  # physical screen size.

  <I># No virtual desktop.</I>

  DeskTopSize 1x1



  # and the reduction scale used

  # for the panner/pager

  <I># No virtual desktop.</I>

  #DeskTopScale 36



  # Use the Fvwm Pager

  <I># No virtual desktop.</I>

  #Pager 5 5



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

  # Module path and paths to the icons

  #

  # ModulePath is a colon-separated list, just

  # like regular unix PATH

  ModulePath /usr/lib/X11/fvwm

  PixmapPath /usr/include/X11/pixmaps/

  IconPath   /usr/include/X11/bitmaps/



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

  # Set the decoration styles and window options

  # Order is important!!!!

  # If compatible styles are set for a

  # single window in multiple Style

  # commands, then the styles are ORed

  # together. If conflicting styles

  # are set, the last one specified is used.



  # These commands should command before any

  # menus or functions are defined,

  # and before the internal pager is started.



  # change the default width.

  Style "*" BorderWidth 5, HandleWidth 5, Color Black/#60a0c0,Icon

  unknown1.xpm



  Style "Fvwm*"      NoTitle, Sticky, WindowListSkip

  Style "Fvwm Pager" StaysOnTop

  Style "FvwmBanner" StaysOnTop

  Style "GoodStuff"  NoTitle, NoHandles, Sticky,

  WindowListSkip,BorderWidth 0

  Style "*lock"      NoTitle, NoHandles, Sticky, WindowListSkip

  Style "xbiff"      NoTitle,            Sticky, WindowListSkip

  Style "Maker"      StartsOnDesk 1

  Style "matlab"     StartsOnDesk 3

  Style "signal"     StartsOnDesk 3

  Style "rxvt"       Icon  term.xpm

  Style "xterm"      Icon xterm.xpm, Color black/grey

  Style "Appointment" Icon datebook.xpm

  Style "xcalc"      Icon xcalc.xpm

  Style "xbiff"      Icon mail1.xpm

  Style "xmh"        Icon mail1.xpm, StartsOnDesk 2

  Style "xman"       Icon xman.xpm

  Style "xvgr"       Icon graphs.xpm

  Style "matlab"     Icon math4.xpm

  Style "xmag"       Icon mag_glass.xpm

  Style "xgraph"     Icon graphs.xpm

  Style "GoodStuff"  Icon toolbox.xpm



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



  # Stuff to do at start-up

  Function "InitFunction"

  #Module "I" FvwmBanner

  #Exec   "I" xpmroot /usr/include/X11/pixmaps/fvwm.xpm &#38;

  #Module "I" GoodStuff

  #Module "I" FvwmPager 0 3

  #Exec   "I" exec xterm -geometry 80x64&#43;0&#43;0 &#38;

  #Wait   "I" xterm

  #Desk   "I" 0 2

  #Exec   "I" exec xmh -font fixed -geometry 507x750&#43;0&#43;0 &#38;

  #Wait   "I" xmh

  #Desk   "I" 0 0

  EndFunction



  Function "RestartFunction"

  #Exec   "I" xsetroot -solid "#266294"

  #Module "I" GoodStuff

  #Module "I" FvwmPager 0 3

  EndFunction



  # Now define some handy complex functions.



  # This one moves and then raises the

  # window if you drag the mouse,

  # only raises the window if you click,

  # or does a RaiseLower if you double

  # click

  Function "Move-or-Raise"

      Move        "Motion"

      Raise       "Motion"

      Raise       "Click"

      RaiseLower  "DoubleClick"

  EndFunction



  # This one maximizes vertically if you click

  # (leaving room for the GoodStuff bar at the

  # bottom) or does a full maximization

  # if you double-click, or a true full vertical

  # maximization if you just hold the mouse button down.

  Function "maximize_func"

      Maximize    "Motion" 0 100

      Maximize    "Click" 0 80

      Maximize    "DoubleClick" 100 100

  EndFunction



  # This one moves and then lowers the window

  # if you drag the mouse, only lowers the window

  # if you click,  or does a RaiseLower if you double

  # click

  Function "Move-or-Lower"

      Move        "Motion"

      Lower       "Motion"

      Lower       "Click"

      RaiseLower  "DoubleClick"

  EndFunction



  # This one moves or (de)iconifies:

  Function "Move-or-Iconify"

      Move        "Motion"

      Iconify     "DoubleClick"

  EndFunction



  # This one resizes and then raises the window

  # if you drag the mouse,

  # only raises the window if you click,

  # or does a RaiseLower if you double

  # click

  Function "Resize-or-Raise"

      Resize      "Motion"

      Raise       "Motion"

      Raise       "Click"

      RaiseLower  "DoubleClick"

  EndFunction



  # This is provided as a hint only.

  # Move to a known page on the desktop,

  # then start an application in a

  # known location. Could also switch to a

  # known desktop, I guess

  #Function "abs_coord"

  #GoToPage "Immediate"   1,1

  #Exec   "Immediate" exec xcalc -geometry &#43;100&#43;100&#38;

  #EndFunction



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

  #now define the menus - defer bindings until later



  Popup "Shells"

  Title   "Shells"

    Exec    "Xterm (7x14 font)"     exec /usr/bin/X11/xterm -sb -sl 500 -

  j -ls -fn 7x14 &#38;

    Exec    "Color Rxvt (VT100 emulator)" exec /usr/bin/X11/rxvt -font

  7x14 -ls &#38;

    Exec    "Color Xterm (7x14 font)"       exec /usr/bin/X11/color_xterm

  -sb -sl 500 -j -ls -fn 7x14 &#38;

    Exec    "Large Xterm (10x20 font)"      exec /usr/bin/X11/xterm -sb -

  sl 500 -j -ls -fn 10x20 &#38;

    Exec    "Large Rxvt (10x20 font)"       exec /usr/bin/X11/rxvt -font

  10x20 -ls &#38;

    Exec    "Large Color Xterm (10x20 font)"        exec

  /usr/bin/X11/color_xterm -sb -sl 500 -j -ls -fn 10x20 &#38;

  EndPopup



  Popup "Screensaver"

    Title   "Screensaver"

    Exec    "Bat"       exec xlock -nolock -nice 0 -mode bat &#38;

    Exec    "Blank"     exec xlock -nolock -nice 0 -mode blank &#38;

    Exec    "Blot"      exec xlock -nolock -nice 0 -mode blot &#38;

    Exec    "Bob"       exec xlock -nolock -nice 0 -mode bob &#38;

    Exec    "Bounce"    exec xlock -nolock -nice 0 -mode bounce &#38;

    Exec    "Flame"     exec xlock -nolock -nice 0 -mode flame &#38;

    Exec    "Galaxy"    exec xlock -nolock -nice 0 -mode galaxy &#38;

    Exec    "Grav"      exec xlock -nolock -nice 0 -mode grav &#38;

    Exec    "Helix"     exec xlock -nolock -nice 0 -mode helix &#38;

    Exec    "Hop"       exec xlock -nolock -nice 0 -mode hop   &#38;

    Exec    "Hyper"     exec xlock -nolock -nice 0 -mode hyper &#38;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -