Update for 0.51.0
[wmaker-crm.git] / src / wconfig.h
blobf1e0d8984f82f46769e6df0e90c6271f5a2447ba
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 * support for OffiX DND drag and drop in the Dock
56 #define OFFIX_DND
59 * support for XDE drang and drop in the Dock. Experimental
61 #undef XDE_DND
64 * support for Motif window manager (mwm) window hints
66 #define MWM_HINTS
70 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
71 * information, like window titles that are not fully visible.
73 #define BALLOON_TEXT
76 * If balloons should be shaped or be simple rectangles.
77 * The X server must support the shape extensions and it's support
78 * must be enabled (default).
80 #define SHAPED_BALLOON
84 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
85 * automatically started when WindowMaker crashes. The X session will die
86 * in some cases if wmaker crashes and autorestart is disabled.
88 #undef NO_EMERGENCY_AUTORESTART
90 /*
91 * The window manager that is autorestarted
93 #define FALLBACK_WINDOWMANAGER "blackbox"
96 /* Define if you have a 5 button mouse and want to use button 4
97 * (in the root window) for switching to the previous workspace
98 * and 5 for the next. This will not work if you enable
99 * DisableWSMouseActions or compile wmaker with --enable-lite */
100 #undef MOUSE_WS_SWITCH
103 * Turn on a hack to make mouse and keyboard actions work even if
104 * the NumLock or ScrollLock modifiers are turned on. They might
105 * inflict a performance/memory penalty.
107 * If you're an X expert (knows the implementation of XGrabKey() in X)
108 * and knows that the penalty is small (or not), please tell me.
110 #define NUMLOCK_HACK
115 * define EXTEND_WINDOWSHORTCUT if you have a great memory and want 10
116 * window shortcuts instead of 4. You will also need to define the
117 * same thing in WPrefs.app/WPrefs.h to get the corresponding entries
118 * in WPrefs.
120 #undef EXTEND_WINDOWSHORTCUT
125 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
126 * for applications that change their shape frequently (like xdaliclock
127 * -shape), removing flickering. If wmaker and your display are on
128 * different machines and the network connection is slow, it is not
129 * recommended.
131 #undef OPTIMIZE_SHAPE
133 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
134 * the synthetic ConfigureNotify event to windows while moving at every
135 * single movement. Default is to send a synthetic ConfigureNotify event
136 * only at the end of window moving, which improves performance.
138 #undef CONFIGURE_WINDOW_WHILE_MOVING
142 * disable/enable workspace indicator in the dock
145 #undef WS_INDICATOR
149 * Ignores the PPosition hint from clients. This is needed for some
150 * programs that have buggy implementations of such hint and place
151 * themselves in strange locations.
153 #undef IGNORE_NOPPOSITION
156 #define SILLYNESS
159 *..........................................................................
160 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
161 * They will only add unneeded bloat.
162 *..........................................................................
166 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
167 * NextStep 3.x ??, instead of the default Openstep look. NEXTSTEP 3.3
168 * also does not have these shadows.
170 #undef SHADOW_RESIZEBAR
174 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
175 * to be a progressive disaparison animation.
177 #undef DEMATERIALIZE_ICON
180 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
181 * explosion animation.
183 #undef ICON_KABOOM_EXTRA
186 * #undef if you dont want the window creation animation when superfluous
187 * is enabled.
189 #undef WINDOW_BIRTH_ZOOM
193 *--------------------------------------------------------------------
194 * Default Configuration
196 * Some of the following options can be configured in
197 * the preference files, but if for some reason, they can't
198 * be used, these defaults will be.
199 * There are also some options that can only be configured here,
200 * at compile time.
201 *--------------------------------------------------------------------
204 /* list of paths to look for the config files, searched in order
205 * of appearance */
206 #define DEF_CONFIG_PATHS \
207 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
209 #define DEF_MENU_FILE "menu"
211 /* name of the script to execute at startup */
212 #define DEF_INIT_SCRIPT "autostart"
214 #define DEF_EXIT_SCRIPT "exitscript"
216 #define DEFAULTS_DIR "Defaults"
218 /* the file of the system wide submenu to be forced into the main menu */
219 /* remove the comments if you want it */
221 #define GLOBAL_SUBMENU_FILE PKGDATADIR"/GlobalMenu"
224 /* pixmap path */
225 #define DEF_PIXMAP_PATHS \
226 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
228 /* icon path */
229 #define DEF_ICON_PATHS \
230 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
233 /* window title to use for untitled windows */
234 #define DEF_WINDOW_TITLE "Untitled"
236 /* default style */
237 #define DEF_FRAME_COLOR "white"
240 #ifdef I18N_MB
241 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
242 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
243 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
244 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
245 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
246 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
247 #else /* I18N_MB */
248 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
249 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
250 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
251 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
252 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
253 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
254 #endif /* !I18N_MB */
256 #define HELVETICA10_FONT "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
258 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
260 #define DEF_XPM_CLOSENESS 40000
262 /* default position of application menus */
263 #define DEF_APPMENU_X 10
264 #define DEF_APPMENU_Y 10
266 /* number of window shortcuts */
267 #ifdef EXTEND_WINDOWSHORTCUT
268 # define MAX_WINDOW_SHORTCUTS 10
269 #else
270 # define MAX_WINDOW_SHORTCUTS 4
271 #endif
273 /* Window level where icons reside */
274 #define NORMAL_ICON_LEVEL WMNormalLevel
276 /* do not divide main menu and submenu in different tiers,
277 * opposed to OpenStep */
278 #define SINGLE_MENULEVEL
280 /* max. time to spend doing animations in seconds. If the animation
281 * time exceeds this value, it is immediately finished. Usefull for
282 * moments of high-load.
284 #define MAX_ANIMATION_TIME 1
286 /* Zoom animation */
287 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
288 #define MINIATURIZE_ANIMATION_STEPS_Z 12
289 #define MINIATURIZE_ANIMATION_DELAY_Z 500
290 /* Twist animation */
291 #define MINIATURIZE_ANIMATION_FRAMES_T 12
292 #define MINIATURIZE_ANIMATION_STEPS_T 16
293 #define MINIATURIZE_ANIMATION_DELAY_T 1000
294 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
295 /* Flip animation */
296 #define MINIATURIZE_ANIMATION_FRAMES_F 12
297 #define MINIATURIZE_ANIMATION_STEPS_F 16
298 #define MINIATURIZE_ANIMATION_DELAY_F 1000
299 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
302 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
304 /* delay before balloon is showed */
305 #define BALLOON_DELAY 1000
307 /* delay for menu item selection hysteresis */
308 #define MENU_SELECT_DELAY 200
310 /* animation speed constants */
312 /* icon slide */
313 #define ICON_SLIDE_SLOWDOWN_UF 20
314 #define ICON_SLIDE_DELAY_UF 0
315 #define ICON_SLIDE_STEPS_UF 15
317 #define ICON_SLIDE_SLOWDOWN_F 30
318 #define ICON_SLIDE_DELAY_F 0
319 #define ICON_SLIDE_STEPS_F 10
321 #define ICON_SLIDE_SLOWDOWN_M 40
322 #define ICON_SLIDE_DELAY_M 0
323 #define ICON_SLIDE_STEPS_M 5
325 #define ICON_SLIDE_SLOWDOWN_S 50
326 #define ICON_SLIDE_DELAY_S 0
327 #define ICON_SLIDE_STEPS_S 3
329 #define ICON_SLIDE_SLOWDOWN_U 50
330 #define ICON_SLIDE_DELAY_U 3
331 #define ICON_SLIDE_STEPS_U 3
333 /* menu scrolling */
334 #define MENU_SCROLL_STEPS_UF 14
335 #define MENU_SCROLL_DELAY_UF 0
337 #define MENU_SCROLL_STEPS_F 10
338 #define MENU_SCROLL_DELAY_F 5
340 #define MENU_SCROLL_STEPS_M 6
341 #define MENU_SCROLL_DELAY_M 5
343 #define MENU_SCROLL_STEPS_S 4
344 #define MENU_SCROLL_DELAY_S 6
346 #define MENU_SCROLL_STEPS_U 1
347 #define MENU_SCROLL_DELAY_U 8
349 /* shade animation */
350 #define SHADE_STEPS_UF 5
351 #define SHADE_DELAY_UF 0
353 #define SHADE_STEPS_F 10
354 #define SHADE_DELAY_F 0
356 #define SHADE_STEPS_M 15
357 #define SHADE_DELAY_M 0
359 #define SHADE_STEPS_S 30
360 #define SHADE_DELAY_S 0
362 #define SHADE_STEPS_U 20
363 #define SHADE_DELAY_U 10
365 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
366 #define WINDOW_BIRTH_STEPS 20
368 /* number of steps for icon dematerialization. */
369 #define DEMATERIALIZE_STEPS 16
371 /* Delay when cycling colors of selected icons. */
372 #define COLOR_CYCLE_DELAY 200
374 /* size of the pieces in the undocked icon explosion */
375 #define ICON_KABOOM_PIECE_SIZE 4
378 /* Position increment for smart placement. >= 1 raise these values if it's
379 * too slow for you */
380 #define PLACETEST_HSTEP 8
381 #define PLACETEST_VSTEP 8
384 #define DOCK_EXTRA_SPACE 0
386 /* Vicinity in which an icon can be attached to the clip */
387 #define CLIP_ATTACH_VICINITY 1
389 /* The amount of space (in multiples of the icon size)
390 * a docked icon must be dragged out to detach it */
391 #define DOCK_DETTACH_THRESHOLD 3
393 /* Delay (in ms) after which the clip will autocollapse when leaved */
394 #define AUTO_COLLAPSE_DELAY 1000
396 /* Delay (in ms) after which the clip will be lowered when leaved */
397 #define AUTO_LOWER_DELAY 1000
399 /* Delay (in ms) after which the clip will be raised when entered.
400 * Set this to zero if you want instant raise. */
401 #define AUTO_RAISE_DELAY 650
404 /* Max. number of icons the clip can have */
405 #define CLIP_MAX_ICONS 32
407 /* blink interval when invoking a menu item */
408 #define MENU_BLINK_DELAY 60000
409 #define MENU_BLINK_COUNT 2
411 #define CURSOR_BLINK_RATE 300
413 #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
414 * and other objects */
416 #define HRESIZE_THRESHOLD 3
418 #define MAX_WORKSPACENAME_WIDTH 16
419 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
420 * window list */
422 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
423 * changes in the config files */
425 /* if your keyboard don't have arrow keys */
426 #undef ARROWLESS_KBD
429 /* don't put titles in miniwindows */
430 #undef NO_MINIWINDOW_TITLES
433 #define FRAME_BORDER_COLOR "black"
436 #ifdef TITLE_TEXT_SHADOW
437 #define TITLE_TEXT_SHADOW_X_OFFSET 1
438 #define TITLE_TEXT_SHADOW_Y_OFFSET 1
439 #define TITLE_TEXT_SHADOW_WIDTH 1
440 #define TITLE_TEXT_SHADOW_HEIGHT 1
441 #endif
445 *----------------------------------------------------------------------
446 * You should not modify the following values, unless you know
447 * what you're doing.
448 *----------------------------------------------------------------------
453 #define WM_PI 3.14159265358979323846
455 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
457 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
458 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
459 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
461 #define TITLEBAR_EXTRA_HEIGHT 8
463 #define MENU_INDICATOR_SPACE 12
465 /* minimum size for windows */
466 #define MIN_WINDOW_SIZE 5
468 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
470 #define ICON_WIDTH 64 /* size of the icon window */
471 #define ICON_HEIGHT 64
472 #define ICON_BORDER_WIDTH 2
474 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
475 #define MAX_ICON_HEIGHT 48
477 /* KDE may have problems with more than 32 workspaces */
478 #ifdef KWM_HINTS
479 # define MAX_WORKSPACES 32
480 #else
481 # define MAX_WORKSPACES 100
482 #endif
484 #define MAX_MENU_TEXT_LENGTH 512
486 #define MAX_RESTART_ARGS 16
488 #define MAX_COMMAND_SIZE 1024
490 #define MAX_DEAD_PROCESSES 128
493 #define MAXLINE 1024
496 #ifdef _MAX_PATH
497 # define DEFAULT_PATH_MAX _MAX_PATH
498 #else
499 # define DEFAULT_PATH_MAX 512
500 #endif
503 #define DEBUG0
505 /* some rules */
507 #ifndef SHAPE
508 #undef SHAPED_BALLOON
509 #endif
512 #ifdef XKB_MODELOCK
513 #define KEEP_XKB_LOCK_STATUS
514 #endif
516 #if HAVE_LIBINTL_H && I18N
517 # include <libintl.h>
518 # define _(text) gettext(text)
519 #else
520 # define _(text) (text)
521 #endif
524 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
525 # define INLINE inline
526 #else
527 # define INLINE
528 #endif
530 #endif /* WMCONFIG_H_ */