//
// WindowMaker configuration
// 
//
//  This file is used to configure window attributes and other look&feel
// settings.
//
// Case does not matter, except for file names, of course.


#include <wmmacros>


// define STRICTNEXT if you want everything to be as much as possible
// like NEXTSTEP(tm)
// #define STRICTNEXT

// Define STYLEFILE to a file name you want to use for setting 
// the style stuff. The file must be in the same directory as
// this preference file.
#if (DEPTH>=8)
#define STYLEFILE <default.style>
#endif


/////////////////////////////////////////////////////////////////////////////
[Preferences]
/////////////////////////////////////////////////////////////////////////////
//
// Paths to look for pixmaps. Multiple paths may be separated by a :
// and each path must end with a /
//PixmapPath=	~/gnustep/Library/WindowMaker/Pixmaps/

PixmapPath=/usr/lib/X11/icons/:/usr/local/GNUstep/Library/WindowMaker/Pixmaps:\
  /usr/lib/X11/free_icons/:~/pixmaps/:~/gnustep/Library/WindowMaker/Pixmaps/:\
  /usr/X11R6/lib/X11/WindowMaker/pixmaps/:/usr/GNUstep/Library/WindowMaker/Pixmaps/

#if VISUAL!=TrueColor && VISUAL!=PseudoColor
Dithering=	no
#else
//
// Whether dithering should be enabled (recommended for 8bit displays)
// doesn't make much difference for 16bpp or better
Dithering=	no

//
// colormap for dithering pixmaps in PseudoColor (8bit) displays. 
// ColormapSize=n
// where n is the number of colors to use in each channel (red, green or blue)
// it must be > 2 and < 8
// ex:
// ColormapSize=4
// 	will produce a colormap with 4*4*4=64 colors

ColormapSize=4
#endif
//
// Align submenus vertically with their parents
#ifdef STRICTNEXT
AlignSubmenus=	yes
#else
AlignSubmenus=	no
#endif

//
// The type of display to show during interactive window resizes
// can be: 
// center - display a window with widthxheight in the center of the screen
// corner - same as center, but the window is placed at the top-left 
//		corner of the screen
// floating - displays the window at the center of the window being resized
// line - shows a horizontal line and a vertical one at the window sides, 
// 	displaying the current size in the middle of them (like in a 
//	technical drawing)

ResizeDisplay= 	line

//
// The type of display to show during interactive window moves
// can be:  center, corner, floating
MoveDisplay= 	center

//
// The type of keyboard input focus mode:
// Manual or ClickToFocus - the focus goes to the last window you've clicked
// Auto or FocusFollowsMouse - the focus goes to the window the mouse pointer
//			is over
// SemiAuto, Sloppy or SloppyFocus - same as the above, but windows don't lose 
//			focus when you move the pointer over the root window
FocusMode=	Sloppy

// 
// Raises the focused window on non-click to focus modes, after this
// many tenths of second. 0 disables this feature.
RaiseDelay=	0
  
//
// For PseudoColor, if no the colormap will be set to the window
// with the input focus.
ColormapFollowsMouse=	yes

//
// Make the application not to process the click used to focus an
// unfocused window
IgnoreFocusClick=	no

//
// The window placement mode. Current suported modes are:
// manual - interactively lay down new windows
// cascade - Windoze style cascading of new windows
// smart - automagically places windows where they don't overlap
//         or leave the edge of the screen. falls back to cascade if it
//         fails
// random - randomly places the window so that it doesn't leave the screen
// semirandom - same as random, mapped to bellcurve though so it stays
//              more to the middle, though.
WindowPlacement= 	smart

//
// Transient windows should be always above their owners
OnTopTransients= 	yes

//
// Start with the root menu opened at the specified position
//RootMenuPosition=	10, 10


//
// Some apps like Netscape have problems with redrawing if
// a window with SaveUnders (e.g.: a menu) is laying over them. 
// Turning UseSaveUnders off may fix this, but will make things
// a little slower and add some flickering.
UseSaveUnders=		no


//
// Move the whole window when doing window moves, instead of just a 
// frame.
OpaqueMove=		no


/////////////////////////////////////////////////////////////////////////////  
[Style]
/////////////////////////////////////////////////////////////////////////////
//
// background pixmap for icons. XPM format only and they *must* be 64x64
// pixels of size

IconBackPixmap=	tile.xpm
//IconDotsPixmap= dots.xpm
LogoPixmap= GNUstep.xpm

//IconBackPixmap= /usr/local/GNUstep/Apps/WindowMaker.app/tile.xpm
//IconDotsPixmap= /usr/local/GNUstep/Apps/WindowMaker.app/dots.xpm

#ifndef STRICTNEXT
//
// Titlebar text justification: left, center or right
TitleTextJustify= 	center

#ifdef STYLEFILE
#include STYLEFILE
//
// Fonts
#if 0
WindowTitleFont= -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*

MenuTitleFont= -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*

MenuTextFont= -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

IconTitleFont= -adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*

// resize/move geometry display window
DisplayFont= -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*

DialogFont= -adobe-helvetica-medium-r-*-*-20-*-*-*-*-*-*-*

DialogMessageFont= -adobe-helvetica-medium-r-*-*-13-*-*-*-*-*-*-*
#endif

#else
// Colors

// Background color for focused window titlebars
FTitleBackColor= 	black
  
// Text color for focused window titlebars
FTitleForeColor= 	white

// Background color for window titlebar of the window who
// lost focus for a panel window
PTitleBackColor= 	#616161
  
// Text color for window titlebar of the window who
// lost focus for a panel window
PTitleForeColor= 	white

// Background color for unfocused window titlebars
UTitleBackColor=	#b6b6b6
  
// Text color for unfocused window titlebars
UTitleForeColor=	black
  
// Background color for menu titlebars
MenuTitleBackColor=	black
  
// Text color for menu titlebars
MenuTitleForeColor=	white
  
// Disable menu entry color
MenuTextDisabledColor=	gray40
  
// Menu entry background color
MenuTextBackColor=	#b6b6b6
  
// Menu entry color
MenuTextForeColor=	black

// Textures
  
// Texture types can be: 
// solid for normal solid color
// hgradient for a Micro$oft Office style gradient
// vgradient for a horizon style vertical gradient
// dgradient for a diagonal (nw to se) gradient
#if (DEPTH>8)  
// Texture type for the focused titlebar
FTitleTexture=		hgradient
// Texture type for the previously focused titlebar before panel window
PTitleTexture=		hgradient
// Texture type for unfocused titlebars
UTitleTexture=		hgradient
// Texture type for menu titlebars
MenuTitleTexture=	dgradient
// Texture type for menu entries
MenuTextTexture=	hgradient
#endif // DEPTH>8

// Gradient colors are defined as from_color, to_color
// where from_color and to_color are any colors recognized by X
// (run showrgb to get a list of valid color names)

// Gradient colors for focused titlebar
FTitleGradient=		#210005, #900030

// Gradient colors for menu titlebar  
MenuTitleGradient=	#900030, #210005 

// Gradient colors for the previously focused titlebar before panel window
PTitleGradient= 	#303231, #808281

// Gradient colors for unfocused titlebar
UTitleGradient=		#707271, #a0a2a1

// Gradient colors for menu entries
MenuTextGradient=	#d0d0d0, #808080 

#endif /* !STYLEFILE */
#endif /* !STRICTNEXT */

/////////////////////////////////////////////////////////////////////////////
[Shortcuts]
/////////////////////////////////////////////////////////////////////////////
#include "shortcuts"

/////////////////////////////////////////////////////////////////////////////
[Attributes]
/////////////////////////////////////////////////////////////////////////////
// Syntax for global window attribute defaults is:
//
// *.<option>: <value>
//
// And for specific windows is:
//
// <identifier>.<option>: <value>
//
// where:
// <option> is one of the valid options
// <value> may be a <boolean> value or a <filename>
// <filename> may not contain any blank characters in it
// <boolean> true, yes, 1 or false, no, 0
// <identifier> can be a <class>, <instance>, <name> or <instance>.<class>
// <class> is a window class (the 2nd string of WM_CLASS when you run xprop
//					 on a window)
// <instance> is a instance name (the 1st string of WM_CLASS)
// <name> is the name of a window (which appears on the titlebar)
// 
//
// resources are chosen in this order:
// global - lowest precedence
// class
// instance
// name - greatest precedence
//
// Global Resources for windows

// icons should be located in of the paths in PixmapPath
*.icon: defaultAppIcon.xpm

// text to display in the icon
// *.iconText: x,y,text

// if the window should have a titlebar
*.titlebar: true
// if the window can be miniaturized (iconified)
*.miniaturizable: true
// if the window should have a close button
*.closable: true
// if the window can be resized
*.resizable: true
// if the window can be shaded (miniaturize to it''s titlebar)
*.shadeable: true
// do not show the window in the window list
*.skipWindowList: false
// if the window should be placed on top of normal windows
*.floating: false
// if the window should be present at all workspaces
*.omnipresent: false
// if the window should be given keyboard input focus
*.focusable: true
// if WindowMaker should not intercept keyboard shortcuts when the window
// is focused
*.controlKeyboard: false
// if WindowMaker should not intercept mouse events when the window
// is focused
*.controlMouse: false
//
// to not hide the window when doing a HideOthers
*.ignoreHideOthers: false

// do not make application icon
*.noAppIcon: false

// options for application windows
#include "app_options"
