*** empty log message ***
[wmaker-crm.git] / src / wconfig.h.in
blob5104b26a7676cca445cef549ce6ddf6824bcb117
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 *--------------------------------------------------------------------
42 * #undefine if you dont want texture plugin support or your system have
43 * some sort of problem with them.
45 #define TEXTURE_PLUGIN
48 /*
49 * #define to enable WindozeCycling. Set WindozeCycling = YES in
50 * your WindowMaker config file
52 #define WEENDOZE_CYCLE
55 /* undefine ANIMATIONS if you don't want animations for iconification,
56 * shading, icon arrangement etc. */
57 #define ANIMATIONS
61 * undefine USECPP if you don't want your config files to be preprocessed
62 * by cpp
64 #define USECPP
66 /* #define CPP_PATH @CPP_PATH@ */
69 * support for OffiX DND drag and drop in the Dock
71 #define OFFIX_DND
74 * support for XDE drang and drop in the Dock. Experimental
76 #undef XDE_DND
79 * support for Motif window manager (mwm) window hints
81 #define MWM_HINTS
85 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
86 * information, like window titles that are not fully visible.
88 #define BALLOON_TEXT
91 * If balloons should be shaped or be simple rectangles.
92 * The X server must support the shape extensions and it's support
93 * must be enabled (default).
95 #define SHAPED_BALLOON
99 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
100 * automatically started when WindowMaker crashes. The X session will die
101 * in some cases if wmaker crashes and autorestart is disabled.
103 #undef NO_EMERGENCY_AUTORESTART
106 * The window manager that is autorestarted
108 #define FALLBACK_WINDOWMANAGER "blackbox"
111 /* Define if you have a 5 button mouse and want to use button 4
112 * (in the root window) for switching to the previous workspace
113 * and 5 for the next. This will not work if you enable
114 * DisableWSMouseActions or compile wmaker with --enable-lite */
115 #undef MOUSE_WS_SWITCH
118 * Turn on a hack to make mouse and keyboard actions work even if
119 * the NumLock or ScrollLock modifiers are turned on. They might
120 * inflict a performance/memory penalty.
122 * If you're an X expert (knows the implementation of XGrabKey() in X)
123 * and knows that the penalty is small (or not), please tell me.
125 #define NUMLOCK_HACK
130 * define EXTEND_WINDOWSHORTCUT if you have a great memory and want 10
131 * window shortcuts instead of 4. You will also need to define the
132 * same thing in WPrefs.app/WPrefs.h to get the corresponding entries
133 * in WPrefs.
135 #undef EXTEND_WINDOWSHORTCUT
140 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
141 * for applications that change their shape frequently (like xdaliclock
142 * -shape), removing flickering. If wmaker and your display are on
143 * different machines and the network connection is slow, it is not
144 * recommended.
146 #undef OPTIMIZE_SHAPE
148 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
149 * the synthetic ConfigureNotify event to windows while moving at every
150 * single movement. Default is to send a synthetic ConfigureNotify event
151 * only at the end of window moving, which improves performance.
153 #undef CONFIGURE_WINDOW_WHILE_MOVING
157 * disable/enable workspace indicator in the dock
160 #undef WS_INDICATOR
164 * define HIDDENDOT if you want a dot to be shown in the application icon
165 * of applications that are hidden.
167 #define HIDDENDOT
171 * Ignores the PPosition hint from clients. This is needed for some
172 * programs that have buggy implementations of such hint and place
173 * themselves in strange locations.
175 #undef IGNORE_PPOSITION
178 #define SILLYNESS
182 *..........................................................................
183 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
184 * They will only add unneeded bloat.
185 *..........................................................................
189 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
190 * NextStep 3.x ??, instead of the default Openstep look. NEXTSTEP 3.3
191 * also does not have these shadows.
193 #undef SHADOW_RESIZEBAR
196 * Titlebar text shadow
198 #undef TITLE_TEXT_SHADOW
201 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
202 * to be a progressive disaparison animation.
204 #undef DEMATERIALIZE_ICON
207 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
208 * explosion animation.
210 #undef ICON_KABOOM_EXTRA
213 * #undef if you dont want the window creation animation when superfluous
214 * is enabled.
216 #undef WINDOW_BIRTH_ZOOM
219 #define TEXTURE_PLUGIN
222 *--------------------------------------------------------------------
223 * Default Configuration
225 * Some of the following options can be configured in
226 * the preference files, but if for some reason, they can't
227 * be used, these defaults will be.
228 * There are also some options that can only be configured here,
229 * at compile time.
230 *--------------------------------------------------------------------
233 /* list of paths to look for the config files, searched in order
234 * of appearance */
235 #define DEF_CONFIG_PATHS \
236 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
238 #define DEF_MENU_FILE "menu"
240 /* name of the script to execute at startup */
241 #define DEF_INIT_SCRIPT "autostart"
243 #define DEF_EXIT_SCRIPT "exitscript"
245 #define DEFAULTS_DIR "Defaults"
247 #ifdef USE_TIFF
248 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
249 #else
250 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
251 #endif
253 /* the file of the system wide submenu to be forced into the main menu */
254 /* remove the comments if you want it */
256 #define GLOBAL_SUBMENU_FILE PKGDATADIR"/GlobalMenu"
259 /* pixmap path */
260 #define DEF_PIXMAP_PATHS \
261 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
263 /* icon path */
264 #define DEF_ICON_PATHS \
265 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
268 /* window title to use for untitled windows */
269 #define DEF_WINDOW_TITLE "Untitled"
271 /* default style */
272 #define DEF_FRAME_COLOR "white"
275 #ifdef I18N_MB
276 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
277 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
278 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
279 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
280 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
281 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
282 #else /* I18N_MB */
283 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
284 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
285 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
286 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
287 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
288 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
289 #endif /* !I18N_MB */
291 #define HELVETICA10_FONT "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
293 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
295 #define DEF_XPM_CLOSENESS 40000
297 /* default position of application menus */
298 #define DEF_APPMENU_X 10
299 #define DEF_APPMENU_Y 10
301 /* calculate window edge resistance from edge resistance */
302 #define WIN_RESISTANCE(x) (((x)*20)/30)
304 /* Window level where icons reside */
305 #define NORMAL_ICON_LEVEL WMNormalLevel
307 /* do not divide main menu and submenu in different tiers,
308 * opposed to OpenStep */
309 #define SINGLE_MENULEVEL
311 /* max. time to spend doing animations in seconds. If the animation
312 * time exceeds this value, it is immediately finished. Usefull for
313 * moments of high-load.
315 #define MAX_ANIMATION_TIME 1
317 /* Zoom animation */
318 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
319 #define MINIATURIZE_ANIMATION_STEPS_Z 12
320 #define MINIATURIZE_ANIMATION_DELAY_Z 500
321 /* Twist animation */
322 #define MINIATURIZE_ANIMATION_FRAMES_T 12
323 #define MINIATURIZE_ANIMATION_STEPS_T 16
324 #define MINIATURIZE_ANIMATION_DELAY_T 1000
325 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
326 /* Flip animation */
327 #define MINIATURIZE_ANIMATION_FRAMES_F 12
328 #define MINIATURIZE_ANIMATION_STEPS_F 16
329 #define MINIATURIZE_ANIMATION_DELAY_F 1000
330 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
333 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
335 /* delay before balloon is showed */
336 #define BALLOON_DELAY 1000
338 /* delay for menu item selection hysteresis */
339 #define MENU_SELECT_DELAY 200
341 /* animation speed constants */
343 /* icon slide */
344 #define ICON_SLIDE_SLOWDOWN_UF 20
345 #define ICON_SLIDE_DELAY_UF 0
346 #define ICON_SLIDE_STEPS_UF 15
348 #define ICON_SLIDE_SLOWDOWN_F 30
349 #define ICON_SLIDE_DELAY_F 0
350 #define ICON_SLIDE_STEPS_F 10
352 #define ICON_SLIDE_SLOWDOWN_M 40
353 #define ICON_SLIDE_DELAY_M 0
354 #define ICON_SLIDE_STEPS_M 5
356 #define ICON_SLIDE_SLOWDOWN_S 50
357 #define ICON_SLIDE_DELAY_S 0
358 #define ICON_SLIDE_STEPS_S 3
360 #define ICON_SLIDE_SLOWDOWN_U 50
361 #define ICON_SLIDE_DELAY_U 3
362 #define ICON_SLIDE_STEPS_U 3
364 /* menu scrolling */
365 #define MENU_SCROLL_STEPS_UF 14
366 #define MENU_SCROLL_DELAY_UF 0
368 #define MENU_SCROLL_STEPS_F 10
369 #define MENU_SCROLL_DELAY_F 5
371 #define MENU_SCROLL_STEPS_M 6
372 #define MENU_SCROLL_DELAY_M 5
374 #define MENU_SCROLL_STEPS_S 4
375 #define MENU_SCROLL_DELAY_S 6
377 #define MENU_SCROLL_STEPS_U 1
378 #define MENU_SCROLL_DELAY_U 8
380 /* shade animation */
381 #define SHADE_STEPS_UF 5
382 #define SHADE_DELAY_UF 0
384 #define SHADE_STEPS_F 10
385 #define SHADE_DELAY_F 0
387 #define SHADE_STEPS_M 15
388 #define SHADE_DELAY_M 0
390 #define SHADE_STEPS_S 30
391 #define SHADE_DELAY_S 0
393 #define SHADE_STEPS_U 20
394 #define SHADE_DELAY_U 10
396 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
397 #define WINDOW_BIRTH_STEPS 20
399 /* number of steps for icon dematerialization. */
400 #define DEMATERIALIZE_STEPS 16
402 /* Delay when cycling colors of selected icons. */
403 #define COLOR_CYCLE_DELAY 200
405 /* size of the pieces in the undocked icon explosion */
406 #define ICON_KABOOM_PIECE_SIZE 4
409 /* Position increment for smart placement. >= 1 raise these values if it's
410 * too slow for you */
411 #define PLACETEST_HSTEP 8
412 #define PLACETEST_VSTEP 8
415 #define DOCK_EXTRA_SPACE 0
417 /* Vicinity in which an icon can be attached to the clip */
418 #define CLIP_ATTACH_VICINITY 1
420 /* The amount of space (in multiples of the icon size)
421 * a docked icon must be dragged out to detach it */
422 #define DOCK_DETTACH_THRESHOLD 3
424 /* Delay (in ms) after which the clip will autocollapse when leaved */
425 #define AUTO_COLLAPSE_DELAY 1000
427 /* Delay (in ms) after which the clip will autoexpand when entered.
428 * Set this to zero if you want instant expanding. */
429 #define AUTO_EXPAND_DELAY 600
431 /* Delay (in ms) after which the clip will be lowered when leaved */
432 #define AUTO_LOWER_DELAY 1000
434 /* Delay (in ms) after which the clip will be raised when entered.
435 * Set this to zero if you want instant raise. */
436 #define AUTO_RAISE_DELAY 600
439 /* Max. number of icons the clip can have */
440 #define CLIP_MAX_ICONS 32
442 /* blink interval when invoking a menu item */
443 #define MENU_BLINK_DELAY 60000
444 #define MENU_BLINK_COUNT 2
446 #define CURSOR_BLINK_RATE 300
448 #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
449 * and other objects */
451 #define HRESIZE_THRESHOLD 3
453 #define MAX_WORKSPACENAME_WIDTH 16
454 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
455 * window list */
457 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
458 * changes in the config files */
460 /* if your keyboard don't have arrow keys */
461 #undef ARROWLESS_KBD
464 /* don't put titles in miniwindows */
465 #undef NO_MINIWINDOW_TITLES
468 #define FRAME_BORDER_COLOR "black"
471 #ifdef TITLE_TEXT_SHADOW
472 #define TITLE_TEXT_SHADOW_X_OFFSET 1
473 #define TITLE_TEXT_SHADOW_Y_OFFSET 1
474 #define TITLE_TEXT_SHADOW_WIDTH 1
475 #define TITLE_TEXT_SHADOW_HEIGHT 1
476 #endif
480 *----------------------------------------------------------------------
481 * You should not modify the following values, unless you know
482 * what you're doing.
483 *----------------------------------------------------------------------
487 /* number of window shortcuts */
488 #ifdef EXTEND_WINDOWSHORTCUT
489 # define MAX_WINDOW_SHORTCUTS 10
490 #else
491 # define MAX_WINDOW_SHORTCUTS 4
492 #endif
495 #define WM_PI 3.14159265358979323846
497 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
499 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
500 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
501 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
503 #define TITLEBAR_EXTRA_HEIGHT 8
505 #define MENU_INDICATOR_SPACE 12
507 /* minimum size for windows */
508 #define MIN_WINDOW_SIZE 5
510 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
512 #define ICON_WIDTH 64 /* size of the icon window */
513 #define ICON_HEIGHT 64
514 #define ICON_BORDER_WIDTH 2
516 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
517 #define MAX_ICON_HEIGHT 48
519 /* KDE may have problems with more than 32 workspaces */
520 #ifdef KWM_HINTS
521 # define MAX_WORKSPACES 32
522 #else
523 # define MAX_WORKSPACES 100
524 #endif
526 #define MAX_MENU_TEXT_LENGTH 512
528 #define MAX_RESTART_ARGS 16
530 #define MAX_COMMAND_SIZE 1024
532 #define MAX_DEAD_PROCESSES 128
535 #define MAXLINE 1024
538 #ifdef _MAX_PATH
539 # define DEFAULT_PATH_MAX _MAX_PATH
540 #else
541 # define DEFAULT_PATH_MAX 512
542 #endif
545 #define DEBUG0
547 /* some rules */
549 #ifndef SHAPE
550 #undef SHAPED_BALLOON
551 #endif
553 #ifdef XKB_MODELOCK
554 #define KEEP_XKB_LOCK_STATUS
555 #define XKB_TITLE_HINT
556 #define XKB_ON "[TH]"
557 #define XKB_OFF "[EN]"
558 #endif
560 #if HAVE_LIBINTL_H && I18N
561 # include <libintl.h>
562 # define _(text) gettext(text)
563 #else
564 # define _(text) (text)
565 #endif
568 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
569 # define INLINE inline
570 #else
571 # define INLINE
572 #endif
574 #endif /* WMCONFIG_H_ */