forgot
[mikachu/openbox.git] / openbox / config.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    config.h for the Openbox window manager
4    Copyright (c) 2004        Mikael Magnusson
5    Copyright (c) 2003        Ben Jansens
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    See the COPYING file for a copy of the GNU General Public License.
18 */
19
20 #ifndef __config_h
21 #define __config_h
22
23 #include "misc.h"
24 #include "stacking.h"
25 #include "place.h"
26
27 #include <glib.h>
28
29 struct _ObParseInst;
30
31 /*! Should new windows be focused */
32 extern gboolean config_focus_new;
33 /*! Focus windows when the mouse enters them */
34 extern gboolean config_focus_follow;
35 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
36 extern guint    config_focus_delay;
37 /*! If windows should automatically be raised when they are focused in
38  focus follows mouse */
39 extern gboolean config_focus_raise;
40 /*! Focus the last focused window, not under the mouse, in follow mouse mode */
41 extern gboolean config_focus_last;
42
43 extern ObPlacePolicy config_place_policy;
44
45 /*! When true windows' contents are refreshed while they are resized; otherwise
46   they are not updated until the resize is complete */
47 extern gboolean config_resize_redraw;
48 /*! show move/resize popups? 0 = no, 1 = always, 2 = only
49   resizing !1 increments */
50 extern gint config_resize_popup_show;
51 /*! where to show the popup, currently above the window or centered */
52 extern gint config_resize_popup_pos;
53
54 /*! The stacking layer the dock will reside in */
55 extern ObStackingLayer config_dock_layer;
56 /*! Is the dock floating */
57 extern gboolean config_dock_floating;
58 /*! Where to place the dock if not floating */
59 extern ObDirection config_dock_pos;
60 /*! If config_dock_floating, this is the top-left corner's
61   position */
62 extern gint config_dock_x;
63 /*! If config_dock_floating, this is the top-left corner's
64   position */
65 extern gint config_dock_y;
66 /*! Whether the dock places the dockapps in it horizontally or vertically */
67 extern ObOrientation config_dock_orient;
68 /*! Whether to auto-hide the dock when the pointer is not over it */
69 extern gboolean config_dock_hide;
70 /*! The number of microseconds to wait before hiding the dock */
71 extern guint config_dock_hide_delay;
72 /*! The mouse button to be used to move dock apps */
73 extern guint config_dock_app_move_button;
74 /*! The modifiers to be used with the button to move dock apps */
75 extern guint config_dock_app_move_modifiers;
76
77 /* The name of the theme */
78 extern gchar *config_theme;
79
80 /* Show the onepixel border after toggleDecor */
81 extern gboolean config_theme_keepborder;
82 /* Titlebar button layout */
83 extern gchar *config_title_layout;
84
85 /*! The number of desktops */
86 extern gint config_desktops_num;
87 /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */
88 extern gint config_screen_firstdesk;
89 /*! Names for the desktops */
90 extern GSList *config_desktops_names;
91
92 /*! The keycode of the key combo which resets the keybaord chains */
93 extern guint config_keyboard_reset_keycode;
94 /*! The modifiers of the key combo which resets the keybaord chains */
95 extern guint config_keyboard_reset_state;
96
97 /*! Number of pixels a drag must go before being considered a drag */
98 extern gint config_mouse_threshold;
99 /*! Number of milliseconds within which 2 clicks must occur to be a
100   double-click */
101 extern gint config_mouse_dclicktime;
102
103 /*! Number of pixels to resist while crossing another window's edge */
104 extern gint config_resist_win;
105 /*! Number of pixels to resist while crossing a screen's edge */
106 extern gint config_resist_edge;
107
108 /*! Warp near edge on menu? */
109 extern gboolean config_menu_warppointer;
110 /*! make menus jump around a lot */
111 extern gboolean config_menu_xorstyle;
112 /*! hilight first entry in menu */
113 extern gboolean config_menu_hilightfirst;
114 /*! delay for hiding menu when opening */
115 extern guint    config_menu_hide_delay;
116 /*! User-specified menu files */
117 extern GSList *config_menu_files;
118
119 void config_startup(struct _ObParseInst *i);
120 void config_shutdown();
121
122 #endif