发博文
个人资料
  • 博客访问:12050
  • 博文数量:7
  • 博客积分:250
  • 博客等级:民兵
  • 注册时间:2007-05-30 04:51:08
订阅我的博客
  • 订阅
  • 订阅到鲜果
  • 订阅到抓虾
  • 订阅到Google
字体大小: 博文
My clean .fvwmrc for OpenBSD (2008-06-06 19:47)

# Used for old fvwm 2.2.* shiped with OpenBSD

DeskTopSize 1x1
#GlobalOpts ClickToFocusDoesntPassClick
EdgeResistance 250 20
EdgeScroll 0 0
EdgeThickness 0
ClickTime 200
# make sure these fonts exist on your system:
#WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-*
#Module  FvwmAuto 600 Raise Nop
WindowFont 8x13bold
IconFont 9x15bold

# for xpm icons
PixmapPath  $HOME/.icons/fvwm:/usr/X11R6/include/X11/pixmaps

#*FvwmBannerPixmap gvim.xpm
*FvwmBannerTimeout 2



# for xbm icons
#IconPath
MenuStyle * mwm
#MenuStyle * Foreground Black,  Background #dedad5
#MenuStyle * HilightBack #4a6983
#MenuStyle * Font lucidasanstypewriter-12
MenuStyle * Font 8x13bold
#MenuStyle * MenuFace Solid #dedad5
MenuStyle * MenuFace DGradient 128 2 lightgrey 50 #5a7993 50 #dedad5
#MenuStyle * MenuFace DGradient 128 4 lightgrey 35 #5a7993 15 lightgrey \
    15 #5a7993 35 lightgrey

MenuStyle * TrianglesRelief
#MenuStyle * TrianglesSolid
MenuStyle * PopupOffset 5 100
MenuStyle * PopupDelay 250
MenuStyle * PopupDelayed
MenuStyle * TitleUnderlines0
MenuStyle * Hilight3DOff
#MenuStyle * HilightBackOff
MenuStyle * ActiveFore white
MenuStyle * Animation
MenuStyle * SeparatorsLong
#MenuStyle * Greyed blue

#FVWM/MWM/WIN,   Foreground,  Background,  Greyed,  
#HilightBack/HilightBackOff,  ActiveFore/ActiveForeOff,
#Hilight3DThick/Hilight3DThin/Hilight3DOff, Animation/AnimationOff,  
#Font,  MenuFace,  PopupDelay,  PopupOffset,     TitleWarp/TitleWarpOff,   
#TitleUnderlines0/TitleUnderlines1/TitleUnderlines2,    
#SeparatorsLong/SeparatorsShort,      
#TrianglesSolid/TrianglesRelief,
#PopupImmediately/PopupDelayed,  
#DoubleClickTime,  SidePic,  SideColor.

# hand1
CursorStyle SELECT 58
# hand2
CursorStyle DESTROY 60


#ColormapFocus FollowsMouse
HilightColor white #5a7993

BorderStyle -- HiddenHandles
BorderStyle -- NoInset
TitleStyle LeftJustified
TitleStyle Height 16 -- flat
#TitleStyle VGradient 16 3 Red 20 Blue 30   Black 50 Grey
#ButtonStyle 1 5 20x44@4 80x44@1 80x55@0 20x55@0 20x44@1
#ButtonStyle 1 8 25x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 25x15@1
#ButtonStyle 1 4 50x75@1 25x25@1 75x25@1 50x75@0
#ButtonStyle 1 5 20x80@4 80x80@0 80x70@0 20x70@1 20x80@1
#ButtonStyle 1 7 20x50@4 30x30@1 50x10@1 70x30@1 80x50@0 70x80@0 40x90@0

# Big box button
ButtonStyle 4 5 20x20@4 20x80@1 80x80@0 80x20@0 20x20@1
#ButtonStyle 2 10 25x40@1 20x40@1 20x80@1 60x80@1 60x65@1 \
#    35x65@0 85x65@0 85x10@0 30x10@1 30x65@1

# dot
#ButtonStyle 6 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
# under line
ButtonStyle 6 5 20x70@4 80x70@0 80x60@0 20x60@1 20x70@1
#ButtonStyle 1 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
#ButtonStyle 4 3 0+4px50+1p@0 100-5px50+1p@0 100-5px50-2p@0


# large down triangle
#ButtonStyle 4 4 50x75@1 25x25@1 75x25@1 50x75@0

# X shape button
ButtonStyle 2 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 \
    60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 \
    20x70@0 40x50@1 20x30@0 20x20@1

# make all buttons flat
ButtonStyle All ActiveUp (-- flat) Inactive   (-- flat)
ButtonStyle 1 - Clear MWMDecorMenu
ButtonStyle 2 - Clear
ButtonStyle 4 - Clear MWMDecorMax
ButtonStyle 6 - Clear MWMDecorMin
#ButtonStyle VGradient 16 3 Red 20 Blue 30   Black 50 Grey


#   for the title bar buttons:

Mouse 0    2        A         Close
Mouse 0    4        A         Maximize
Mouse 0    6        A         Iconify


# default Styles:
Style "*"           BorderWidth 5, HandleWidth 5
Style "*"           Icon unknown1.xpm, Color lightgrey/dimgrey
#Style "*"          MWMFunctions, MWMDecor, HintOverride
Style "*"        MWMButtons
Style "*"           DecorateTransient, NoPPosition
Style "*"         IconBox 100 100  600 600
Style "*"           RandomPlacement
#Style "*"          FocusFollowsMouse
#Style "*"          SloppyFocus
Style "*"        ClickToFocus

# 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 terminal.xpm, SloppyFocus, IconBox -70 1 -1 -140
#Style "XTerm*"       Icon terminal.xpm, StartsOnPage 0 0 0,  SloppyFocus
Style "XTerm*"       Icon terminal.xpm
Style "Gvim*"    Icon gvim.xpm
Style "fullscreen*" Notitle, HandleWidth 0
Style "MPlayer*" HandleWidth 3, BorderWidth 3
Style "xclock*"  StaysOnTop, Sticky

# some simple default key bindings:
Key Next        A       SCM     Next [*] Focus
Key Prior       A       SCM     Prev [*] Focus
Key Delete    A    CM    Restart_FVWM
Key End         A    CM    Quit

Key Tab        A    M    PageNextAndRaise
Key Tab        A    SM    PagePrevAndRaise

Key F1        A    M    MyDesk 0 0
Key F2        A    M    MyDesk 0 1
Key F3        A    M    MyDesk 0 2
Key F4        A    M    MyDesk 0 3

# for windows behavior
#Key F4        A    M    Close


Key F1        A    C    MoveToDesk 0 0
Key F2        A    C    MoveToDesk 0 1
Key F3        A    C    MoveToDesk 0 2
Key F4        A    C    MoveToDesk 0 3

Key F5        A    C    exec xterm
Key F6        A    C    exec mrxvt


Key M        A    M    Move
Key I        A    M    Iconify
Key L        A    M    Lower
Key R        A    M    Raise
Key S        A    M    Resize
Key C        A    M    Close
Key D        A    M    Destroy
Key M        A    CM    Maximize
Key R        A    CM    RefreshWindow
#Key I        A    CM    Module    FvwmIdent

Key Left        A       CM      CursorMove  -130p    0p
Key Right       A       CM      CursorMove   130p    0p
Key Up          A       CM      CursorMove    0p  -130p
Key Down        A       CM      CursorMove    0p   130p

Key Left        A       C     CursorMove   -10p    0p
Key Right       A       C     CursorMove    10p    0p
Key Up          A       C     CursorMove    0p   -10p
Key Down        A       C     CursorMove    0p    10p



Key Left        A       CS       Scroll -100 +0
Key Right       A       CS       Scroll +100 +0
Key Up          A       CS       Scroll +0 -100
Key Down        A       CS       Scroll +0 +100

Key Escape A C Menu RootMenu Nop


# some simple default mouse bindings:
#   for the root window:
Mouse 1    R       A       Menu RootMenu Nop
#Mouse 1    R       A       Nop
Mouse 3    R        A          Menu Window-Ops Nop
#Mouse 3    R        A          WindowList


#   for other parts of the window/borders/icons:
Mouse 1    FS    A    Resize-or-Raise
Mouse 1    T    A    Move-Raise-Shade
Mouse 1    W    M    Move-or-Raise
Mouse 1    I    A    Move-or-Iconify
Mouse 2    I    A    Iconify
Mouse 3    TSIF    A    RaiseLower

######################## Initialization Functions ############################
AddToFunc InitFunction      "I" exec xsetroot -cursor_name left_ptr -solid black
+ "I" exec xset dpms 600
+ "I" exec xset m "4 7"
+ "I" exec xset +fp $HOME/.fonts
#+ "I" FvwmBanner
+ "I" Exec mrxvt -title Terminal -g 80x26+31+43 -e screen -c $HOME/.screenxrc


AddToFunc RestartFunction "I" exec echo "\tR: done @ ($(date))" >> $HOME/.fvwm_errors


######################## Menus ###################
AddToMenu RootMenu    "Root Menu"    Title
+            "XTerm 9x15bold"    Exec xterm +sb -fn 9x15bold -fg gray80 -bg black
+            "Mrxvt" Exec mrxvt -title 'Terminal'
+            "Reattach screen" Exec mrxvt -title 'Reattached Screen' -g 80x26+31+43 -e screen -d -R -c $HOME/.screenxrc
+            "Firefox Navigator"    exec mozilla-firefox
+            "Gimp"        exec gimp -s
+             "Gvim" exec gvim -geometry +35+60
+            "" Nop
+                       "Utilities"     Popup Utilities
+            "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 Utilities        "Top"        Exec xterm -T Top -n Top -e top
+            "Calculator"    Exec xcalc
+            "Xman"        Exec xman
+            "Xmag"        Exec xmag
+                       "Editres"       Exec editres
+                       "XLock"         Exec xlock
+            ""        Nop
+                       "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults

AddToMenu Misc-Ops "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     "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


# be sure to fill these in with your correct machine names:

AddToMenu Module-Popup    "Identify"    Module    FvwmIdent
+            "Talk"      Module    FvwmTalk
+            ""        Nop
+            "Button-Bar"    Module    FvwmButtons
+            "Pager"        Module  FvwmPager 0 0
+            "Pager (2 desks)" Module  FvwmPager 0 9
+            "WinList"    Module  FvwmWinList
+            "Save Desktop"  Module FvwmSaveDesk
+            ""        Nop
+            "Banner"    Module    FvwmBanner
+                       "ScrollBar"     Module  FvwmScroll 50 50
+            "Background"    Module  FvwmBacker
+                       "AutoRaise"     Module  FvwmAuto 200 Raise Nop
+            "AutoRefresh"   Module  FvwmAuto 500 RefreshWindow 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      "Yes, Really Quit"  Quit    
+                  "No, Don't Quit"    Nop    
+            ""        Nop
+                  "Restart Fvwm"        Restart fvwm
+                  "Start dummy"       Restart xterm

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

AddToFunc Move-or-Raise        "I" Raise
+                "M" Move
#+                  "D" WindowShade

AddToFunc Move-Raise-Shade    "I" Raise
+                "M" Move
+                  "D" WindowShade

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

AddToFunc Shade-Window "D" WindowShade

AddToFunc FocusAndWarp "I" Focus
+                      "I" WarpToWindow 2p 2p

AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
+                               "I" FocusAndWarp

AddToFunc MyGotoPage "I" GotoPage $0 $1
+ "I" Next [CurrentPage !Iconic] FlipFocus
+ "I" Prev [CurrentPage !Iconic] Focus
+ "I" Current [CurrentPage !Iconic] Raise
#+ "I" Current [CurrentPage ] WarpToWindow 50 10p

AddToFunc MyMoveToPage "I" Current ($0) MoveToPage [$1 $2]

AddToFunc ChangeDefaultFocus "I" Style "*" $0
+                            "I" Recapture

AddToFunc PageNextAndRaise "I" Next [CurrentPage] FlipFocus
+    "I" Current [*] Raise
#+    "I" Current [*] WarpToWindow 50 10p
AddToFunc PagePrevAndRaise "I" Prev [CurrentPage] Focus
+    "I" Current [*] Raise
#+    "I" Current [*] WarpToWindow 50 10p

AddToFunc DeskTopNext      "I" Next [*] FlipFocus
+    "I" Current [*] Raise
#+    "I" Current [*] WarpToWindow 50 10p

AddToFunc DeskTopPrev      "I" Prev [*] Focus
+    "I" [*] Raise
#+    "I" Current [*] WarpToWindow 50 10p
#
AddToFunc MyDesk "I" Desk $0 $1
+ "I" Next [CurrentDesk !Iconic] FlipFocus
+ "I" Prev [CurrentDesk !Iconic] Focus
+ "I" Current [CurrentDesk !Iconic] Raise
#+ "I" Current [CurrentPage ] WarpToWindow 50 10p


AddToFunc Restart_FVWM "I" exec echo "\tR: Restarting @ ($(date))" >> $HOME/.fvwm_errors
+    "I"    Restart fvwm

我的更多文章
亲,您还没有登录,请[登录][注册]后再进行评论