EdgeThickness 0 #EdgeResistance 250 10 #EdgeScroll 100 100 ClickTime 750 OpaqueMoveSize 100 XORvalue 100 # make sure these fonts exist on your system: WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* HilightColor white grey20 DeskTopSize 3x3 #DeskTopSize 2x2 #MenuStyle MidnightBlue grey60 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm # MenuStyle * Font -adobe-times-bold-r-*-*-24-*-*-*-*-*-*-* MenuStyle * Font 12x24 MenuStyle * Animation #MenuStyle * Hilight3DThickness 2 MenuStyle * Foreground white MenuStyle * Background grey20 MenuStyle * Hilight3DThickness 3 MenuStyle * BorderWidth 4 ColormapFocus FollowsMouse Style "*" BorderWidth 7, HandleWidth 7 Style "*" Icon unknown1.xpm, Color lightgrey/dimgrey Style "*" MWMFunctions, MWMDecor, HintOverride Style "*" DecorateTransient, NoPPosition, SmartPlacement Style "*" IconBox 0 -10 -280 -1 Style "*" FocusFollowsMouse #Style "*" RandomPlacement, SmartPlacement # Styles for various Fvwm modules: Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip Style "FvwmPager" Sticky Style "FvwmBanner" StaysOnTop Style "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 -140 Style "rxvt" MWMBorder, MWMButtons # slurped in from my old .fvwm2rc - DRS Style "xbiff" NoTitle, Sticky, WindowListSkip Style "wmbiff" NoTitle, Sticky, WindowListSkip Style "xload" NoTitle, Sticky, WindowListSkip Style "xsession" NoTitle, Sticky, WindowListSkip Style "Mxconns" Sticky Style "xmeter" Sticky Style "XCalendar" Sticky Style "XClock" NoTitle,Sticky # Styles for various common programs: #Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus #Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon Style "xmh" RandomPlacement, NoButton 2 Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus Style "xgraph" Icon graphs.xpm, RandomPlacement, ClickToFocus Style "xmosaic" Color Green/Yellow, ClickToFocus Style "*" Lenience # some simple default key bindings: Key Next A SCM Next [*] Focus Key Prior A SCM Prev [*] Focus # control arrow scrolls #Key Left A C Scroll -100 +0 #Key Right A C Scroll +100 +0 #Key Up A C Scroll +0 -100 #Key Down A C Scroll +0 +100 # some simple default mouse bindings: # for the root window: Mouse 1 R A Exec hcm --gui #Mouse 2 R A Menu Window-Ops Nop Mouse 2 R A Menu MiddleMenu Mouse 3 R A Menu RootMenu Nop # for the title bar buttons: Mouse 0 1 A Menu Window-Ops2 Close Mouse 0 2 A Maximize-Func Mouse 0 4 A Iconify # for other parts of the window/borders/icons: Mouse 1 F A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 2 I A Iconify Mouse 2 FST A Menu Window-Ops2 Nop Mouse 3 TSIF A RaiseLower # hopefully this will fix my resize anoyance Mouse 1 FS A Function "Resize-or-Raise" Mouse 2 FS A Function "Resize-or-Lower" Mouse 1 T A Function "Move-or-Raise" Mouse 2 T A Function "Move-or-Lower" # Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Function "Move-or-Iconify" #Mouse 3 I A Menu "Window Ops2" Nop #Mouse 3 FST A Function "windowops-or-die" ######################## Initialization Functions ############################ AddToFunc "InitFunction" + "I" Module FvwmPager 0 8 + "I" Module FvwmAuto 400 + "I" Module FvwmBacker + "I" Exec exec xclock -digital -update 5 -geometry -0-0 & + "I" Exec exec xscreensaver -nosplash & AddToFunc "RestartFunction" + "I" Module FvwmPager 0 8 + "I" Module FvwmAuto 400 + "I" Module FvwmBacker + "I" Exec exec xclock -digital -update 5 -geometry -0-0 & + "I" Exec exec xscreensaver -nosplash & AddToFunc "SessionInitFunction" + "I" Module FvwmPager 0 8 + "I" Module FvwmAuto 400 + "I" Module FvwmBacker + "I" Exec exec xclock -digital -update 5 -geometry -0-0 & + "I" Exec exec xscreensaver -nosplash & AddToFunc "SessionRestartFunction" + "I" Module FvwmPager 0 8 + "I" Module FvwmAuto 400 + "I" Module FvwmBacker + "I" Exec exec xclock -digital -update 5 -geometry -0-0 & + "I" Exec exec xscreensaver -nosplash & PipeRead '$[FVWM_USERDIR]/scripts/fvwm-gnome2' #PipeRead '/home/dstromberg/.fvwm/scripts/fvwm-gnome2' AddToMenu MiddleMenu "Middle Menu" Title + "Cascade small" FvwmRearrange -cascade -resize -incx 2 -incy 2 2 2 75 50 + "Cascade medium" FvwmRearrange -cascade -resize -incx 2 -incy 2 2 2 85 60 + "Cascade large" FvwmRearrange -cascade -resize -incx 2 -incy 2 2 2 95 70 + "" + "Gnome Menus" Popup Gnome2Menu #+ "Refresh Gnome Menus" Read $[FVWM_USERDIR]/Menus AddToMenu RootMenu "Root Menu" Title + "Shell Commands" Popup ShellCommands + "Window Ops" Popup Window-Ops + "Fvwm Commands" Popup FvwmCommands + "Lock screen" Exec exec xscreensaver-command -lock & #+ "xterm" Exec exec xterm & #+ "local hcm" Exec exec hcm --gui & AddToMenu ShellCommands "Choose one:" Title + "local chrome" Exec exec google-chrome "--user-data-dir=${HOME}/.google-chrome/session${DISPLAY} --disk-cache-size=50000000" & + "local chromium" Exec exec chromium-browser "--user-data-dir=${HOME}/.chromium/session${DISPLAY} --disk-cache-size=50000000" & + "local firefox" Exec exec firefox & + "local gvim" Exec exec gvim & + "local iceweasel" Exec exec iceweasel & + "local keepassxc" Exec exec keepassxc & + "local konsole" Exec exec konsole & + "local mate-terminal" Exec exec mate-terminal & + "local pterm" Exec exec pterm & + "local putty" Exec exec putty & + "local terminal-window" Exec exec terminal-window & + "local urxvt" Exec exec urxvt & + "local virtualbox" Exec exec virtualbox & + "local xemacs" Exec exec xemacs & AddToMenu FvwmCommands "Fvwm Commands" Title + "Restart Fvwm2" Restart fvwm2 #+ "Fvwm Setup" Popup FvwmSetup + "Fvwm Modules" Popup FvwmModules + "" Nop + "Exit Fvwm" Quit AddToMenu 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 + "" Nop + "Close" Close + "" Nop + "Destroy" Destroy + "" Nop + "Refresh Window" RefreshWindow + "Refresh Screen" Refresh AddToMenu 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 AddToMenu FvwmModules "FvwmModules" Title + "Identify" Module FvwmIdent + "Talk" Module FvwmTalk + "" Nop + "Button-Bar" Module FvwmButtons + "WinList" Module FvwmWinList + "" Nop + "Banner" Module FvwmBanner + "ScrollBar" Module FvwmScroll 50 50 + "Background" Module FvwmBacker + "AutoRaise" Module FvwmAuto 200 Raise 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 + "" Nop + "FvwmPager" Module FvwmPager 0 8 AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "Yes, Really Quit" Quit + "" Nop + "Restart Fvwm2" Restart fvwm2 + "Restart Fvwm" Restart fvwm + "" Nop + "Start twm" Restart twm + "Start tvtwm" Restart tvtwm + "" Nop + "Start dummy" Restart xterm + "" Nop + "No, Don't Quit" Nop ######################## Sample Functions ########################## AddToFunc MailFunction "I" Next [$0] Iconify -1 + "I" Next [$0] Focus + "I" None [$0] Exec $0 $1 AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower AddToFunc Maximize-Func "M" Maximize 100 95 + "C" Maximize 100 95 + "D" Maximize 100 95 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 FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture ################## FvwmButtons button-bar ################################ #*FvwmButtonsGeometry 520x100-1-1 #*FvwmButtonsBack 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 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 false *FvwmIconMan*plainbutton up black bisque3 *FvwmIconMan*selectbutton down black bisque3 *FvwmIconMan*focusbutton up yellow firebrick *FvwmIconMan*focusandselectButton down yellow firebrick *FvwmIconMan*dontshow icon=Untitled name=Untitled #*FvwmIconMan*drawicons true *FvwmIconMan*buttongeometry 300x0 *FvwmIconMan*managergeometry 1x5 ########################## Window-Identifier ############################### # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPager: Rows 1 *FvwmPager: Columns 9 *FvwmPagerBack #908090 *FvwmPagerFore #484048 *FvwmPagerFont 9x15bold # turn off desktop names for swallowing in above button bar example: *FvwmPagerSmallFont 5x8 #*FvwmPagerFont none *FvwmPagerHilight #cab3ca *FvwmPagerGeometry 900x100+1-1 #*FvwmPagerGeometry -1-1 *FvwmPagerLabel 0 "E-Mails" *FvwmPagerLabel 1 "Research" *FvwmPagerLabel 2 "Entertain" *FvwmPagerLabel 3 "Family" *FvwmPagerLabel 4 "Alden" *FvwmPagerLabel 5 "Admin" *FvwmPagerLabel 6 "Backshift" *FvwmPagerLabel 7 "Work" *FvwmPagerLabel 8 "Phone" *FvwmBacker: Command (Desk 0) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/Lush-Waters-Costa-Rican-Forest-pictures.jpeg *FvwmBacker: Command (Desk 1) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/bamboo-forest.jpeg *FvwmBacker: Command (Desk 2) Exec feh --bg-tile /home/dstromberg/images/Backgrounds/circle.jpeg *FvwmBacker: Command (Desk 3) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/Dragonfly.jpg *FvwmBacker: Command (Desk 4) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/Alden-Sharpie-Smiley.jpeg *FvwmBacker: Command (Desk 5) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/Antikythera-mechanism.jpeg *FvwmBacker: Command (Desk 6) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/newtonfrac.jpeg *FvwmBacker: Command (Desk 7) Exec feh --bg-tile /home/dstromberg/images/Backgrounds/Till-Nowak-tribute-to-Arcimboldo.jpeg *FvwmBacker: Command (Desk 8) Exec feh --bg-fill /home/dstromberg/images/Backgrounds/Dinosaur-feathers.jpeg *FvwmPagerBalloons All *FvwmPagerBalloonBack Yellow *FvwmPagerBalloonFore Black #*FvwmPagerBalloonFont lucidasanstypewriter-12 *FvwmPagerBalloonFont lucidasanstypewriter-24 *FvwmPagerBalloonYOffset +2 *FvwmPagerBalloonBorderWidth 1 *FvwmPagerBalloonBorderColor Black ##########################FvwmWinList################################## *FvwmWinListBack #908090 *FvwmWinListFore Black *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmWinListAction Click1 Iconify -1,Focus *FvwmWinListAction Click2 Iconify *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent *FvwmWinListUseSkipList *FvwmWinListGeometry +0-1 *FvwmScrollBack grey40 *FvwmScrollFore green ############################################################ ############################################################ # Note that icons are shown in the module # only if NoIcon commnand is applied. #Style "*" NoIcon ############################################################ *FvwmIconBoxIconBack #cfcfcf *FvwmIconBoxIconHiFore black *FvwmIconBoxIconHiBack LightSkyBlue *FvwmIconBoxBack #5f9ea0 #*FvwmIconBoxFore blue *FvwmIconBoxGeometry 5x1+0+0 *FvwmIconBoxMaxIconSize 64x38 *FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* *FvwmIconBoxSortIcons IconName *FvwmIconBoxPadding 4 *FvwmIconBoxLines 10 *FvwmIconBoxSBWidth 11 *FvwmIconBoxPlacement Left Top *FvwmIconBoxPixmap fvwm.xpm #*FvwmIconBoxHideSC Horizontal *FvwmIconBoxSetWMIconSize *FvwmIconBoxHilightFocusWin #*FvwmIconBoxResolution Desk *FvwmIconBoxMouse 1 Click RaiseLower *FvwmIconBoxMouse 1 DoubleClick Iconify *FvwmIconBoxMouse 2 Click Iconify -1, Focus *FvwmIconBoxMouse 3 Click Module FvwmIdent *FvwmIconBoxKey r RaiseLower *FvwmIconBoxKey space Iconify *FvwmIconBoxKey d Close *FvwmIconBoxKey n Next *FvwmIconBoxKey p Prev *FvwmIconBoxKey h Left *FvwmIconBoxKey j Down *FvwmIconBoxKey k Up *FvwmIconBoxKey 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 *RloginWarpPointer *RloginFont *helvetica*m*r*n*12* *RloginButtonFont *helvetica*m*o*n*12* *RloginInputFont *cour*m*r*n*12* *RloginFore Black *RloginBack Light Gray *RloginItemFore Wheat *RloginItemBack Gray50 # begin items *RloginLine center *RloginText "Login to Remote Host" *RloginLine center *RloginText "Host:" *RloginInput HostName 30 "" *RloginLine center *RloginSelection meth single *RloginChoice TN TN off "telnet" *RloginChoice RL RL on "rlogin" *RloginSelection UserSel single #*RloginChoice Default Default on "same user" #*RloginChoice Custom Custom off "user:" *RloginText "(Userid:" *RloginInput UserName 10 "" *RloginText ")" *RloginLine center *RloginText "FG:" *RloginInput FgColor 15 "" *RloginText "BG:" *RloginInput BgColor 15 "" *RloginLine expand *RloginButton quit "Login" ^M *RloginCommand Exec xterm $(FgColor?-fg $(FgColor)) $(BgColor?-bg $(BgColor)) -T xterm@$(HostName) -e $(RL?rlogin) $(TN?telnet) $(HostName) $(RL?-8 $(UserName?-l $(UserName))) *RloginButton restart "Clear" *RloginCommand Beep *RloginButton quit "Cancel" *RloginCommand Nop # FvwmForm alias - query exit ala mwm *QuitVerifyGrabServer *QuitVerifyWarpPointer *QuitVerifyFont *helvetica*m*r*n*14* #*QuitVerifyButtonFont *helvetica*m*o*n*14* *QuitVerifyButtonFont 7x13bold *QuitVerifyFore Black *QuitVerifyBack Light Gray *QuitVerifyItemFore Wheat *QuitVerifyItemBack Gray50 # begin items *QuitVerifyLine center *QuitVerifyText "Do you really want to exit FVWM?" *QuitVerifyLine expand *QuitVerifyButton quit " Exit " *QuitVerifyCommand Quit *QuitVerifyButton quit "Cancel" *QuitVerifyCommand Nop # MyTalk & MyFvwmTalk from Dave Goldberg # MyTalk Form - dissappears after use *MyTalkWarpPointer *MyTalkFont *helvetica*m*r*n*14* *MyTalkButtonFont *helvetica*m*o*n*14* *MyTalkInputFont *cour*m*r*n*14* *MyTalkFore Red *MyTalkBack Gray *MyTalkItemFore Blue *MyTalkItemBack Gray *MyTalkLine center *MyTalkText "Fvwm Function" *MyTalkInput Func 40 "" *MyTalkLine expand *MyTalkButton quit "Run" ^M *MyTalkCommand $(Func) *MyTalkButton restart "Clear" ^R *MyTalkButton quit "Cancel" ^C *MyTalkCommand Nop # MyFvwmTalk Form - sticks around *MyFvwmTalkWarpPointer *MyFvwmTalkFont *helvetica*m*r*n*14* *MyFvwmTalkButtonFont *helvetica*m*o*n*14* *MyFvwmTalkInputFont *cour*m*r*n*14* *MyFvwmTalkFore Red *MyFvwmTalkBack Gray *MyFvwmTalkItemFore Blue *MyFvwmTalkItemBack Gray *MyFvwmTalkLine center *MyFvwmTalkText "Fvwm Function" *MyFvwmTalkInput Func 40 "" *MyFvwmTalkLine expand *MyFvwmTalkButton restart "Run" ^M *MyFvwmTalkCommand $(Func) *MyFvwmTalkButton restart "Clear" ^R *MyFvwmTalkCommand Nop *MyFvwmTalkButton restart "Iconify" ^Z *MyFvwmTalkCommand Next [MyFvwmTalk] Iconify *MyFvwmTalkButton quit "Quit" ^C *MyFvwmTalkCommand Nop # to change banner pixmap #*FvwmBannerPixmap fvwm3.xpm #*FvwmBannerTimeout 2 #Module FvwmGtk #*FvwmGtk: Destroy gnome-all #*FvwmGtk: Menu gnome-all #*FvwmGtk: Title "Gnome Menus" #*FvwmGtk: Separator #*FvwmGtk: Destroy gnome-sys #*FvwmGtk: Submenu "System" gnome-sys #*FvwmGtk: Destroy gnome-user #*FvwmGtk: Submenu "User" gnome-user #*FvwmGtk: Destroy gnome-redhat #*FvwmGtk: Submenu "RedHat" gnome-redhat #PipeRead 'fvwm-menu-desktop --type gtk --enable-mini-icons --icon-folder :re --icon-app :re --icon-title :re --icon-toptitle :re' #PipeRead 'fvwm-menu-desktop --type gtk --desktop gnome-user --enable-mini-icons' #PipeRead 'fvwm-menu-desktop --type gtk --desktop gnome-redhat --enable-mini-icons' # To obtain the menu above with Alt-button2 on the root window #Mouse 2 R M SendToModule FvwmGtk gnome-all