AfterStep Configuration Notes
Modulepath |
This path points to where your Afterstep modules are located.
If this path is wrong, you will not get the Wharf, Pager and other modules.
In the sample.steprc-file it is set like this:ModulePath /usr/lib/X11/afterstep:/usr/X11R6/lib/X11/afterstep If your installation for some reason (ie. you only have it on your private account, you use the Store management system, etc.) is put elsewhere, you will have to change this. |
PixmapPath |
This path (not the IconPath) tells where your icons are placed.
As well as other pixmaps you will use. In sample.steprc this is set to:PixmapPath /usr/include/X11/pixmaps/ Again, this should be set to where your icons really are. Users will usually want to add their own personal path to the standard path, so that they can make their own icons. |
IconPath |
According to the sample.steprc this is the path to "the ugly
black&white icons". This is probably mostly a hangover
from the old fvwm days, but are needed by some aplications, and
sometimes the black&white icons are good enough. Sample.steprc:IconPath /usr/include/X11/bitmaps/
|
General Looks
The main colors of Afterstep is set using the following parameters in your .steprc. |
StdForeColor
|
This color is used for all the outer borders of the windows,
as well as shading in the menus. It is also used as the text-color
on titlebars of unfocused windows. Usually this is set as below
in the sample.steprc
StdForeColor #111111
|
StdBackColor
|
This appearantly affects the bar at the bottom of windows,
as well as the 3D-effects on the titlebar-buttons.
StdBackColor #bfbfbf
|
HiForeColor
|
This the color of the text on focused windows' titlebar.
It is also used for highlighting the menuitem you have currently
selected. It will also affect the color on the icon-text
if you have that option enabled. Sample.steprc says:HiForeColor White
|
HiBackColor
|
Border of the titlebars of menus and active windows.
Also the background for the icontext.HiBackColor #000044
|
HiBackColor
|
Border of the titlebars of menus and active windows.
Also the background for the icontext.HiBackColor #000044
|
MenuForeColor
|
This changes the color of the menu-item's text. It's that simple.MenuForeColor Black
|
MenuBackColor
|
Makes the 3D-effects on the menus. This is better of left in some
shade of gray, or the same color-kind as you choose for
the menu-items.MenuBackColor #bfbfbf
|
StickyForeColor
|
Sets the foreground color of un-selected sticky windows
(Windows that follow you around the virtual desktop). This
will affect the title-bar text, and the small outline of
the window.StickyForeColor Black
|
StickyBackColor
|
Sets the background of sticky windows. This is best
seen on the standard minimize and maximize icons,
as they gets some extra colors you probably didn't want.
StickyBackColor Grey
|
The font used in the titlebar is given in the WindowFont
option.
This option takes 1 parameter: the standard X fontstring.
Example:
WindowFont -misc-*-Bold-*-*-*-*-*-*-*-*-*-ISO8859-*
To find the font you would like to use, check xfontsel.
The titletext placement may be changed using the option TitleTextAlign
with a number as its parameter. These numbers mean basically:
There are 7 different kinds of textures you can use on your titlebars.
They are set by using the option TextureTypes
. TextureTypes
takes 6 parameters, like this: TextureTypes Titlebar UTitlebar
StickyTitlebar MenuTitlebar Menuitem Unknown
These textures are
(use only the numbers):
The colors and textures between which the gradient is shaded is set by using the options below. Unless mentioned otherwise these take two parameters: Start color and End color. (In that order). Colors are specified either by common names or by the standard way of defining colors: #rrggbb where rr is red component of the color, gg is green and bb is blue. Numbers are in hexadecimal.
- TitleTextureColor
UTitleTextureColor
STitleTextureColor
MTitleTextureColor
MenuTextureColor
TitlePixmap
UTitlePixmap
STitlePixmap
Window Behavior:
There are some settings to determine how your windows will place themselves on the screen as they pop up. This section will not cover icon behavior, since that will be covered in the icon section below.
- RandomPlacement
SmartPlacement
RandomPlacement
. It tries to place windows in unused spaces of the current workspace. If this fails it falls back on default. (RandomPlacement or interactiv placement) ClickToFocus
SloppyFocus
EdgeScroll
EdgeScroll 0 0
prevents moving from page to page, except when moving and resizing windows. EdgeResistance
EdgeScroll
. This takes two parameters. The first parameters is how many milliseconds the cursor must be on the screen edge before the screen is changed. Setting this to 10000 makes it impossible to move windows between virtual desktops if EdgeScroll 0 0
is used. The second states how many pixels a window must be placed outside the edge, before it falls partially out of the screen. OpaqueMove
OpaqueMove 30
will make all windows of less than 30% of the screen move opaquely, while you only get an outline for those bigger. OpaqueResize
ICONS:
Definition:
I define icons to be minimized programs. There is some confusion in afterstep about what is called buttons and what is called icons.
- ButtonTextureType n
ButtonBgColor col
ButtonTextureColor col col
ButtonPixmap pixmap
ButtonNoborder
ButtonMaxColors n
IconTitle
IconFont font
Yes. Icons can behave too. Here are the options you may use to make them behave:
- IconBox RightX, RightY, LeftX, LeftY
IconBox
entries. When the first one is full, Afterstep goes on to the next one. StubbornIcons
StubbornIconPlacement
StickyIcons
To assign a specific icon to a program use the
Style option, with parameterIcon pixmap
.
Wharf:
Wharf is the fancy little application-starter that is usually positioned on the upper right of your screen. This is one of the parts of afterstep that has evolved the most yet apperantly still stayed quite the same. It has the possibility of sliding out child-menus, swallow small windows so that the content can be shown there instead of taking unnecessary desktop space, and most importantly, start up programs you configure it to start.
The topics on Wharf are: Starting Wharf, Looks, Starting a program, Swallowing a program, Folders
Starting Wharf from the .steprc is quite simple. It is started the way all modules are started: With the
Module
command. Like this:
Module Wharf
To position the Wharf use the
*WharfGeometry
command. Like this:
*WharfGeometry -0+0
This will place the Wharf in the upper right corner, since the first number (-0) means 0 pixels from the right edge, and the second (+0) means 0 pixels from the top of the screen. Using this option you can position the Wharf wherever you want to.
Using the
*WharfColumns
command you can set how many coloumns the Wharf shall have. This is usually 1 but some people fancy more coloumns. Example: *WharfColumns 2
will give you 2 coloumns of Wharf. The Wharf will place it's icons row by row, so that two icons that follow below each other in the .steprc might be beside each other on the Wharf.
You can animate folders sliding out from the Wharf by using the
*WharfAnimate
option. This option don't take any parameters, if you insert it then it shall be done. You can also animate the motion when Wharf is compressed into one single icon (middle-click on the wharf) by using the option *WharfAnimateMain
, the same way as *WharfAnimate
Textures:
The Wharf has per default a top-left to bottom-right fade as it's background. This is now possible to change at will, by using the option*WharfTexturetype
, with one of these parameters:
*WharfBgColor
option, with one parameter: the color.
*WharfTextureColor
with two parameters: Start-color and end-color.
*WharfPixmap
option, like this:
*WharfPixmap marble.xpm
*WharfForceSize
option, the Wharf will resize to the size of your background icon. This might give unwanted results. I recommend that you use an icon that is 64x64 pixels which is the default size of the Wharf. This is to make sure the swallowed apps behave properly, and looks don't get screwed up. To restrict the number of colors used by the Wharf, you can use the option
*WharfMaxColors
. This takes one parameter: The number of colors you want Wharf to use.
Force size of Wharf: To force the size of the Wharf, despite the size of your background icon use the
*WharfForceSize
option. This locks Wharf to the standard 64x64 size.
A menu is defined between the keywords
Popup "name"
and EndPopup
. A menu option can execute a program, pop up another menu, do internal afterstep commands or do absolutely nothing. The relevent codes for doing this are as follows:
- Title
Title "My menu"
Exec
Exec "Calculator" /usr/local/bin/xcalc
Popup
Popup "Gamesmenu" games
Function
Function "Move" move-and-raise
Raise
Raise "Raise window to top"
Lower
Lower "Lower window"
Iconify
Iconify "Minimize"
Stick
Stick "Stick window"
PutOnTop
Raise
this raises a window to the top and keeps it there.PutOnTop "Float on top"
Maximize
Maximize "Maximize window"
(will maximize to full screen)Maximize "Horisontal maximize" 100 0
(will maximize fully horisontal, and leave vertical untouched) Close
Close "Close window"
Destroy
Close
doesn't work.Destroy "Terminate window"
Refresh
Refresh "Refresh screen"
Restart
Exec
.Restart "Restart Afterstep" /usr/local/bin/afterstep
Restart "Change to Fvwm" /usr/local/bin/fvwm
Quit
Quit "Exit afterstep."
Nop
Nop "Just a comment"
This is a typical use of menus. This is one way of defining a standard popup for your left mouse button in the root window. It has a submenu for exiting/restarting and a couple of lines to start applications.
Popup "quit" Title "Quit" Restart "Restart" /users/frankrl/pub/bin/afterstep Quit "QUIT" Nop "Ah, what the hell." EndPopup Popup "Menu" Title "Main menu" Exec "Coffein Break" xlock Exec "Terminator X" /store/bin/xterm Popup "Quit" quit EndPopup
Using bitmaps instead of shading lets YOU choose how many colors you want to use. (okay, you can set that on the shadings too but they don't look good with less than 16 colors each.) Fiddle around a little with gimp, xpaint or some other program to draw your own graphics, with as few colors as possible. Make sure your .xpm-file only includes these colors. Do this by checking the .xpm-file in <insert your favourite texteditor here>. My wharfbackground has it's color definition looking like this:
/* XPM */ static char * wharfback [] = { /* width height ncolors cpp [x_hot y_hot] */ "64 64 6 1 -1 -1", /* colors */ " s iconColor1 m black c black", ". s iconColor7 m white c #00c000", "X s iconColor4 m white c #008000", "o s iconColor5 m black c #004000", "O s iconGray8 m black c #002000", "+ s iconColor3 m black c #006000",
You can see from this that I use only 6 colors (all greens) for my wharf-background.
The icons that come with afterstep are meant for 24bpp displays. They look very nice, but unless you have a 24bpp display, you will run out of colors; Fast! Use the "convert" program if you have that available (It is part of imagemagick I think).
convert -colors 8 file.xpm > file2.xpm
should do the trick. Manually edit your icons after that to try to use the same colors in more of the icons.
Using flat color instead of shading on titlebars, reduces the colors too. See the titlebar section on how to do this. You can also use a bitmap here. If you do, try to reduce the number of colors in the bitmap as far as you can using convert and manually editing the .xpm.
This tip is useful only for those of you who run netscape. Invoke netscape with
netscape -install
to give netscape a private colormap. Thus reducing the number of colors stolen by netscape to a bare minimum. There is often options to do this in other programs as well, check the man-pages.
If you still feel you need that extra 2 or three colors, try to manually edit the xpm's you use. The xpm-format is simple and can be edited using 'your favourite texteditor'. This way you can also open several icons that use the somewhat same colors and edit the color-settings so that they use the exact same color.
Background images take a lot of colors if you're not careful selecting them. Try to use only a flat color instead. If you prefer having a backdrop, select one with few colors or convert it to fewer colors. (Extra hint: xearth with only 12 colors actually looks quite good)