This update includes the 0.20.3pre3 code
[wmaker-crm.git] / src / wconfig.h
blobbff15b0765026838cfbd4ebcd777e4252d914b23
1 /*
2 * wconfig.h- default configuration and definitions + compile time options
3 *
4 * WindowMaker window manager
5 *
6 * Copyright (c) 1997 Alfredo K. Kojima
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef WMCONFIG_H_
24 #define WMCONFIG_H_
26 #include "config.h"
28 /*** Change it (wconfig.h) *after* you ran configure ***/
31 *--------------------------------------------------------------------
32 * Feature Selection
34 * Comment out the following #defines if you want to
35 * disable a feature.
36 * Also check the features you can enable through configure.
37 *--------------------------------------------------------------------
40 /* undefine ANIMATIONS if you don't want animations for iconification,
41 * shading, icon arrangement etc. */
42 #define ANIMATIONS
46 * undefine USECPP if you don't want your config files to be preprocessed
47 * by cpp
49 #define USECPP
51 /* #define CPP_PATH /lib/cpp */
54 * Internationalization (I18N) support
55 * Multi-byte (japanese, korean, chinese etc.) character support
56 * set by configure
58 #undef I18N_MB
62 * sound support
64 #define WMSOUND
68 * support for OffiX DND drag and drop in the Dock
70 #define OFFIX_DND
73 * support for XDE drang and drop in the Dock. still in beta
75 #undef XDE_DND
79 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
80 * information, like window titles that are not fully visible.
82 #define BALLOON_TEXT
85 * If balloons should be shaped or be simple rectangles.
86 * The X server must support the shape extensions and it's support
87 * must be enabled (default).
89 #define SHAPED_BALLOON
93 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
94 * automatically started when WindowMaker crashes. The X session will die
95 * in some cases if wmaker crashes and autorestart is disabled.
97 #undef NO_EMERGENCY_AUTORESTART
99 /*
100 * The window manager that is autorestarted
102 #define FALLBACK_WINDOWMANAGER "blackbox"
105 /* Define if you want MWM hint support (and consequently GNOME). */
106 #define MWM_HINTS
109 /* Define if you have a 5 button mouse and want to use button 4
110 * (in the root window) for switching to the previous workspace
111 * and 5 for the next */
112 #undef MOUSE_WS_SWITCH
115 * Turn on a hack to make mouse and keyboard actions work even if
116 * the NumLock or ScrollLock modifiers are turned on. They might
117 * inflict a performance/memory penalty.
119 * If you're an X expert (knows the implementation of XGrabKey() in X)
120 * and knows that the penalty is small (or not), please tell me.
122 #define NUMLOCK_HACK
125 * define REDUCE_APPICONS if you want apps with the same WM_INSTANCE &&
126 * WM_CLASS to share an appicon
128 #undef REDUCE_APPICONS
132 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
133 * for applications that change their shape frequently (like xdaliclock
134 * -shape), removing flickering. If wmaker and your display are on
135 * different machines and the network connection is slow, it is not
136 * recommended.
138 #undef OPTIMIZE_SHAPE
140 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
141 * the synthetic ConfigureNotify event to windows while moving at every
142 * single movement. Default is to send a synthetic ConfigureNotify event
143 * only at the end of window moving, which improves performance.
145 #undef CONFIGURE_WINDOW_WHILE_MOVING
149 *..........................................................................
150 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
151 * They will only add unneeded bloat.
152 *..........................................................................
156 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
157 * NextStep 3.x ??, instead of the default Openstep look. NEXTSTEP 3.3
158 * also does not have these shadows.
160 #undef SHADOW_RESIZEBAR
164 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
165 * to be a progressive disaparison animation.
167 #undef DEMATERIALIZE_ICON
170 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
171 * explosion animation.
173 #undef ICON_KABOOM_EXTRA
176 * #undef if you dont want the window creation animation when superfluous
177 * is enabled.
179 #undef WINDOW_BIRTH_ZOOM
183 *--------------------------------------------------------------------
184 * Default Configuration
186 * Some of the following options can be configured in
187 * the preference files, but if for some reason, they can't
188 * be used, these defaults will be.
189 * There are also some options that can only be configured here,
190 * at compile time.
191 *--------------------------------------------------------------------
194 /* list of paths to look for the config files, searched in order
195 * of appearance */
196 #define DEF_CONFIG_PATHS \
197 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
199 #define DEF_MENU_FILE "menu"
201 /* name of the script to execute at startup */
202 #define DEF_INIT_SCRIPT "autostart"
204 #define DEF_EXIT_SCRIPT "exitscript"
206 #define DEFAULTS_DIR "Defaults"
209 /* pixmap path */
210 #define DEF_PIXMAP_PATHS \
211 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
213 /* icon path */
214 #define DEF_ICON_PATHS \
215 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
218 /* window title to use for untitled windows */
219 #define DEF_WINDOW_TITLE "Untitled"
221 /* default style */
222 #define DEF_FRAME_COLOR "white"
225 #ifdef I18N_MB
226 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
227 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
228 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
229 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
230 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
231 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
232 #else /* I18N_MB */
233 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
234 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
235 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
236 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
237 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
238 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
239 #endif /* !I18N_MB */
241 #define HELVETICA10_FONT "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
243 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
245 #define DEF_XPM_CLOSENESS 40000
247 /* default position of application menus */
248 #define DEF_APPMENU_X 10
249 #define DEF_APPMENU_Y 10
252 /* Window level where icons reside */
253 #define NORMAL_ICON_LEVEL WMNormalLevel
255 /* do not divide main menu and submenu in different tiers,
256 * opposed to OpenStep */
257 #define SINGLE_MENULEVEL
259 /* max. time to spend doing animations in seconds. If the animation
260 * time exceeds this value, it is immediately finished. Usefull for
261 * moments of high-load.
263 #define MAX_ANIMATION_TIME 1
265 /* Zoom animation */
266 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
267 #define MINIATURIZE_ANIMATION_STEPS_Z 12
268 #define MINIATURIZE_ANIMATION_DELAY_Z 500
269 /* Twist animation */
270 #define MINIATURIZE_ANIMATION_FRAMES_T 12
271 #define MINIATURIZE_ANIMATION_STEPS_T 16
272 #define MINIATURIZE_ANIMATION_DELAY_T 1000
273 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
274 /* Flip animation */
275 #define MINIATURIZE_ANIMATION_FRAMES_F 12
276 #define MINIATURIZE_ANIMATION_STEPS_F 16
277 #define MINIATURIZE_ANIMATION_DELAY_F 1000
278 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
281 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
283 /* delay before balloon is showed */
284 #define BALLOON_DELAY 1000
286 /* delay for menu item selection hysteresis */
287 #define MENU_SELECT_DELAY 300
289 /* animation speed constants */
291 /* icon slide */
292 #define ICON_SLIDE_SLOWDOWN_UF 20
293 #define ICON_SLIDE_DELAY_UF 0
294 #define ICON_SLIDE_STEPS_UF 15
296 #define ICON_SLIDE_SLOWDOWN_F 30
297 #define ICON_SLIDE_DELAY_F 0
298 #define ICON_SLIDE_STEPS_F 10
300 #define ICON_SLIDE_SLOWDOWN_M 40
301 #define ICON_SLIDE_DELAY_M 0
302 #define ICON_SLIDE_STEPS_M 5
304 #define ICON_SLIDE_SLOWDOWN_S 50
305 #define ICON_SLIDE_DELAY_S 0
306 #define ICON_SLIDE_STEPS_S 3
308 #define ICON_SLIDE_SLOWDOWN_U 50
309 #define ICON_SLIDE_DELAY_U 3
310 #define ICON_SLIDE_STEPS_U 3
312 /* menu scrolling */
313 #define MENU_SCROLL_STEPS_UF 14
314 #define MENU_SCROLL_DELAY_UF 0
316 #define MENU_SCROLL_STEPS_F 10
317 #define MENU_SCROLL_DELAY_F 5
319 #define MENU_SCROLL_STEPS_M 6
320 #define MENU_SCROLL_DELAY_M 5
322 #define MENU_SCROLL_STEPS_S 4
323 #define MENU_SCROLL_DELAY_S 6
325 #define MENU_SCROLL_STEPS_U 1
326 #define MENU_SCROLL_DELAY_U 8
328 /* shade animation */
329 #define SHADE_STEPS_UF 5
330 #define SHADE_DELAY_UF 0
332 #define SHADE_STEPS_F 10
333 #define SHADE_DELAY_F 0
335 #define SHADE_STEPS_M 15
336 #define SHADE_DELAY_M 0
338 #define SHADE_STEPS_S 30
339 #define SHADE_DELAY_S 0
341 #define SHADE_STEPS_U 20
342 #define SHADE_DELAY_U 10
344 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
345 #define WINDOW_BIRTH_STEPS 20
347 /* number of steps for icon dematerialization. */
348 #define DEMATERIALIZE_STEPS 16
350 /* Delay when cycling colors of selected icons. */
351 #define COLOR_CYCLE_DELAY 200
353 /* size of the pieces in the undocked icon explosion */
354 #define ICON_KABOOM_PIECE_SIZE 4
357 /* Position increment for smart placement. >= 1 raise these values if it's
358 * too slow for you */
359 #define PLACETEST_HSTEP 8
360 #define PLACETEST_VSTEP 8
363 #define DOCK_EXTRA_SPACE 1
365 /* Vicinity in which an icon can be attached to the clip */
366 #define CLIP_ATTACH_VICINITY 1
368 /* The amount of space (in multiples of the icon size)
369 * a docked icon must be dragged out to detach it */
370 #define DOCK_DETTACH_THRESHOLD 3
372 /* Delay (in ms) after which the clip will autocollapse when leaved */
373 #define AUTO_COLLAPSE_DELAY 1000
376 /* Max. number of icons the clip can have */
377 #define CLIP_MAX_ICONS 32
379 /* blink interval when invoking a menu item */
380 #define MENU_BLINK_DELAY 60000
381 #define MENU_BLINK_COUNT 2
383 #define CURSOR_BLINK_RATE 300
385 #define MOVE_THRESHOLD 3 /* how many pixels to move before dragging windows */
387 #define HRESIZE_THRESHOLD 3
389 #define MAX_WORKSPACENAME_WIDTH 16
390 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
391 * window list */
393 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
394 * changes in the config files */
396 /* if your keyboard don't have arrow keys */
397 #undef ARROWLESS_KBD
400 /* don't put titles in miniwindows */
401 #undef NO_MINIWINDOW_TITLES
404 * disable/enable workspace indicator in the dock
407 #undef WS_INDICATOR
411 *----------------------------------------------------------------------
412 * You should not modify the following values, unless you know
413 * what you're doing.
414 *----------------------------------------------------------------------
419 #define WM_PI 3.14159265358979323846
421 #define FRAME_BORDER_COLOR "black"
423 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
425 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
426 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
427 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
429 #define TITLEBAR_EXTRA_HEIGHT 8
431 #define MENU_INDICATOR_SPACE 12
433 /* minimum size for windows */
434 #define MIN_WINDOW_SIZE 5
436 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
438 #define ICON_WIDTH 64 /* size of the icon window */
439 #define ICON_HEIGHT 64
440 #define ICON_BORDER_WIDTH 2
442 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
443 #define MAX_ICON_HEIGHT 48
445 #define MAX_WORKSPACES 100
447 #define MAX_MENU_TEXT_LENGTH 512
449 #define MAX_RESTART_ARGS 16
451 #define MAX_COMMAND_SIZE 1024
453 #define MAX_DEAD_PROCESSES 128
456 #define MAXLINE 1024
459 #ifdef _MAX_PATH
460 # define DEFAULT_PATH_MAX _MAX_PATH
461 #else
462 # define DEFAULT_PATH_MAX 512
463 #endif
466 #define DEBUG0
468 /* some rules */
470 #ifndef SHAPE
471 #undef SHAPED_BALLOON
472 #endif
475 #ifdef XKB_MODELOCK
476 #define KEEP_XKB_LOCK_STATUS
477 #endif
479 #if HAVE_LIBINTL_H && I18N
480 # include <libintl.h>
481 # define _(text) gettext(text)
482 #else
483 # define _(text) (text)
484 #endif
487 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
488 # define INLINE inline
489 #else
490 # define INLINE
491 #endif
493 #endif /* WMCONFIG_H_ */