.fvwm2rc

来源:互联网 发布:编程猫加盟 编辑:程序博客网 时间:2024/05/18 09:33
# 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 10EdgeScroll 100 100ClickTime 200DeskTopSize 2x2Menustyle * fvwm, Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*MenuStyle * Foreground maroon, Background grey60, Greyed grey40ColormapFocus FollowsMouse# default Styles:# make sure these fonts exist on your system:Style *           Font -adobe-times-bold-r-*-*-10-*-*-*-*-*-*-*Style *           IconFont -adobe-times-bold-r-*-*-10-*-*-*-*-*-*-*Style *           HilightFore black, HilightBack palevioletredStyle *           BorderWidth 7, HandleWidth 7Style *           Icon unknown1.xpm, Color lightgrey/dimgreyStyle *           MWMFunctions, MWMDecor, HintOverrideStyle *           DecorateTransient, !UsePPosition# Style *           IconBox 0 -5 -280 -1Style *           FocusFollowsMouseStyle *           TileCascadePlacement# Styles for various Fvwm modules:Style "Fvwm*"       !Title,  Sticky, WindowListSkipStyle "Fvwm*"       BorderWidth 2, CirculateSkipIcon, CirculateSkipStyle "FvwmPager"   StaysOnTopStyle "FvwmBanner"  StaysOnTopStyle "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 -140Style "rxvt"        MWMBorder, MWMButtons# Styles for various common programs:Style "*lock"       !Title, !Handles, Sticky, WindowListSkip, ClickToFocusStyle "xbiff"       !Title, Sticky, WindowListSkip, ClickToFocusStyle "xcalc"       Icon xcalc.xpm, !Button 2,ClickToFocusStyle "xmh"         Icon mail1.xpm, !IconTitle,StickyIconStyle "xmh"    !Button 2Style "xman"    Icon xman.xpm, ClickToFocusStyle "xmag"    Icon mag_glass.xpm, ClickToFocusStyle "xgraph"      Icon graphs.xpm, ClickToFocusStyle "xmosaic"     Color Green/Yellow, ClickToFocus# some simple default key bindings:Key Next         A       SCM     Next (AcceptsFocus) FocusKey Prior        A       SCM     Prev (AcceptsFocus) Focus# some simple default mouse bindings:#   for the root window:Mouse 1R   A       Menu RootMenu NopMouse 2R    A      Menu Window-Ops NopMouse 3R    A      WindowList#   for the title bar buttons:Mouse 01    A      Menu Window-Ops2 CloseMouse 02    A     Maximize 100 growMouse 04    A     Iconify#   for other parts of the window/borders/icons:Mouse 1FAResize-or-RaiseMouse 1TSAMove-or-RaiseMouse 1IAMove-or-IconifyMouse 2IAIconifyMouse 2FSTAMenu Window-Ops2 NopMouse 3TSIFARaiseLower######################## Initialization Functions ############################AddToFunc StartFunction + I Module FvwmButtonsAddToFunc InitFunction + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70 + I exec setxkbmap -option ctrl:swapcaps# For some SM-s (like gnome-session) there is an internal background setter.AddToFunc SessionInitFunction + I Nop######################## Menus ###################AddToMenu RootMenu"Root Menu"Title+"XX-Net"Exec exec xterm /home/mat/Downloads/XX-Net-3.2.7/start+"Xfce4-Terminal"Exec exec xfce4-terminal+"Rxvt"Exec exec rxvt+"Thunar"Exec exec thunar+"Rox"Exec exec rox+"Iceweasel"Exec exec iceweasel+"Chromium"Exec exec chromium+"VirtualBox"Exec exec virtualbox+""NopTest (f  /etc/X11/fvwm/menudefs.hook) + "Debian Menu" Popup /DebianTest (f  /etc/X11/fvwm/menudefs.hook) + "Re-read System Menu" Read "/etc/X11/fvwm/menudefs.hook"Test (f  /etc/X11/fvwm/menudefs.hook) + "Update My Debian Menu" PipeRead 'update-menus &&  echo "Read $./menudefs.hook"'+""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+""Nop+"Reboot"Exec exec /sbin/shutdown -r now+"Shutdown"Exec exec /sbin/shutdown -h nowAddToMenu 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# Make sure that the Debian menus, and the icons they reference, are# available if we have /etc/X11/fvwm/menudefs.hookDestroyFunc SetDebianMenuAddToFunc   SetDebianMenu+ I ImagePath /usr/share/icons:/usr/share/pixmaps:/usr/share/icons/wm-icons:++ I ImagePath +:/usr/X11R6/include/X11/pixmaps/:/usr/X11R6/include/X11/bitmaps/+ I ImagePath +:/usr/include/X11/bitmaps/+ I Read /etc/X11/fvwm/menudefs.hook+ I DestroyMenu Utilities+ I AddToMenu   Utilities "Root Menu" Title#PREF 3+ I + "Top"Exec exec xterm -T Top -n Top -e top+ I + "Calculator"Exec exec xcalc+ I + "Xman"Exec exec xman+ I + "Xmag"Exec exec xmag+ I + "Editres"       Exec exec editres+ I + ""Nop+ I + "Debian Menu"    Popup /Debian+ I + "Shells"Popup /Debian/XShells+ I + "Programs"Popup /Debian/Apps+ I + ""Nop+ I + "XEmacs"Exec exec xemacs+ I + "Mail"          MailFunction xmh "-font fixed"+ I + ""Nop+ I + "XLock"         Exec exec xlock -mode random+ I + "Mail"          MailFunction xmh "-font fixed"+ I + "Help"Popup /Debian/Help+ I + "Screen Saver"Popup /Debian/Screen+ I + ""Nop+ I + "Window Managers"Popup /Debian/WindowManagers+ I + "Reset X defaults" Exec xrdb -load $HOME/.XdefaultsTest (f  /etc/X11/fvwm/menudefs.hook) SetDebianMenuAddToMenu 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 100000AddToMenu 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" RefreshWindowAddToMenu 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 ssh dopey rxvt -display $HOSTDISPLAY &+"snoopy" Exec ssh snoopy rxvt -display $HOSTDISPLAY &+"grumpy" Exec ssh grumpy rxvt -display $HOSTDISPLAY &+"happy" Exec ssh happy rxvt -display $HOSTDISPLAY &+"bailey" Exec ssh bailey rxvt -display $HOSTDISPLAY &+"barnum" Exec ssh barnum rxvt -display $HOSTDISPLAY &+"joker" Exec ssh joker rxvt -display $HOSTDISPLAY &+"signal" Exec rxterm signalAddToMenu Module-Popup"FvwmModules"Title+"Identify"ModuleFvwmIdent+"Talk"  ModuleFvwmTalk+""Nop+"Button-Bar"ModuleFvwmButtons+"Pager"Module  FvwmPager 0 0+"Pager (2 desks)" Module  FvwmPager 0 3+"WinList"Module  FvwmWinList+""Nop+"Banner"ModuleFvwmBanner+                       "ScrollBar"     Module  FvwmScroll 50 50+"Background"Module  FvwmBacker+                       "AutoRaise"     Module  FvwmAuto 200 Raise Nop+                       "Stop AutoRaise" KillModule FvwmAuto+""Nop+"IconBox"ModuleFvwmIconBox+                       "IconMan"       Module  FvwmIconMan+""Nop+                       "Form - Rlogin"      Module FvwmForm Rlogin+                       "Form - MyFvwmTalk"  Module FvwmForm MyFvwmTalk+                       "Form - QuitVerify"  Module FvwmForm QuitVerifyAddToMenu 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 $1AddToFunc Move-or-RaiseI Raise+M Move+  D LowerAddToFunc Move-or-Raise2M Raise+M Move+  D LowerAddToFunc Maximize-FuncM Maximize 0 100+C Maximize 0 80+D Maximize 100 100AddToFunc Move-or-IconifyI Raise+M Move+D IconifyAddToFunc Resize-or-RaiseI Raise+M Resize+D LowerAddToFunc Resize-or-Raise2M Raise+M Resize+D LowerAddToFunc PrintFunctionI Raise+I Exec xdpr -id $wAddToFunc PrintReverseFunction  I Raise+                               I Exec xdpr 1/2 -h -rv -id $wAddToFunc Iconify-and-Raise     I Iconify+                               I Raise# RLOGIN machine fg bgAddToFunc RLOGIN I Exec xterm -fg $1 -bg $2 -e rlogin $0 -8# TELNET machine fg bgAddToFunc TELNET I Exec xterm -fg $1 -bg $2 -e telnet $0AddToFunc FocusAndWarp I Focus+                      I WarpToWindow 2p 2pAddToFunc DeiconifyFocusAndWarp I Iconify -1+                               I FocusAndWarpAddToFunc 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 3 Swallow(UseOld,NoHints,Respawn) "xclock" `Exec exec xclock -digital -update 1 -face 'Aguafont:size=15' -strftime '%H:%M:%S' -bg bisque3`)*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        7x13bold*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 -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*########################### Pager #########################################*FvwmPager: Back #908090*FvwmPager: Fore #484048#*FvwmPager: Font -adobe-helvetica-bold-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 -adobe-helvetica-bold-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 !Icon commnand is applied.#Style     *  !Icon############################################################*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        -adobe-helvetica-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         *helvetica*m*r*n*12**Rlogin: ButtonFont   *helvetica*m*o*n*12**Rlogin: InputFont    *cour*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          *helvetica*m*r*n*14*#*QuitVerify: ButtonFont    *helvetica*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 *helvetica*m*r*n*14**MyTalk: ButtonFont *helvetica*m*o*n*14**MyTalk: InputFont *cour*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 *helvetica*m*r*n*14**MyFvwmTalk: ButtonFont *helvetica*m*o*n*14**MyFvwmTalk: InputFont *cour*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 2Key F3 A A Module FvwmConsole -terminal rxvt -geometry 45x5-0+0 \-bg gold -fg midnightblue \-fn "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-*-*"Key Tab A M WindowList Root c c NoDeskSortIgnoreModifiers L25Key r A CM Module FvwmForm FvwmForm-RunMouse 1 W M ThisWindow (!Maximized) CMOVEFUNDestroyFunc CMOVEFUNAddToFunc CMOVEFUN+ I MoveOpaqueMoveSize -1Style * ResizeOpaqueStyle * MouseFocusClickRaisesMouse 1 6 A CloseButtonStyle 6 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


0 0