/*
 * Some generic macros for WindowMaker configuration files
 * 
 */

#ifndef WMMACROS_
#define WMMACROS_

#undef HAVE_XLESS

#ifndef SAVEWS
#define SAVEWS savews
#endif

#ifndef WORKSPACE_STATE_SCRIPT
#define WORKSPACE_STATE_SCRIPT $HOME/GNUstep/Library/WindowMaker/.workspace_state
#endif

#ifndef TERM
#define TERM(NAME,TITLE,COMMAND) rxvt -name NAME -title #TITLE -e COMMAND
#endif

#ifndef XMESSAGE
#define XMESSAGE(TITLE,MESSAGE) xmessage -center -title #TITLE #MESSAGE
#endif

/*
 * WS_BACK - sets the root background texture to VAL
 */
#define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack 

/*
 * CLEARROOT - set the root background to nothing
 */
#define CLEARROOT xsetroot


/*
 * SETSTYLE FILE - loads a style file 
 */
#define SETSTYLE EXEC cd $HOME/GNUstep/Library/WindowMaker/Style; setstyle 


/*
 * SAVE_WORKSPACE - saves the current workspace state in the 
 * 	~/GNUstep/Library/WindowMaker/.workspace_state file.
 */
#define SAVE_WORKSPACE	(SAVEWS > WORKSPACE_STATE_SCRIPT)



#define StaticGray		0
#define GrayScale		1
#define StaticColor		2
#define PseudoColor		3
#define TrueColor		4
#define DirectColor		5

#endif
