1 # 03/08/97 sample.steprc v2.0 fsf ffejes@midway.uchicago.edu
2 ############################################
3 # The AfterStep v1.0 Default Configuration #
4 ############################################
5 ##############################################################
7 # http://afterstep.edoc.com #
9 # ftp://afterstep.foo.net/pub/AfterStep #
10 # European Mirror Sites: #
11 # ftp://ftp.asta.uni-essen.de/pub/Afterstep #
12 # ftp://garfield.sch.bme.hu/pub/Linux/AfterStep #
13 # Additional Web Sites: #
14 # http://afterstep.foo.net #
15 # http://apollo.gmi.edu/~kram1968/afterstep #
16 # http://www.iis.ee.ethz.ch/~kiwi/AfterStep #
17 ##############################################################
19 #///////////////////////////////////#
20 # Distinctive Look and Feel Section #
21 #///////////////////////////////////#
22 # Foreground color for unfocused windows and default border color
25 # Background color for unfocused windows and handle color
28 # Text color for focused windows, menu highlights, and MenuTitle text
31 # Background Color of focused window and MenuTitle border
42 Cursor 5 68 # Set the WAIT cursor to the normal left_ptr
43 Cursor 7 68 # Set the SELECT (iconify) cursor
44 Cursor 8 68 # Set the DESTROY cursor
46 # Set Gradient Texture Mapping
47 # Define the texture type for the TitleBars, unfocused TitleBars,
48 # Menu TitleBars, Menu Items, etc.
50 # 1 - Wharf-style gradient
51 # 2 - Horizontal one way gradient
52 # 3 - Horizontal from top/bottom to center
53 # 4 - Vertical one way gradient from left to right
54 # 5 - Vertical from left/right to center
55 # 128 - User specified pixmap
56 TextureTypes 1 1 1 1 1 0
58 # Set the number of colors to use on textures.
59 # Default is 10 on 8bpp screens and 128 on +16bpp.
60 TextureMaxColors 10 10 10 10
62 # Texture Colors, given in Standard RGB X numbering
63 # Window TitleBar textures
64 TitleTextureColor #303080 #000010
66 # Unfocused TitleBar textures
67 UTitleTextureColor #a0a2a1 #606261
69 # Menu TitleBar textures
70 MTitleTextureColor #303080 #000010
73 MenuTextureColor #606060 #d0d0d0
75 # Don't change the titlebar's highlight's upon mouse click
78 # Gives titles to icons
82 Font -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
84 # Window TitleBar Font
85 WindowFont -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
88 IconFont -adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*
90 # Area where icons should show up (RightX, RightY, LeftX, LeftY)
96 # RandomPlacement prevents user interaction while placing windows:
99 # SmartPlacement makes new windows pop-up in blank regions of screen
100 # if possible, otherwise falls back to random or interactive placement
103 # Percentage of a page (horizontal, vertical) to scroll when the
104 # cursor reaches the edge of a page ... 0 0 turns off scrolling
107 # Amount of Resistance for moving from desk to desk with the
108 # mouse ... 0 0 allows for only window moves and resizes to
109 # reach into the next desk
112 # Raise the Window when it is clicked on, but do not pass the click
113 # on to the application ... very handy for text editors
114 # Change 1 to 0 in order to get the "normal" ClickToFocus effect
117 # Raise the Window when the mouse travels into it and keep focus
118 # until the mouse enters a new window
121 # Miscellaneous voodoo commands - they may help you, they may not
126 # This style of window movement draws the entire window as it
127 # moves, instead of the "rubber-band" outlines
128 # It has a number (N) attached to it (default 5). If the
129 # window occupies less than N% of the screen, OpaqueMove is
130 # used. 0 <= N <= 100
133 # NoPPosition instructs fvwm to ignore the PPosition field in window
135 # Emacs annoyingly sets PPosition to (0,0)!
138 #////////////////////////#
139 # Miscellaneous Settings #
140 #////////////////////////#
141 # Set windows to auto-raise after 325 milliseconds if you like it.
142 # Use with SloppyFocus or focus-follows-mouse mode
145 # If you don't like the default 150 msec click delay for the complex functions
149 # Don't change to an icon when using Alt-Tab to page through open windows
152 # StubbornIcons makes icons de-iconify into their original position on the
153 # desktop, instead of on the current page.
156 # Place a TitleBar and Handles on popup windows and dialog boxes
159 # With AutoPlacement, icons will normally place themselves underneath active
160 # windows. This option changes that.
161 #StubbornIconPlacement
163 # If you want ALL you icons to follow you around the desktop (Sticky), try
167 #///////////////////////////#
168 # Pager and Virtual Desktop #
169 #///////////////////////////#
170 # Set up the virtual desktop and pager
171 # Set the desk top size in units of physical screen size
173 # Sets the reduction scale used for the Pager
179 # ModulePath is a colon-separated list, just like a regular unix PATH
180 # Any Module must be found within the path in order to be located
182 ModulePath /usr/X11R6/bin/
184 # Another colon-separated list pointing to your pixmaps (color icons)
185 PixmapPath /usr/X11R6/share/afterstep10/pixmaps/
187 # Path for your ugly black&white icons
188 IconPath /usr/X11R6/include/X11/bitmaps/
191 # Various styles which can be associated with specific applications
192 # Sticky -- remains "stuck" on all desks
193 # NoTitle -- window has NoTitle
194 # StaysOnTop -- a regular window will not obscure this window
195 # WindowListSkip -- this window will not show up in the
196 # window listing which can be used with a MiddleClick in
197 # the root window (main background)
198 # NoHandles -- No bottom bar
199 Style "oclock" Sticky, NoTitle, StaysOnTop, WindowListSkip
200 Style "*Pager" NoTitle, Sticky, StaysOnTop, WindowListSkip, NoHandles
201 Style "xbiff" NoTitle, WindowListSkip
202 Style "Minitabx11" StaysOnTop
203 Style "as10-Wharf" NoFocus,NoTitle, Sticky, WindowListSkip,StaysOnTop, NoHandles
206 #/////////////////////#
207 # Wharf Customization #
208 #/////////////////////#
209 # Customize your as10-Wharf -- the pushable, pullable button bar on the right
210 # hand of your display
213 # Animate as10-Wharf's folders
216 # Animate as10-Wharf's compression into one icon
217 *as10-WharfAnimateMain
219 # Start on the right top side of the screen
220 *as10-WharfGeometry -0+0
222 # One vertical column
225 # Create a pullout "Folder" as the first button on as10-Wharf
226 *as10-Wharf AfterStep AFstep.xpm Folder
228 # Include all desired icons for this initial Folder here
229 # The first listed will be closest to as10-Wharf upon expansion
230 # The last will be furthest
233 *as10-Wharf xemacs text.xpm Exec "-" xemacs &
235 # Create amazing art with the freeware masterpiece, The GIMP
236 #*as10-Wharf gimp 3dpaint.xpm Exec "-" gimp &
239 #*as10-Wharf pine writeletter.xpm Exec "-" rxvt -T "pine" -e pine &
242 #*as10-Wharf Netscape netscape3.xpm Exec "-" netscape &
244 # Edit this file in its own window
245 #*as10-Wharf config interface.xpm Exec "-" xterm -n "Config" -T "AfterStep Configuration" -e vi ~/.steprc &
247 # Lock the display and use a random screensaver from the modelist
248 *as10-Wharf xlock KeysOnChain.xpm Exec "-" xlock -modelist "braid flame grav pyro qix rock spiral spline swarm worm" -mode random -duration 0 -allowroot -usefirst &
250 # Recycle your AfterStep session (Restart)
251 *as10-Wharf Recycler recycler.xpm Restart " " afterstep
253 # This first will shut down AfterStep
254 *as10-Wharf Shutdown shutdown.xpm Quit
261 # Add a "Beat"iful little timepiece
262 # MaxSwallow it in order to fit the full button
263 *as10-Wharf asclock nil MaxSwallow "asclock" as10-asclock -12 -shape -position -1-1 &
265 # Check for mail ... this time only use a regular Swallow in order
266 # to capture the application in a 48x48 frame
267 #*as10-Wharf xbiff nil Swallow "xbiff" xbiff -bg "#8e8a9e" -fg "#00003f" -geometry 45x45-1-1 &
269 # Examine your computer's load
270 *as10-Wharf xload nil Swallow "xload" xload -nolabel -hl black -bg "#8e8a9e" -geometry 48x48-1-1 &
271 *as10-Wharf xload nil Exec "" xterm -ut -T top -e top &
274 *as10-Wharf xterm monitor.xpm Exec "-" rxvt -geometry 80x25 -sl 256 -sb -ls -rv -T 'rxvt' &
277 # Swallow a pager to quickly get an outlook on your virtual desktop
278 # Click on the different "desks" to change in between them
279 *as10-Wharf pager nil SwallowModule "Pager" as10-Pager 0 0
284 # Select some common icon bitmaps for applications named in
285 # column number two ... each icon file must be located in
286 # your PixmapPath (color) or IconPath (b/w) as defined above
287 Icon "xterm" monitor.xpm
288 Icon "*emacs*" text.xpm
289 Icon "pine" writeletter.xpm
290 Icon "ghostview" text.xpm
292 Icon "gimp" 3dpaint.xpm
293 Icon "xli" monalisa.xpm
295 Icon "moxfm*" FileFolders.xpm
296 Icon "*lyx*" text.xpm
298 Icon "Untitled*" YellowBlueRedGeometry.xpm
300 #/////////////////////////#
301 # Initialization Function #
302 #/////////////////////////#
303 # Here we will put programs and modules that we wish to
304 # load up automatically upon startup
305 Function "InitFunction"
306 # Wait until as10-Wharf is done loading so that our xterm will have
307 # the focus when it is first created
309 Exec "I" exec rxvt -geometry +4+4 -sl 256 -sb -ls -T 'rxvt' &
310 # Place the green carpet image onto the background upon startup
311 # I personally recommend xli/xloadimage, but xv seems to be
312 # ubiquitous in the unix world so I'll use that
313 # Exec "I" exec xv -root -quit /usr/lib/X11/afterstep/backgrounds/carpet.green.jpg
314 Exec "I" exec xsetroot -solid gray20
315 Exec "I" exec xsetroot -solid gray20
318 # These will load up upon every subsequent Restart
319 Function "RestartFunction"
320 Exec "I" exec xsetroot -solid gray30
321 # Module "I" FvwmPager 0 0
328 # Now define some handy complex functions
329 # Each function can be bound to a specific Mouse Button and
330 # a specific window location (Title, TitleButton, Root Window,
333 # This one will Raise the window on a Single Click, Shade
334 # (display only the TitleBar) on a DoubleClick, and make
335 # the window uncoverable by all other non-OnTop windows
336 # with a TripleClick. A Click+Motion will move the
338 Function "Shade-or-Raise"
342 PutOnTop "TripleClick"
345 # This will move the window on mouse motion, maximize the
346 # window (while leaving space for as10-Wharf on the right) with a
347 # single MouseClick, roll up the window for a Shade with a
348 # DoubleClick, and put the window on top of all other windows
349 # with a TripleClick (no regular window can be placed on top
350 # of this window until the ontop window has been taken
351 # another PutOnTop TripleClick
352 Function "Maximize_Function"
354 Maximize "Click" 94 100
356 PutOnTop "TripleClick"
359 # This one moves or (de)iconifies:
360 # Icons will restore to full size with a single mouse click
361 # Change "Click" to "DoubleClick" or "TripleClick" as desired
362 Function "Move-or-Iconify"
367 # Pretty Simple...Mouse Motion Raises and Resizes the given
368 # window. A mouse click will also Raise it. DoubleClick
369 # will perform a Shade while TripleClick grants unobscurable
371 Function "Resize-or-Raise"
376 PutOnTop "TripleClick"
379 # This is provided as a hint only.
380 # Move to a known page on the desktop, then start an application in a
381 # known location. Could also switch to a known desktop, I guess
382 #Function "abs_coord"
383 # GoToPage "Immediate" 1,1
384 # Exec "Immediate" exec xcalc -geometry +100+100&
390 # Now define the menus - defer bindings until later
392 # Here are some common applications...we will add this and the
393 # following menus to our main HotList menu
397 Exec "vi" exec xterm -T vi -e vi &
398 Exec "Ghostview" exec ghostview &
399 Exec "The Gimp" exec gimp &
400 Exec "GNU Emacs" exec emacs &
401 Exec "Bitmap" exec bitmap &
402 Exec "Xxgdb" exec xxgdb &
403 Exec "Calculator" exec xcalc &
406 # Some diversionary tactics...xsnow is a personal favorite of mine
409 Exec "Xsnow" exec xsnow -nonopopup &
410 Exec "Xboard" exec xboard &
411 Exec "XTetris" exec xtetris &
412 Exec "Xvier" exec xvier &
415 # Various ScreenSavers that lock the display
418 Exec "Braid" exec xlock -allowroot -usefirst -mode braid &
419 Exec "Flame" exec xlock -allowroot -usefirst -mode flame &
420 Exec "Grav" exec xlock -allowroot -usefirst -mode grav &
421 Exec "Pyro" exec xlock -allowroot -usefirst -mode pyro &
422 Exec "Qix" exec xlock -allowroot -usefirst -mode qix &
423 Exec "Rock" exec xlock -allowroot -usefirst -mode rock &
424 Exec "Slip" exec xlock -allowroot -usefirst -mode spiral &
425 Exec "Spline" exec xlock -allowroot -usefirst -mode spline &
426 Exec "Swarm" exec xlock -allowroot -usefirst -mode swarm &
427 Exec "Worm" exec xlock -allowroot -usefirst -mode worm &
430 # Some administrative tasks...note that Config opens up an
431 # xterm and automatically edits this file
434 Exec "Config" exec xterm -T "AfterStep Configuration" -e vi ~/.steprc &
435 Exec "Top" exec rxvt -T Top -n Top -e top &
439 # This menu allows you to quit, although why you would want
440 # to do such a thing is beyond me
444 Restart "Restart" afterstep
448 # Modules ... technically, asclock is a fully functioning
449 # program, but I like to think of it as a nice module
452 Exec "asclock" exec as10-asclock -12 -shape &
453 Module "Pager" as10-Pager 0 0
454 Module "Wharf" as10-Wharf
457 # Colors ... quick way to chage desktop coloring
460 Exec "Black" exec xsetroot -solid Black
461 Exec "Red" exec xsetroot -solid Red
462 Exec "Yellow" exec xsetroot -solid Yellow
463 Exec "Green" exec xsetroot -solid Green
464 Exec "Cyan" exec xsetroot -solid Cyan
465 Exec "Blue" exec xsetroot -solid Blue
466 Exec "Magenta" exec xsetroot -solid Magenta
467 Exec "White" exec xsetroot -solid White
470 # Images ... quick way to view the included default background images
473 Exec "Brick" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/brick.jpg
474 Exec "Coins" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/coins.jpg
475 Exec "Dark Wood" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/darkwood.jpg
476 Exec "Eyes" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/eyes.jpg
477 Exec "Glass" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/glass.jpg
478 Exec "Green Carpet" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/carpet.green.jpg
479 Exec "Parquet" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/parquet.jpg
480 Exec "Pebbles" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/pebbles.jpg
481 Exec "Rock" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/rock.tile.jpg
482 Exec "Rope" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/rope.weave.jpg
483 Exec "Stucco" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/stucco.jpg
484 Exec "Tile" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/tile.check.jpg
485 Exec "Tree Bark" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/bark.jpg
486 Exec "Volcanic" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/volcanic.jpg
487 Exec "Wood" exec xv -root -quit /usr/X11R6/share/afterstep10/backgrounds/wood.jpg
490 # Background settings ... choose from either Solid Colors or Color Images
493 Popup "Colors" Colors
494 Popup "Images" Images
497 # Here is our main Menu that will be seen upon left MouseClick
498 # in the root window (background area) ... note that we have added
499 # our above Menus to this one ... also note that menus must be
500 # defined first before they can be placed in a different menu
503 Exec "Xterm" exec xterm -ls -sl 256 -sb -T 'xterm@afterstep.org' &
504 Exec "Netscape" exec netscape &
505 Popup "Applications" Applications
506 Popup "Utilities" Utilities
508 Popup "Backgrounds" Backgrounds
509 Popup "Modules" Module-Popup
510 Popup "Exit" Quit-Verify
513 # This defines the most common window operations
516 Function "Move" Shade-or-Raise
517 Function "Resize" Resize-or-Raise
520 PutOnTop "(Un)PutOnTop"
521 Iconify "(De)Iconify"
523 Function "(Un)Maximize" Maximize_Function
526 Refresh "Refresh Screen"
533 # First, for the mouse in the root window
534 # Button 1 gives the HotList menu
535 # Button 2 gives the WindowList menu (Listing of current windows)
536 # Button 3 gives the WindowOps
538 # There are 4 colums to the table
539 # First column is the event (Mouse Click or Key Press)
540 # Mouse 0 specify any click in a TitleBar box
541 # Where can be 1 or 2 for first or second box
542 # Mouse 1 is left button, 2 is middle, 3 is right
543 # Second Column is where the click takes place
544 # R = Root window (main background)
545 # F = Window Frame (the corners)
549 # W = Application Window
550 # Third Column is the Context (ie, modifier keys)
552 # A = Any context except for inside the TitleBar Boxes
556 # Combos are allowed (eg, CS = Control+Shift)
557 # Fourth Column is the action to take upon click
558 # Action can be a function, popup, or regular action
559 # Key # # Where # # Context# # Action #
562 Mouse 1 R A PopUp "HotList"
563 Mouse 1 FS A Function "Resize-or-Raise"
564 Mouse 1 I A Function "Move-or-Iconify"
565 Mouse 1 T A Function "Shade-or-Raise"
566 Mouse 2 R A WindowList
567 Mouse 2 FST A PopUp "Window Ops"
568 Mouse 3 TSIF A Function "Maximize_Function"
569 Mouse 3 R A PopUp "Window Ops"
570 Mouse 3 W M RaiseLower
572 #////////////////////#
573 # Keyboard Shortcuts #
574 #////////////////////#
576 Key F1 A M Popup "HotList"
577 Key F2 A M Popup "Window Ops"
578 Key F3 A M WindowList
579 # Alt-F4 will take a screenshot and save it in
580 # the user's home directory as screen.xwd
581 # Programs such as ImageMagick can then be used
582 # to convert the xwd file into jpg or gif format
583 Key F4 A M Exec "xwd" xwd -root -out ~/screen.xwd &
585 # Alt(Meta)-Tab pages through open, bordered windows
586 Key Tab A M CirculateUp
589 # Control+Arrow scrolls to the next page on the desk
590 Key Left A C Scroll -100 0
591 Key Right A C Scroll +100 +0
592 Key Up A C Scroll +0 -100
593 Key Down A C Scroll +0 +100
595 #////////////////////#
596 # Module Definitions #
597 #////////////////////#
598 # Pager Configuration -- We have Swallow-ed Pager into the as10-Wharf
599 # Now let's change colors and make labels
600 *as10-PagerBack #908090
601 *as10-PagerFore #484048
602 *as10-PagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
603 *as10-PagerHilight #cab3ca
604 *as10-PagerGeometry -1-1
605 *as10-PagerLabel 0 Pager
606 *as10-PagerSmallFont 5x8