#!/usr/bin/ksh # # This .fvwm95rc has been modified from the example configuration file for # fvwm95-2.0.43 for use by the College of Engineering Worstations, a # division of the Computing and Communications Services Offices of the # University of Illinois. Modification completed by Steven L Jacob and # Tal Yardeni with assistance and guidance from Chris J Stamborski, # Jim Moawad, and Mike K Hollyman on December 12, 1997. # ############## COPY RIGHT INFORMATION ################################### # fvwm is copyright 1988 by Evans and Sutherland Computer # Corporation, Salt Lake City, Utah, and copyright 1989 by the # Massachusetts Institute of Technology, Cambridge, # Massachusetts, All rights reserved. It is also copyright # 1993,1994 by Robert Nation. # # Permission to use, copy, modify, and distribute this # software and its documentation for any purpose and without # fee is hereby granted, provided that the above copyright # notice appear in all copies and that both that copyright # notice and this permission notice appear in supporting # documentation, and that the names of Evans & Sutherland and # M.I.T. not be used in advertising in publicity pertaining to # distribution of the software without specific, written prior # permission. # FVWM95 is a friendly window environment that has multiple virtual desktops. # FVWM95 has the look and feel of Microsoft Windows '95 (Microsoft, Windows, # Windows NT, and Windows '95 are trademarked (TM) by Microsoft Corporation; # Windows '95 is copyright 1981-1995 by Microsoft Corporation; Windows NT is # copyright 1985-1996 by Microsoft Corporation). ######################################################################## # It is recommend that you do not make changes to this file. However, # this file has been commented for your convenience. In some places # alternatives to the .fvwm95 defaults have been included. To change the # defaults uncomment the additional line codes wherever they have been # included. They will be clearly commented. Also remember to comment the # defaults. # Sample fvwm desktops and modifications may be # found at the official fvwm home page: # http://www.hpc.uh.edu/fvwm # The EWS FVWM manual may be found at: # http://www.ews.uiuc.edu/~fvwm/manual/ # Please report any bugs and/or errors to manager@ews.uiuc.edu. # Refer any questions regarding fvwm95 to the newsgroup: uiuc.ews.org ######################################################################## #################### Contents # I: Desktop Styling # II: Initialization Functions # III: Handy Complex Functions # IV: Menus # A: Creating Menus # B: Main Menus # C: Software Menus # D: Software Submenus # E: Platform Specific Menus # F: Window Operations # V: Mouse Button Bindings # VI: Key Bindings # VII: FvwmButtons Button Bar # A: Attributes # B: Button Definitions # VIII: FvwmTaskbar Task Bar (like the one in Win95 [copyright Microsoft]) # IX: Other Fvwm Modules # A: Fvwm Pager # B: Minibuttons # C: Fvwm Identify # D: Fvwm Winlist # E: Fvwm Config ##################### I - Desktop Styling ####################### # # Fonts - one for window titles, another for icons, another for menus # A lit of available fonts can be found in WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-* IconFont fixed MenuFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* # # Set the default window colors. The syntax is: # DefaultColors winforecolor winbackcolor titleforecolor titlebackcolor # where: # winforecolor is used for the menu text # winbackcolor is the background (border) color of all windows, # including the menu windows # titleforecolor is the color of the title text of non selected windows # # titlebackcolor is the background color used for title bars of # non selected windows DefaultColors black #c0c0c0 black grey50 MenuColors black grey white grey # A lit of available colors can be found in # /usr/openwin/lib/rgb.txt on SUNs # # Text and background color for the title bar of the active (selected) window # HilightColors white NavyBlue # # Text and background color for the title bar of sticky windows # StickyColors white #257F07 # You can also use the Style command to set the colors of individual # title bars of some non-selected windows #Style "*" ForeColor #c0c0c0 #Style "*" BackColor grey50 #========================================================================# # # Set up the major operating modes # #Style "*" ClickToFocus # Comment the above and uncomment one of the following if you prefer # focus follow mouse. Also, if you want auto-raise enabled, uncomment # the appropiate line in InitFunction (see below). #Style "*" MouseFocus Style "*" SloppyFocus # If we use the taskbar we don't need the icons :-) Style "*" NoIcon Style "*" MWMFunctions Style "*" HintOverride Style "*" MWMDecor Style "*" DecorateTransient OpaqueMoveSize 30 EdgeScroll 0 0 #EdgeScroll 100 100 #EdgeResistance 10000 0 EdgeResistance 250 50 # # RandomPlacement prevents user interaction while placing windows: # SmartPlacement allows the user to decide where to put down windows. # Style "*" RandomPlacement #Style "*" SmartPlacement # # NoPPosition instructs fvwm to ignore the PPosition field in window # geometry hints. Emacs annoyingly sets PPosition to (0,0)! # Style "*" NoPPosition #========================================================================# # # Set the desk top size. The units are X by Y screens. (horiz by vert) # DeskTopSize 3x2 #========================================================================# # # Module path and paths to the icons # Paths are a colon-separated list, just like regular unix PATH # ModulePath /usr/X11R6/lib/X11/fvwm95/:/usr/local/lib/X11/fvwm95/ PixmapPath /usr/include/X11/pixmaps/:/usr/local/mini-icons/:/home1/f/fv/fvw/fvwm/pics IconPath /usr/include/X11/bitmaps/:/usr/local/icons/ #========================================================================# # Set the decoration styles and window options # If compatible styles are set for a single window in multiple Style # commands, then the styles are ORed together. If conflicting styles # are set, the last one specified is used. # These commands should command before any menus or functions are defined, # and before the internal pager is started. # # Default width. # Style "*" BorderWidth 3, HandleWidth 3 Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "FvwmPager" Title, Sticky, WindowListHit Style "Fvwm Pager" Title, Sticky, WindowListHit Style "FvwmTalk" Title, WindowListHit Style "FvwmConsole" Title, WindowListHit Style "Fvwm Pager" StaysOnTop, NoHandles Style "FvwmBanner" StaysOnTop Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 5 Style "FvwmButtons" StaysOnTop Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "xbiff" NoTitle, StaysOnTop, Sticky, WindowListSkip Style "xbuffy" NoTitle, StaysOnTop, Sticky, WindowListSkip Style "xbuffy" color midnightblue/midnightblue Style "Hifs" NoTitle, NoHandles, Sticky, StaysOnTop, WindowListSkip Style "*" Style "*xterm*" Style "rxvt" Style "xcalc" Style "xsession" Style "xv" Style "Netscape" Style "Ghostview" Style "Xcolorsel" Style "IDL*" Style "xeyes" Style "*fm*" Style "Explorer" Style "FvwmPager" Style "XDbx" Style "Workman" Style "Mail" Style "AcroRead" Style "NcFtp" Style "XbmBrowser" Style "Bitmap" Style "Pixmap" Style "XClipboard" Style "matlab" Icon SloppyFocus,StartsOnDesk 0 Style "xgraph" Icon graphs.xpm,RandomPlacement,ClickToFocus Style "xmosaic" NoPPosition, color Green/Yellow,ClickToFocus Style "MMXP*" WindowListSkip Style "xmcd" WindowListSkip Style "xload" NoTitle, BorderWidth 0, NoHandles, Sticky, WindowListSkip # If you knock your mouse out of the xterm, it keeps focus while in root window # (uncomment the next line) #Style "*term" SloppyFocus #========================================================================# ##################### II - Initialization Functions ####################### # # Stuff to do at start-up # DestroyFunc "InitFunction" AddToFunc "InitFunction" \ "I" Exec xsetroot -solid SlateGrey -cursor_name top_left_arrow & + "I" Module FvwmButtons + "I" Module FvwmTaskBar # uncomment the following line to bring up a console window: #+ "I" Exec xterm -n Console -title "Console" -C -geometry 70x5-0-30 -fg white -bg black -cr white -fn 6x13 & # uncomment the following line to enable auto-raise with mouse focus: #+ "I" Module FvwmAuto 500 #+ "I" Module FvwmButtons MiniButtons #+ "I" Module FvwmBanner #+ "I" Module FvwmPager 0 3 DestroyFunc "RestartFunction" AddToFunc "RestartFunction" \ "I" Module FvwmButtons + "I" Module FvwmTaskBar #+ "I" Module FvwmAuto 500 + "I" Refresh #+ "I" Module FvwmBanner #========================================================================# ##################### III - Handy Complex Functions ####################### # Creating complex functions: # To create a complex function, type the following lines (replacing # the words in braces {} with the description of your choice): # DestroyFunc "{function_name}" # AddToFunc "{function_name}" \ # "{descriptor}" {FVWM_action} # For subsequent lines (a function can execute several actions, dependent on # mouse clicks), add a plus sign (+) in front: # + "{descriptor}" {FWWM_action} # An FVWM_action can be any FVWM built-in function, any fucntion already # defined in your .fvwm95rc file, or any FVWM utility. # 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 RaiseLower if you double # click # DestroyFunc "Move-or-Raise" AddToFunc "Move-or-Raise" \ "M" Move + "M" Raise + "C" Raise + "D" RaiseLower #+ "D" Maximize 100 97 # # This one maximizes vertically if you click (leaving room for the # FvwmTaskBar at the bottom, or does a full maximization (leaving room for # the FvwmTaskBar and the FvwmButtons) if you double click, or a true full # maximization if you just hold the mouse button down. # DestroyFunc "Maximize-Func" AddToFunc "Maximize-Func" \ "M" Maximize 0 97 + "D" Maximize 100 97 + "C" Maximize 93 97 # # 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 # DestroyFunc "Move-or-Lower" AddToFunc "Move-or-Lower" \ "M" Move + "M" Lower + "C" Lower + "D" RaiseLower # # This one moves or (de)iconifies: # DestroyFunc "Move-or-Iconify" 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 # DestroyFunc "Resize-or-Raise" AddToFunc "Resize-or-Raise" \ "M" Resize + "M" Raise + "C" Raise + "D" RaiseLower # # This creates the "system" menu for the title-bar window-ops pop-up # DestroyFunc "windows_ops_func" AddToFunc "window_ops_func" \ "C" PopUp Window-Ops2 + "M" PopUp Window-Ops2 + "D" Delete ################################ IV - Menus ################################## ##################### A - Creating your own menus: # To create a new menu, type the lines: # DestroyMenu {menuname} # AddToMenu {menuname} \ # {title} Title # For each menu item, on a separate line: # + "menu item" code # Codes: # Title: Intuitive, no? # Exec: Execute Operation # Nop: No Operation # Popup: Call specified menu # To use Fvwm modules and functions, just type in the module/function name # For a separating line: # + "" Nop ##################### B - Main Menus: DestroyMenu StartMenu AddToMenu StartMenu "Main Menu" Title + "" Nop + "&Available Software" Popup Software + "" Nop + "New Window (&xterm)" Popup Xterms + "&ssh login" Popup ssh + "&Telnet" Popup Telnet + "" Nop + "&Printer Queue" Exec exec xterm -fn 8x16 -fg yellow -bg black -title "Printer Queue" -e pq & + "Lock Screen" Exec exec xlock + "File Manager" Exec /usr/dt/bin/dtfile & + "" Nop + "Refresh Screen" Refresh + "Restart" Popup RestartWM + "&Utilities" Popup Utilities + "" Nop + "Logout" Popup LogOut DestroyMenu QuickRef AddToMenu QuickRef "Fvwm95 Quick Reference" Title + "" Nop + "New Window (&xterm)" Popup Xterms + "&ssh login" Popup ssh + "&Telnet" Popup Telnet + "" Nop + "Refresh Screen" Refresh + "Restart Fvwm95" Restart fvwm95 + "" Nop + "&Printer Queue" Exec exec xterm -fn 8x16 -fg yellow -bg black -title "Printer Queue" -e pq & + "&Utilities" Popup Utilities DestroyMenu RestartWM AddToMenu RestartWM "Pick a Window Manager" Title + "" Nop + "fvwm2" Restart fvwm2 + "fvwm95" Restart fvwm95 + "" Nop + "mwm" Restart mwm DestroyMenu LogOut AddToMenu LogOut "Really logout?" Title + "" Nop + "YES, really logout" Quit + "NO, do not log me out" Nop + "" Nop + "Restart Window Manager" Popup RestartWM #--------- Utilities DestroyMenu "Utilities" AddToMenu "Utilities" \ "Utilities" Title + "" Nop + "Accessories:" Nop + "" Nop + "View Running Processes" Exec xterm -fg green -bg black -fn 8x16 -ls -T Top -n Top -e top & + "Calculator" Popup xcalc + "Find Out Who's Logged On" Exec xterm -fg green -bg black -fn 8x16 -title "Who's On?" -e /home1/f/fv/fvw/fvwm/scripts/whoson & #SUN + "Xclipboard" Exec /usr/bin/X11/xclipboard & + "" Nop + "Fvwm Modules:" Nop + "" Nop + "Restart Buttons" FvwmButtons + "Restart Taskbar" FvwmTaskBar + "Pager" FvwmPager 0 0 + "File Manager" FvwmFileMgr -a + "Identify" FvwmIdent + "Save Desktop" FvwmSave + "Debug" FvwmDebug + "Clean Up" FvwmClean + "" Nop + "Other Useful [?] Utilities: " Nop + "" Nop + "Close Window" Close + "Kill Window" Destroy + "Window Ops" Popup Window-Ops2 #--------- Software DestroyMenu "Software" AddToMenu "Software" \ "Software" Title + "" Nop + "CAD/Drawing" Popup CAD + "Desktop Publishing" Popup Desktop + "Finite Element Analysis" Popup FiniteElementAnalysis + "Graphics" Popup Graphics + "Math" Popup Math + "&Mail Readers" Popup Mail + "Mozilla" Exec /usr/local/bin/mozilla & + "Netscape 4.5 Preview" Exec /homes/ewsweb1a/staff/ejk/bin/X netscape45 & + "News Readers" Popup News + "Simulation" Popup Simulate + "Text Editors" Popup Editors #+ "U of I Direct" Exec xterm -fg white -bg black -fn 8x16 -ls -title "UI Direct" -e register & # UI direct + "Viewers" Popup Viewers ##################### C - Software: #--------- CAD DestroyMenu "CAD" AddToMenu "CAD" \ "CAD/Drawing" Title + "AutoCAD" Exec /usr/local/bin/acad & # HP SUN + "Island Draw" Exec IslandDraw & # HP + "Mentor Graphics" Exec xterm -fn 6x12 -e mentor_dmgr & # HP SUN + "Pro Engineer" Exec exec pro & # HP SUN #--------- Desktop Publishing DestroyMenu "Desktop" AddToMenu "Desktop" \ "Desktop Publishing" Title + "Island Write" Exec IslandWrite & # HP + "Interleaf5" Popup ileaf5 # HP + "Interleaf6" Exec ileaf6 & # HP SUN + "" Nop + "Island Table" Exec IslandTable & # HP #--------- Finite Element Analysis DestroyMenu "FiniteElementAnalysis" AddToMenu "FiniteElementAnalysis" \ "Finite Element Analyisis" Title + "Abaqus" Popup Abaqus + "Patran" Popup Patran + "Finite" Popup Finite #--------- Graphics DestroyMenu "Graphics" AddToMenu "Graphics" \ "Graphics" Title + "Xv" Exec xv & + "Island Draw" Exec IslandDraw & #--------- Math DestroyMenu "Math" AddToMenu "Math" \ "Math" Title + "GNU plot" Exec xterm -T "GNU plot" -e gnuplot & + "Mathematica" Exec mathematica & + "Matlab" Exec xterm -fg white -bg black -fn 8x16 -title Matlab -e matlab & + "Island Equation" Exec IslandEquation & #--------- Mail DestroyMenu "Mail" AddToMenu "Mail" \ "Mail Readers" Title + "&Pine" Popup Pine + "Other Mail Readers" Popup Other_Mail #--------- News DestroyMenu "News" AddToMenu "News" \ "News Readers" Title + "nn" Exec xterm -fg white -bg black -fn 8x16 -title NN -e nn & + "xrn" Exec xterm -fg white -bg black -fn 8x16 -title Xrn -ls -e xrn & + "tin" Exec xterm -fg white -bg black -fn 8x16 -title Tin -ls -e tin & #--------- Simulate DestroyMenu "Simulate" AddToMenu "Simulate" \ "Simulation" Title + "Mentor Graphics" Exec xterm -fn 6x12 -e mentor_dmgr & #--------- Text Editors DestroyMenu "Editors" AddToMenu "Editors" \ "Text Editors" Title + "GNU X-emacs" Exec xemacs & + "GNU Emacs" Exec emacs & + "VI" Exec xterm -fg white -bg black -fn 8x16 -title VI -e vi & + "Pico" Exec xterm -fg white -bg black -fn 8x16 -title Pico -e pico & #--------- Viewers DestroyMenu "Viewers" AddToMenu "Viewers" \ "Viewers" Title + "Ghostview (Postcript)" Exec ghostview & + "Acrobat (PDF)" Exec acroread & + "Xv (images)" Exec xv & + "PC File Viewer (MS Office)" Popup dejaVu #--------- Xterms DestroyMenu "Xterms" AddToMenu "Xterms" \ "New Window" Title + "" Nop + "&Small xterm" Exec xterm -title `hostname` -fg yellow -bg black -cr yellow -ls -fn 7x14 -sb & + "&Medium xterm" Exec xterm -title `hostname` -fg green -bg black -cr red -ls -fn 8x16 -sb & + "&Large xterm" Exec xterm -title `hostname` -fg white -bg black -cr red -ls -fn 10x20 -sb & + "&XLarge xterm" Exec xterm -title `hostname` -fg white -bg black -cr red -ls -fn 12x24 -sb & #--------- Remote Logins DestroyMenu "RemoteLogin" AddToMenu "RemoteLogin" \ "Remote Login" Title + "" Nop + "&eesn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title eesn -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab eesn & + "&cehpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title cehpx -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab cehpx & + "&dclsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title dclsn -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab dclsn & + "gl&hpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glhpx -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab glhpx & + "&glsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glsn -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab glsn & + "" Nop + "&Students" Exec xterm -fg white -bg black -fn 8x16 -sb -title Students -cr blue -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab students & + "" Nop + "CSIL S&parcs" Exec xterm -fg white -bg black -fn 8x16 -sb -title "CSIL Sparc" -cr blue -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab csil & #--------- ssh DestroyMenu "ssh" AddToMenu "ssh" \ "ssh" Title + "" Nop + "&eesn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title eesn -e /home1/f/fv/fvw/fvwm/scripts/rssh eesn & + "&cehpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title cehpx -e /home1/f/fv/fvw/fvwm/scripts/rssh cehpx & + "&dclsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title dclsn -e /home1/f/fv/fvw/fvwm/scripts/rssh dclsn & + "gl&hpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glhpx -e /home1/f/fv/fvw/fvwm/scripts/rssh glhpx & + "&glsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glsn -e /home1/f/fv/fvw/fvwm/scripts/rssh glsn & + "" Nop + "&Students" Exec xterm -fg white -bg black -fn 8x16 -sb -title Students -cr blue -e /home1/f/fv/fvw/fvwm/scripts/rssh students & + "" Nop + "CSIL S&parcs" Exec xterm -fg white -bg black -fn 8x16 -sb -title "CSIL Sparc" -cr blue -e /home1/f/fv/fvw/fvwm/scripts/rssh csil & #--------- Telnet DestroyMenu "Telnet" AddToMenu "Telnet" \ "Telnet" Title + "" Nop + "&eesn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title eesn -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab eesn & + "&cehpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title cehpx -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab cehpx & + "&dclsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title dclsn -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab dclsn & + "gl&hpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glhpx -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab glhpx & + "&glsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title glsn -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab glsn & + "" Nop + "&Students" Exec xterm -fg white -bg black -fn 8x16 -sb -title Students -cr blue -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab students & + "" Nop + "CSIL S&parcs" Exec xterm -fg white -bg black -fn 8x16 -sb -title "CSIL Sparc" -cr blue -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab csil & ##################### D - Software Submenus: ##########################ADDITIONAL POPUPS############################## # # # The following popup windows will e used to ensure that users are # # running the programs on the correct platforms. # # # ######################################################################### #--------- Abaqus DestroyMenu "Abaqus" AddToMenu "Abaqus" \ "Are you using an HP?" Title + "YES" Exec xterm -fg white -bg black -fn 8x16 -e abaqus & + "NO" Popup HP #--------- dejaVu DestroyMenu "dejaVu" AddToMenu "dejaVu" \ "Are you using a SUN?" Title + "YES" Exec dejaVu & + "NO" Popup SUN #--------- Finite DestroyMenu "finite" AddToMenu "finite" \ "Are you using an HP?" Title + "YES" Exec xterm -bg black -fg white -fn 8x16 -e finite & + "NO" Popup HP #--------- Interleaf 5 DestroyMenu "ileaf5" AddToMenu "ileaf5" \ "Are you using an HP?" Title + "YES" Exec ileaf & + "NO" Popup HP #--------- Other mail readers DestroyMenu "Other_Mail" AddToMenu "Other_Mail" \ "Other Mail Readers" Title + "elm" Exec xterm -geometry 80x25+200+200 -title "Elm" -fg white -bg black -cr red -fn 8x16 -ls -e elm & + "mail" Popup UnixMail + "mutt" Exec xterm -geometry 80x25+200+200 -title "Mutt" -fg white -bg black -cr red -fn 8x16 -ls -e mutt & #--------- Pine DestroyMenu "Pine" AddToMenu "Pine" \ "Which UNIX Account?" Title + "EWS" Exec xterm -geometry 80x25+200+200 -title "Pine" -fg white -bg black -cr red -fn 8x16 -ls -e pine -f $HOME/.INBOX & + "students" Exec xterm -geometry 80x25+200+200 -title "Students" -fg white -bg black -cr red -fn 8x16 -ls -e telnet students & #--------- PATRAN DestroyMenu "PATRAN" AddToMenu "PATRAN" \ "Are you using an HP?" Title + "YES" exec /patran/bin/patran + "NO" Popup HP #--------- UNIX Mail DestroyMenu "UnixMail" AddToMenu "UnixMail" \ "Unix Mail" Title + "New mail" xterm -fg white -bg black -fn 8x16 -title "Unix Mail" -e mail & + "Old mail" xterm -fg white -bg black -fn 8x16 -title "Unix Mail" -e mail -f & #--------- Xcalc DestroyMenu "xcalc" AddToMenu "xcalc" \ "Are you using a SUN?" Title + "YES" Exec /usr/bin/X11/xcalc & + "NO" Popup SUN ##################### E - Platform Specific Popups: ################################################################# # # # The folowing Popup's are used for the various platforms # # # ################################################################# DestroyMenu "HP" AddToMenu "HP" \ "Please use an HP to run this program" Nop DestroyMenu "SUN" AddToMenu "SUN" \ "Please use an SUN to run this program" Nop DestroyMenu "HP_SUN" AddToMenu "HP_SUN" \ "Please use an HP or a SUN to run this program" Nop ##################### E - Window Operations # Window Operations (Button #1 on window border) # NOTE: Window-Ops2 is the actual window ops menu used AddToMenu Window-Ops "Window Ops" Title + "Move" Move-or-Raise2 + "Resize" Resize-or-Raise2 + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" maximize_func + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Screen" Refresh AddToMenu Window-Ops2 "Window Ops" Title + "Move" Move-or-Raise + "Resize" Resize-or-Raise + "Raise" Raise + "Lower" Lower + "Iconify" Iconify + "(Un)Stick" Stick + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Screen" Refresh + "Restart fvwm95" Restart fvwm95 + "ScrollBar" Module FvwmScroll 2 2 #+ "Print" PrintFunction #========================================================================# ########################### V - Mouse Button Bindings ######################## # # Mouse bindings # # First, for the mouse in the root window # Button 1 gives the Utilities menu # Button 2 gives the Window Ops menu # Button 3 gives the WindowList (like TwmWindows) # I use the 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 Menu "QuickRef" Nop Mouse 2 R A Menu "Window-Ops2" Nop Mouse 3 R A WindowList # Now the title bar buttons # Any button in the left title-bar button gives the window ops menu # Any button in the first right title-bar button Iconifies the window # Any button in the second title-bar button maximizes # Any button in the third (rightmost) title-bar button closes # Note the use of "Mouse 0" for AnyButton. # Button Context Modif Function Mouse 0 1 A Function "window_ops_func" Mouse 1 2 A Delete Mouse 0 4 A Function "Maximize-Func" Mouse 0 6 A Iconify ################################################################ #########Mouse 0 8 A Function "sticky"###### ################################################################ # # Now the rest of the frame # Here I invoke my complex functions for Move-or-lower, Move-or-raise, # and Resize-or-Raise. # # Button 1 in the corner pieces, with any modifiers, gives resize or raise Mouse 1 F A Function "Resize-or-Raise" # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise #Mouse 1 TS A Function "Move-or-Raise" Mouse 1 T A Function "Move-or-Raise" Mouse 1 S A Function "Resize-or-Raise" # Button 1 in an icons gives move for a drag, de-iconify for a double-click, # nothing for a single click # Button 2 in an icon, w/ any modifiers, gives de-iconify Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Iconify # Button 2 in the corners, sides, or title-bar gives the window ops menu Mouse 2 FST A Function "window_ops_func" # Button 3 anywhere in the decoration (except the title-bar buttons) # does a raise-lower Mouse 3 TSIF A RaiseLower Mouse 1 W M Move #========================================================================# ############################ VI - Key Bindings ############################## # Arrow Keys # press arrow + control anywhere, and scroll by 1 page 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 # press arrow + meta key, and scroll by 1/10 of a page Key Left A M Scroll -10 +0 Key Right A M Scroll +10 +0 Key Up A M Scroll +0 -10 Key Down A M Scroll +0 +10 # press shift arrow + control anywhere, and move the pointer by 1% of a page 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 # press shift arrow + meta key, and move the pointer by 1/10 of a page 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 # Keyboard accelerators Key F1 A M Popup "Utilities" Key F1 A M Popup "Utilities" Key F2 A M Popup "Window Ops" Key F3 A M Module "WindowList" FvwmWinList Key F4 A M Delete Key F5 A M Move Key F6 A M Resize #Page Up/Dapge Down keys are used to scroll by one desktop page # in any context, press page up/down + control # in root context, just pressing page up/down is OK # # I prefer the non-wrapping scroll. These are for example purposes only #Key Next A C Scroll 100000 0 #Key Next R N Scroll 100000 0 #Key Prior A C Scroll -100000 0 #Key Prior R N Scroll -100000 0 Key Tab A M Prev Focus Key Tab A MS Next Focus Key Escape A C WindowList Key F1 A C Popup StartMenu +4 -26 ############################ VII - Fvwm Buttons ########################## *FvwmButtonsFore Black *FvwmButtonsBack #c0c0c0 *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* # Geometry - really likes to pick its own size, but giving a position is OK *FvwmButtonsGeometry -0+0 # Layout: specify rows or columns, not both #*FvwmButtonsRows 1 *FvwmButtonsColumns 1 # Define the buttons to use..... #LOGOUT *FvwmButtons "" exitsign.xpm Quit #XCLOCK *FvwmButtons(Swallow(UseOld) \ "xclock" 'Exec xclock -bg grey75 -fg black -hands black \ -hl black -padding 0 -update 1 \ -geometry -1500-1500 &') #XLOAD *FvwmButtons(1x1, Swallow(UseOld) \ "xload" 'Exec xload -nolabel -bg grey75 -fg black -hl white \ -update 2 -geometry -15000-1500 &') #XBIFF *FvwmButtons(Swallow(UseOld) \ "xbiff" 'Exec xbiff -fg black -bg grey75 -file $HOME/.INBOX \ -update 5') #PAGER *FvwmButtons(1x1, Swallow(UseOld) "Desktop" 'FvwmPager 0 0') #NETSCAPE *FvwmButtons(Title Mozilla, Icon mozilla2.xpm, \ Action 'Exec "" /usr/local/bin/netscape -geometry 920x622+90+5 &') #XTERM *FvwmButtons(Title xterm, Icon smallxterm.xpm, \ Action 'Exec "" xterm -fn 8x16 -fg white -bg black -cr red \ -ls -sb -title `hostname` &') #UofI Direct # *FvwmButtons(Title Register Icon direct.xpm, \ # Action 'Exec "" xterm -fn 8x16 -fg white -bg black -cr purple \ # -ls +sb -title Register \ # -e register &' ) #Students Login *FvwmButtons(Title "Students", Icon mail.xpm, \ Action 'Exec "" xterm -fn 8x16 -fg cyan -bg navy -cr red \ -title students.uiuc.edu -ls -sb \ -e telnet students.uiuc.edu &') #XLOCK *FvwmButtons(Title "XLock", Icon xlock.xpm, \ Action 'Exec "" xlock &') ############################ VIII - Fvwm Task Bar ########################## Style "FvwmTaskBar" NoTitle,BorderWidth 4,HandleWidth 4,Sticky,StaysOnTop,WindowListSkip,CirculateSkip *FvwmTaskBarGeometry +0-0 *FvwmTaskBarFore Black *FvwmTaskBarBack #c0c0c0 *FvwmTaskBarFont -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-* *FvwmTaskBarSelFont -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-* *FvwmTaskBarStatusFont fixed *FvwmTaskBarAction Click1 Iconify -1,Raise,Focus *FvwmTaskBarAction Click2 Iconify *FvwmTaskBarAction Click3 PopUp Window-Ops2 *FvwmTaskBarUseSkipList *FvwmTaskBarAutoStick *FvwmTaskBarStartName Start *FvwmTaskBarStartMenu StartMenu *FvwmTaskBarShowTips #*FvwmTaskBarShowTransients *FvwmTaskBarClockFormat %I:%M%p #*FvwmTaskBarHighlightFocus *FvwmTaskBarMailCommand Exec color_xterm -name Mail -T mail -ls -fn 8x13 -e pine -i #*FvwmTaskBarAutoHide # Un-comment this line if you want your taskbar to autohide (slip under the bottom of the window when not in use) *FvwmTaskBarDeskOnly ############################ IX - Other Fvwm Modules ########################## ##################### A: Fvwm Pager *FvwmPagerBack grey60 *FvwmPagerFore black *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmPagerHilight #c0c0c0 #*FvwmPagerGeometry -1500-1500 *FvwmPagerLabel 0 Desktop #If you want more than one virtual desktop manager, uncomment one or more # of the Pagers below... #*FvwmPagerLabel 1 #*FvwmPagerLabel 2 #*FvwmPagerLabel 3 *FvwmPagerSmallFont 5x8 ##################### B: Minibuttons Style "MiniButtons" NoTitle,NoHandles,Sticky,StaysOnTop,WindowListSkip,BorderWidth 0 *MiniButtonsFore Black *MiniButtonsBack #c0c0c0 *MiniButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *MiniButtonsGeometry -5+5 *MiniButtonsRows 1 *MiniButtonsPadding 1 1 ##################### C: Fvwm Identify *FvwmIdentBack #000080 *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ##################### D: Fvwm Window List *FvwmWinListBack #c0c0c0 *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 *FvwmWinListShowCurrentDesk ##################### E: Fvwm Config *FvwmConfigFore Black *FvwmConfigBack #c0c0c0