0e7a6a24c47b08554d3a90a7b6aa5f6a9f3c85d0
[dana/openbox.git] / openbox / config.h
1 /* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
2
3    config.h for the Openbox window manager
4    Copyright (c) 2003        Ben Jansens
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    See the COPYING file for a copy of the GNU General Public License.
17 */
18
19 #ifndef __config_h
20 #define __config_h
21
22 #include "misc.h"
23 #include "stacking.h"
24
25 #include <glib.h>
26
27 struct _ObParseInst;
28
29 /*! Should new windows be focused */
30 extern gboolean config_focus_new;
31 /*! Focus windows when the mouse enters them */
32 extern gboolean config_focus_follow;
33 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
34 extern guint    config_focus_delay;
35
36 /*! When true windows' contents are refreshed while they are resized; otherwise
37   they are not updated until the resize is complete */
38 extern gboolean config_redraw_resize;
39
40 /*! The stacking layer the dock will reside in */
41 extern ObStackingLayer config_dock_layer;
42 /*! Is the dock floating */
43 extern gboolean config_dock_floating;
44 /*! Where to place the dock if not floating */
45 extern ObDirection config_dock_pos;
46 /*! If config_dock_floating, this is the top-left corner's
47   position */
48 extern gint config_dock_x;
49 /*! If config_dock_floating, this is the top-left corner's
50   position */
51 extern gint config_dock_y;
52 /*! Whether the dock places the dockapps in it horizontally or vertically */
53 extern ObOrientation config_dock_orient;
54 /*! Whether to auto-hide the dock when the pointer is not over it */
55 extern gboolean config_dock_hide;
56 /*! The number of microseconds to wait before hiding the dock */
57 extern guint config_dock_hide_timeout;
58
59 /* The name of the theme */
60 extern char *config_theme;
61
62 /* Titlebar button layout */
63 extern gchar *config_title_layout;
64
65 /*! The number of desktops */
66 extern int config_desktops_num;
67 /*! Names for the desktops */
68 extern GSList *config_desktops_names;
69
70 /*! The keycode of the key combo which resets the keybaord chains */
71 extern guint config_keyboard_reset_keycode;
72 /*! The modifiers of the key combo which resets the keybaord chains */
73 extern guint config_keyboard_reset_state;
74
75 /*! Number of pixels a drag must go before being considered a drag */
76 extern gint config_mouse_threshold;
77 /*! Number of milliseconds within which 2 clicks must occur to be a
78   double-click */
79 extern gint config_mouse_dclicktime;
80
81 /*! Number of pixels to resist while crossing another window's edge */
82 extern gint config_resist_win;
83 /*! Number of pixels to resist while crossing a screen's edge */
84 extern gint config_resist_edge;
85
86 /*! User-specified menu files */
87 extern GSList *config_menu_files;
88
89 void config_startup(struct _ObParseInst *i);
90 void config_shutdown();
91
92 #endif