1# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. 2# It should be customized before install. See other sample .fvwm2rc files 3# for hints, as well as pointers from the various links on the official 4# fvwm web page (see the FAQ). 5 6# be sure to customize these paths for your installation: 7#ModulePath /usr/lib/X11/fvwm2 8#PixmapPath /usr/include/X11/pixmaps 9#IconPath /usr/include/X11/bitmaps 10 11#EdgeResistance 999 999 12EdgeScroll 0 0 13#ClickTime 750 14 15# make sure these fonts exist on your system: 16WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* 17IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* 18ButtonStyle 3 Vector 13 26x29@1 34x21@1 50x35@1 70x21@1 79x29@1 63x48@0 79x65@1 70x75@0 50x61@0 34x75@0 26x65@0 44x48@1 26x29@0 19 20HilightColor black palevioletred 21DeskTopSize 2x2 22MenuStyle black bisque grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-14-*-*-*-*-*-*-* fvwm 23ClickTime 60 24OpaqueMoveSize 100 25 26ColormapFocus FollowsMouse 27TitleStyle HGradient 256 3 Red 20 Blue 30 Purple 50 Green 28 29 30# default Styles: 31 32Style "*" BorderWidth 5, HandleWidth 5 33Style "*" MWMFunctions, MWMDecor, HintOverride 34Style "*" DecorateTransient, NoPPosition 35Style "*" IconBox 0 -50 -1 -1 36Style "*" FocusFollowsMouse 37Style "*" SloppyFocus 38Style "*" RandomPlacement, SmartPlacement, NoIcon 39 40# Styles for various Fvwm modules: 41Style "Fvwm*" NoTitle, Sticky, WindowListSkip 42Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip 43Style "FvwmPager" StaysOnTop 44Style "FvwmBanner" StaysOnTop 45Style "FvwmButtons" NoButton 1, NoButton 2, NoButton 3, NoButton 4, NoHandles, ClickToFocus 46Style "*eyes" NoTitle, NoHandles 47 48# Styles for various common programs: 49Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus 50Style "KDE Desktop" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus 51Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus 52Style "xcalc" NoButton 2,RandomPlacement,ClickToFocus 53Style "xmh" NoIconTitle,StickyIcon 54Style "xmh" RandomPlacement, NoButton 2 55Style "xman" RandomPlacement, ClickToFocus 56Style "xmag" RandomPlacement, ClickToFocus 57Style "xgraph" RandomPlacement, ClickToFocus 58Style "*iconbar" NoTitle, NoHandles, Sticky, WindowListSkip 59 60 61# some simple default key bindings: 62Key Left A C Scroll -100 0 63Key Right A C Scroll +100 +0 64Key Up A C Scroll +0 -100 65Key Down A C Scroll +0 +100 66Key Left A M Scroll -10 +0 67Key Right A M Scroll +10 +0 68Key Up A M Scroll +0 -10 69Key Down A M Scroll +0 +10 70# emergencies, only if no working mouse 71Key Left A SC CursorMove -1 0 72Key Right A SC CursorMove +1 +0 73Key Up A SC CursorMove +0 -1 74Key Down A SC CursorMove +0 +1 75Key Left A SM CursorMove -10 +0 76Key Right A SM CursorMove +10 +0 77Key Up A SM CursorMove +0 -10 78Key Down A SM CursorMove +0 +10 79 80# Mouse bindings 81# 82# Mouse Button 83# 0 not applicable 84# 1 left button 85# 2 middle button 86# 3 right button 87# 88# Mouse location 89# 90# On title bar button: 91# 1 3 5 7 9 0 8 6 4 2 92# 93# Or on desktop: 94# R within root window 95# W within application window 96# T window title bar 97# S window frame, sides 98# F window frame, corners (e.g. resizing) 99# I over an icon (but I don't use icons much.. I 100# use the FvwmIconMan instead) 101# 102# Key modifiers: 103# C control 104# M meta (alt) 105# S shift 106# A any key or no key (no key modifier required for action) 107# 108# ROOT MENUS 109Mouse 1 R A Popup Window-Ops Nop 110Mouse 3 R A Popup RootMenu Nop 111#Mouse 3 R A WindowList 112 113# for the title bar buttons: 114# 115# 1 left button 116# 3 second from left 117# 2 rightmost button 118# 4 second from right 119# 120Mouse 0 1 A Popup Window-Ops2 Close 121Mouse 1 3 N Close 122Mouse 0 2 A Maximize-Func 123Mouse 0 4 A Iconify 124 125# for other parts of the window/borders/icons: 126# 127Mouse 1 SF A Resize-or-Raise 128Mouse 1 T A Move-or-Raise2 129Mouse 1 I A Iconify 130Mouse 2 I A Move-or-Iconify 131Mouse 2 FST A WindowShade 132Mouse 3 TSIF A RaiseLower 133#Mouse 3 TSWIF A RaiseLower 134 135######################## Initialization Functions ############################ 136AddToFunc InitFunction "I" Module FvwmButtons FvwmButtons1 137+ "I" Module FvwmButtons FvwmButtons2 138+ "I" Module FvwmButtons FvwmButtons3 139+ "I" Module FvwmButtons FvwmButtons4 140+ "I" Module FvwmIconMan 141+ "I" exec xsetroot -solid #001000 142+ "I" exec xterm -geometry +0+50 143+ "I" exec xterm -geometry +600+50 144 145AddToFunc RestartFunction "I" Module FvwmButtons FvwmButtons1 146+ "I" Module FvwmButtons FvwmButtons2 147+ "I" Module FvwmButtons FvwmButtons3 148+ "I" Module FvwmButtons FvwmButtons4 149+ "I" Module FvwmIconMan 150+ "I" exec xsetroot -solid #001000 151 152 153######################## Menus ################### 154AddToMenu RootMenu "Root Menu" Title 155+ "XTerm" Exec exec xterm 156+ "Rxvt" Exec exec rxvt 157+ "" Nop 158+ "Utilities" Popup Utilities 159+ "" Nop 160+ "Fvwm Modules" Popup Module-Popup 161+ "Fvwm Window Ops" Popup Window-Ops 162+ "Fvwm Simple Config Ops" Popup Misc-Ops 163+ "" Nop 164+ "Refresh Screen" Refresh 165+ "Recapture Screen" Recapture 166+ "" Nop 167+ "Exit Fvwm" Popup Quit-Verify 168 169AddToMenu Utilities "Utilities" Title 170+ "Top" Exec exec xterm -T Top -n Top -e top 171+ "Calculator" Exec exec xcalc 172+ "Xman" Exec exec xman 173+ "Xmag" Exec exec xmag 174+ "Editres" Exec exec editres 175+ "" Nop 176+ "XEmacs" Exec exec xemacs 177+ "Mail" MailFunction xmh "-font fixed" 178+ "" Nop 179+ "XLock" Exec exec xlock -mode random 180+ "" Nop 181+ "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults 182 183AddToMenu Misc-Ops "Misc Config Opts" Title 184+ "Sloppy Focus" ChangeDefaultFocus SloppyFocus 185+ "Click To Focus" ChangeDefaultFocus ClickToFocus 186+ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse 187+ "" Nop 188+ "Colormap Follows Mouse" ColormapFocus FollowsMouse 189+ "Colormap Follows Focus" ColormapFocus FollowsFocus 190 191AddToMenu Window-Ops "Window Ops" Title 192+ "Move" Move 193+ "Resize" Resize 194+ "Raise" Raise 195+ "Lower" Lower 196+ "(De)Iconify" Iconify 197+ "(Un)Stick" Stick 198+ "(Un)Maximize" Maximize 199+ "" Nop 200+ "Delete" Delete 201+ "Close" Close 202+ "Destroy" Destroy 203+ "" Nop 204+ "Refresh Window" RefreshWindow 205 206AddToMenu Window-Ops2 "&Move" Move 207+ "&Resize" Resize 208+ "R&aise" Raise 209+ "&Lower" Lower 210+ "(De)&Iconify" Iconify 211+ "(Un)&Stick" Stick 212+ "(Un)Ma&ximize" Maximize 213+ "" Nop 214+ "&Delete" Delete 215+ "&Close" Close 216+ "Destroy" Destroy 217+ "" Nop 218+ "ScrollBar" Module FvwmScroll 2 2 219+ "Print" PrintFunction 220+ "Print Reverse" PrintReverseFunction 221 222AddToMenu Module-Popup "FvwmModules" Title 223+ "Identify" Module FvwmIdent 224+ "Talk" Module FvwmTalk 225+ "" Nop 226+ "Button-Bar" Module FvwmButtons 227+ "Pager" Module FvwmPager 0 0 228+ "Pager (2 desks)" Module FvwmPager 0 1 229+ "WinList" Module FvwmWinList 230+ "" Nop 231+ "Banner" Module FvwmBanner 232+ "ScrollBar" Module FvwmScroll 50 50 233+ "Background" Module FvwmBacker 234+ "AutoRaise" Module FvwmAuto 200 Raise Nop 235+ "Stop AutoRaise" KillModule FvwmAuto 236+ "" Nop 237+ "IconBox" Module FvwmIconBox 238+ "IconMan" Module FvwmIconMan 239+ "" Nop 240+ "Form - Rlogin" Module FvwmForm Rlogin 241+ "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk 242+ "Form - QuitVerify" Module FvwmForm QuitVerify 243 244AddToMenu Quit-Verify "Really Quit Fvwm?" Title 245+ "Yes, Really Quit" Quit 246+ "" Nop 247+ "Restart Fvwm2" Restart fvwm2 248+ "" Nop 249+ "Restart Fvwm" Restart fvwm 250+ "Start twm" Restart twm 251+ "Start ctwm" Restart ctwm 252+ "Start tvtwm" Restart tvtwm 253+ "Start vtwm" Restart vtwm 254+ "Start mwm" Restart mwm 255+ "Start GNome" Restart gnome-session 256+ "Start wmaker" Restart wmaker 257+ "Start olwm" Restart /usr/openwin/bin/olwm 258+ "" Nop 259+ "Start dummy" Restart xterm 260+ "" Nop 261+ "No, Don't Quit" Nop 262 263######################## Sample Functions ########################## 264 265AddToFunc MailFunction "I" Next [$0] Iconify -1 266+ "I" Next [$0] Focus 267+ "I" None [$0] Exec $0 $1 268 269# Move-or-Raise seems to be broken, when I click in the title 270# and try to move the title stays clicked and no move occurs. 271# Move-or-Raise2 seems to do the right thing. 272# 273AddToFunc Move-or-Raise "I" Raise 274+ "M" Move 275+ "D" Lower 276 277AddToFunc Move-or-Raise2 "M" Move 278 279AddToFunc Maximize-Func "M" Maximize 0 100 280+ "C" Maximize 0 80 281+ "D" Maximize 100 100 282 283AddToFunc Move-or-Iconify "I" Raise 284+ "M" Move 285+ "D" Iconify 286 287AddToFunc Resize-or-Raise "I" Raise 288+ "M" Resize 289+ "D" Lower 290 291AddToFunc Resize-or-Raise2 "M" Raise 292+ "M" Resize 293+ "D" Lower 294 295AddToFunc PrintFunction "I" Raise 296+ "I" Exec xdpr -id $w 297 298AddToFunc PrintReverseFunction "I" Raise 299+ "I" Exec xdpr 1/2 -h -rv -id $w 300 301AddToFunc Iconify-and-Raise "I" Iconify 302+ "I" Raise 303 304# RLOGIN machine fg bg 305AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8 306 307# TELNET machine fg bg 308AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0 309 310AddToFunc FocusAndWarp "I" Focus 311+ "I" WarpToWindow 2p 2p 312 313AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 314+ "I" FocusAndWarp 315 316AddToFunc ChangeDefaultFocus "I" Style "*" $0 317+ "I" Recapture 318 319################## FvwmButtons button-bar ################################ 320*FvwmButtons1File .fvwm/fvwmbuttons1 321#*FvwmButtons2File .fvwmbuttons2 322#*FvwmButtons3File .fvwmbuttons3 323#*FvwmButtons4File .fvwmbuttons4 324 325 326########################## Window-Identifier ############################### 327# Just choose colors and a fonts 328*FvwmIdentBack MidnightBlue 329*FvwmIdentFore Yellow 330*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-12-*-*-*-*-*-*-* 331 332########################### Pager ######################################### 333*FvwmPagerBack #908090 334*FvwmPagerFore #484048 335*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-10-*-*-*-*-*-*-* 336*FvwmPagerHilight #cab3ca 337*FvwmPagerGeometry -1-1 338*FvwmPagerLabel 0 Misc 339*FvwmPagerLabel 1 Maker 340*FvwmPagerLabel 2 Mail 341*FvwmPagerLabel 3 Matlab 342*FvwmPagerSmallFont 5x8 343 344##########################FvwmWinList################################## 345*FvwmWinListBack #908090 346*FvwmWinListFore Black 347*FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-10-*-*-*-*-*-*-* 348*FvwmWinListAction Click1 Iconify -1,Focus 349*FvwmWinListAction Click2 Iconify 350*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent 351*FvwmWinListUseSkipList 352*FvwmWinListGeometry +0-1 353 354 355*FvwmBackerDesk 0 -solid steelblue 356*FvwmBackerDesk 1 -solid midnightblue 357 358*FvwmScrollBack grey40 359*FvwmScrollFore green 360 361# IconMan 362# 363# 364*FvwmIconMan*format "%t" 365*FvwmIconMan*managergeometry 1x0-1-1 366*FvwmIconMan*buttongeometry 200x17 367 368 369# 370# Icon file specifications 371# 372# Mostly, you don't have to specify icon files, as FvwmIconBox now 373# reads icon files specified in Style commands. 374# 375*FvwmIconBox "Fvwm*" - 376 377# FvwmForm alias - query exit ala mwm 378*QuitVerifyGrabServer 379*QuitVerifyWarpPointer 380*QuitVerifyFont *helvetica*m*r*n*14* 381#*QuitVerifyButtonFont *helvetica*m*o*n*14* 382*QuitVerifyButtonFont 7x13bold 383*QuitVerifyFore Black 384*QuitVerifyBack Light Gray 385*QuitVerifyItemFore Wheat 386*QuitVerifyItemBack Gray50 387# begin items 388*QuitVerifyLine center 389*QuitVerifyText "Do you really want to exit FVWM?" 390*QuitVerifyLine expand 391*QuitVerifyButton quit " Exit " 392*QuitVerifyCommand Quit 393*QuitVerifyButton quit "Cancel" 394*QuitVerifyCommand Nop 395 396