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