Update German translation
[wmaker-crm.git] / src / wconfig.h.in
blobf37dc0483a3643f10ea99cdbab2c4cfdd8174249
1 /*
2 * wconfig.h- default configuration and definitions + compile time options
4 * WindowMaker window manager
6 * Copyright (c) 1997-2003 Alfredo K. Kojima
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 this file (wconfig.h) *after* you ran configure ***/
31 * Comment out the following #defines if you want to disable a feature.
32 * Also check the features you can enable through configure.
36 * #undefine if you dont want texture plugin support or your system have
37 * some sort of problem with them.
39 #define TEXTURE_PLUGIN
40 #ifdef TEXTURE_PLUGIN
41 #undef DRAWSTRING_PLUGIN
42 #endif
44 /* If you want animations for iconification, shading, icon arrangement etc. */
45 #define ANIMATIONS
47 /* undefine it if you don't want your config files to be preprocessed by cpp */
48 #define USECPP
50 /* #define CPP_PATH @CPP_PATH@ */
52 /* support for XDND drop in the Dock. Experimental */
53 /*#define XDND*/
55 /* support for Motif window manager (mwm) window hints */
56 #define MWM_HINTS
59 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
60 * information, like window titles that are not fully visible.
62 #define BALLOON_TEXT
65 * If balloons should be shaped or be simple rectangles.
66 * The X server must support the shape extensions and it's support
67 * must be enabled (default).
69 #define SHAPED_BALLOON
72 * Turn on a hack to make mouse and keyboard actions work even if
73 * the NumLock or ScrollLock modifiers are turned on. They might
74 * inflict a performance/memory penalty.
76 * If you're an X expert (knows the implementation of XGrabKey() in X)
77 * and knows that the penalty is small (or not), please tell me.
79 #define NUMLOCK_HACK
82 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
83 * for applications that change their shape frequently (like xdaliclock
84 * -shape), removing flickering. If wmaker and your display are on
85 * different machines and the network connection is slow, it is not
86 * recommended.
88 #undef OPTIMIZE_SHAPE
90 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
91 * the synthetic ConfigureNotify event to windows while moving at every
92 * single movement. Default is to send a synthetic ConfigureNotify event
93 * only at the end of window moving, which improves performance.
95 #undef CONFIGURE_WINDOW_WHILE_MOVING
97 /* disable/enable workspace indicator in the dock */
98 #undef WS_INDICATOR
101 * define HIDDENDOT if you want a dot to be shown in the application icon
102 * of applications that are hidden.
104 #define HIDDENDOT
107 * Ignores the PPosition hint from clients. This is needed for some
108 * programs that have buggy implementations of such hint and place
109 * themselves in strange locations.
111 #undef IGNORE_PPOSITION
113 /* Do not scale application icon and miniwindow icon images */
114 #undef DONT_SCALE_ICONS
117 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
118 * They will only add unneeded bloat.
122 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
123 * AfterStep, instead of the default Openstep look.
124 * NEXTSTEP 3.3 also does not have these shadows.
126 #undef SHADOW_RESIZEBAR
128 #define NORMAL_ICON_KABOOM
130 * Define ICON_KABOOM_EXTRA if you want extra fancy icon undocking
131 * explosion animation.
133 #undef ICON_KABOOM_EXTRA
136 * #define if you want the window creation animation when superfluous
137 * is enabled.
139 #define WINDOW_BIRTH_ZOOM
141 /* whether arrow drawing in clip buttons should be gradiented */
142 #undef GRADIENT_CLIP_ARROWS
145 * Some of the following options can be configured in the preference files,
146 * but if for some reason they can't, these are their defaults.
148 * There are also some options that can only be configured here, at compile time.
151 /* list of paths to look for the config files, searched in order of appearance */
152 #define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:"PKGDATADIR
153 #define DEF_MENU_FILE "menu"
155 /* name of the script to execute at startup */
156 #define DEF_INIT_SCRIPT "autostart"
157 #define DEF_EXIT_SCRIPT "exitscript"
158 #define DEFAULTS_DIR "Defaults"
160 #ifdef USE_TIFF
161 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
162 #else
163 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
164 #endif
166 /* the file of the system wide submenu to be forced into the main menu */
167 #define GLOBAL_PREAMBLE_MENU_FILE "GlobalMenu.pre"
168 #define GLOBAL_EPILOGUE_MENU_FILE "GlobalMenu.post"
170 /* pixmap path */
171 #define DEF_PIXMAP_PATHS \
172 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
174 #ifdef USER_MENU
175 #define GLOBAL_USER_MENU_PATH PKGDATADIR"/UserMenus"
176 #define DEF_USER_MENU_PATHS \
177 "~/GNUstep/Library/WindowMaker/UserMenus:"GLOBAL_USER_MENU_PATH
178 #endif
180 /* icon path */
181 #define DEF_ICON_PATHS \
182 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
184 /* window title to use for untitled windows */
185 #define DEF_WINDOW_TITLE "Untitled"
187 /* default style */
188 #define DEF_FRAME_COLOR "white"
190 /* default fonts */
191 #define DEF_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
192 #define DEF_MENU_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
193 #define DEF_MENU_ENTRY_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
194 #define DEF_ICON_TITLE_FONT "\"Arial,Luxi Sans:pixelsize=9\""
195 #define DEF_CLIP_TITLE_FONT "\"Verdana:bold:pixelsize=10\""
196 #define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
197 #define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=24\""
199 /* line width of the move/resize frame */
200 #define DEF_FRAME_THICKNESS 1
202 #define DEF_WINDOW_TITLE_EXTEND_SPACE "0"
203 #define DEF_MENU_TITLE_EXTEND_SPACE "0"
204 #define DEF_MENU_TEXT_EXTEND_SPACE "0"
205 #define TITLEBAR_EXTEND_SPACE 4
207 #define DEF_XPM_CLOSENESS 40000
209 /* default position of application menus */
210 #define DEF_APPMENU_X 10
211 #define DEF_APPMENU_Y 10
213 /* calculate window edge resistance from edge resistance */
214 #define WIN_RESISTANCE(x) (((x)*20)/30)
216 /* Window level where icons reside */
217 #define NORMAL_ICON_LEVEL WMNormalLevel
219 /* do not divide main menu and submenu in different tiers,
220 * opposed to OpenStep */
221 #define SINGLE_MENULEVEL
223 /* max. time to spend doing animations in seconds. If the animation
224 * time exceeds this value, it is immediately finished. Usefull for
225 * moments of high-load. DO NOT set *_DELAY_{Z,T,F} to zero!
227 #define MAX_ANIMATION_TIME 1
228 /* Zoom animation */
229 #define MINIATURIZE_ANIMATION_FRAMES_Z 7
230 #define MINIATURIZE_ANIMATION_STEPS_Z 16
231 #define MINIATURIZE_ANIMATION_DELAY_Z 10000
232 /* Twist animation */
233 #define MINIATURIZE_ANIMATION_FRAMES_T 12
234 #define MINIATURIZE_ANIMATION_STEPS_T 16
235 #define MINIATURIZE_ANIMATION_DELAY_T 20000
236 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
237 /* Flip animation */
238 #define MINIATURIZE_ANIMATION_FRAMES_F 12
239 #define MINIATURIZE_ANIMATION_STEPS_F 16
240 #define MINIATURIZE_ANIMATION_DELAY_F 20000
241 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
243 /* delays in ms...*/
244 #define BALLOON_DELAY 1000 /* ...before balloon is shown */
245 #define MENU_SELECT_DELAY 200 /* ...for menu item selection hysteresis */
246 #define MENU_JUMP_BACK_DELAY 400 /* ...for jumpback of scrolled menus */
248 /* animation speed constants */
249 #define ICON_SLIDE_SLOWDOWN_UF 1
250 #define ICON_SLIDE_DELAY_UF 0
251 #define ICON_SLIDE_STEPS_UF 50
253 #define ICON_SLIDE_SLOWDOWN_F 3
254 #define ICON_SLIDE_DELAY_F 0
255 #define ICON_SLIDE_STEPS_F 50
257 #define ICON_SLIDE_SLOWDOWN_M 5
258 #define ICON_SLIDE_DELAY_M 0
259 #define ICON_SLIDE_STEPS_M 30
261 #define ICON_SLIDE_SLOWDOWN_S 10
262 #define ICON_SLIDE_DELAY_S 0
263 #define ICON_SLIDE_STEPS_S 20
265 #define ICON_SLIDE_SLOWDOWN_US 20
266 #define ICON_SLIDE_DELAY_US 1
267 #define ICON_SLIDE_STEPS_US 10
269 /* menu scrolling */
270 #define MENU_SCROLL_STEPS_UF 14
271 #define MENU_SCROLL_DELAY_UF 1
273 #define MENU_SCROLL_STEPS_F 10
274 #define MENU_SCROLL_DELAY_F 5
276 #define MENU_SCROLL_STEPS_M 6
277 #define MENU_SCROLL_DELAY_M 5
279 #define MENU_SCROLL_STEPS_S 4
280 #define MENU_SCROLL_DELAY_S 6
282 #define MENU_SCROLL_STEPS_US 1
283 #define MENU_SCROLL_DELAY_US 8
285 /* shade animation */
286 #define SHADE_STEPS_UF 5
287 #define SHADE_DELAY_UF 0
289 #define SHADE_STEPS_F 10
290 #define SHADE_DELAY_F 0
292 #define SHADE_STEPS_M 15
293 #define SHADE_DELAY_M 0
295 #define SHADE_STEPS_S 30
296 #define SHADE_DELAY_S 0
298 #define SHADE_STEPS_US 40
299 #define SHADE_DELAY_US 10
301 /* workspace name on switch display */
302 #define WORKSPACE_NAME_FADE_DELAY 30
304 #ifdef VIRTUAL_DESKTOP
305 /* workspace virtual edge speed */
306 #define VIRTUALEDGE_SCROLL_VSTEP 30
307 #define VIRTUALEDGE_SCROLL_HSTEP 30
308 #endif
310 #define WORKSPACE_NAME_DELAY 400
312 /* Delay when cycling colors of selected icons. */
313 #define COLOR_CYCLE_DELAY 200
315 /* size of the pieces in the undocked icon explosion */
316 #define ICON_KABOOM_PIECE_SIZE 4
319 * Position increment for smart placement: >= 1
320 * Raise these values if it's too slow for you
322 #define PLACETEST_HSTEP 8
323 #define PLACETEST_VSTEP 8
325 #define DOCK_EXTRA_SPACE 0
327 /* Vicinity in which an icon can be attached to the clip */
328 #define CLIP_ATTACH_VICINITY 1
329 #define CLIP_BUTTON_SIZE 23
331 /* The amount of space (in multiples of the icon size)
332 * a docked icon must be dragged out to detach it */
333 #define DOCK_DETTACH_THRESHOLD 3
335 /* Delay (in ms) after which the clip will autocollapse when leaved */
336 #define AUTO_COLLAPSE_DELAY 1000
338 /* Delay (in ms) after which the clip will autoexpand when entered.
339 * Set this to zero if you want instant expanding. */
340 #define AUTO_EXPAND_DELAY 600
342 /* Delay (in ms) after which the clip will be lowered when leaved */
343 #define AUTO_LOWER_DELAY 1000
345 /* Delay (in ms) after which the clip will be raised when entered.
346 * Set this to zero if you want instant raise. */
347 #define AUTO_RAISE_DELAY 600
349 /* Max. number of icons the clip can have */
350 #define CLIP_MAX_ICONS 32
352 /* blink interval when invoking a menu item */
353 #define MENU_BLINK_DELAY 60000
354 #define MENU_BLINK_COUNT 2
355 #define CURSOR_BLINK_RATE 300
357 /* how many pixels to move before dragging windows and other objects */
358 #define MOVE_THRESHOLD 5
359 #define HRESIZE_THRESHOLD 3
361 #define MAX_WORKSPACENAME_WIDTH 64
362 /* max width of window title in window list */
363 #define MAX_WINDOWLIST_WIDTH 160
365 #define KEY_CONTROL_WINDOW_WEIGHT 1
367 /* if your keyboard don't have arrow keys */
368 #undef ARROWLESS_KBD
370 /* don't put titles in miniwindows */
371 #undef NO_MINIWINDOW_TITLES
373 #define FRAME_BORDER_COLOR "black"
375 /* for boxes with high mouse sampling rates (SGI) */
376 #define DELAY_BETWEEN_MOUSE_SAMPLING 10
379 * You should not modify the following values, unless you know
380 * what you're doing.
383 /* number of window shortcuts */
384 #define MAX_WINDOW_SHORTCUTS 10
385 #define WM_PI 3.14159265358979323846
386 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
387 #define TITLEBAR_HEIGHT 18 /* window's titlebar height */
388 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
389 #define FRAME_BORDER_WIDTH 1 /* width of window border for frames */
390 #define RESIZEBAR_MIN_WIDTH 20 /* min width of handles-corner_width */
391 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
392 #define MENU_INDICATOR_SPACE 12
393 #define MIN_WINDOW_SIZE 5 /* minimum size for windows */
394 #define ICON_WIDTH 64 /* size of the icon window */
395 #define ICON_HEIGHT 64
396 #define ICON_BORDER_WIDTH 2
397 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
398 #define MAX_ICON_HEIGHT 48
399 #define MAX_WORKSPACES 100
400 #define MAX_MENU_TEXT_LENGTH 512
401 #define MAX_RESTART_ARGS 16
402 #define MAX_DEAD_PROCESSES 128
403 #define MAXLINE 1024
405 #ifdef _MAX_PATH
406 # define DEFAULT_PATH_MAX _MAX_PATH
407 #else
408 # define DEFAULT_PATH_MAX 512
409 #endif
411 #define DEBUG0
413 /* some rules */
414 #ifndef SHAPE
415 #undef SHAPED_BALLOON
416 #endif
418 #ifdef XKB_MODELOCK
419 #define KEEP_XKB_LOCK_STATUS
420 /* This is a hidden feature.
421 * Choose just one of LANGUAGE_* hints.
422 * Icon can be changed in def_pixmaps.h.
423 * More icons are welcome.
425 #define XKB_BUTTON_HINT
426 #undef LANGUAGE_TH
427 #undef LANGUAGE_SK
428 #endif
430 #if defined(HAVE_LIBINTL_H) && defined(I18N)
431 #include <libintl.h>
432 #define _(text) gettext(text)
433 #else
434 #define _(text) (text)
435 #endif
437 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
438 #define INLINE inline
439 #else
440 #define INLINE
441 #endif
443 #endif /* WMCONFIG_H_ */