*** empty log message ***
[wmaker-crm.git] / src / wconfig.h.in
blob77d8c7bca85532cae8134e9afcded9522396431c
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
51 * WARNING: this still has some bugs
53 #undef WEENDOZE_CYCLE
56 /* undefine ANIMATIONS if you don't want animations for iconification,
57 * shading, icon arrangement etc. */
58 #define ANIMATIONS
62 * undefine USECPP if you don't want your config files to be preprocessed
63 * by cpp
65 #define USECPP
67 /* #define CPP_PATH @CPP_PATH@ */
70 * support for OffiX DND drag and drop in the Dock
72 #define OFFIX_DND
75 * support for XDE drang and drop in the Dock. Experimental
77 #undef XDE_DND
80 * support for Motif window manager (mwm) window hints
82 #define MWM_HINTS
86 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
87 * information, like window titles that are not fully visible.
89 #define BALLOON_TEXT
92 * If balloons should be shaped or be simple rectangles.
93 * The X server must support the shape extensions and it's support
94 * must be enabled (default).
96 #define SHAPED_BALLOON
100 * Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
101 * automatically started when WindowMaker crashes. The X session will die
102 * in some cases if wmaker crashes and autorestart is disabled.
104 #undef NO_EMERGENCY_AUTORESTART
107 * The window manager that is autorestarted
109 #define FALLBACK_WINDOWMANAGER "blackbox"
112 /* Define if you have a 5 button mouse and want to use button 4
113 * (in the root window) for switching to the previous workspace
114 * and 5 for the next. This will not work if you enable
115 * DisableWSMouseActions or compile wmaker with --enable-lite */
116 #undef MOUSE_WS_SWITCH
119 * Turn on a hack to make mouse and keyboard actions work even if
120 * the NumLock or ScrollLock modifiers are turned on. They might
121 * inflict a performance/memory penalty.
123 * If you're an X expert (knows the implementation of XGrabKey() in X)
124 * and knows that the penalty is small (or not), please tell me.
126 #define NUMLOCK_HACK
131 * define EXTEND_WINDOWSHORTCUT if you have a great memory and want 10
132 * window shortcuts instead of 4. You will also need to define the
133 * same thing in WPrefs.app/WPrefs.h to get the corresponding entries
134 * in WPrefs.
136 #undef EXTEND_WINDOWSHORTCUT
141 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
142 * for applications that change their shape frequently (like xdaliclock
143 * -shape), removing flickering. If wmaker and your display are on
144 * different machines and the network connection is slow, it is not
145 * recommended.
147 #undef OPTIMIZE_SHAPE
149 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
150 * the synthetic ConfigureNotify event to windows while moving at every
151 * single movement. Default is to send a synthetic ConfigureNotify event
152 * only at the end of window moving, which improves performance.
154 #undef CONFIGURE_WINDOW_WHILE_MOVING
158 * disable/enable workspace indicator in the dock
160 #undef WS_INDICATOR
164 * define USER_MENU if you want user specified menus for sending
165 * commands to applications. Kinda experimental..
167 #undef USER_MENU
171 * define HIDDENDOT if you want a dot to be shown in the application icon
172 * of applications that are hidden.
174 #define HIDDENDOT
178 * Ignores the PPosition hint from clients. This is needed for some
179 * programs that have buggy implementations of such hint and place
180 * themselves in strange locations.
182 #undef IGNORE_PPOSITION
185 #define SILLYNESS
189 *..........................................................................
190 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
191 * They will only add unneeded bloat.
192 *..........................................................................
196 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
197 * AfterStep, instead of the default Openstep look.
198 * NEXTSTEP 3.3 also does not have these shadows.
200 #undef SHADOW_RESIZEBAR
203 * Titlebar text shadow
205 #undef TITLE_TEXT_SHADOW
208 * Define DEMATERIALIZE_ICON if you want the undocked icon animation
209 * to be a progressive disaparison animation.
210 * This will cause all application icons to be created with Save Under
211 * enable.
213 #undef DEMATERIALIZE_ICON
216 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
217 * explosion animation.
219 #undef ICON_KABOOM_EXTRA
222 * #undef if you dont want the window creation animation when superfluous
223 * is enabled.
225 #undef WINDOW_BIRTH_ZOOM
228 * whether arrow drawing in clip buttons should be gradiented
230 #undef GRADIENT_CLIP_ARROWS
233 #define TEXTURE_PLUGIN
236 *--------------------------------------------------------------------
237 * Default Configuration
239 * Some of the following options can be configured in
240 * the preference files, but if for some reason, they can't
241 * be used, these defaults will be.
242 * There are also some options that can only be configured here,
243 * at compile time.
244 *--------------------------------------------------------------------
247 /* list of paths to look for the config files, searched in order
248 * of appearance */
249 #define DEF_CONFIG_PATHS \
250 "~/GNUstep/Library/WindowMaker:"PKGDATADIR
252 #define DEF_MENU_FILE "menu"
254 /* name of the script to execute at startup */
255 #define DEF_INIT_SCRIPT "autostart"
257 #define DEF_EXIT_SCRIPT "exitscript"
259 #define DEFAULTS_DIR "Defaults"
261 #ifdef USE_TIFF
262 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
263 #else
264 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
265 #endif
267 /* the file of the system wide submenu to be forced into the main menu */
268 /* remove the comments if you want it */
270 #define GLOBAL_SUBMENU_FILE PKGDATADIR"/GlobalMenu"
273 /* pixmap path */
274 #define DEF_PIXMAP_PATHS \
275 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
277 /* icon path */
278 #define DEF_ICON_PATHS \
279 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
282 /* window title to use for untitled windows */
283 #define DEF_WINDOW_TITLE "Untitled"
285 /* default style */
286 #define DEF_FRAME_COLOR "white"
289 #ifdef I18N_MB
290 #define DEF_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
291 #define DEF_MENU_TITLE_FONT "\"-*-*-medium-r-normal--14-*\""
292 #define DEF_MENU_ENTRY_FONT "\"-*-*-medium-r-normal--14-*\""
293 #define DEF_ICON_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
294 #define DEF_CLIP_TITLE_FONT "\"-*-*-medium-r-normal--10-*\""
295 #define DEF_INFO_TEXT_FONT "\"-*-*-medium-r-normal--14-*\""
296 #else /* I18N_MB */
297 #define DEF_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
298 #define DEF_MENU_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*\""
299 #define DEF_MENU_ENTRY_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
300 #define DEF_ICON_TITLE_FONT "\"-*-helvetica-medium-r-normal-*-8-*-*-*-*-*-*-*\""
301 #define DEF_CLIP_TITLE_FONT "\"-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*\""
302 #define DEF_INFO_TEXT_FONT "\"-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*\""
303 #endif /* !I18N_MB */
305 #define HELVETICA10_FONT "-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
307 #define DEF_FRAME_THICKNESS 1 /* linewidth of the move/resize frame */
309 #define DEF_XPM_CLOSENESS 40000
311 /* default position of application menus */
312 #define DEF_APPMENU_X 10
313 #define DEF_APPMENU_Y 10
315 /* calculate window edge resistance from edge resistance */
316 #define WIN_RESISTANCE(x) (((x)*20)/30)
318 /* Window level where icons reside */
319 #define NORMAL_ICON_LEVEL WMNormalLevel
321 /* do not divide main menu and submenu in different tiers,
322 * opposed to OpenStep */
323 #define SINGLE_MENULEVEL
325 /* max. time to spend doing animations in seconds. If the animation
326 * time exceeds this value, it is immediately finished. Usefull for
327 * moments of high-load.
329 #define MAX_ANIMATION_TIME 1
331 /* Zoom animation */
332 #define MINIATURIZE_ANIMATION_FRAMES_Z 5
333 #define MINIATURIZE_ANIMATION_STEPS_Z 12
334 #define MINIATURIZE_ANIMATION_DELAY_Z 500
335 /* Twist animation */
336 #define MINIATURIZE_ANIMATION_FRAMES_T 12
337 #define MINIATURIZE_ANIMATION_STEPS_T 16
338 #define MINIATURIZE_ANIMATION_DELAY_T 1000
339 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
340 /* Flip animation */
341 #define MINIATURIZE_ANIMATION_FRAMES_F 12
342 #define MINIATURIZE_ANIMATION_STEPS_F 16
343 #define MINIATURIZE_ANIMATION_DELAY_F 1000
344 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
347 #define HIDE_ANIMATION_STEPS (MINIATURIZE_ANIMATION_STEPS*2/3)
349 /* delay before balloon is showed */
350 #define BALLOON_DELAY 1000
352 /* delay for menu item selection hysteresis */
353 #define MENU_SELECT_DELAY 200
355 /* animation speed constants */
357 /* icon slide */
358 #define ICON_SLIDE_SLOWDOWN_UF 20
359 #define ICON_SLIDE_DELAY_UF 0
360 #define ICON_SLIDE_STEPS_UF 15
362 #define ICON_SLIDE_SLOWDOWN_F 30
363 #define ICON_SLIDE_DELAY_F 0
364 #define ICON_SLIDE_STEPS_F 10
366 #define ICON_SLIDE_SLOWDOWN_M 40
367 #define ICON_SLIDE_DELAY_M 0
368 #define ICON_SLIDE_STEPS_M 5
370 #define ICON_SLIDE_SLOWDOWN_S 50
371 #define ICON_SLIDE_DELAY_S 0
372 #define ICON_SLIDE_STEPS_S 3
374 #define ICON_SLIDE_SLOWDOWN_U 50
375 #define ICON_SLIDE_DELAY_U 3
376 #define ICON_SLIDE_STEPS_U 3
378 /* menu scrolling */
379 #define MENU_SCROLL_STEPS_UF 14
380 #define MENU_SCROLL_DELAY_UF 0
382 #define MENU_SCROLL_STEPS_F 10
383 #define MENU_SCROLL_DELAY_F 5
385 #define MENU_SCROLL_STEPS_M 6
386 #define MENU_SCROLL_DELAY_M 5
388 #define MENU_SCROLL_STEPS_S 4
389 #define MENU_SCROLL_DELAY_S 6
391 #define MENU_SCROLL_STEPS_U 1
392 #define MENU_SCROLL_DELAY_U 8
394 /* shade animation */
395 #define SHADE_STEPS_UF 5
396 #define SHADE_DELAY_UF 0
398 #define SHADE_STEPS_F 10
399 #define SHADE_DELAY_F 0
401 #define SHADE_STEPS_M 15
402 #define SHADE_DELAY_M 0
404 #define SHADE_STEPS_S 30
405 #define SHADE_DELAY_S 0
407 #define SHADE_STEPS_U 20
408 #define SHADE_DELAY_U 10
410 /* window birth animation steps (DO NOT MAKE IT RUN-TIME) */
411 #define WINDOW_BIRTH_STEPS 20
413 /* number of steps for icon dematerialization. */
414 #define DEMATERIALIZE_STEPS 16
416 /* Delay when cycling colors of selected icons. */
417 #define COLOR_CYCLE_DELAY 200
419 /* size of the pieces in the undocked icon explosion */
420 #define ICON_KABOOM_PIECE_SIZE 4
423 /* Position increment for smart placement. >= 1 raise these values if it's
424 * too slow for you */
425 #define PLACETEST_HSTEP 8
426 #define PLACETEST_VSTEP 8
429 #define DOCK_EXTRA_SPACE 0
431 /* Vicinity in which an icon can be attached to the clip */
432 #define CLIP_ATTACH_VICINITY 1
434 #define CLIP_BUTTON_SIZE 23
437 /* The amount of space (in multiples of the icon size)
438 * a docked icon must be dragged out to detach it */
439 #define DOCK_DETTACH_THRESHOLD 3
441 /* Delay (in ms) after which the clip will autocollapse when leaved */
442 #define AUTO_COLLAPSE_DELAY 1000
444 /* Delay (in ms) after which the clip will autoexpand when entered.
445 * Set this to zero if you want instant expanding. */
446 #define AUTO_EXPAND_DELAY 600
448 /* Delay (in ms) after which the clip will be lowered when leaved */
449 #define AUTO_LOWER_DELAY 1000
451 /* Delay (in ms) after which the clip will be raised when entered.
452 * Set this to zero if you want instant raise. */
453 #define AUTO_RAISE_DELAY 600
456 /* Max. number of icons the clip can have */
457 #define CLIP_MAX_ICONS 32
459 /* blink interval when invoking a menu item */
460 #define MENU_BLINK_DELAY 60000
461 #define MENU_BLINK_COUNT 2
463 #define CURSOR_BLINK_RATE 300
465 #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
466 * and other objects */
468 #define HRESIZE_THRESHOLD 3
470 #define MAX_WORKSPACENAME_WIDTH 16
471 #define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
472 * window list */
474 #define DEFAULTS_CHECK_INTERVAL 2000 /* how often wmaker will check for
475 * changes in the config files */
477 /* if your keyboard don't have arrow keys */
478 #undef ARROWLESS_KBD
481 /* don't put titles in miniwindows */
482 #undef NO_MINIWINDOW_TITLES
485 #define FRAME_BORDER_COLOR "black"
488 #ifdef TITLE_TEXT_SHADOW
489 #define TITLE_TEXT_SHADOW_X_OFFSET 1
490 #define TITLE_TEXT_SHADOW_Y_OFFSET 1
491 #define TITLE_TEXT_SHADOW_WIDTH 1
492 #define TITLE_TEXT_SHADOW_HEIGHT 1
493 #endif
497 *----------------------------------------------------------------------
498 * You should not modify the following values, unless you know
499 * what you're doing.
500 *----------------------------------------------------------------------
504 /* number of window shortcuts */
505 #ifdef EXTEND_WINDOWSHORTCUT
506 # define MAX_WINDOW_SHORTCUTS 10
507 #else
508 # define MAX_WINDOW_SHORTCUTS 4
509 #endif
512 #define WM_PI 3.14159265358979323846
514 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
516 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
517 #define RESIZEBAR_MIN_WIDTH 20 /* min. width of handles-corner_width */
518 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
520 #define TITLEBAR_EXTRA_HEIGHT 8
522 #define MENU_INDICATOR_SPACE 12
524 /* minimum size for windows */
525 #define MIN_WINDOW_SIZE 5
527 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
529 #define ICON_WIDTH 64 /* size of the icon window */
530 #define ICON_HEIGHT 64
531 #define ICON_BORDER_WIDTH 2
533 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
534 #define MAX_ICON_HEIGHT 48
536 /* KDE may have problems with more than 32 workspaces */
537 #ifdef KWM_HINTS
538 # define MAX_WORKSPACES 32
539 #else
540 # define MAX_WORKSPACES 100
541 #endif
543 #define MAX_MENU_TEXT_LENGTH 512
545 #define MAX_RESTART_ARGS 16
547 #define MAX_COMMAND_SIZE 1024
549 #define MAX_DEAD_PROCESSES 128
552 #define MAXLINE 1024
555 #ifdef _MAX_PATH
556 # define DEFAULT_PATH_MAX _MAX_PATH
557 #else
558 # define DEFAULT_PATH_MAX 512
559 #endif
562 #define DEBUG0
564 /* some rules */
566 #ifndef SHAPE
567 #undef SHAPED_BALLOON
568 #endif
570 #ifdef XKB_MODELOCK
571 #define KEEP_XKB_LOCK_STATUS
572 #define XKB_TITLE_HINT
573 #define XKB_ON "[TH]"
574 #define XKB_OFF "[EN]"
575 #endif
577 #ifndef DEMATERIALIZE_ICON
578 # define NORMAL_ICON_KABOOM
579 #endif
581 #if HAVE_LIBINTL_H && I18N
582 # include <libintl.h>
583 # define _(text) gettext(text)
584 #else
585 # define _(text) (text)
586 #endif
589 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
590 # define INLINE inline
591 #else
592 # define INLINE
593 #endif
595 #endif /* WMCONFIG_H_ */