# Orly's fvwm-2.0.45 setup (minimal, for 8-bit displays, with FvwmCDE) # note: as Guido pointed out, FvwmCDE eats too much screen real estate, # even on 1024x768 screens.. and I've made the menu/title fonts bigger, # so the "usable" resolution here is at least 1152x900 # Fonts - one for window titles, another for icons WindowFont -*-lucida-medium-r-normal-*-*-140-75-75-*-*-*-* IconFont -*-lucida-medium-r-normal-*-*-100-75-75-*-*-*-* # Module path and paths to the icons ModulePath /usr/X11R6/lib/X11/fvwm2 #PixmapPath /usr/lib/X11/icons/8bit/ PixmapPath /usr/X11R6/lib/X11/fvwm2/icons:/usr/X11R6/lib/X11/fvwm2/pixmaps IconPath /usr/X11R6/lib/X11/fvwm2/icons:/usr/X11R6/lib/X11/fvwm2/pixmaps MenuStyle Black #aeb2c3 #aeb2c3 \ -*-lucida-medium-r-normal-*-*-140-75-75-*-*-*-* mwm TitleStyle LeftJustified HilightColor White #824d7a Style "*" MWMButtons Style "*" MwmDecor Style "*" MWMFunctions Style "*" MWMBorder Style "*" SmartPlacement Style "*" RandomPlacement Style "*" DecorateTransient Style "*" SloppyFocus Style "*" NoPPosition Style "*" BorderWidth 6 Style "*" HandleWidth 6 Style "*" StickyIcon Style "*" ForeColor Black Style "*" BackColor #aeb2c3 Style "*" IconBox 10 10 20 600 Style "*" Icon BriefcaseWithPaperAndSquareWithScrews.xpm Style "*clock" NoTitle,Sticky Style "Wharf" NoTitle,NoHandles,WindowListSkip,Sticky Style "XAnim" NoTitle,NoHandles Style "xsysinfo" NoTitle,Sticky Style "MIDI" Icon OldFashionedRadio.xpm Style "MPEG" Icon OldFashionedRadio.xpm Style "xcalc" Icon OldBlueAddingMachine.xpm Style "xfontsel" Icon text.xpm Style "xsysinfo" Icon CPUChip.xpm Style "xjed" Icon Document3.xpm Style "pine*" Icon LetterEnvelopeWithPencilAndPaper.xpm Style "fstool" Icon DiskHardDrive.xpm Style "glint" Icon ClosedPackageBox.xpm Style "netcfg" Icon TwoNetworkedWindows95Machines.xpm Style "printtool" Icon PrinterHP.xpm Style "tksysv" Icon Stoplight.xpm Style "xvidtune" Icon IntelInsideMonitor.xpm Style "xv*" Icon Image.xpm,NoHandles Style "ImageMagick" Icon Image.xpm Style "gimp" Icon 3dpaint.xpm Style "imageWin" Icon 3dpaint.xpm Style "xpdf" Icon SpreadsheetBargraphLetterP.xpm Style "PDF" Icon SpreadsheetBargraphLetterP.xpm Style "xdvi" Icon Equation.xpm Style "xfig" Icon FileFIG.xpm Style "mgv" Icon AdobePostscript.xpm Style "Movie" Icon Television.xpm Style "rxvt" Icon IntelInsideMonitor.xpm Style "LyX" Icon Equation.xpm Style "mixer" Icon MicroPhonePro.xpm Style "mxv" Icon FileAu.xpm Style "MXV" Icon FileAu.xpm Style "*.au" Icon FileAu.xpm Style "*.wav" Icon FileAu.xpm Style "helptool" Icon Book.xpm Style "tkInfo*" Icon tinyInfoButton.xpm Style "TkMan*" Icon Book.xpm Style "Form Design" Icon CAD.xpm Style "DDD*" Icon Ant.xpm Style "emacs*" Icon Document3.xpm Style "Netscape*" Icon netscape3.xpm # the default OpaqueMoveSize is so large that it causes irritating blinking # when the WM tries to opaque-move the window OpaqueMoveSize 25 EdgeScroll 0 0 EdgeResistance 10000 0 XORValue 255 # Set the desk top size in units of physical screen size DeskTopSize 1x1 #========================================================================# # Stuff to do at start-up AddToFunc "InitFunction" + "I" Module FvwmCDE AddToFunc "RestartFunction" + "I" Module FvwmCDE #========================================================================# # Now define some handy complex functions # This one moves and then raises the window if you drag the mouse, # only raises the window if you click, or does a full maximize if # you double click AddToFunc "Move-or-Raise" + "M" Move + "M" Raise + "C" Raise + "D" Maximize 100 100 # This one moves and then lowers the window if you drag the mouse, # only lowers the window if you click, or does a RaiseLower if you double # click AddToFunc "Move-or-Lower" + "M" Move + "M" Lower + "C" Lower + "D" RaiseLower # This one moves or (de)iconifies: AddToFunc "Move-or-Iconify" + "M" Move + "D" Iconify # This one resizes and then raises the window if you drag the mouse, # only raises the window if you click, or does a RaiseLower if you double # click AddToFunc "Resize-or-Raise" + "M" Resize + "M" Raise + "C" Raise + "D" RaiseLower #========================================================================# # This defines the most common window operations AddToMenu "Window-Ops" + " Window Ops " Title + " &Restore " Iconify -1 + " Mi&nimize " Iconify 1 + " Ma&ximize " Maximize 100 100 + "" Nop + " &Kill " Destroy + " &Close " Delete # And an untitled version for window decor AddToMenu "Window-Ops-Untitled" + " &Restore " Iconify -1 + " Mi&nimize " Iconify 1 + " Ma&ximize " Maximize 100 100 + "" Nop + " &Kill " Destroy + " &Close " Delete AddToMenu "WM-Actions" + "Refresh" Refresh + "Restart WM" Restart /usr/bin/X11/fvwm2 + "" Nop + "Terminate" Quit # One more complex function - couldn't be defined earlier because it used # pop-up menus # # This creates the "system" menu for the title-bar window-ops # pop-up AddToFunc "window_ops_func" "C" PopUp Window-Ops-Untitled + "M" PopUp "Window-Ops-Untitled" + "D" Delete #========================================================================# # Mouse bindings # First, for the mouse in the root window # Button 3 gives the StartMeny # AnyModifier (A) option for the modifier field, so you can hold down # any shift-control-whatever combination you want! # Button Context Modifi Function Mouse 1 R A Nop Nop Mouse 2 R A Nop Nop Mouse 3 R A Menu "StartMenu" Nop # Now the decoration bindings # Button Context Modif Function Mouse 0 1 A Function "window_ops_func" Mouse 1 2 A Maximize 100 100 Mouse 0 4 A Iconify Mouse 1 F A Function "Resize-or-Raise" Mouse 1 TS A Function "Move-or-Raise" Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Iconify Mouse 2 FST A Function "window_ops_func" Mouse 3 TSIF A RaiseLower Mouse 3 W M RaiseLower #========================================================================# AddToMenu "StartMenu" + " Start " Title + "Console" exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* \ -bg Black -fg Gray85 -T "console" 2>/dev/null & + "Large Console" exec rxvt +sb -ls \ -font -*-lucidatypewriter-bold-r-*-*-*-190-75-75-*-*-*-* \ -bg Black -fg Gray85 -T "console" 2>/dev/null & + "Mail" exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* \ -bg Black -fg white -T "Pine 3.95" -e pine 2>/dev/null & + "XV" exec xv +vsperfect & + "" Nop + "Applications.. " Popup "Applications" + "Editors.. " Popup "Editors" + "Graphics.. " Popup "Graphics" + "Internet.. " Popup "Internet" + "X Utilities.. " Popup "X-Utilities" + "System.. " Popup "System" + "" Nop + "Manual Pages" exec tkman -geometry 400x350 & + "Info Viewer" exec tkinfo & + "Help" exec helptool & + "" Nop + "Session.. " Popup "WM-Actions" AddToMenu "Editors" + "Quick Edit" exec xe & + "Edit" exec xjed -font \ -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* -bg gray70 \ -fg black & + "XEmacs" exec xemacs & + "Word Processor" exec lyx 2>/dev/null >/dev/null & AddToMenu "X-Utilities" + "Calculator" exec xcalc & + "Font Selector" exec xfontsel & + "OS View" exec xsysinfo & AddToMenu "Internet" + "Netscape" exec netscape -geometry 800x500 & + "Pine" exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* -bg Black \ -fg white -T "Pine 3.95" -e pine 2>/dev/null & AddToMenu "System" + "File System" exec fstool 2>/dev/null & + "Packages" exec glint 2>/dev/null & + "Networking" exec netcfg 2>/dev/null & + "Printer" exec printtool 2>/dev/null & + "Runlevel" exec tksysv 2>/dev/null & + "X11 Display" exec xvidtune 2>/dev/null & AddToMenu "Graphics" + "XV" exec xv +vsperfect & + "ImageMagick" exec display & + "The GIMP" exec gimp 2>/dev/null >/dev/null & + "Acrobat Viewer" exec xpdf `xgetfile -title "PDF" -fg black \ -bg gray -pattern "*.pdf"` >/dev/null 2>/dev/null & + "Draw" exec xfig & + "DVI Viewer" exec xdvi & + "PS Viewer" exec mgv & + "Movie Player" exec xanim +Av30 +Ze +B +f +Ss2 +Ak \ `xgetfile -queue -title "Movie" -fg black \ -bg gray -pattern "*.qt *.mov *.avi *.mpg"` 2>/dev/null & AddToMenu "Applications" + "Audio Control" exec tkmixer & + "MPEG Audio" exec xgetfile -queue -title "MPEG" -fg black \ -bg gray -pattern "*.mpg *.mp2" -exec "maplay-fast -d 4 %s" 2>/dev/null & + "MIDI Audio" exec xgetfile -queue -title "MIDI" -fg black \ -bg gray -pattern "*.mid" -exec "bag | timidity -p 24 -idq %s \ 2>/dev/null >/dev/null" & + "Wave Editor" exec mxv -font \ -*-helvetica-bold-r-normal-*-*-100-100-100-*-*-*-* -fg black \ -bg gray `xgetfile -queue -title "MXV" -fg black \ -bg gray -pattern "*.au *.wav"` 2>/dev/null >/dev/null & + "" Nop + "XForms Designer" exec fdesign & + "Debugger" exec ddd -xrm \ "Ddd*fontList: -*-helvetica-bold-r-narrow-*-*-120-100-100-*-*-*-* \ Ddd*tool_buttons*fontList: -*-helvetica-bold-r-narrow-*-*-120-100-100-*-*-*-*" & #------------------ FvwmBacker (this functionality is duplicated in FvwmCDE).. #------------------ FvwmCDE: that amusing look-alike setup.. Style "FvwmCDE" NoTitle,NoHandles,BorderWidth 0, \ Sticky,WindowListSkip,CirculateHitIcon,ClickToFocus,StaysOnTop # note: need to hack fvwm/borders.c to remove the parallel lines # on sticky window titles to get a more CDE-ish look and feel on # panel pullouts Style "SlideoutPanel" NoHandles,BorderWidth 0,Sticky,\ WindowListSkip,CirculateHitIcon,ClickToFocus,\ # use this to disable bubble-help (enabled by default..) # *FvwmCDE*DisableHints # set the background color of the panel #*FvwmCDE*Background #a47591 *FvwmCDE*Background #aaaaaa # set the background color of the big buttons (HotPink4) *FvwmCDE*ButtonBackground #8b3a62 # change the labels on the desktop-change buttons # *FvwmCDE*Desktop1*Label Main # *FvwmCDE*Desktop2*Label Graphics # *FvwmCDE*Desktop3*Label Programming # *FvwmCDE*Desktop4*Label Internet # here's how to associate a background with each desktop. # personally, I just disable these settings, since my video card isn't # fast enough to make the root-window changes seem instantaneous # here's how you can assign a different solid color to different desktops # *FvwmCDE*Desktop1*Command xsetroot -solid MidnightBlue # *FvwmCDE*Desktop2*Command xsetroot -solid DodgerBlue4 # *FvwmCDE*Desktop3*Command xsetroot -solid Maroon4 # *FvwmCDE*Desktop4*Command xsetroot -solid DarkOrchid4 # and here's how to have different pixmap background for each desktop; # the "real" CDE is like this. Beware: xpmroot will not set the root window # if it runs out of colors.. # *FvwmCDE*Desktop1*Command xpmroot /etc/X11/icons/8bit/blackmarble.xpm # *FvwmCDE*Desktop2*Command xpmroot /etc/X11/icons/8bit/burlywood.xpm # *FvwmCDE*Desktop3*Command xpmroot /etc/X11/icons/8bit/bluerock.xpm # *FvwmCDE*Desktop4*Command xpmroot /etc/X11/icons/8bit/pinkmarble.xpm # first the large buttons; these are the bindings *FvwmCDE*Button0*Binding Exec dclock & *FvwmCDE*Button1*Binding Exec ical & *FvwmCDE*Button2*Binding Exec lg & *FvwmCDE*Button2*Hint "start file manager" *FvwmCDE*Button3*Binding Exec xe & *FvwmCDE*Button3*Hint "edit some files" *FvwmCDE*Button4*Binding Exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* \ -bg Black -fg white -T "Pine 3.95" -e pine 2>/dev/null & *FvwmCDE*Button4*Hint "read or compose mail" *FvwmCDE*Button5*Binding Exec printtool & *FvwmCDE*Button5*Hint "manage the printer" *FvwmCDE*Button6*Binding Exec xv +vsperfect & *FvwmCDE*Button6*Hint "look at pictures" *FvwmCDE*Button7*Binding Exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* \ -bg Black -fg white -T "console" 2>/dev/null & *FvwmCDE*Button7*Hint "start a shell" *FvwmCDE*Button8*Binding Exec tkman & *FvwmCDE*Button8*Hint "browse the manual" *FvwmCDE*Button9*Binding Nop *FvwmCDE*Button9*Hint "puke in the trash" # some little buttons *FvwmCDE*Lock Exec xlock -mode random & *FvwmCDE*Exit Quit *FvwmCDE*WindowOps Popup Window-Ops # slide-out menu definitions; panels are also numbered Style "X Utilities" UseStyle "SlideoutPanel" *FvwmCDE*Panel1*Label "X Utilities" *FvwmCDE*Panel1*Hint "X Utilities" *FvwmCDE*Panel1*Binding "Calculator%OldBlueAddingMachine.xpm%" \ exec xcalc & *FvwmCDE*Panel1*Binding "Font Selector%text.xpm%" exec xfontsel & *FvwmCDE*Panel1*Binding "OS View%CPUChip.xpm%" exec xsysinfo & # third panel (above File Manager icon) Style "File Managers" UseStyle "SlideoutPanel" *FvwmCDE*Panel2*Label "File Managers" *FvwmCDE*Panel2*Hint "File Managers" *FvwmCDE*Panel2*Binding "Looking Glass%HAL-Eye.xpm%" exec lg & Style "Editors" UseStyle "SlideoutPanel" *FvwmCDE*Panel3*Label "Editors" *FvwmCDE*Panel3*Hint "Editors" *FvwmCDE*Panel3*Binding "Xenon%DocumentWithBitmap.xpm%" exec xe & *FvwmCDE*Panel3*Binding "XJed%Document3.xpm%" exec xjed -font \ -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* -bg gray70 \ -fg black & *FvwmCDE*Panel3*Binding "XEmacs%Document3.xpm%" exec xemacs & Style "Internet" UseStyle "SlideoutPanel" *FvwmCDE*Panel4*Label "Internet" *FvwmCDE*Panel4*Hint "Internet Applications" *FvwmCDE*Panel4*Binding "PPP Setup%Netsurfer.xpm%" exec ezppp & *FvwmCDE*Panel4*Binding "Netscape%netscape3.xpm%" exec \ netscape -geometry 800x700+128+10 & *FvwmCDE*Panel4*Binding "Pine%LetterEnvelopeWithPencilAndPaper.xpm%" \ exec rxvt +sb -ls \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* -bg Black \ -fg white -T "Pine 3.95" -e pine 2>/dev/null & Style "System" UseStyle "SlideoutPanel" *FvwmCDE*Panel5*Label "System" *FvwmCDE*Panel5*Hint "System Administration" *FvwmCDE*Panel5*Binding "File System%DiskHardDrive.xpm" \ exec fstool 2>/dev/null & *FvwmCDE*Panel5*Binding "Package Manager%ClosedPackageBox.xpm%" \ exec glint 2>/dev/null & *FvwmCDE*Panel5*Binding "Network%TwoNetworkedWindows95Machines.xpm" \ exec netcfg 2>/dev/null & *FvwmCDE*Panel5*Binding "Printer%PrinterHP.xpm%" \ exec printtool 2>/dev/null & *FvwmCDE*Panel5*Binding "Runlevel%Stoplight.xpm%" \ exec tksysv 2>/dev/null & *FvwmCDE*Panel5*Binding "X11 Display%IntelInsideMonitor.xpm%" \ exec xvidtune & Style "Graphics Tools" UseStyle "SlideoutPanel" *FvwmCDE*Panel6*Label "Graphics Tools" *FvwmCDE*Panel6*Hint "Graphics Tools" *FvwmCDE*Panel6*Binding "XV%Image.xpm%" exec xv +vsperfect & *FvwmCDE*Panel6*Binding "ImageMagick%Image.xpm%" exec display & *FvwmCDE*Panel6*Binding "The GIMP%3dpaint.xpm%" exec gimp & *FvwmCDE*Panel6*Binding \ "Acrobat Viewer%SpreadsheetBargraphLetterP.xpm" \ exec xpdf `xgetfile -queue -title "PDF" -fg black \ -bg gray -pattern "*.pdf"` >/dev/null 2>/dev/null & *FvwmCDE*Panel6*Binding "Drawing Editor%FileFIG.xpm%" exec xfig & *FvwmCDE*Panel6*Binding "DVI Viewer%Equation.xpm" \ exec xdvi & *FvwmCDE*Panel6*Binding "PostScript Viewer%AdobePostscript.xpm%" \ exec mgv & *FvwmCDE*Panel6*Binding "Movie Player%Television.xpm%" \ exec xanim +Av30 +Ze +B +f +Ss2 +Ak \ `xgetfile -queue -title "Movie" -fg black \ -bg gray -pattern "*.qt *.mov *.avi *.mpg"` 2>/dev/null & Style "Applications" UseStyle "SlideoutPanel" *FvwmCDE*Panel7*Label "Applications" *FvwmCDE*Panel7*Hint "Applications" *FvwmCDE*Panel7*Binding "Console%IntelInsideMonitor.xpm%" \ Exec rxvt +sb -ls -fg White -bg Black -T "console" \ -font -*-screen-bold-r-*-*-*-160-72-72-*-*-*-* \ 2>/dev/null & *FvwmCDE*Panel7*Binding "Large Console%IntelInsideMonitor.xpm%" \ Exec rxvt +sb -ls \ -font -*-lucidatypewriter-bold-r-*-*-*-190-75-75-*-*-*-* \ -bg Black -fg Gray85 -T "console" 2>/dev/null & *FvwmCDE*Panel7*Binding "Word Processor%Equation.xpm%" \ exec lyx & *FvwmCDE*Panel7*Binding "Audio Control%MicroPhonePro.xpm%" \ exec tkmixer & *FvwmCDE*Panel7*Binding "MPEG Player%OldFashionedRadio.xpm%" \ exec xgetfile -queue -title "MPEG" -fg black \ -bg gray -pattern "*.mpg *.mp2" -exec "maplay-fast -d 4 %s" 2>/dev/null & *FvwmCDE*Panel7*Binding "MIDI Player%OldFashionedRadio.xpm%" \ exec xgetfile -queue -title "MIDI" -fg black \ -bg gray -pattern "*.mid" -exec "bag | timidity -p 24 -idq %s \ 2>/dev/null >/dev/null" & *FvwmCDE*Panel7*Binding "MiXViews%FileAu.xpm%" \ exec mxv -font \ -*-helvetica-bold-r-normal-*-*-100-100-100-*-*-*-* -fg black \ -bg gray `xgetfile -queue -title "MXV" -fg black \ -bg gray -pattern "*.au *.wav"` 2>/dev/null >/dev/null & *FvwmCDE*Panel7*Binding "DOS Emulator%ComputerPC.xpm%" \ exec xdos & *FvwmCDE*Panel7*Binding "Windows Emulator%WindowsLogoMonitor.xpm%" \ exec wabi & *FvwmCDE*Panel7*Binding "Mac Emulator%Executor.xpm%" \ exec executor & Style "References" UseStyle "SlideoutPanel" *FvwmCDE*Panel8*Label "References" *FvwmCDE*Panel8*Hint "References" *FvwmCDE*Panel8*Binding "Helptool%Book.xpm%" exec helptool & *FvwmCDE*Panel8*Binding "Info Viewer%tinyInfoButton.xpm%" exec tkinfo & *FvwmCDE*Panel8*Binding "Manual Viewer%Book.xpm%" exec tkman \ -geometry 400x350 & Style "Programming" UseStyle "SlideoutPanel" *FvwmCDE*Panel9*Label "Programming" *FvwmCDE*Panel9*Hint "Programming Tools" *FvwmCDE*Panel9*Binding "XForms Designer%CAD.xpm%" \ exec fdesign & *FvwmCDE*Panel9*Binding "Debugger%Ant.xpm%" exec ddd -xrm \ "Ddd*fontList: -*-helvetica-bold-r-narrow-*-*-120-100-100-*-*-*-* \ Ddd*tool_buttons*fontList: -*-helvetica-bold-r-narrow-*-*-120-100-100-*-*-*-*" &