# a grunjy .fvwm2rc file # path to the images ImagePath /usr/local/share/icons/mini:/usr/local/share/icons/TkDesk:\ /usr/local/share/icons/medium:/usr/local/share/icons/large:\ /usr/local/share/icons/huge:/usr/X11R6/include/X11/pixmaps:\ /usr/share/pixmaps ModulePath /usr/lib/fvwm/modules # active borders on the desktops EdgeResistance 250 10 EdgeScroll 100 100 ClickTime 750 # make sure these fonts exist on your system: Style * Font -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* # colors on the pager and number of desktops Style * HilightFore white, \ HilightBack gold4 DeskTopSize 2x3 MenuStyle * Fvwm, Foreground gold1, Background gold4 MenuStyle * Font -*-fixed-bold-r-*-*-15-*-*-*-*-*-*-* SetAnimation 10 -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0 ColormapFocus FollowsMouse # default Styles: Style "*" BorderWidth 5, HandleWidth 5 Style "*" FocusFollowsMouse Style "default-style" SmartPlacement # Styles for various Fvwm modules: Style "Fvwm*" NoTitle, Sticky, WindowListSkip, NoHandles Style "Fvwm*" BorderWidth 1, CirculateSkipIcon, CirculateSkip Style "FvwmButtons" NoTitle, WindowListSkip, CirculateSkip Style "FvwmButtons" ClickToFocus # Styles for your common terminal emulator programs: Style "XTerm" Icon /usr/local/share/icons/medium/rterm.xpm, SloppyFocus Style "rxvt" Icon /usr/local/share/icons/medium/rterm.xpm, SloppyFocus Style "rxvt" Color white/gray50, Font -misc-fixed-*-*-*-*-6-*-*-*-*-*-*-* # Styles for various common programs: Style "*lock" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xcalc" Icon /usr/share/icons/xcalc.xpm, NoButton 2, RandomPlacement, ClickToFocus Style "xmh" Icon /usr/share/icons/mail1.xpm, NoIconTitle,StickyIcon Style "xmh" RandomPlacement, NoButton 2 Style "xman" Icon /usr/share/icons/xman.xpm, RandomPlacement, ClickToFocus Style "xmag" Icon /usr/share/icons/mag_glass.xpm, RandomPlacement, ClickToFocus Style "xdaliclock" StaysOnTop, NoHandles, BorderWidth 3, ClickToFocus ######################## Initialization Functions ############################ AddToFunc InitFunction "I" Module FvwmButtons + "I" exec xsetroot -solid burlywood + "I" Module FvwmPager 0 0 + "I" Module FvwmAnimate + "I" exec xdaliclock \ -font -*-fixed-*-r-*-*-12-*-*-*-*-*-*-* \ -fg black -bg gold2 -nocycle -noseconds -geometry 34x20-1-1 AddToFunc RestartFunction "I" Module FvwmButtons + "I" exec xsetroot -solid burlywood + "I" Module FvwmPager 0 0 + "I" Module FvwmAnimate #+ "I" exec xdaliclock \ # -font -*-fixed-*-r-*-*-12-*-*-*-*-*-*-* \ # -fg black -bg gold2 -nocycle -noseconds -geometry 34x20-1-1 ######################## Menus ################### AddToMenu RootMenu "" Nop + "Debian" Popup /Debian + "" Nop + "Exit Fvmw" Popup Quit-Verify #Module FvwmForm QuitVerify ######################## Menus: /Debian DestroyMenu /Debian AddToMenu /Debian Read /etc/X11/fvwm/menudefs.hook ######################## Menus: Window-Ops2 # this is the drop-down menu for the button at the left of the titlebar # AddToMenu Window-Ops2 "&Move" Move + "&Resize" Resize + "R&aise" Raise + "&Lower" Lower + "(De)&Iconify" Iconify + "(Un)&Stick" Stick + "(Un)Ma&ximize" Maximize + "" Nop + "(Un)shade" Windowshade + "Change theme" Popup NewTheme + "Change decor" Popup NewDecor + "Backgrounds" Popup Backgrounds + "" Nop + "&Delete" Delete + "&Close" Close + "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Print" PrintFunction + "Print Reverse" PrintReverseFunction # Now for my own menus: # I like this old style of quit better than that # M$ish "are you sure you want to exit?" crap. # Besides, this gives the option to just restart fvwm2 without # screwing with my apps. Good for testing alterations to .fvwm2rc ######################## Menus: Fvwm Exit menu AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "No, Don't Quit" Nop + "" Nop + "Restart Fvwm" Restart + "" Nop + "Yes, Really Quit" Quit ################## FvwmButtons button-bar ################################ *FvwmButtons: Fore Black *FvwmButtons: Back gold2 *FvwmButtons: BoxSize smart *FvwmButtons: Frame 2 *FvwmButtons: Font -adobe-helvetica-bold-r-*-*-8-*-*-*-*-*-*-* *FvwmButtons: Geometry -1+0 *FvwmButtons: Columns 1 *FvwmButtons: Rows 10 *FvwmButtons: Padding 1 1 *FvwmButtons(Icon mini.rxvt.xpm, Action \ 'Exec rxvt -fg gray80 -bg black -fn 9x15 &') *FvwmButtons(Icon mini.mc.xpm, Action \ 'Exec rxvt -fg gray80 -bg black -fn 9x15 \ -geometry 100x30 -e mc &') *FvwmButtons(Icon eye.xpm, Action \ 'Exec /home/ftp/amy/new/grunj/images/Scans/Terry_slides/slideshow.sh') *FvwmButtons(Icon pysol.xpm, Action 'Exec pysol &') *FvwmButtons(Icon applix.xpm, Action 'Exec applix &') *FvwmButtons(Icon mozicon16.xpm, Action \ 'Exec mozilla &') *FvwmButtons(Icon 001_star_butterfly.xpm, Action \ 'Exec /opt/openoffice.org2.0/program/soffice &') *FvwmButtons(Icon mini.gimp.xpm, Action 'Exec gimp &') *FvwmButtons(Icon mini.crosbone.xpm, Action 'Exec xkill &') *FvwmButtons(Icon copy.xpm, Action \ 'Exec import -window root desktop-$(date +%Y-%m-%d-%H.%m.%S).png') ########################## 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 -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *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 #8a9e00 *FvwmIdentFore White *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPager: Back gold2 # turn off desktop names for swallowing in above button bar example: *FvwmPager: Font none *FvwmPagerHilight #8ce400 *FvwmPagerGeometry 24x200-1-34 *FvwmPagerRows 1 *FvwmPagerSmallFont 5x8 *FvwmPagerBalloons All *FvwmPagerBalloonBack Yellow *FvwmPagerBalloonFore Black *FvwmPagerBalloonFont lucidasanstypewriter-12 *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 *FvwmBackerDesk 0 -solid steelblue *FvwmBackerDesk 1 -solid midnightblue *FvwmScrollBack grey40 *FvwmScrollFore green ##########################--Key Bindings--################################ # some simple default key bindings: Key Next A SCM Next [*] Focus Key Prior A SCM Prev [*] Focus #Key Menu A N Menu RootMenu Nop # Let's bind some keys to pan the desktop around 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 Key Left A SC Scroll -10 +0 Key Right A SC Scroll +10 +0 Key Up A SC Scroll +0 -10 Key Down A SC Scroll +0 +10 # These key bindings let the user use fvwm without a mouse Key Left A SC CursorMove -1 0 Key Right A SC CursorMove +1 +0 Key Up A SC CursorMove +0 -1 Key Down A SC CursorMove +0 +1 Key Left A SM CursorMove -10 +0 Key Right A SM CursorMove +10 +0 Key Up A SM CursorMove +0 -10 Key Down A SM CursorMove +0 +10 # Alt-Tab simili-Windows behaviour Key Tab A M WindowList Root c c NoDeskSort # some simple default mouse bindings: # for the root window: Mouse 1 R A Menu RootMenu Nop Mouse 2 R A Menu Window-Ops Nop Mouse 3 R A WindowList # 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 ######################## 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 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 # RLOGIN machine fg bg AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8 AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture