.fvwm/.fvwm2rc
branchfvwm
changeset 341 9809f625d490
child 342 e071a639eaf7
equal deleted inserted replaced
-1:000000000000 341:9809f625d490
       
     1 # This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
       
     2 # This file contains the commands fvwm reads while starting.
       
     3 #
       
     4 
       
     5 EdgeResistance 250 10
       
     6 EdgeScroll 100 100
       
     7 ClickTime 750
       
     8 
       
     9 DeskTopSize 3x3
       
    10 MenuStyle * fvwm, Foreground maroon, Background grey60, Greyed grey40
       
    11 MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
       
    12 
       
    13 ColormapFocus FollowsMouse
       
    14 
       
    15 # default Styles:
       
    16 # make sure these fonts exist on your system:
       
    17 Style *           Font -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
       
    18 Style *           IconFont -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
       
    19 Style *           HilightFore black, HilightBack palevioletred
       
    20 Style *           BorderWidth 7, HandleWidth 7
       
    21 Style *           Icon unknown1.xpm, Color lightgrey/dimgrey
       
    22 Style *           MWMFunctions, MWMDecor, HintOverride
       
    23 Style *           DecorateTransient, NoPPosition
       
    24 Style *           IconBox 0 -10 -280 -1
       
    25 Style *           FocusFollowsMouse
       
    26 Style *           TileCascadePlacement
       
    27 Style *           EWMHUseStackingOrderHints
       
    28 
       
    29 # Styles for various Fvwm modules:
       
    30 Style Fvwm*       NoTitle,  Sticky, WindowListSkip
       
    31 Style Fvwm*       BorderWidth 2, CirculateSkipIcon, CirculateSkip
       
    32 Style FvwmPager   StaysOnTop
       
    33 Style FvwmBanner  StaysOnTop
       
    34 Style FvwmButtons Icon toolbox.xpm, ClickToFocus
       
    35 
       
    36 # Styles for your common terminal emulator programs.
       
    37 # xterms and rxvts in a separate icon box:
       
    38 Style XTerm       Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
       
    39 Style rxvt        Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
       
    40 Style rxvt        MWMBorder, MWMButtons
       
    41 
       
    42 # Styles for various common programs:
       
    43 Style *lock       NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
       
    44 Style xbiff       NoTitle, Sticky, WindowListSkip, ClickToFocus
       
    45 Style xcalc       Icon xcalc.xpm, NoButton 2,ClickToFocus
       
    46 Style xmh         Icon mail1.xpm, NoIconTitle,StickyIcon
       
    47 Style xmh         NoButton 2
       
    48 Style xman        Icon xman.xpm, ClickToFocus
       
    49 Style xmag        Icon mag_glass.xpm, ClickToFocus
       
    50 Style xgraph      Icon graphs.xpm, ClickToFocus
       
    51 Style xmosaic     Color Green/Yellow, ClickToFocus
       
    52 Style OpenOffice* NoFuncHint
       
    53 
       
    54 
       
    55 # some simple default key bindings:
       
    56 Key Next         A       SCM     Next [*] Focus
       
    57 Key Prior        A       SCM     Prev [*] Focus
       
    58 
       
    59 # some simple default mouse bindings:
       
    60 #   for the root window:
       
    61 Mouse 1 R       A       Menu MenuFvwmRoot Nop
       
    62 Mouse 2 R       A       Menu MenuFvwmWindowOps Nop
       
    63 Mouse 3 R       A       WindowList
       
    64 
       
    65 #   for the title bar buttons:
       
    66 Mouse 0 1       A       Menu MenuFvwmWindowOps2 Close
       
    67 Mouse 0 2       A       FuncFvwmMaximize
       
    68 Mouse 0 4       A       Iconify
       
    69 
       
    70 #   for other parts of the window/borders/icons:
       
    71 Mouse 1 F       A       FuncFvwmResizeOrRaise
       
    72 Mouse 1 TS      A       FuncFvwmMoveOrRaise
       
    73 Mouse 1 I       A       FuncFvwmMoveOrIconify
       
    74 Mouse 2 I       A       Iconify
       
    75 Mouse 2 FST     A       Menu MenuFvwmWindowOps2 Nop
       
    76 Mouse 3 TSIF    A       RaiseLower
       
    77 
       
    78 ######################## Initialization Functions ############################
       
    79 AddToFunc StartFunction
       
    80 + I Module FvwmAnimate
       
    81 + I Module FvwmBanner
       
    82 + I Module FvwmButtons
       
    83 
       
    84 AddToFunc InitFunction
       
    85 + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70
       
    86 
       
    87 # For some SM-s (like gnome-session) there is an internal background setter.
       
    88 AddToFunc SessionInitFunction
       
    89 + I Nop
       
    90 
       
    91 ######################## Menus ###################
       
    92 Read /etc/X11/fvwm/menudefs.hook Quiet
       
    93 Read menudefs.hook Quiet
       
    94 
       
    95 DestroyMenu MenuFvwmRoot
       
    96 AddToMenu MenuFvwmRoot  "$[gt.Root Menu]"             Title
       
    97 +                       "&1. XTerm"             Exec exec xterm
       
    98 +                       "&2. Rxvt"              Exec exec rxvt
       
    99 +                       ""              Nop
       
   100 +                       "&D. Debian Menu"             Popup "/Debian"
       
   101 +                       ""              Nop
       
   102 +                       "&R. $[gt.Remote Logins]"     Popup MenuFvwmLogins
       
   103 +                       ""              Nop
       
   104 +                       "&U. $[gt.Utilities]"         Popup MenuFvwmUtilities
       
   105 +                       ""              Nop
       
   106 +                       "&M. $[gt.Fvwm Modules]"      Popup MenuFvwmModules
       
   107 +                       "&W. $[gt.Fvwm Window Ops]"   Popup MenuFvwmWindowOps
       
   108 +                       "&S. $[gt.Fvwm Config Ops]"   Popup MenuFvwmConfig
       
   109 +                       ""              Nop
       
   110 +                       "&F. $[gt.Refresh Screen]"   Refresh
       
   111 +                       "&C. $[gt.Recapture Screen]" Recapture
       
   112 +                       ""              Nop
       
   113 +                       "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
       
   114 
       
   115 DestroyMenu MenuFvwmUtilities
       
   116 AddToMenu MenuFvwmUtilities     "$[gt.Utilities]" Title
       
   117 +                       "&T. Top"       Exec exec xterm -T Top -n Top -e top
       
   118 +                       "&C. Calculator" Exec exec xcalc
       
   119 +                       "&M. Xman"      Exec exec xman
       
   120 +                       "&G. Xmag"      Exec exec xmag
       
   121 +                       "&R. Editres"   Exec exec editres
       
   122 +                       ""              Nop
       
   123 +                       "&E. XEmacs"    Exec exec xemacs
       
   124 +                       "&A. Xmh Mail"  FuncFvwmMailXmh xmh "-font fixed"
       
   125 +                       ""              Nop
       
   126 +                       "&L. XLock"     Exec exec xlock -mode random
       
   127 +                       ""              Nop
       
   128 +                       "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults
       
   129 
       
   130 DestroyMenu MenuFvwmConfig
       
   131 AddToMenu MenuFvwmConfig "$[gt.Fvwm Config Ops]" Title
       
   132 + "&S. $[gt.Sloppy Focus]"        FuncFvwmFocusPolicyChange SloppyFocus
       
   133 + "&C. $[gt.Click To Focus]"      FuncFvwmFocusPolicyChange ClickToFocus
       
   134 + "&F. $[gt.Focus Follows Mouse]" FuncFvwmFocusPolicyChange FocusFollowsMouse
       
   135 + "" Nop
       
   136 + "&1. $[gt.Colormap Follows Mouse]" ColormapFocus FollowsMouse
       
   137 + "&2. $[gt.Colormap Follows Focus]" ColormapFocus FollowsFocus
       
   138 + "" Nop
       
   139 + "&3. $[gt.Full Paging ON]"           EdgeScroll 100 100
       
   140 + "&4. $[gt.All Paging OFF]"           EdgeScroll 0 0
       
   141 + "&5. $[gt.Horizontal Paging Only]"   EdgeScroll 100 0
       
   142 + "&6. $[gt.Vertical Paging Only]"     EdgeScroll 0 100
       
   143 + "&7. $[gt.Partial Paging]"           EdgeScroll 50 50
       
   144 + "&8. $[gt.Full Paging && Edge Wrap]" EdgeScroll 100000 100000
       
   145 
       
   146 # The window Ops menus exhibit a different HotKey style.
       
   147 # There are 2 versions of the WindowOps Menu, meant to be bound to different
       
   148 # things.  Here is the "common" part:
       
   149 DestroyFunc FuncFvwmWindowCommon
       
   150 AddToFunc FuncFvwmWindowCommon
       
   151 + I AddToMenu $0 "$[gt.&Move]"              Move
       
   152 + I AddToMenu $0 "$[gt.&Resize]"            Resize
       
   153 + I AddToMenu $0 "$[gt.R&aise]"             Raise
       
   154 + I AddToMenu $0 "$[gt.&Lower]"             Lower
       
   155 + I AddToMenu $0 "$[gt.(De)&Iconify]"       Iconify
       
   156 + I AddToMenu $0 "$[gt.(Un)&Stick]"         Stick
       
   157 + I AddToMenu $0 "$[gt.(Un)Ma&ximize]"      Maximize
       
   158 + I AddToMenu $0 ""                 Nop
       
   159 + I AddToMenu $0 "$[gt.&Delete]"            Delete
       
   160 + I AddToMenu $0 "$[gt.&Close]"             Close
       
   161 + I AddToMenu $0 "$[gt.Destroy]"            Destroy
       
   162 + I AddToMenu $0 ""                 Nop
       
   163 
       
   164 # First windowops menu, bound to:
       
   165 # mouse 2 on root
       
   166 # Root menu
       
   167 DestroyMenu MenuFvwmWindowOps
       
   168 AddToMenu MenuFvwmWindowOps     "$[gt.Window Ops]"    Title
       
   169 FuncFvwmWindowCommon MenuFvwmWindowOps
       
   170 + "$[gt.Re&fresh Window]" RefreshWindow
       
   171 
       
   172 # Second windowops menu, bound to:
       
   173 # any mouse on titlebar button 1
       
   174 # mouse 2 on frame, side or titlebar
       
   175 DestroyMenu MenuFvwmWindowOps2
       
   176 AddToMenu MenuFvwmWindowOps2
       
   177 FuncFvwmWindowCommon MenuFvwmWindowOps2
       
   178 + Scroll&Bar       Module FvwmScroll 2 2
       
   179 + "&$[gt.Print]"           FuncFvwmPrint
       
   180 + "$[gt.Print Re&verse]" FuncFvwmPrintReverse
       
   181 
       
   182 # 3 different ways to log on, take your pick:
       
   183 DestroyFunc FuncFvwmRloginXterm
       
   184 AddToFunc FuncFvwmRloginXterm \
       
   185   I Exec xterm -name $0 -title "$USER @ $0" -e rlogin $0
       
   186 DestroyFunc FuncFvwmRloginRxvt
       
   187 AddToFunc FuncFvwmRloginRxvt \
       
   188   I Exec rxvt -name $0 -n $0 -title $USER@$0 -e rlogin $0
       
   189 DestroyFunc FuncFvwmRloginSshRxvt
       
   190 AddToFunc FuncFvwmRloginSshRxvt \
       
   191   I Exec Exec ssh $0 rxvt -display $HOSTDISPLAY
       
   192 
       
   193 # be sure to fill these in with your correct machine names:
       
   194 DestroyMenu MenuFvwmLogins
       
   195 AddToMenu MenuFvwmLogins
       
   196 + &dopey  FuncFvwmRloginXterm dopey
       
   197 + &snoopy FuncFvwmRloginXterm snoopy
       
   198 + s&ignal Exec rxterm signal
       
   199 
       
   200 DestroyMenu MenuFvwmModules
       
   201 AddToMenu MenuFvwmModules "$[gt.Fvwm Modules]"        Title
       
   202 + "&1. $[gt.Control Animation]" Popup  MenuFvwmAnimate
       
   203 + "&B. Button-Bar"        Module FvwmButtons
       
   204 + "&O. IconBox"           FuncFvwmConfigureIconBox
       
   205 + "&F. Forms"             Popup  MenuFvwmForms
       
   206 + "&I. Identify"          Module FvwmIdent
       
   207 + "&M. IconMan"           Module FvwmIconMan
       
   208 + "&N. Banner"            Module FvwmBanner
       
   209 + "&C. Console"           Module FvwmConsole
       
   210 + "&P. Pager"             Module FvwmPager 0 0
       
   211 + "&2. Pager (2 $[gt.desks])"   Module FvwmPager 0 1
       
   212 + "&R. Backer"            Module FvwmBacker
       
   213 + "&S. ScrollBar"         Module FvwmScroll 50 50
       
   214 + "&T. FvwmTaskBar"       Module FvwmTaskBar
       
   215 + "&U. AutoRaise"         Module FvwmAuto 200 Raise Nop
       
   216 + "&W. WinList"           Module FvwmWinList
       
   217 + "&X. $[gt.Stop Module Menu]"  Popup  MenuFvwmStopModule
       
   218 
       
   219 DestroyMenu MenuFvwmStopModule
       
   220 AddToMenu MenuFvwmStopModule "$[gt.Stop Fvwm Modules]" Title
       
   221 + "&B. $[gt.Stop] Button-Bar"  KillModule FvwmButtons
       
   222 + "&O. $[gt.Stop] IconBox"     KillModule FvwmIconBox
       
   223 + "&M. $[gt.Stop] IconMan"     KillModule FvwmIconMan
       
   224 + "&P. $[gt.Stop] Pager"       KillModule FvwmPager
       
   225 + "&R. $[gt.Stop] Backer"      KillModule FvwmBacker
       
   226 + "&S. $[gt.Stop] ScrollBar"   KillModule FvwmScroll
       
   227 + "&T. $[gt.Stop] FvwmTaskBar" KillModule FvwmTaskBar
       
   228 + "&U. $[gt.Stop] AutoRaise"   KillModule FvwmAuto
       
   229 + "&W. $[gt.Stop] WinList"     KillModule FvwmWinList
       
   230 
       
   231 DestroyMenu MenuFvwmForms
       
   232 AddToMenu MenuFvwmForms
       
   233 + "&C. Capture"       Module FvwmForm FvwmForm-Capture
       
   234 + "&D. Form Defaults" Module FvwmForm FvwmForm-Form
       
   235 + "&R. Rlogin"        Module FvwmForm FvwmForm-Rlogin
       
   236 + "&P. RootCursor"    Module FvwmForm FvwmForm-RootCursor
       
   237 + "&S. Setup"         Module FvwmForm FvwmForm-Setup
       
   238 + "&T. Talk Form"     Module FvwmForm FvwmForm-Talk
       
   239 + "&Q. QuitVerify"    Module FvwmForm FvwmForm-QuitVerify
       
   240 
       
   241 # Configure and start using an iconbox on the fly
       
   242 DestroyFunc FuncFvwmConfigureIconBox
       
   243 AddToFunc FuncFvwmConfigureIconBox
       
   244 + I Module FvwmIconBox
       
   245 + I Style     *  NoIcon
       
   246 
       
   247 DestroyMenu MenuFvwmQuitVerify
       
   248 AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title
       
   249 + "&Q. $[gt.Yes, Really Quit]" Quit
       
   250 + ""                     Nop
       
   251 + "&R. $[gt.Restart]"          Restart
       
   252 + ""                     Nop
       
   253 + "&T. $[gt.Start] twm"        Restart twm
       
   254 + "&C. $[gt.Start] ctwm"       Restart ctwm
       
   255 + "&2. $[gt.Start] tvtwm"      Restart tvtwm
       
   256 + "&V. $[gt.Start] vtwm"       Restart vtwm
       
   257 + "&M. $[gt.Start] mwm"        Restart mwm
       
   258 + "&O. $[gt.Start] olwm"       Restart /usr/openwin/bin/olwm
       
   259 + ""                     Nop
       
   260 + "&X. $[gt.Just an Xterm]"    Restart xterm -n '"X Console"' -T '"X Console"'
       
   261 + ""                     Nop
       
   262 + "&N. $[gt.No, Don't Quit]"   Nop
       
   263 
       
   264 ######################## Sample Functions ##########################
       
   265 
       
   266 DestroyFunc FuncFvwmMailXmh
       
   267 AddToFunc FuncFvwmMailXmh
       
   268 + I Next [$0] Iconify false
       
   269 + I Next [$0] Focus
       
   270 + I None [$0] Exec $0 $1
       
   271 
       
   272 DestroyFunc FuncFvwmMoveOrRaise
       
   273 AddToFunc FuncFvwmMoveOrRaise
       
   274 + I Raise
       
   275 + M Move
       
   276 + D Lower
       
   277 
       
   278 DestroyFunc FuncFvwmMaximize
       
   279 AddToFunc FuncFvwmMaximize
       
   280 + M Maximize   0 100
       
   281 + H Maximize   0 100
       
   282 + C Maximize   0  80
       
   283 + D Maximize 100 100
       
   284 
       
   285 DestroyFunc FuncFvwmMoveOrIconify
       
   286 AddToFunc FuncFvwmMoveOrIconify
       
   287 + I Raise
       
   288 + M Move
       
   289 + D Iconify
       
   290 
       
   291 DestroyFunc FuncFvwmResizeOrRaise
       
   292 AddToFunc FuncFvwmResizeOrRaise
       
   293 + I Raise
       
   294 + M Resize
       
   295 + D Lower
       
   296 
       
   297 DestroyFunc FuncFvwmPrint
       
   298 AddToFunc FuncFvwmPrint
       
   299 + I Raise
       
   300 + I Exec xdpr -id $w
       
   301 
       
   302 DestroyFunc FuncFvwmPrintReverse
       
   303 AddToFunc FuncFvwmPrintReverse
       
   304 + I Raise
       
   305 + I Exec xdpr 1/2 -h -rv -id $w
       
   306 
       
   307 DestroyFunc FuncFvwmFocusPolicyChange
       
   308 AddToFunc FuncFvwmFocusPolicyChange
       
   309 + I Style * $0
       
   310 + I Recapture
       
   311 
       
   312 # Read config files for modules:
       
   313 read ConfigFvwmBacker
       
   314 read ConfigFvwmButtons
       
   315 read ConfigFvwmIconBox
       
   316 read ConfigFvwmIconMan
       
   317 read ConfigFvwmIdent
       
   318 read ConfigFvwmPager
       
   319 read ConfigFvwmScroll
       
   320 read ConfigFvwmTaskBar
       
   321 read ConfigFvwmWinList
       
   322 
       
   323 # Local variables:
       
   324 # comment-start: "# "
       
   325 # End: