#!/bin/ksh # This is the EWS default .fvwm2rc file # This .fvwm2rc has been modified from the example configuration file for # fvwm-2.0.3 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 Tal Yardeni on # September 23, 1997 with assistance and guidance from Nicolas C Gauger, # Mike K Hollyman, Lorah S McArdle, Chris J Stamborski and Steven L Jacob. ############# 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. ######################################################################## # 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 .fvwm 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 fvwm2 to the newsgroup: uiuc.ews.org # Lines beginning with a pound/hash sign (#) are comments. ######################################################################## #################### Contents # I: Window Button Styling # A: How-to # B: EWS Button Styles # C: Other Button Styles # II: Desktop Styling # III: Key Bindings # IV: Mouse Button Bindings # V: Initialization Functions # VI: Menus # A: Creating Menus # B: Main Menus # C: Software Menus # D: Software Submenus # E: Platform Specific Menus # F: Window Operations # VII: Functions # VIII: FvwmButtons Button Bar # A: Attributes # B: Button Definitions # IX: Other Attributes # A: Window-Identifier # B: Fvwm Pager # C: Fvwm Winlist # D: Fvwm Backer # E: Fvwm Scroll # F: Fvwm Iconbox # G: Fvwm Form ##################### I - Window Button Styling ####################### ##################### A - How-to # This is the code for the buttons on the window frame. Instructions on creating # your own buttons are available at: # The positioning of buttons on the window frame is: # # [1][3][5][7][9] Title [0][8][6][4][2] # The position of each button iss the number right after the keyword # ButtonStyle ##################### B - The styles for the buttons /we/ use: # Button 1 is default. # Minimize window. Position: 4 # 3 stacked square panels like stills of a window being minimized ButtonStyle 4 17 80x20@0 80x60@0 60x60@0 60x40@0 60x70@0 40x70@0 40x60@0 40x85@0 15x85@0 15x60@1 40x60@1 30x60@1 30x40@1 60x40@1 45x40@1 45x20@1 80x20@1 # Make window "sticky". Position: 3 # Several horizontal lines, just like on a sticky window's window frame ButtonStyle 3 12 10x23@0 90x23@0 90x28@0 10x28@1 10x48@1 90x48@0 90x53@0 10x53@1 10x71@2 90x72@0 90x77@0 10x77@1 # Stylized "X" Position: 2 ButtonStyle 2 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1 ##################### C - Other Button Styles # Some other ButtonStyles that we don't currently use, but are available # in case you want to change some of your buttons. # The "enlarge window" button. # An "up" arrow: #ButtonStyle 2 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0 # Small "up" triangle #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1 # Small "down" triangle #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0 # Large "up" triangle #ButtonStyle 2 4 50x25@1 75x75@0 25x75@0 50x25@1 # Large "down" triangle #ButtonStyle 4 4 50x75@1 25x25@1 75x25@1 50x75@0 # Big box #ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 # Little box #ButtonStyle 8 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1 # Tall box #ButtonStyle 6 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1 # Dot #ButtonStyle 4 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1 # Nested _| #ButtonStyle 2 14 0x0@1 0x20@1 20x20@0 20x0@0 0x0@1 0x25@1 25x25@1 25x0@1 55x0@1 55x55@0 0x55@0 0x60@1 60x60@1 60x0@1 # 3 stacked rectangular panels like stills of a window being minimized #ButtonStyle 4 17 95x20@0 95x60@0 75x60@0 75x40@0 75x70@0 55x70@0 55x60@0 55x85@0 15x85@0 15x60@1 55x60@1 30x60@1 30x40@1 75x40@1 45x40@1 45x20@1 95x20@1 # 2 stacked rectangular panels like stills of a window being maximized #ButtonStyle 2 11 95x10@0 95x75@0 25x75@0 65x75@0 65x90@0 10x90@0 10x55@1 25x55@1 25x75@1 25x10@1 95x10@1 # Multiple-stacked window, like stills of a window being restored #ButtonStyle 4 16 60x40@1 60x80@0 15x80@0 15x40@1 60x40@1 40x40@1 40x25@1 75x25@1 75x60@0 60x60@0 75x60@0 75x40@0 85x40@0 85x15@0 60x15@1 60x25@1 #################### II - Desktop Styling ######################### # Some other styles for general WM purposes, incl. font settings: EdgeResistance 250 10 WindowFont -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* EdgeScroll 0 0 FvwmAuto 750 OpaqueMoveSize 30 # Paths for modules (WM software) and icons ModulePath /usr/local/lib/X11/fvwm2:/usr/X11R6/lib/X11/fvwm2/ PixmapPath /usr/include/X11/pixmaps/:/usr/local/include/pixmaps/:/usr/local/mini-icons/:/home1/f/fv/fvw/fvwm/pics IconPath /usr/include/X11/bitmaps/:/usr/local/icons/ # Color settings: # Window Borders (text color followed by border color): HilightColor white cadetblue4 #HilightColor gray90 gray #Uncomment the following line to get a color gradient on your title bar #TitleStyle ActiveUp (HGradient 128 2 rgb:0/0/400 40 rgb:0/0/600 60 gray -- Flat) Inactive (HGradient 128 gray35 gray -- Flat) # Menu Colors: MenuStyle black grey60 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm # Number of virtual desktops: DeskTopSize 3x2 # mouse click time in milliseconds: ClickTime 750 # Other Styling features (attributes of various software running on fvwm): ColormapFocus FollowsMouse Style "*" BorderWidth 5, HandleWidth 5 Style "*" Icon unknown1.xpm, Color Black/grey Style "*" ActivePlacement, SmartPlacement Style "*" MWMFunctions,MWMDecor,HintOverride Style "*" DecorateTransient,IconBox 0 -10 -280 -1 Style "*" SloppyFocus Style "Fvwm*" NoTitle, NoHandles, Sticky, WindowListSkip, Style "Fvwm*" BorderWidth 0,CirculateSkipIcon Style "Fvwm Pager" StaysOnTop Style "FvwmPager" StaysOnTop Style "FvwmBanner" StaysOnTop Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip Style "FvwmButtons" BorderWidth 0, CirculateSkip, StaysOnTop Style "FvwmButtons" Icon toolbox.xpm,ClickToFocus Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "*lock" RandomPlacement Style "xbiff" NoTitle, StaysOnTop, Sticky, WindowListSkip,ClickToFocus Style "Maker" StartsOnDesk 1,RandomPlacement,ClickToFocus Style "matlab" StartsOnDesk 0 Style "signal" StartsOnDesk 0 Style "rxvt" Icon term.xpm,SloppyFocus,IconBox -70 1 -1 -140 Style "XTerm" Icon xterm.xpm,IconBox -70 1 -1 -140 Style "XTerm" Color black/grey,MWMBorder,MWMButtons Style "Appointment" Icon datebook.xpm, NoButton 2, NoButton 4,ClickToFocus Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon Style "xmh" RandomPlacement, StartsOnDesk 2, NoButton 2 Style "xman" Icon xman.xpm,RandomPlacement,ClickToFocus Style "xvgr" Icon graphs.xpm,RandomPlacement,ClickToFocus Style "matlab" Icon math4.xpm,SloppyFocus,StartsOnDesk 0 Style "xmag" Icon mag_glass.xpm,RandomPlacement, ClickToFocus Style "xgraph" Icon graphs.xpm,RandomPlacement,ClickToFocus Style "sppeed6" Icon math3.xpm,NoTitle,ClickToFocus Style "sppeed6_user" Icon math4.xpm,NoTitle Style "xmosaic" NoPPosition, color Green/Yellow,ClickToFocus Style "MetaCard" RandomPlacement, ClickToFocus Style "xbuffy" NoTitle,Sticky,WindowListSkip,StaysOnTop Style "xbuffy" color midnightblue/midnightblue Style "MMXP*" WindowListSkip Style "xmcd" WindowListSkip Style "*Netscape*" Style "xload" NoTitle, BorderWidth 0, NoHandles, Sticky, WindowListSkip # If you knock your mouse out of the xterm, it keeps focus while in root window Style "*term" SloppyFocus #################### III - Key Bindings ######################### 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 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 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 Key KP_F1 A M Popup "Utilities" Key KP_F2 A M Popup "Window-Ops" Key KP_F3 A M Module FvwmWinList Key KP_F4 A M Iconify Key F5 A M Move 100p 100p Key F6 A M Resize 10 10 Key F7 A M Next [*] focus Key F8 A M Prev [*] focus Key F10 A A Next [CurrentDesk rxvt]Focus Key F11 A A Prev [CurrentDesk rxvt]Focus Key F15 FTIWS A Raise Key Home A R Exec exec /home/mikeh/scripts/locker Key IB2 A A Exec "blah" kill -USR1 `cat ~/.jumpdispd.pid` #################### IV - Mouse Button Bindings ######################### # Mouse Button Functions: # Click on Background: Mouse 1 R A Menu MainMenu Nop # Open Main Menu Mouse 2 R A Menu Window-Ops2 Nop # Open Window Ops Menu Mouse 3 R A WindowList # Open Window List # Click on Window Frame: Mouse 0 1 A Menu Window-Ops Close # Open Window-Ops Mouse 0 2 A Close # Close Window Mouse 0 3 A Stick # Make Window Sticky Mouse 0 4 A Maximize-Func # Iconify Window #Refresher: Button positions on Window Frame: # [1][3][5][7] Title [8][6][4][2] # Other Mouse Bindings: 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 ######################## V - Initialization Functions ############################ DestroyFunc InitFunction AddToFunc InitFunction \ "I" Module FvwmButtons + "I" Exec xsetroot -solid slategrey + "I" Exec xterm -n Console -title "Console" -C \ -geometry 70x5-0-0 -fg white -bg black \ -cr white -fn 6x13 & # If you want to change the desktop image, change the word "slategrey" above # to the color of your choice, or replace "xsetroot -solid slategray" with # "xv -root -quit &" to use as a background image DestroyFunc RestartFunction AddToFunc RestartFunction \ "I" Module FvwmButtons + "I" Refresh ######################## VI - 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 ##################### B - Main Menus: DestroyMenu MainMenu AddToMenu MainMenu "Main Menu" Title + "" Nop + "Available Software" Popup Software + "" Nop + "New Window (xterm)" Popup Xterms + "Remote Login" Popup RemoteLogin + "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 -mode random + "" Nop + "Refresh Screen" Refresh + "Restart" Popup RestartWM + "Utilities" Popup Utilities + "" Nop + "Logout" Popup LogOut 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 + "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 + "Netscape 3" Exec /usr/local/bin/netscape & + "Netscape 4" Exec /homes/ewsweb1a/staff/ejk/bin/X netscape4 & + "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 & + "Viewers" Popup Viewers ##################### C - Software: #--------- CAD DestroyMenu "CAD" AddToMenu "CAD" \ "CAD/Drawing" Title + "AutoCAD" Exec /usr/local/bin/acad & + "Island Draw" Exec /island/bin/IslandDraw & # HP + "Mentor Graphics" Exec xterm -fn 6x12 -e mentor_dmgr & + "Pro Engineer 19" Exec exec /local/apps1/proe19/bin/pro & #--------- Desktop Publishing DestroyMenu "Desktop" AddToMenu "Desktop" \ "Desktop Publishing" Title + "Island Write" Exec /island/bin/IslandWrite & #HP + "Interleaf5" Popup ileaf5 #HP + "Interleaf6" Exec /usr/local/bin/ileaf6 & #HP SUN + "" Nop + "Island Table" Exec /island/bin/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 /island/bin/IslandDraw & #--------- Math DestroyMenu "Math" AddToMenu "Math" \ "Math" Title + "GNU plot" Exec xterm -T "GNU plot" -e gnuplot & + "Mathematica" Exec mathematica3 & + "Matlab" Exec xterm -fg white -bg black -fn 8x16 -title Matlab -e Matlab & + "Island Equation" Exec /island/bin/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" Popup Mentor # HP SUN #--------- 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 & #--------- Simulate DestroyMenu "Simulate" AddToMenu "Simulate" \ "Simulation" Title + "Mentor Graphics" Exec xterm -fn 6x12 -e mentor_dmgr & # HP SUN #--------- Viewers DestroyMenu "Viewers" AddToMenu "Viewers" \ "Viewers" Title + "Ghostview (Postcript)" Exec ghostview & + "Acrobat (PDF)" Exec acroread & + "Xv (images)" Exec xv & #--------- Xterms DestroyMenu "Xterms" AddToMenu "Xterms" \ "New Window" Title + "" Nop + "Small xterm" Exec xterm -title `hostname` -fg red -bg black -cr red -fn 7x14 -sb & + "Medium xterm" Exec xterm -title `hostname` -fg green -bg black -cr red -fn 8x16 -sb & + "Large xterm" Exec xterm -title `hostname` -fg cyan -bg blue4 -cr red -fn 10x20 -sb & + "XLarge xterm" Exec xterm -title `hostname` -fg cyan -bg blue4 -cr red -fn 12x24 -sb & #--------- Rlogin DestroyMenu "RemoteLogin" AddToMenu "RemoteLogin" \ "Remote Login" Title + "" Nop + "dclsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title dclsn -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab dclsn & + "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 & + "glhpx" 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 Cluster" 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 Sparcs" Exec xterm -fg white -bg black -fn 8x16 -sb -title "CSIL Sparc" -cr blue -e /home1/f/fv/fvw/fvwm/scripts/rlgn -lab csil & #--------- Telnet DestroyMenu "Telnet" AddToMenu "Telnet" \ "Telnet" Title + "" Nop + "dclsn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title dclsn -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab dclsn & + "eesn" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title eesn -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab eesn & + "ehhpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title ehhpx -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab ehhpx & + "cehpx" Exec xterm -fg white -bg black -fn 8x16 -cr blue -sb -title cehpx -e /home1/f/fv/fvw/fvwm/scripts/tlnt -lab cehpx & + "glhpx" 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/rlgn -lab glsn & + "" Nop + "Students Cluster" 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 Sparcs" 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 #--------- 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 & + "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 ################################################################# # # # 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 fvwm2" Restart + "ScrollBar" Module FvwmScroll 2 2 #+ "Print" PrintFunction ######################## VII Functions #################################### DestroyFunc MailFinction AddToFunc MailFunction \ "I" Next [$0] Iconify -1 + "I" Next [$0] focus + "I" None [$0] Exec $0 $1 DestroyFunc Move-or-Raise AddToFunc Move-or-Raise \ "I" Raise + "M" Move + "D" Lower DestroyFunc Move-or-Raise2 AddToFunc Move-or-Raise2 \ "M" Raise + "M" Move + "D" Lower DestroyFunc Maximize-Func AddToFunc Maximize-Func \ "M" Maximize 0 100 + "C" Maximize 93 100 + "D" Maximize 100 100 DestroyFunc Move-or-Iconify AddToFunc Move-or-Iconify \ "I" Raise + "M" Move + "D" Iconify DestroyFunc Resize-or-Raise AddToFunc Resize-or-Raise \ "I" Raise + "M" Resize + "D" Lower DestroyFunc Resize-or-Raise2 AddToFunc Resize-or-Raise2 \ "M" Raise + "M" Resize + "D" Lower DestroyFunc PrintFunction AddToFunc PrintFunction \ "I" Raise + "I" Exec xdpr -id $w DestroyFunc Iconify-and-Raise AddToFunc Iconify-and-Raise \ "I" Iconify + "I" Raise ################## VIII FvwmButtons button-bar ################################ ##################### A - Attributes # xterm or rxvts on remote machines can be done like this # Output re-direction is csh style, not sh style # You will want to substitute your own hosts here! *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 ##################### B - Button Definitions # Define the buttons to use..... #LOGOUT *FvwmButtons "" exitsign.xpm Quit #XCLOCK *FvwmButtons(NoTitle, \ Swallow(UseOld) "xclock" 'Exec xclock -bg grey75 -fg black -hands black -hl black -padding 0 -update 1 -geometry -1500-1500 &') #XLOAD *FvwmButtons(1x1, NoTitle, \ Swallow(UseOld) "xload" 'Exec xload -nolabel -bg grey75 -fg black -hl white -update 2 -geometry -15000-1500 &') #XBIFF *FvwmButtons(NoTitle, \ 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 netscape, Icon nscape.xpm, \ Action 'Exec "" netscape -geometry 920x622+90+5 &') #XTERM *FvwmButtons(Title xterm, Icon xterm.xpm, \ Action 'Exec "" xterm -fn 8x16 -fg white -bg black -cr red \ -ls -sb -fn 8x16 -title `hostname` &') #Students Login *FvwmButtons(Title Students, Icon mail.xpm, \ Action 'Exec "" xterm -fn 8x16 -fg cyan -bg blue4 -cr red \ -title students.uiuc.edu -sb \ -e telnet students.uiuc.edu &') #XLOCK *FvwmButtons(Title xlock, Icon xlock.xpm, \ Action 'Exec "" xlock -mode random &') #PQ2 *FvwmButtons(Title "Print Jobs", Icon smallxterm.xpm, \ Action 'Exec "" xterm -fn 8x16 -fg green -bg black -cr red \ -ls -sb -title pq2 -e /usr/local/bin/pq2&') ########################## IX - Window-Identifier ########################### ########################## A - Window-Identifier # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################## B - 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 ########################## C - 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 ########################## D - Backer *FvwmBackerDesk 0 -solid steelblue *FvwmBackerDesk 1 -solid midnightblue ########################## E - Winlist *FvwmScrollBack grey40 *FvwmScrollFore green ########################## F - Iconbox ############################################################ ############################################################ # 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 WindowName *FvwmIconBoxPadding 4 *FvwmIconBoxLines 10 *FvwmIconBoxSBWidth 11 *FvwmIconBoxPlacement Top Left *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*" - ########################## G - Form ############################################################################ # FvwmForm # # FvwmForm alias - rlogin to host via xterm *RloginWarpPointer *RloginFont *helvetica*m*r*n*14* *RloginButtonFont *helvetica*m*o*n*14* *RloginInputFont *cour*m*r*n*14* *RloginFore Black *RloginBack Light Gray *RloginItemFore Wheat *RloginItemBack Gray50 # begin items *RloginLine center *RloginText "Login to Remote Host" *RloginLine center *RloginText "Host:" *RloginInput HostName 20 "" *RloginLine center *RloginSelection UserSel single *RloginChoice Default Default on "same user" *RloginChoice Custom Custom off "user:" *RloginInput UserName 10 "" *RloginLine expand *RloginButton quit "Login" ^M *RloginCommand Exec xterm -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-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