menu: New macro #usergnusteppath# for user GNUstep directory
[wmaker-crm.git] / WindowMaker / wmmacros.in
blob8504def3ac7213bcc276d3ea5f7634cd1c3de54d
1 /*
2  * Some generic macros for WindowMaker configuration files
3  * 
4  */
6 #ifndef WMMACROS_
7 #define WMMACROS_
9 #define HAVE_XLESS
12  * WS_BACK - sets the root background texture to VAL
13  */
14 #define WS_BACK EXEC wdwrite WindowMaker WorkspaceBack 
17  * CLEARROOT - set the root background to nothing
18  */
19 #define CLEARROOT xsetroot
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
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
59 #define StaticGray              0
60 #define GrayScale               1
61 #define StaticColor             2
62 #define PseudoColor             3
63 #define TrueColor               4
64 #define DirectColor             5
66 #endif