home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / as1455n6.zip / XFree86 / doc / AfterStep / 1.0_to_1.4 / sample.steprc.old < prev    next >
Text File  |  1998-05-13  |  22KB  |  627 lines

  1. # 03/08/97 sample.steprc v2.0 fsf ffejes@midway.uchicago.edu
  2. # This was AfterStep v1.0 default configuration
  3. #
  4. # Use steprc files with afterstep -f myoldfile, but you'd better convert them
  5. # to new look & feel files !
  6. #
  7. # "compatibility" file will also be read to avoid strange crashings :)
  8. #
  9. # Distinctive Look and Feel Section #
  10. #///////////////////////////////////#
  11. # Foreground color for unfocused windows and default border color
  12. StdForeColor         #111111
  13. # Background color for unfocused windows and handle color
  14. StdBackColor         #bfbfbf
  15. # Text color for focused windows, menu highlights, and MenuTitle text
  16. HiForeColor         White
  17. # Background Color of focused window and MenuTitle border
  18. #HiBackColor         #000001
  19. HiBackColor         #000044
  20. # Menu Border Color
  21. MenuBackColor        #bfbfbf
  22. # Menu Text Color
  23. MenuForeColor        Black
  24.  
  25. # Set some cursors
  26. Cursor 5 68   # Set the WAIT cursor to the normal left_ptr
  27. Cursor 7 68   # Set the SELECT (iconify) cursor
  28. Cursor 8 68   # Set the DESTROY cursor
  29.  
  30. # Set Gradient Texture Mapping
  31. # Define the texture type for the TitleBars, unfocused TitleBars,
  32. # Menu TitleBars, Menu Items, etc.
  33. #   0 - No texture
  34. #   1 - Wharf-style gradient
  35. #   2 - Horizontal one way gradient
  36. #   3 - Horizontal from top/bottom to center
  37. #   4 - Vertical one way gradient from left to right
  38. #   5 - Vertical from left/right to center
  39. # 128 - User specified pixmap
  40. TextureTypes 1 1 1 1 1 0
  41.  
  42. # Set the number of colors to use on textures.
  43. # Default is 10 on 8bpp screens and 128 on +16bpp.
  44. TextureMaxColors 10 10 10 10
  45.  
  46. # Texture Colors, given in Standard RGB X numbering
  47. # Window TitleBar textures
  48. TitleTextureColor    #303080    #000010
  49. # Unfocused TitleBar textures
  50. UTitleTextureColor    #a0a2a1    #606261
  51. # Menu TitleBar textures
  52. MTitleTextureColor    #303080    #000010
  53. # Menu Item textures
  54. MenuTextureColor    #606060    #d0d0d0
  55.  
  56. # Don't change the titlebar's highlight's upon mouse click
  57. TitlebarNoPush
  58. # Gives titles to icons
  59. IconTitle
  60.  
  61. # Menu Font
  62. Font                    -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
  63. # Window TitleBar Font
  64. WindowFont              -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  65. # Icon Font
  66. IconFont                -adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*
  67. # Area where icons should show up (RightX, RightY, LeftX, LeftY)
  68. IconBox 0 -64 -1 -1
  69.  
  70. #//////////////////#
  71. # Window Placement #
  72. #//////////////////#
  73. # RandomPlacement prevents user interaction while placing windows:
  74. # RandomPlacement
  75.  
  76. # SmartPlacement makes new windows pop-up in blank regions of screen 
  77. # if possible, otherwise falls back to random or interactive placement
  78. #SmartPlacement
  79.  
  80. # Percentage of a page (horizontal, vertical) to scroll when the 
  81. # cursor reaches the edge of a page ... 0 0 turns off scrolling
  82. EdgeScroll 0 0
  83.  
  84. # Amount of Resistance for moving from desk to desk with the
  85. # mouse ... 0 0 allows for only window moves and resizes to
  86. # reach into the next desk
  87. EdgeResistance 0 0
  88.  
  89. # Raise the Window when it is clicked on, but do not pass the click
  90. # on to the application ... very handy for text editors
  91. # Change 1 to 0 in order to get the "normal" ClickToFocus effect
  92. ClickToFocus 1
  93.  
  94. # Raise the Window when the mouse travels into it and keep focus
  95. # until the mouse enters a new window
  96. #SloppyFocus
  97.  
  98. # Miscellaneous voodoo commands - they may help you, they may not
  99. #AppsBackingStore
  100. #BackingStore
  101. #SaveUnders
  102.  
  103. # This style of window movement draws the entire window as it
  104. # moves, instead of the "rubber-band" outlines
  105. # It has a number (N) attached to it (default 5).  If the 
  106. # window occupies less than N% of the screen, OpaqueMove is 
  107. # used. 0 <= N <= 100 
  108. OpaqueMove 100
  109.  
  110. # NoPPosition instructs fvwm to ignore the PPosition field in window 
  111. # geometry hints.
  112. # Emacs annoyingly sets PPosition to (0,0)!
  113. NoPPosition
  114.  
  115. #////////////////////////#
  116. # Miscellaneous Settings #
  117. #////////////////////////#
  118. # Set windows to auto-raise after 325 milliseconds if you like it.
  119. # Use with SloppyFocus or focus-follows-mouse mode
  120. #Module Auto 325
  121.  
  122. # If you don't like the default 150 msec click delay for the complex functions
  123. # change this.
  124. ClickTime 150
  125.  
  126. # Don't change to an icon when using Alt-Tab to page through open windows
  127. CirculateSkipIcons
  128.  
  129. # StubbornIcons makes icons de-iconify into their original position on the
  130. # desktop, instead of on the current page.
  131. #StubbornIcons
  132.  
  133. # Place a TitleBar and Handles on popup windows and dialog boxes
  134. DecorateTransients
  135.  
  136. # With AutoPlacement, icons will normally place themselves underneath active
  137. # windows. This option changes that.
  138. #StubbornIconPlacement
  139.  
  140. # If you want ALL you icons to follow you around the desktop (Sticky), try
  141. # this
  142. StickyIcons
  143.  
  144. #///////////////////////////#
  145. # Pager and Virtual Desktop #
  146. #///////////////////////////#
  147. # Set up the virtual desktop and pager
  148. # Set the desk top size in units of physical screen size
  149. DeskTopSize 2x2
  150. # Sets the reduction scale used for the Pager
  151. DeskTopScale 32
  152.  
  153. #//////////////#
  154. # Common Paths #
  155. #//////////////#
  156. # ModulePath is a colon-separated list, just like a regular unix PATH
  157. # Any Module must be found within the path in order to be located
  158. # and executed
  159. ModulePath          /usr/X11R6/bin
  160. # Another colon-separated list pointing to your pixmaps (color icons)
  161. PixmapPath          /usr/include/X11/pixmaps/
  162. # Path for your ugly black&white icons
  163. IconPath            /usr/include/X11/bitmaps/
  164.  
  165. # Various styles which can be associated with specific applications
  166. # Sticky -- remains "stuck" on all desks
  167. # NoTitle -- window has NoTitle
  168. # StaysOnTop -- a regular window will not obscure this window
  169. # WindowListSkip -- this window will not show up in the
  170. #   window listing which can be used with a MiddleClick in 
  171. #   the root window (main background)
  172. # NoHandles -- No bottom bar
  173. Style "oclock" Sticky, NoTitle, StaysOnTop, WindowListSkip
  174. Style "*Pager" NoTitle, Sticky, StaysOnTop, WindowListSkip, NoHandles
  175. Style "xbiff" NoTitle, WindowListSkip
  176. Style "Minitabx11" StaysOnTop
  177. Style "Wharf" NoFocus,NoTitle, Sticky, WindowListSkip,StaysOnTop, NoHandles
  178. Style "Banner"    NoTitle, NoHandles, WindowListSkip, Sticky, StaysOnTop
  179.  
  180. ##################################
  181. # Animated Iconize Customization #
  182. ##################################
  183. Module Animate
  184. # Draw the lines with black
  185. *AnimateColor Black
  186. # Delay 1 ms in between frames of animation
  187. *AnimateDelay 1
  188. # Break the animation into 12 steps
  189. *AnimateIterations 12
  190. # Make 1 full revolution in a twisted animation
  191. #*AnimateTwist 1
  192. # Width of line used to animate...0 fastest, larger numbers slower
  193. *AnimateWidth 0
  194. # Use the zoom method of resizing instead of the twist
  195. *AnimateResize zoom
  196. #*AnimateResize twist
  197.  
  198. #/////////////////////#
  199. # Wharf Customization #
  200. #/////////////////////#
  201. # Customize your Wharf -- the pushable, pullable button bar on the right 
  202. # hand of your display
  203. Module Wharf 
  204. # Animate Wharf's folders
  205. *WharfAnimate
  206. # Animate Wharf's compression into one icon
  207. *WharfAnimateMain
  208. # Start on the right top side of the screen
  209. *WharfGeometry -0+0
  210. # One vertical column
  211. *WharfColumns 1 
  212.  
  213. # Create a pullout "Folder" as the first button on Wharf
  214. *Wharf AfterStep AFstep.xpm Folder
  215.   # Include all desired icons for this initial Folder here
  216.   # The first listed will be closest to Wharf upon expansion
  217.   # The last will be furthest
  218.   # This first will shut down AfterStep
  219. *Wharf Shutdown  shutdown.xpm  Quit
  220.   # Lock the display and use a random screensaver from the modelist
  221. *Wharf xlock KeysOnChain.xpm Exec "-" xlock -modelist "braid flame grav pyro qix rock spiral spline swarm worm" -mode random -duration 0 -allowroot -usefirst &
  222.   # Close the Folder
  223. *Wharf ~Folder
  224.   # Add a "Beat"iful little timepiece 
  225.   # MaxSwallow it in order to fit the full button
  226. *Wharf asclock nil MaxSwallow "asclock" asclock -12 -shape -position -1-1 &
  227.   # Check for mail ... this time only use a regular Swallow in order
  228.   # to capture the application in a 48x48 frame
  229. *Wharf xbiff   nil   Swallow "xbiff" xbiff -bg "#8e8a9e" -fg "#00003f" -geometry 45x45-1-1 &
  230.   # Examine your computer's load
  231. *Wharf xload nil  Swallow "xload" xload -nolabel -hl black -bg "#8e8a9e" -geometry 48x48-1-1 &
  232. *Wharf xload nil  Exec "" xterm -ut -T top -e top &
  233.   # Open up an xterm
  234. *Wharf xterm monitor.xpm   Exec "-" xterm -geometry 80x25 -sl 256 -sb -ls -T 'xterm@afterstep.org' &
  235.   # Start up GNU Emacs
  236. *Wharf emacs text.xpm Exec "-" emacs &
  237.   # Create amazing art with the freeware masterpiece, The GIMP
  238. *Wharf gimp 3dpaint.xpm Exec "-" gimp &
  239.   # Read some mail
  240. *Wharf pine writeletter.xpm Exec "-" xterm -T "pine" -e pine &
  241.   # Surf the web
  242. *Wharf Netscape netscape3.xpm Exec "-" netscape &
  243.   # Swallow a pager to quickly get an outlook on your virtual desktop
  244.   # Click on the different "desks" to change in between them
  245. *Wharf pager nil SwallowModule "Pager" Pager 0 0
  246.   # Edit this file in its own window
  247. *Wharf config interface.xpm Exec "-" xterm -n "Config" -T "AfterStep Configuration" -e vi ~/.steprc &
  248.   # Recycle your AfterStep session (Restart)
  249. *Wharf Recycler  recycler.xpm  Restart " " afterstep
  250.  
  251. #////////////////#
  252. # Icon Selection #
  253. #////////////////#
  254. # Select some common icon bitmaps for applications named in
  255. # column number two ... each icon file must be located in 
  256. # your PixmapPath (color) or IconPath (b/w) as defined above 
  257. Icon "xterm"        monitor.xpm
  258. Icon "*emacs*"      text.xpm
  259. Icon "pine"         writeletter.xpm
  260. Icon "ghostview"    text.xpm
  261. Icon "xman"        xman.xpm
  262. Icon "gimp"        3dpaint.xpm
  263. Icon "xli"        monalisa.xpm
  264. Icon "xv"        xv1.xpm
  265. Icon "moxfm*"       FileFolders.xpm
  266. Icon "*lyx*"        text.xpm
  267. Icon "LyX"          text.xpm
  268. Icon "Untitled*"    YellowBlueRedGeometry.xpm
  269.  
  270. #/////////////////////////#
  271. # Initialization Function #
  272. #/////////////////////////#
  273. # Here we will put programs and modules that we wish to
  274. # load up automatically upon startup
  275. Function "InitFunction"
  276.         # Wait until Wharf is done loading so that our xterm will have 
  277.         # the focus when it is first created
  278.     Wait    "I"    Wharf
  279.     Exec    "I"    exec xterm -geometry +4+4 -sl 256 -sb -ls -T 'xterm@afterstep.org' &
  280.         # Place the green carpet image onto the background upon startup
  281.         # I personally recommend xli/xloadimage, but xv seems to be
  282.         # ubiquitous in the unix world so I'll use that 
  283.     # Exec    "I"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/carpet.green.jpg
  284.     Exec    "I"    exec xsetroot -solid DarkGrey
  285. EndFunction
  286.  
  287. # These will load up upon every subsequent Restart
  288. #Function "RestartFunction"
  289. #        Module  "I"     FvwmPager 0 0
  290. #EndFunction
  291.  
  292. #///////////#
  293. # Functions #
  294. #///////////#
  295. # Now define some handy complex functions
  296. # Each function can be bound to a specific Mouse Button and
  297. # a specific window location (Title, TitleButton, Root Window, 
  298. # etc.) later on
  299.  
  300. # This one will Raise the window on a Single Click, Shade 
  301. # (display only the TitleBar) on a DoubleClick, and make 
  302. # the window uncoverable by all other non-OnTop windows 
  303. # with a TripleClick.  A Click+Motion will move the
  304. # window around
  305. Function "Shade-or-Raise"
  306.     Move        "Motion"
  307.     Raise        "Click"
  308.     Shade        "DoubleClick"
  309.     PutOnTop    "TripleClick"
  310. EndFunction
  311.  
  312. # This will move the window on mouse motion, maximize the
  313. # window (while leaving space for Wharf on the right) with a 
  314. # single MouseClick, roll up the window for a Shade with a 
  315. # DoubleClick, and put the window on top of all other windows
  316. # with a TripleClick (no regular window can be placed on top
  317. # of this window until the ontop window has been taken 
  318. # another PutOnTop TripleClick
  319. Function "Maximize_Function"
  320.     Move        "Motion"
  321.     Maximize    "Click" 94 100
  322.     Shade        "DoubleClick"
  323.      PutOnTop    "TripleClick"
  324. EndFunction
  325.  
  326. # This one moves or (de)iconifies:
  327. # Icons will restore to full size with a single mouse click
  328. # Change "Click" to "DoubleClick" or "TripleClick" as desired
  329. Function "Move-or-Iconify"
  330.     Move         "Motion"
  331.     Iconify        "Click"
  332. EndFunction
  333.  
  334. # Pretty Simple...Mouse Motion Raises and Resizes the given
  335. # window.   A mouse click will also Raise it.  DoubleClick
  336. # will perform a Shade while TripleClick grants unobscurable
  337. # status
  338. Function "Resize-or-Raise"
  339.     Resize         "Motion"
  340.     Raise        "Motion"
  341.     Raise        "Click"
  342.     Shade        "DoubleClick"
  343.     PutOnTop    "TripleClick"
  344. EndFunction
  345.  
  346. # This is provided as a hint only.
  347. # Move to a known page on the desktop, then start an application in a
  348. # known location. Could also switch to a known desktop, I guess
  349. #Function "abs_coord"
  350. #       GoToPage "Immediate"    1,1
  351. #       Exec    "Immediate"     exec xcalc -geometry +100+100&
  352. #EndFunction
  353.  
  354. #///////#
  355. # Menus #
  356. #///////#
  357. # Now define the menus - defer bindings until later
  358.  
  359. # Here are some common applications...we will add this and the 
  360. # following menus to our main HotList menu
  361. Popup "Applications"
  362.         Title "Applications"
  363.         Exec   "xv"             exec xv &
  364.         Exec   "vi"             exec xterm -T vi -e vi &
  365.         Exec   "Ghostview"      exec ghostview &
  366.         Exec   "The Gimp"       exec gimp &
  367.         Exec   "GNU Emacs"      exec emacs &
  368.         Exec   "Bitmap"         exec bitmap &
  369.         Exec   "Xxgdb"          exec xxgdb &
  370.         Exec   "Calculator"     exec xcalc &
  371. EndPopup
  372.  
  373. # Some diversionary tactics...xsnow is a personal favorite of mine
  374. Popup "Games"
  375.         Title "Games"
  376.         Exec    "Xsnow"         exec xsnow -nonopopup &
  377.         Exec    "Xboard"        exec xboard &
  378.         Exec    "XTetris"       exec xtetris &
  379.         Exec    "Xvier"         exec xvier &
  380. EndPopup
  381.  
  382. # Various ScreenSavers that lock the display
  383. Popup "Xlock"
  384.     Title    "Xlock"
  385.     Exec    "Braid"        exec xlock -allowroot -usefirst -mode braid &
  386.     Exec    "Flame"        exec xlock -allowroot -usefirst -mode flame &
  387.     Exec    "Grav"        exec xlock -allowroot -usefirst -mode grav &
  388.     Exec    "Pyro"        exec xlock -allowroot -usefirst -mode pyro &
  389.     Exec    "Qix"        exec xlock -allowroot -usefirst -mode qix &
  390.     Exec    "Rock"        exec xlock -allowroot -usefirst -mode rock &
  391.     Exec    "Slip"        exec xlock -allowroot -usefirst -mode spiral &
  392.     Exec    "Spline"    exec xlock -allowroot -usefirst -mode spline &
  393.     Exec    "Swarm"        exec xlock -allowroot -usefirst -mode swarm &
  394.     Exec    "Worm"        exec xlock -allowroot -usefirst -mode worm &
  395. EndPopup
  396.  
  397. # Some administrative tasks...note that Config opens up an
  398. # xterm and automatically edits this file
  399. Popup "Utilities"
  400.     Title  "Utilities"
  401.         Exec    "Config"        exec xterm -T "AfterStep Configuration" -e vi ~/.steprc &
  402.         Exec    "Top"           exec rxvt -T Top -n Top -e top &
  403.     Popup    "Xlock"        Xlock
  404. EndPopup
  405.  
  406. # This menu allows you to quit, although why you would want
  407. # to do such a thing is beyond me
  408. Popup "Quit-Verify"
  409.     Title    "Quit?"
  410.     Quit    "Yes, Quit"
  411.     Restart "Restart"    afterstep
  412.     Nop    "No, Don't"
  413. EndPopup
  414.  
  415. # Modules ... technically, asclock is a fully functioning
  416. # program, but I like to think of it as a nice module 
  417. Popup "Module-Popup"
  418.     Title    "Modules"
  419.     Exec    "asclock" exec asclock -12 -shape &
  420.     Module  "Banner"  Banner
  421.   Module  "Pager"   Pager 0 0
  422.   Module  "Wharf"   Wharf
  423. EndPopup
  424.  
  425. # Animations ... screen savers run as the default background
  426. Popup "Animations"
  427.     Title    "Animations"
  428.     Exec    "Braid"        exec xlock -inroot -mode braid &
  429.     Exec    "Flame"        exec xlock -inroot -mode flame &
  430.     Exec    "Grav"        exec xlock -inroot -mode grav &
  431.     Exec    "Pyro"        exec xlock -inroot -mode pyro &
  432.     Exec    "Qix"        exec xlock -inroot -mode qix &
  433.     Exec    "Rock"        exec xlock -inroot -mode rock &
  434.     Exec    "Slip"        exec xlock -inroot -mode spiral &
  435.     Exec    "Spline"    exec xlock -inroot -mode spline &
  436.     Exec    "Swarm"        exec xlock -inroot -mode swarm &
  437.     Exec    "Worm"        exec xlock -inroot -mode worm &
  438.   # Stop the animation in the background
  439.     Exec    "Stop It"    exec kill -9 $(ps aux | grep xlock | grep -v grep | awk '{print $2}')
  440. EndPopup
  441.  
  442. # Colors ... quick way to chage desktop coloring
  443. Popup "Colors"
  444.     Title    "Colors"
  445.     Exec    "Black"        exec xsetroot -solid Black
  446.     Exec    "Red"        exec xsetroot -solid Red
  447.     Exec    "Yellow"    exec xsetroot -solid Yellow
  448.     Exec    "Green"        exec xsetroot -solid Green
  449.     Exec    "Cyan"        exec xsetroot -solid Cyan
  450.     Exec    "Blue"        exec xsetroot -solid Blue
  451.     Exec    "Magenta"    exec xsetroot -solid Magenta
  452.     Exec    "White"        exec xsetroot -solid White
  453. EndPopup
  454.  
  455. # Images ... quick way to view the included default background images
  456. Popup "Images"
  457.     Title    "Images"
  458.     Exec    "Brick"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/brick.jpg
  459.     Exec    "Coins"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/coins.jpg
  460.     Exec    "Dark Wood"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/darkwood.jpg
  461.     Exec    "Eyes"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/eyes.jpg
  462.     Exec    "Glass"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/glass.jpg
  463.     Exec    "Green Carpet"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/carpet.green.jpg
  464.     Exec    "Parquet"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/parquet.jpg
  465.     Exec    "Pebbles"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/pebbles.jpg
  466.     Exec    "Rock"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/rock.tile.jpg
  467.     Exec    "Rope"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/rope.weave.jpg
  468.     Exec    "Stucco"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/stucco.jpg
  469.     Exec    "Tile"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/tile.check.jpg
  470.     Exec    "Tree Bark"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/bark.jpg
  471.     Exec    "Volcanic"    exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/volcanic.jpg
  472.     Exec    "Wood"        exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/wood.jpg
  473. EndPopup
  474.  
  475. # Background settings ... choose from either Solid Colors or Color Images
  476. Popup "Backgrounds"
  477.     Title    "Backgrounds"
  478.     Popup    "Animations"    Animations
  479.     Popup     "Colors"    Colors
  480.     Popup    "Images"    Images
  481. EndPopup
  482.  
  483. # Here is our main Menu that will be seen upon left MouseClick
  484. # in the root window (background area) ... note that we have added
  485. # our above Menus to this one ... also note that menus must be
  486. # defined first before they can be placed in a different menu
  487. Popup "HotList"
  488.     Title     "HotList"
  489.         Exec    "Xterm"         exec xterm -ls -sl 256 -sb -T 'xterm@afterstep.org' &
  490.         Exec    "Netscape"  exec netscape &
  491.         Popup   "Applications"  Applications
  492.     Popup    "Utilities"    Utilities
  493.         Popup   "Games"         Games
  494.     Popup    "Backgrounds"    Backgrounds
  495.         Popup   "Modules"       Module-Popup
  496.         Popup   "Exit"         Quit-Verify
  497. EndPopup
  498.  
  499. # This defines the most common window operations
  500. Popup "Window Ops"
  501.         Title           "Window Ops"
  502.         Function        "Move"          Shade-or-Raise
  503.         Function        "Resize"        Resize-or-Raise
  504.         Raise           "Raise"
  505.         Lower           "Lower"
  506.     PutOnTop    "(Un)PutOnTop"
  507.         Iconify         "(De)Iconify"
  508.         Stick           "(Un)Stick"
  509.         Function        "(Un)Maximize"  Maximize_Function
  510.         Destroy         "Destroy"
  511.         Close           "Close"
  512.         Refresh         "Refresh Screen"
  513. EndPopup
  514.  
  515.  
  516. #////////////////#
  517. # Mouse Bindings #
  518. #////////////////#
  519. # First, for the mouse in the root window
  520. # Button 1 gives the HotList menu
  521. # Button 2 gives the WindowList menu (Listing of current windows)
  522. # Button 3 gives the WindowOps
  523.  
  524. # There are 4 colums to the table
  525. # First column is the event (Mouse Click or Key Press)
  526. #   Mouse 0 specify any click in a TitleBar box
  527. #     Where can be 1 or 2 for first or second box
  528. #   Mouse 1 is left button, 2 is middle, 3 is right
  529. # Second Column is where the click takes place
  530. #   R = Root window (main background)
  531. #   F = Window Frame (the corners)
  532. #   S = Bottom bar
  533. #   I = Icon Window
  534. #   T = TitleBar
  535. #   W = Application Window
  536. # Third Column is the Context (ie, modifier keys)
  537. #   N = No modifiers
  538. #   A = Any context except for inside the TitleBar Boxes
  539. #   C = Control
  540. #   S = Shift
  541. #   M = Meta
  542. #   Combos are allowed (eg, CS = Control+Shift)
  543. # Fourth Column is the action to take upon click
  544. #   Action can be a function, popup, or regular action
  545. # Key #  # Where #  # Context#       # Action #
  546. Mouse 0         1       A       Iconify
  547. Mouse 0         2       A       Close
  548. Mouse 1        R       A       PopUp "HotList"
  549. Mouse 1        FS    A    Function "Resize-or-Raise"
  550. Mouse 1        I    A    Function "Move-or-Iconify"
  551. Mouse 1        T    A    Function "Shade-or-Raise"
  552. Mouse 2         R       A       WindowList
  553. Mouse 2        FST    A    PopUp "Window Ops"
  554. Mouse 3        TSIF    A    Function "Maximize_Function"
  555. Mouse 3         R       A       PopUp "Window Ops"
  556. Mouse 3         W       M       RaiseLower
  557.  
  558. #////////////////////#
  559. # Keyboard Shortcuts #
  560. #////////////////////#
  561.  
  562. Key F1        A    M    Popup "HotList"
  563. Key F2        A    M    Popup "Window Ops"
  564. Key F3        A    M    WindowList
  565. # Alt-F4 will take a screenshot and save it in
  566. # the user's home directory as screen.xwd
  567. # Programs such as ImageMagick can then be used
  568. # to convert the xwd file into jpg or gif format
  569. Key F4        A    M    Exec "xwd" xwd -root -out ~/screen.xwd &
  570. Key F5             A    A       Iconify
  571. # Alt(Meta)-Tab pages through open, bordered windows
  572. Key Tab        A    M    CirculateUp
  573.  
  574. # Arrow Keys
  575. # Control+Arrow scrolls to the next page on the desk
  576. Key Left        A       C       Scroll -100 0
  577. Key Right       A       C       Scroll +100 +0
  578. Key Up          A       C       Scroll +0   -100
  579. Key Down        A       C       Scroll +0   +100
  580.  
  581. #////////////////////#
  582. # Module Definitions #
  583. #////////////////////#
  584. # Pager Configuration -- We have Swallow-ed Pager into the Wharf
  585. # Now let's change colors and make labels
  586. *PagerBack #908090
  587. *PagerFore #484048
  588. *PagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  589. *PagerHilight #cab3ca
  590. *PagerGeometry -1-1
  591. *PagerLabel 0 Pager
  592. *PagerSmallFont 5x8
  593.  
  594. # Start the Audio player  
  595. Module Audio    
  596.  
  597. # Select your normal audio player
  598. #*AudioPlayCmd /usr/bin/showaudio
  599.  
  600. # Select the directory containing your sounds
  601. #*AudioDir /home/frank/mac/sounds
  602.  
  603. #*AudioDelay 1
  604.  
  605. # Attach sounds to window manager events...some don't appear to function
  606. # as well as they could
  607. #*Audio startup gong.au
  608. #*Audio shutdown clink.au
  609. #*Audio add_window bong.au
  610. #*Audio raise_window drip.au
  611. #*Audio lower_window drip.au
  612. #*Audio focus_change drip.au    
  613. #*Audio destroy_window crash.au
  614. #*Audio iconify ploop.au
  615. #*Audio deiconify ploop.au
  616. #*Audio toggle_paging fwop.au
  617. #*Audio new_page beaming.au 
  618. #*Audio new_desk beam_trek.au
  619. #*Audio configure_window huh.au
  620. #*Audio window_name bong.au
  621. #*Audio icon_name beep.au
  622. #*Audio res_class bong.au
  623. #*Audio res_name beep.au
  624. #*Audio end_windowlist twang.au
  625.  
  626. # qed
  627.