# Rob's .steprc # Much worked out version of # the standard Afterstep configuration. # Since I operate primarly via keyboard (mice are icky ;) # most everything of value is mapped to a keyboard shortcut # somewhere, and it it isn't mapped, I just must be used to # typing it in at the darn console. # # question? comments? cash? lemme know. malda@cs.hope.edu # #///////////////////////////////////# # Distinctive Look and Feel Section # #///////////////////////////////////# # Darker color in active Windows. StdForeColor #172827 # Bright Color in Inactive Windows StdBackColor #786776 # Window Titles HiForeColor #5f7d7d # Bright Color of Active Windows HiBackColor #5f7d7d # Menu Border Color MenuBackColor #000000 # Menu Text Color MenuForeColor Black # Set Gradient Texture Mapping # Define the texture type for the TitleBars, unfocused TitleBars, # Menu TitleBars, and Menu Items # 0 - No texture # 1 - Wharf-style gradient # 2 - Horizontal one way gradient TextureTypes 128 128 1 1 1 0 TitlePixmap /home/malda/pic/greenbar.xpm UTitlePixmap /home/malda/pic/redbar.xpm # Set the number of colors to use on textures. # Default is 10 on 8bpp screens and 128 on +16bpp. # TextureMaxColors 32 32 32 32 # Texture Colors, given in Standard RGB X numbering # Window TitleBar textures TitleTextureColor #444477 #009999 UTitleTextureColor #222244 #002222 #MTitleTextureColor #1f2f2f #005555 MTitleTextureColor #5f7d7d #172827 MenuTextureColor #786776 #201020 #ButtonTextureType 128 #ButtonMaxColors 16 ButtonPixmap greenicon.xpm TexturedHandle IconTitle # Menu Font Font -*-frizquadrata-*-*-*-*-15-*-*-*-*-*-*-* # Window TitleBar Font WindowFont -*-blippo-*-r-*-*-18-*-*-*-*-*-*-* # Area where icons should show up (RightX, RightY, LeftX, LeftY) #IconBox 0 -64 -1 -1 IconBox -1 -64 0 0 #//////////////////# # Window Placement # #//////////////////# # RandomPlacement # SmartPlacement EdgeScroll 20 20 EdgeResistance 50 50 #ClickToFocus #SloppyFocus AppsBackingStore BackingStore SaveUnders OpaqueMove 100 NoPPosition #////////////////////////# # Miscellaneous Settings # #////////////////////////# # If you don't like the default 150 msec click delay for the complex functions # change this. ClickTime 150 # Place a TitleBar and Handles on popup windows and dialog boxes DecorateTransients # If you want ALL you icons to follow you around the desktop (Sticky), try # this StickyIcons #///////////////////////////# # Pager and Virtual Desktop # #///////////////////////////# # Set up the virtual desktop and pager # Set the desk top size in units of physical screen size DeskTopSize 3x3 # Sets the reduction scale used for the Pager DeskTopScale 32 #//////////////# # Common Paths # #//////////////# # ModulePath is a colon-separated list, just like a regular unix PATH # Any Module must be found within the path in order to be located # and executed ModulePath /usr/lib/X11/afterstep:/usr/X11R6/lib/X11/afterstep # Another colon-separated list pointing to your pixmaps (color icons) PixmapPath /usr/include/X11/pixmaps/:/home/malda/pic # Path for your ugly black&white icons IconPath /usr/include/X11/bitmaps/ TitleTextAlign 1 TitleButton 1 kill1.xpm TitleButton 2 kill1.xpm kill1.xpm TitleButton 4 minimize1.xpm minimize1.xpm TitleButton 6 kill1.xpm kill1.xpm # Mode VerHof Hrel Hnorm HShad LoRel LoShad LoNorm # TitleTextMode 1 -1 #7f9d9d #483746 #ffffff #967e8e #562e4e #aaaaaa # Various styles which can be associated with specific applications # Sticky -- remains "stuck" on all desks # NoTitle -- window has NoTitle # StaysOnTop -- a regular window will not obscure this window # WindowListSkip -- this window will not show up in the # window listing which can be used with a MiddleClick in # the root window (main background) # NoHandles -- No bottom bar Style "oclock" Sticky, NoTitle, StaysOnTop, WindowListSkip Style "*Pager" NoTitle, Sticky, StaysOnTop, WindowListSkip, NoHandles Style "Minitabx11" StaysOnTop Style "xeyes" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "Wharf" NoFocus,NoTitle, Sticky, WindowListSkip, NoHandles, BorderWidth 0 Style "Banner" NoTitle, NoHandles, WindowListSkip, Sticky, StaysOnTop Style "xconsole" NoTitle, NoHandles, WindowListSkip, Sticky, StaysOnTop Style "rxvtcon" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "rxvtmes" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "rxvtweb" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "as*" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "xload" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 Style "xdali*" NoTitle, NoHandles, WindowListSkip, Sticky, BorderWidth 0 #/////////////////////# # Wharf Customization # #/////////////////////# # Customize your Wharf -- the pushable, pullable button bar on the right # hand of your display #Module Wharf *WharfTextureType 128 *WharfPixmap /home/malda/pic/redicon2.xpm *WharfGeometry +0-0 *WharfColumns 1 *WharfNoBorder *WharfFullPush #*WharfTextureType 1 #*WharfMaxColors 128 #*WharfTextureColor #1f2f2f #005555 *WharfAnimate *WharfAnimateMain # Create a pullout "Folder" as the first button on Wharf *Wharf AfterStep afterstep1.xpm Folder *Wharf Shutdown shutdown.xpm Quit *Wharf xlock KeysOnChain.xpm Exec "-" xlock -mode rock *Wharf Recycler recycler.xpm Restart " " afterstep *Wharf config interface.xpm Exec "-" nedit ~/.steprc & *Wharf ~Folder *Wharf - - MaxSwallow "asclock" /usr/local/bin/asclock -12 -shape & *Wharf - - Swallow "asmail" /usr/local/bin/asmail -geometry 48x48+48+0 & *Wharf - - Swallow "asmixer" /usr/local/bin/asmixer -geometry 48x48+96-48 & *Wharf - - Swallow "ascd" /usr/local/bin/ascd *Wharf pager nil SwallowModule "Pager" Pager 0 0 *Wharf - - Swallow "xload" xload -nolabel -geometry 48x48+192-48 -bg black -fg grey60 -nolabel & *Wharf - - Swallow "asmodem" /usr/local/bin/asmodem -s -r "cp /home/malda/sounds/crash.au /dev/audio" -d "/usr/sbin/ppp-on" -h "/usr/sbin/ppp-off" & *Wharf - - Swallow "ascdc" /usr/local/bin/ascdc -m /cdrom -geometry 48x48+240-48 & *Wharf /usr/X11/bin/rxvt sparc2.xpm Exec "-" xr sauron.cs.hope.edu rxvt -pixmap /home/malda/sights/greenremote.xpm *Wharf /usr/X11/bin/rxvt mad_hacker.xpm Exec "oostendo" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/orange2.xpm -title "malda@oostendorpn" -bg darkgrey -geometry 10+10+80x25 -fn vga11x19 -e rlogin oostendorpn *Wharf Places world2.xpm Folder *Wharf /usr/X11/bin/rxvt sparc2.xpm Exec "macnet" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/orange2.xpm -title "icarus@macatawa.org" -bg darkgrey -geometry 10+10+80x25 -fn vga11x19 -e telnet macatawa.org *Wharf /usr/X11/bin/rxvt penguin.xpm Exec "-" xr demaagdd /usr/X11/bin/rxvt -bg black -fg white -t malda@demaagdd.dorm.hope.edu & *Wharf ~Folder *Wharf /usr/X11/bin/rxvt penguin.xpm Exec "-" rxvt & *Wharf /usr/local/bin/nets netscapelogo.xpm Exec "-" nets & *Wharf /usr/local/bin/nedit text.xpm Exec "-" nedit & #*Wharf - - MaxSwallow "asclock" /usr/local/bin/asclock -12 -shape & #*Wharf - - MaxSwallow "xeyes" /usr/X11R6/bin/xeyes -geometry 100x100-0-0 & *Wharf /usr/local/bin/gimp palette.xpm Exec "-" gimp & #////////////////# # Icon Selection # #////////////////# # Select some common icon bitmaps for applications named in # column number two ... each icon file must be located in # your PixmapPath (color) or IconPath (b/w) as defined above Icon "xterm" penguin.xpm Icon "rxvt" penguin.xpm Icon "pine" writeletter.xpm Icon "ghostview" text.xpm Icon "xman" xman.xpm Icon "gimp" 3dpaint.xpm Icon "xli" monalisa.xpm Icon "xv" xv.xpm Icon "nedit" text.xpm Icon "xmcd" cd.xpm Icon "Untitled*" YellowBlueRedGeometry.xpm Icon "smaug*" sparc2.xpm Icon "sauro*" sparc2.xpm Icon "*cs.hope.edu" sparc2.xpm Icon "mac*" sparc.xpm Icon "snafu*" penguin.xpm Icon "Zircon*" microphone.xpm Icon "irc" microphone.xpm Icon "malda@cs.hope.edu" sparc2.xpm Icon "gimp*" palette.xpm Icon "Netscape*" netscapelogo.xpm #/////////////////////////# # Initialization Function # #/////////////////////////# # Here we will put programs and modules that we wish to # load up automatically upon startup Function "InitFunction" Exec "Consoles" /usr/local/bin/consoles.sh Exec "Background" xv -root -quit ~/pic/backgroundshadow.jpg & Exec "asmail" asmail -geometry 48x48+15+290 # Module "Banner" Banner banner1.xpm EndFunction #///////////# # Functions # #///////////# # Now define some handy complex functions # Each function can be bound to a specific Mouse Button and # a specific window location (Title, TitleButton, Root Window, # etc.) later on # This one will Raise the window on a Single Click, Shade # (display only the TitleBar) on a DoubleClick, and make # the window uncoverable by all other non-OnTop windows # with a TripleClick. A Click+Motion will move the # window around Function "Shade-or-Raise" Move "Motion" Raise "Click" Shade "DoubleClick" PutOnTop "TripleClick" EndFunction # This one moves or (de)iconifies: # Icons will restore to full size with a single mouse click # Change "Click" to "DoubleClick" or "TripleClick" as desired Function "Move-or-Iconify" Move "Motion" Iconify "Click" EndFunction # Pretty Simple...Mouse Motion Raises and Resizes the given # window. A mouse click will also Raise it. DoubleClick # will perform a Shade while TripleClick grants unobscurable # status Function "Resize-or-Raise" Resize "Motion" Raise "Motion" Raise "Click" Shade "DoubleClick" PutOnTop "TripleClick" EndFunction # This is provided as a hint only. # Move to a known page on the desktop, then start an application in a # known location. Could also switch to a known desktop, I guess #Function "abs_coord" # GoToPage "Immediate" 1,1 # Exec "Immediate" exec xcalc -geometry +100+100& #EndFunction #///////# # Menus # #///////# # Now define the menus - defer bindings until later # Here are some common applications...we will add this and the # following menus to our main HotList menu Popup "Applications" Title "Applications" Exec "xv" exec xv & Exec "gimp" exec gimp & Exec "rxvt" exec rxvt & Exec "xterm" exec xterm & Exec "console" exec rxvtcon -C & Exec "consoles" exec /usr/local/bin/consoles.sh & Exec "Calculator" exec xcalc & EndPopup # This menu allows you to quit, although why you would want # to do such a thing is beyond me Popup "Quit-Verify" Title "Quit?" Quit "Yes, Quit" Restart "Restart" afterstep Nop "No, Dont" EndPopup # Modules ... technically, asclock is a fully functioning # program, but I like to think of it as a nice module Popup "Module-Popup" Title "Modules" Exec "asclock" exec asclock -12 -shape & Module "Banner" Banner Module "Wharf" Wharf EndPopup # Here is our main Menu that will be seen upon left MouseClick # in the root window (background area) ... note that we have added # our above Menus to this one ... also note that menus must be # defined first before they can be placed in a different menu Popup "HotList" Title "Pick Something!" Exec "Netscape 3.0" exec /usr/local/bin/nets & Exec "rxvt" exec /usr/local/X11R6/bin/rxvt & Exec "gimp" exec gimp & Exec "xv" exec xv & Popup "Applications" Applications Popup "Modules" Module-Popup Popup "Exit" Quit-Verify EndPopup # This defines the most common window operations Popup "Window Ops" Title "Window Ops" Function "Move" Shade-or-Raise Function "Resize" Resize-or-Raise Raise "Raise" Lower "Lower" PutOnTop "(Un)PutOnTop" Iconify "(De)Iconify" Stick "(Un)Stick" Destroy "Destroy" Close "Close" Refresh "Refresh Screen" EndPopup #////////////////# # Mouse Bindings # #////////////////# # First, for the mouse in the root window # Button 1 gives the HotList menu # Button 2 gives the WindowList menu (Listing of current windows) # Button 3 gives the WindowOps # There are 4 colums to the table # First column is the event (Mouse Click or Key Press) # Mouse 0 specify any click in a TitleBar box # Where can be 1 or 2 for first or second box # Mouse 1 is left button, 2 is middle, 3 is right # Second Column is where the click takes place # R = Root window (main background) # F = Window Frame (the corners) # S = Bottom bar # I = Icon Window # T = TitleBar # W = Application Window # Third Column is the Context (ie, modifier keys) # N = No modifiers # A = Any context except for inside the TitleBar Boxes # C = Control # S = Shift # M = Meta # Combos are allowed (eg, CS = Control+Shift) # Fourth Column is the action to take upon click # Action can be a function, popup, or regular action # Key # # Where # # Context# # Action # Mouse 0 2 A Close Mouse 0 4 A Iconify #Mouse 1 R A PopUp "HotList" Mouse 1 FS A Function "Resize-or-Raise" Mouse 1 I A Function "Move-or-Iconify" Mouse 1 T A Function "Shade-or-Raise" Mouse 2 R A WindowList Mouse 3 TSIF A PopUp "Window Ops" Mouse 3 R A PopUp "HotList" Mouse 3 W M RaiseLower Mouse 2 TSIF A Shade #////////////////////# # Keyboard Shortcuts # #////////////////////# Key F1 A M Popup "HotList" Key F2 A M Popup "Window Ops" Key F3 A M WindowList Key F4 A M Exec "xwd" xwd -root -out ~/screen.xwd & #VS Key F5 A A Iconify Key F7 A A Destroy # Control+Arrow scrolls to the next page on the desk Key Left A MC Scroll -100 0 Key Right A MC Scroll +100 +0 Key Up A MC Scroll +0 -100 Key Down A MC Scroll +0 +100 key 1 W M Destroy Key q W M Close #Experiment #key Meta_L RW N exec "rxvt" /usr/X11R6/bin/rxvt & #key Meta_R RW N Popup "HotList" #key Menu RW N Popup "Window Ops" # Rob's Shortcut keys. key Tab A M CirculateDown key Tab A MS CirculateUp key g R N exec "gimp" /usr/local/bin/gimp & key i R N exec "irc" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/bluegrey.xpm -title "cmdrtaco@maldar" -e su cmdrtaco & key l R N exec "xlock" nice -5 xlock -mode rock key m R N exec "macnet" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/orange2.xpm -title "icarus@macatawa.org" -bg darkgrey -geometry 10+10+80x25 -fn vga11x19 -e telnet macatawa.org key n R N exec "Netscape" /usr/local/bin/nets & key p R N exec "pine" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/bluegrey.xpm -title "pine" -e /usr/bin/pine key q A MC Popup "Quit-Verify" key r A MS Restart " " Afterstep key r R N exec "root" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/red2.xpm -title "root@spazmo" -e su root & #key s R N exec "smeagol" /usr/local/bin/xr smeagol.cs.hope.edu rxvtrem key s R N exec "sauron" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/green2.xpm -title "malda@cs.hope.edu" -bg darkgrey -geometry 10+10+80x25 -fn vga11x19 -e telnet sauron.cs.hope.edu key t R N exec "tin" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/orange2.xpm -title "tin" -e "/usr/bin/tin" key v R N exec "xv" /usr/X11R6/bin/xv & key w A MC exec "xlock" /usr/X11R6/bin/xlock -mode swarm key x R N exec "rxvt" /usr/X11R6/bin/rxvt & key z R N exec "zircon" /usr/local/bin/zircon & key j R N exec "jessica" /usr/X11R6/bin/rxvt -pixmap /home/malda/pic/green2.xpm -title "jessica@smaug" -bg darkgrey -geometry 10+10+80x25 -fn vga11x19 -e rlogin -l densborn smaug.cs.hope.edu #////////////////////# # Module Definitions # #////////////////////# # Pager Configuration -- We have Swallow-ed Pager into the Wharf # Now let's change colors and make labels *PagerBack #2f4f4f *PagerFore #000000 *PagerHilight #777777 #*PagerLabel 0 Pager *PagerSmallFont 5x8 *PagerFont none *PagerGeometry 64x110+8-15 *PagerLabel 0 Main *PagerSmallFont 5x8 *PagerNoLabel Module Pager 0 0 ################################## # Animated Iconize Customization # ################################## Module Animate #Draw the lines with black *AnimateColor Black # Delay 1 ms in between frames of animation *AnimateDelay 1 # Break the animation into 12 steps *AnimateIterations 12 # Make 1 full revolution in a twisted animation *AnimateTwist 1 # Width of line used to animate...0 fastest, larger numbers slower *AnimateWidth 0 # Use the zoom method of resizing instead of the twist *AnimateResize zoom *AnimateResize twist *BannerPixmap banner1.xpm *BannerTimeOut 30 Module Banner banner1.xpm