File: wmmacros.in

package info (click to toggle)
wmaker 0.96.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,332 kB
  • sloc: ansic: 99,482; sh: 7,068; perl: 3,423; makefile: 1,647; lisp: 219; python: 34
file content (70 lines) | stat: -rw-r--r-- 1,824 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Some generic macros for WindowMaker configuration files
 *
 */

#ifndef WMMACROS_
#define WMMACROS_

#define HAVE_XLESS

/*
 * 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


/*
 *
 * MANUAL_SEARCH(ITEM) - search manual page for ITEM
 *
 * You might need to change this according to what's the exit status of your
 * man(1). This is for the one that comes with Linux (RedHat)
 */
#ifdef HAVE_XLESS
#define MANUAL_SEARCH(ITEM)          \
        if ( man ITEM > /dev/null ); then \
		man ITEM | xless;\
	else \
                xmessage -center -title "Manual Browser" \
                        Sorry, but there is no manual page \
                        entry for ITEM...;\
        fi
#else
#define MANUAL_SEARCH(ITEM)          \
        if ( man ITEM > /dev/null ); then \
		xterm -e man ITEM; \
	else \
                xmessage -center -title "Manual Browser" \
                        Sorry, but there is no manual page \
                        entry for ITEM...;\
        fi
#endif


/*
 * Paths to system configuration directories
 */
#define THEMES_DIR		#wmdatadir#/Themes
#define STYLES_DIR		#wmdatadir#/Styles
#define ICON_SETS_DIR		#wmdatadir#/IconSets
#define BACKGROUNDS_DIR		#wmdatadir#/Backgrounds

#define USER_THEMES_DIR         #usergnusteppath#/Library/WindowMaker/Themes
#define USER_STYLES_DIR         #usergnusteppath#/Library/WindowMaker/Styles
#define USER_ICON_SETS_DIR      #usergnusteppath#/Library/WindowMaker/IconSets
#define USER_BACKGROUNDS_DIR    #usergnusteppath#/Library/WindowMaker/Backgrounds

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

#endif