FVWM: system.fvwm2rc suggestion

From: Tim Riker <timr_at_silverplatter.com>
Date: Wed, 08 May 1996 19:24:20 -0400

Here's my completely updated .fvwm2rc It's like motif with shortcut
indicators and everything. Can also use FvwmTaskBar if you have it.

Try it and tell me what you think!

Can it make it into the distribution?
 
Tim Riker - http://webspirs.silverplatter.com/~timr/ - short SIGs! <g>


###########################################################################
# Fvwm v2 resource file - by Tim Riker <TimR_at_SilverPlatter.com>
###########################################################################
PixmapPath /usr/include/X11/pixmaps
IconPath /usr/include/X11/bitmaps
ModulePath /usr/X11/lib/X11/fvwm2:/usr/X11/lib/X11/fvwm95-2
###########################################################################
# Set up the virtual desktop and pager
#set the desk top size in units of physical screen size
DeskTopSize 3x3
OpaqueMoveSize 5
############################################################################
# flip by whole pages on the edge of the screen.
#EdgeScroll 100000 100000
EdgeScroll 0 0
############################################################################
# A modest delay before flipping pages seems to be nice...
# I thresh in a 50 pixel Move-resistance too
EdgeResistance 250 50
############################################################################
# If you don't like the default 150 msec click delay for the complex functions
# change this and uncomment it.
ClickTime 300
############################################################################
# color used for the border and Pager space for selected window
HilightColor black #c06077
############################################################################
# Now the fonts - one for menus/icons, another for window titles
WindowFont -*-helvetica-bold-r-*-*-14-*-*-*-*-*-iso8859-*
IconFont -*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-*
###########################################################################
#Set the foreground, background and stipple color and font for menus
MenuStyle Blue Beige SlateGrey -*-helvetica-bold-r-*-*-14-*-*-*-*-*-iso8859-* mwm
###########################################################################
Style "*" Icon unknown1
#Style "*" IconBox 20 -40 -140 -5
Style "*" IconBox -300 155 -1 -1
Style "*" StickyIcon
Style "*" RandomPlacement
Style "*" SmartPlacement
Style "*" MWMButtons
Style "*" MWMFunctions
Style "*" MWMDecor
Style "*" MWMBorder
Style "*" HintOverride
Style "*" BorderWidth 5
Style "*" HandleWidth 5
Style "*" Title
Style "*" Handles
Style "*" WindowListHit
Style "*" CirculateHit
Style "*" StaysPut
Style "*" Slippery
Style "*" StartNormal
Style "*" StartsAnywhere
Style "*" Color Black/#60a0c0
Style "*" ClickToFocus
Style "*" SloppyFocus
Style "Fvwm*" NoHandles,Sticky,WindowListHit
Style "FvwmPager" NoTitle,StaysOnTop,Handles
Style "FvwmWinList" NoTitle,BorderWidth 0,ClickToFocus
Style "FvwmIconBox" NoTitle,StaysOnTop,ClickToFocus
Style "FvwmIconMan" NoTitle,StaysOnTop,ClickToFocus
Style "FvwmButtons" NoTitle,WindowListSkip,StaysOnTop,Icon toolbox.xpm
Style "FvwmTaskBar" NoTitle,WindowListSkip
Style "*clock" NoHandles,NoTitle,Sticky,WindowListSkip
Style "Clock" NoTitle,NoHandles,Sticky,WindowListSkip
Style "xbiff" NoTitle,NoHandles,Sticky,WindowListSkip,Icon mail1.xpm
Style "xload" NoTitle,NoHandles,Sticky,WindowListSkip
Style "xeyes" NoTitle,NoHandles,Sticky,WindowListSkip
Style "xman" NoTitle,NoHandles,Icon xman.xpm
Style "*xterm" Icon xterm.xpm
Style "rxvt" Icon term.xpm
# Put overrides after the specifics
# to remove all Icons: useful for WinList, etc.
Style "*" NoIcon
############################################################################
# This menu is invoked as a sub-menu - it allows you to quit,
# restart, or switch to another WM.
AddToMenu "Quit-Verify" "Yes, Really Quit" Quit
#+ "Really Quit Fvwm?" Title
+ "Restart fvwm2" Restart fvwm2
+ "Start fvwm" Restart fvwm
+ "Start twm" Restart twm
+ "Start olwm" Restart olwm
+ "Start olvwm" Restart olvwm
+ "No, Don't Quit" Nop

# Provides a list of modules to fire off
AddToMenu "Module-Popup"
#+ "Modules" Title
+ "Audio" Module FvwmAudio
+ "Auto" Module FvwmAuto 750
+ "Backer" Module FvwmBacker
+ "Banner" Module FvwmBanner
+ "Buttons" Module FvwmButtons
+ "Cpp" Module FvwmCpp
+ "Config" Module FvwmConfig
+ "Debug" Module FvwmDebug
+ "Form" Module FvwmForm
+ "IconBox" Module FvwmIconBox
+ "IconMan" Module FvwmIconMan
+ "Ident" Module FvwmIdent
+ "M4" Module FvwmM4
+ "Pager" Module FvwmPager 0 0
+ "Save" Module FvwmSave
+ "SaveDesk" Module FvwmSaveDesk
+ "Scroll" Module FvwmScroll 2 2
+ "Talk" Module FvwmTalk 2 2
+ "TaskBar" Module FvwmTaskBar
+ "WinList" Module FvwmWinList

AddToMenu "Tools"
#+ "Tools" Title
+ "Netscape" Exec exec netscape &
+ "XPlayCD" Exec exec xplaycd &
+ "Calculator" Exec exec xcalc &
+ "Xman" Exec exec xman &
+ "Xbiff" Exec exec xbiff &
+ "Xload" Exec exec xload &
+ "Xmag" Exec exec xmag &
+ "Xfilemanager" Exec exec xfilemanager &
+ "XFontSel" Exec exec xfontsel &
+ "Seyon" Exec exec seyon -modem /dev/modem &
+ "XV" Exec exec xv &
+ "Oclock" Exec exec oclock &
+ "Top" Exec exec xterm -font 7x14 -T Top -n Top -e top &

AddToMenu "Shells"
#+ "Shells" Title
+ "Large Color Xterm (10x20 font)" Exec exec nxterm -sb -sl 500 -j -ls -fn 10x20 &
+ "Color Xterm (7x14 font)" Exec exec nxterm -sb -sl 500 -j -ls -fn 7x14 &
+ "Large Xterm (10x20 font)" Exec exec xterm -sb -sl 500 -j -ls -fn 10x20 &
+ "Xterm (7x14 font)" Exec exec xterm -sb -sl 500 -j -ls -fn 7x14 &
+ "Large Rxvt (10x20 font)" Exec exec rxvt -fat -sl 1024 -font 10x20 -ls &
+ "Rxvt (VT100 emulator)" Exec exec rxvt -fat -font 7x14 -ls &

AddToMenu "Screensaver"
#+ "Screensaver" Title
+ "Random" Exec exec xlock -nolock -nice 0 -mode random &
+ "Blank" Exec exec xlock -nolock -nice 0 -mode blank &
+ "Bat" Exec exec xlock -nolock -nice 0 -mode bat &
+ "Bob" Exec exec xlock -nolock -nice 0 -mode bob &
+ "Bounce" Exec exec xlock -nolock -nice 0 -mode bounce &
+ "Blot" Exec exec xlock -nolock -nice 0 -mode blot &
+ "Flame" Exec exec xlock -nolock -nice 0 -mode flame &
+ "Galaxy" Exec exec xlock -nolock -nice 0 -mode galaxy &
+ "Grav" Exec exec xlock -nolock -nice 0 -mode grav &
+ "Helix" Exec exec xlock -nolock -nice 0 -mode helix &
+ "Hop" Exec exec xlock -nolock -nice 0 -mode hop &
+ "Hyper" Exec exec xlock -nolock -nice 0 -mode hyper &
+ "Image" Exec exec xlock -nolock -nice 0 -mode image &
+ "Kaleid" Exec exec xlock -nolock -nice 0 -mode kaleid &
+ "Life" Exec exec xlock -nolock -nice 0 -mode life &
+ "Maze" Exec exec xlock -nolock -nice 0 -mode maze &
+ "Pyro" Exec exec xlock -nolock -nice 0 -mode pyro &
+ "Qix" Exec exec xlock -nolock -nice 0 -mode qix &
+ "Rect" Exec exec xlock -nolock -nice 0 -mode rect &
+ "Rock" Exec exec xlock -nolock -nice 0 -mode rock &
+ "Rotor" Exec exec xlock -nolock -nice 0 -mode rotor &
+ "Sphere" Exec exec xlock -nolock -nice 0 -mode sphere &
+ "Spline" Exec exec xlock -nolock -nice 0 -mode spline &
+ "Swarm" Exec exec xlock -nolock -nice 0 -mode swarm &
+ "World" Exec exec xlock -nolock -nice 0 -mode world &
+ "Worm" Exec exec xlock -nolock -nice 0 -mode worm &

AddToMenu "ScreenLock"
#+ "ScreenLock" Title
+ "Random" Exec exec xlock -nice 0 -mode random &
+ "Blank" Exec exec xlock -nice 0 -mode blank &
+ "Bat" Exec exec xlock -nice 0 -mode bat &
+ "Blot" Exec exec xlock -nice 0 -mode blot &
+ "Bob" Exec exec xlock -nice 0 -mode bob &
+ "Bounce" Exec exec xlock -nice 0 -mode bounce &
+ "Flame" Exec exec xlock -nice 0 -mode flame &
+ "Galaxy" Exec exec xlock -nice 0 -mode galaxy &
+ "Grav" Exec exec xlock -nice 0 -mode grav &
+ "Helix" Exec exec xlock -nice 0 -mode helix &
+ "Hop" Exec exec xlock -nice 0 -mode hop &
+ "Hyper" Exec exec xlock -nice 0 -mode hyper &
+ "Image" Exec exec xlock -nice 0 -mode image &
+ "Kaleid" Exec exec xlock -nice 0 -mode kaleid &
+ "Life" Exec exec xlock -nice 0 -mode life &
+ "Maze" Exec exec xlock -nice 0 -mode maze &
+ "Pyro" Exec exec xlock -nice 0 -mode pyro &
+ "Qix" Exec exec xlock -nice 0 -mode qix &
+ "Rect" Exec exec xlock -nice 0 -mode rect &
+ "Rock" Exec exec xlock -nice 0 -mode rock &
+ "Rotor" Exec exec xlock -nice 0 -mode rotor &
+ "Sphere" Exec exec xlock -nice 0 -mode sphere &
+ "Spline" Exec exec xlock -nice 0 -mode spline &
+ "Swarm" Exec exec xlock -nice 0 -mode swarm &
+ "World" Exec exec xlock -nice 0 -mode world &
+ "Worm" Exec exec xlock -nice 0 -mode worm &

# This defines the most common window operations
AddToMenu "WindowOps"
+ "WindowOps M-F2" Title
+ "Move M-F7" Move
+ "Resize M-F8" Resize
+ "Raise" Raise
+ "Lower M-F3" Lower
+ "Prev M-F5" Prev [*] Focus
+ "Next M-F6" Next [*] Focus
+ "(De)Iconify M-F9" Iconify
+ "(Un)Stick" Stick
+ "(Un)Maximize M-F10" Maximize
+ "(Un)Maximize Vertical" Maximize 0 100
+ "ScrollBar" Module FvwmScroll 2 2
+ "WindowList M-F11" WindowList
+ "Refresh Screen M-F12" Refresh
+ "Destroy (kill)" Destroy
+ "Delete (kind)" Delete
+ "Close (del/des) M-F4" Close
#! "TogglePage" TogglePage (TogglePage not in fvwm2)

# This menu will fire up some utilities
AddToMenu "Utilities"
+ "Utilities M-F1" Title
+ "Shells" Popup Shells
+ "Tools" Popup Tools
+ "Modules" Popup Module-Popup
+ "WindowOps" Popup WindowOps
+ "Screensaver" Popup Screensaver
+ "Screenlock" Popup Screenlock
+ "Exit Fvwm" Popup Quit-Verify

############################################################################
# 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
AddToFunc "Move-RaiseLower-Maximize"
+ "M" Move
+ "M" Raise
+ "C" RaiseLower
+ "D" Maximize
# 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 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
AddToFunc "Move-or-Iconify"
+ "M" Move
+ "C" PopUp WindowOps
+ "D" Iconify
AddToFunc "windowops-or-die"
+ "M" PopUp WindowOps
+ "C" PopUp WindowOps
+ "D" Close
###########################################################################
AddToFunc "InitFunction"
+ "I" Exec xsetroot -solid steelblue &
+ "I" Module FvwmAuto 750
+ "I" Module FvwmPager 0 0
#+ "I" Module FvwmWinList
+ "I" Module FvwmTaskBar

AddToFunc "RestartFunction"
+ "I" Exec xsetroot -solid steelblue &
+ "I" Module FvwmAuto 750
+ "I" Module FvwmPager 0 0
#+ "I" Module FvwmWinList
+ "I" Module FvwmTaskBar

##########################################################################
# This defines the mouse bindings
# First, for the mouse in the root window
# use the AnyModifier in modifier field, so
# any shift-control-whatever combination works
# Button Context Modifi Function
Mouse 1 R A WindowList
Mouse 2 R A Menu "WindowOps" Nop
Mouse 3 R A Menu "Utilities" Nop
############################################################################
# Now the title bar buttons
# Any button in the left title-bar button gives the window ops menu
# Any button in the right title-bar button Iconifies the window
# Note the use of "Mouse 0" for AnyButton.
# Button Context Modifi Function
Mouse 0 1 A Function "windowops-or-die"
Mouse 0 4 A Iconify
Mouse 0 2 A Maximize
############################################################################
# I repeat the standard three buttons...
ButtonStyle 3 5 40x40_at_1 60x40_at_1 60x60_at_0 40x60_at_0 40x40_at_1
ButtonStyle 5 5 25x25_at_1 75x25_at_1 75x75_at_0 25x75_at_0 25x25_at_1
ButtonStyle 6 5 25x40_at_1 75x40_at_1 75x60_at_0 25x60_at_0 25x40_at_1
Mouse 0 3 A Iconify
Mouse 0 5 A Maximize
Mouse 0 6 A Function "windowops-or-die"
############################################################################
# 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,2 in corner pieces, with any modifiers, gives resize or raise
Mouse 1 FS A Function "Resize-or-Raise"
Mouse 2 FS A Function "Resize-or-Raise"
# on title Move,RaiseLower,Maximize
Mouse 1 T A Function "Move-RaiseLower-Maximize"
Mouse 2 T A Function "Move-RaiseLower-Maximize"
# on Icon Move or Iconify
Mouse 1 I A Function "Move-or-Iconify"
Mouse 2 I A Function "Move-or-Iconify"
# 3 on Icon give WindowOps menu
Mouse 3 I A Menu "WindowOps" Nop
############################################################################
# Now some keyboard shortcuts.
# Meta Page Up/Page Down keys are used to scroll by one desktop page
Key Next A M Scroll 100000 0
Key Prior A M Scroll -100000 0
# arrow + meta anywhere scroll by 1 page
Key Left A M Scroll -100 +0
Key Right A M Scroll +100 +0
Key Up A M Scroll +0 -100
Key Down A M Scroll +0 +100
# arrow + shift meta key scroll by 1/10 of a page
Key Left A SM Scroll -10 +0
Key Right A SM Scroll +10 +0
Key Up A SM Scroll +0 -10
Key Down A SM Scroll +0 +10
# arrow + shift control meta scroll by 1% of a page
Key Left A SCM Scroll -1 +0
Key Right A SCM Scroll +1 +0
Key Up A SCM Scroll +0 -1
Key Down A SCM Scroll +0 +1
############################################################################
# Keys M3,M4,M7,M8,M9,M10,SEsc,MSpace,MTab,SMTab are MWM defaults
Key F1 A M Popup "Utilities"
Key F2 A M Popup "WindowOps"
Key Escape A S Popup "WindowOps"
Key Space A M Popup "WindowOps"
Key F3 A M Lower
Key F4 A M Close
Key F5 A M Next [*] Focus
Key Tab A M Next [*] Focus
Key F6 A M Prev [*] Focus
Key Tab A SM Prev [*] Focus
Key F7 A M Move
Key F8 A M Resize
Key F9 A M Iconify
Key F10 A M Maximize
Key F11 A M WindowList
Key F12 A M Refresh
############################################################################
# Definitions used by the modules
############################################################################
*FvwmIconMan*followfocus true
############################################################################
# FvwmIconBox on screen bottom
*FvwmIconBoxSortIcons
*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxMaxIconSize 64x1
*FvwmIconBoxPadding 1
*FvwmIconBoxLines 18
*FvwmIconBoxGeometry 18x1+0-1
*FvwmIconBoxMouse 1 Click RaiseLower
*FvwmIconBoxMouse 1 DoubleClick Iconify
*FvwmIconBoxMouse 2 Click Iconify -1, Focus
*FvwmIconBoxMouse 3 Click Module "FvwmIdent" FvwmIdent
############################################################################
# FvwmWinList in bottom right
*FvwmWinListGeometry -1-1
*FvwmWinListBack Beige
*FvwmWinListFocusBack orchid
#*FvwmWinListIconBack #808080
*FvwmWinListUseSkipList
*FvwmWinListMaxWidth 150
*FvwmWinListAction Click1 Iconify -1, Focus
*FvwmWinListAction Click2 Module "FvwmIdent" FvmwIdent
*FvwmWinListAction Click3 Iconify
############################################################################
*FvwmButtonsFore Black
*FvwmButtonsBack #908090
*FvwmButtonsFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
# Geometry - really likes to pick its own size, but giving a position is OK
*FvwmButtonsGeometry -1+124
# Layout: specify rows or columns, not both
*FvwmButtonsColumns 1
# Define the buttons to use.....
*FvwmButtons Resize arrows2.xpm Resize
*FvwmButtons Move map.xpm Move
*FvwmButtons Lower arrdown2.xpm Lower
*FvwmButtons Raise arrup2.xpm Raise
*FvwmButtons Kill rbomb.xpm Destroy
############################################################################
*FvwmPagerFont none
*FvwmPagerSmallFont 5x7
*FvwmPagerGeometry -1+44
*FvwmPagerBack #5c54c0
*FvwmPagerHilight orchid
*FvwmPagerDesktopScale 30
############################################################################
*FvwmTaskBarGeometry +0-1
*FvwmTaskBarStartMenu Utilities
*FvwmTaskBarFont -*-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-*
*FvwmTaskBarAutoStick
*FvwmTaskBarClockFormat %y.%m.%d %H:%M
############################################################################
*FvwmAudioAudio /dev/audio
*FvwmAudioCache 5000
#*FvwmAudioPlayCmd builtin-rplay
*FvwmAudio startup /usr/lib/audio/clink.au
*FvwmAudio shutdown /usr/lib/audio/clink.au
*FvwmAudio add_window /usr/lib/audio/clink.au
*FvwmAudio raise_window /usr/lib/audio/clink.au
*FvwmAudio lower_window /usr/lib/audio/clink.au
*FvwmAudio focus_change /usr/lib/audio/clink.au
*FvwmAudio destroy_window /usr/lib/audio/clink.au
*FvwmAudio configure_window /usr/lib/audio/clink.au
*FvwmAudio iconify /usr/lib/audio/clink.au
*FvwmAudio deiconify /usr/lib/audio/clink.au
*FvwmAudio new_desk /usr/lib/audio/clink.au
*FvwmAudio new_deskpage /usr/lib/audio/clink.au
#*FvwmAudio startup /usr/lib/audio/clink.au
#*FvwmAudio shutdown /usr/lib/audio/ouch.au
#*FvwmAudio add_window /usr/lib/audio/squish.au
#*FvwmAudio raise_window /usr/lib/audio/short_bing.au
#*FvwmAudio lower_window /usr/lib/audio/stop_it.au
#*FvwmAudio focus_change /usr/lib/audio/tap.au
#*FvwmAudio destroy_window /usr/lib/audio/boom.au
#*FvwmAudio configure_window /usr/lib/audio/Water.au
#*FvwmAudio iconify /usr/lib/audio/Tire_skids.au
#*FvwmAudio deiconify /usr/lib/audio/dadan.au
#*FvwmAudio new_desk /usr/lib/audio/clink.au
#*FvwmAudio new_deskpage /usr/lib/audio/tap.au


--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed May 08 1996 - 18:21:59 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST