Avoid icon change to default on winspector save
[wmaker-crm.git] / WindowMaker / wmmacros
blob9261690e82ed9045d5f2e5ad92990f4549dfab81
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  * SETSTYLE FILE - loads a style file 
24  */
25 #define SETSTYLE EXEC cd $HOME/GNUstep/Library/WindowMaker/Styles; setstyle 
29  * 
30  * MANUAL_SEARCH(ITEM) - search manual page for ITEM
31  * 
32  * You might need to change this according to what's the exit status of your 
33  * man(1). This is for the one that comes with Linux (RedHat)
34  */
35 #ifdef HAVE_XLESS
36 #define MANUAL_SEARCH(ITEM)          \
37         if ( man ITEM > /dev/null ); then \
38                 man ITEM | xless;\
39         else \
40                 xmessage -center -title "Manual Browser" \
41                         Sorry, but there is no manual page \
42                         entry for ITEM...;\
43         fi
44 #else
45 #define MANUAL_SEARCH(ITEM)          \
46         if ( man ITEM > /dev/null ); then \
47                 xterm -e man ITEM; \
48         else \
49                 xmessage -center -title "Manual Browser" \
50                         Sorry, but there is no manual page \
51                         entry for ITEM...;\
52         fi
53 #endif
57  * Paths to system configuration directories
58  */
59 #define THEMES_DIR              #wmdatadir#/Themes
60 #define STYLES_DIR              #wmdatadir#/Styles
61 #define ICON_SETS_DIR           #wmdatadir#/IconSets
62 #define BACKGROUNDS_DIR         #wmdatadir#/Backgrounds
65 #define StaticGray              0
66 #define GrayScale               1
67 #define StaticColor             2
68 #define PseudoColor             3
69 #define TrueColor               4
70 #define DirectColor             5
72 #endif