1/*
2 * Some generic macros for WindowMaker configuration files
3 *
4 */
5
6#ifndef WMMACROS_
7#define WMMACROS_
8
9#define HAVE_XLESS
10
11/*
12 * WS_BACK - sets the root background texture to VAL
13 */
14#define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack
15
16/*
17 * CLEARROOT - set the root background to nothing
18 */
19#define CLEARROOT xsetroot
20
21
22/*
23 *
24 * MANUAL_SEARCH(ITEM) - search manual page for ITEM
25 *
26 * You might need to change this according to what's the exit status of your
27 * man(1). This is for the one that comes with Linux (RedHat)
28 */
29#ifdef HAVE_XLESS
30#define MANUAL_SEARCH(ITEM)          \
31        if ( man ITEM > /dev/null ); then \
32		man ITEM | xless;\
33	else \
34                xmessage -center -title "Manual Browser" \
35                        Sorry, but there is no manual page \
36                        entry for ITEM...;\
37        fi
38#else
39#define MANUAL_SEARCH(ITEM)          \
40        if ( man ITEM > /dev/null ); then \
41		xterm -e man ITEM; \
42	else \
43                xmessage -center -title "Manual Browser" \
44                        Sorry, but there is no manual page \
45                        entry for ITEM...;\
46        fi
47#endif
48
49
50/*
51 * Paths to system configuration directories
52 */
53#define THEMES_DIR		#wmdatadir#/Themes
54#define STYLES_DIR		#wmdatadir#/Styles
55#define ICON_SETS_DIR		#wmdatadir#/IconSets
56#define BACKGROUNDS_DIR		#wmdatadir#/Backgrounds
57
58#define USER_THEMES_DIR         #usergnusteppath#/Library/WindowMaker/Themes
59#define USER_STYLES_DIR         #usergnusteppath#/Library/WindowMaker/Styles
60#define USER_ICON_SETS_DIR      #usergnusteppath#/Library/WindowMaker/IconSets
61#define USER_BACKGROUNDS_DIR    #usergnusteppath#/Library/WindowMaker/Backgrounds
62
63#define StaticGray		0
64#define GrayScale		1
65#define StaticColor		2
66#define PseudoColor		3
67#define TrueColor		4
68#define DirectColor		5
69
70#endif
71