]> icculus.org git repositories - mikachu/openbox.git/blob - openbox/config.h
adds option to have the popup centered above the window instead of centered, and...
[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) 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 #include "place.h"
25
26 #include <glib.h>
27
28 struct _ObParseInst;
29
30 /*! Should new windows be focused */
31 extern gboolean config_focus_new;
32 /*! Focus windows when the mouse enters them */
33 extern gboolean config_focus_follow;
34 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
35 extern guint    config_focus_delay;
36 /*! If windows should automatically be raised when they are focused in
37  focus follows mouse */
38 extern gboolean config_focus_raise;
39 /*! Focus the last focused window, not under the mouse, in follow mouse mode */
40 extern gboolean config_focus_last;
41
42 extern ObPlacePolicy config_place_policy;
43
44 /*! When true windows' contents are refreshed while they are resized; otherwise
45   they are not updated until the resize is complete */
46 extern gboolean config_resize_redraw;
47 /*! show move/resize popups? 0 = no, 1 = always, 2 = only
48   resizing !1 increments */
49 extern gint config_resize_popup_show;
50 /*! where to show the popup, currently above the window or centered */
51 extern gint config_resize_popup_pos;
52
53 /*! The stacking layer the dock will reside in */
54 extern ObStackingLayer config_dock_layer;
55 /*! Is the dock floating */
56 extern gboolean config_dock_floating;
57 /*! Where to place the dock if not floating */
58 extern ObDirection config_dock_pos;
59 /*! If config_dock_floating, this is the top-left corner's
60   position */
61 extern gint config_dock_x;
62 /*! If config_dock_floating, this is the top-left corner's
63   position */
64 extern gint config_dock_y;
65 /*! Whether the dock places the dockapps in it horizontally or vertically */
66 extern ObOrientation config_dock_orient;
67 /*! Whether to auto-hide the dock when the pointer is not over it */
68 extern gboolean config_dock_hide;
69 /*! The number of microseconds to wait before hiding the dock */
70 extern guint config_dock_hide_delay;
71 /*! The mouse button to be used to move dock apps */
72 extern guint config_dock_app_move_button;
73 /*! The modifiers to be used with the button to move dock apps */
74 extern guint config_dock_app_move_modifiers;
75
76 /* The name of the theme */
77 extern gchar *config_theme;
78
79 /* Titlebar button layout */
80 extern gchar *config_title_layout;
81
82 /*! The number of desktops */
83 extern gint config_desktops_num;
84 /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */
85 extern gint config_screen_firstdesk;
86 /*! Names for the desktops */
87 extern GSList *config_desktops_names;
88
89 /*! The keycode of the key combo which resets the keybaord chains */
90 extern guint config_keyboard_reset_keycode;
91 /*! The modifiers of the key combo which resets the keybaord chains */
92 extern guint config_keyboard_reset_state;
93
94 /*! Number of pixels a drag must go before being considered a drag */
95 extern gint config_mouse_threshold;
96 /*! Number of milliseconds within which 2 clicks must occur to be a
97   double-click */
98 extern gint config_mouse_dclicktime;
99
100 /*! Number of pixels to resist while crossing another window's edge */
101 extern gint config_resist_win;
102 /*! Number of pixels to resist while crossing a screen's edge */
103 extern gint config_resist_edge;
104
105 /*! Warp near edge on menu? */
106 extern gboolean config_menu_warppointer;
107 /*! make menus jump around a lot */
108 extern gboolean config_menu_xorstyle;
109 /*! hilight first entry in menu */
110 extern gboolean config_menu_hilightfirst;
111 /*! delay for hiding menu when opening */
112 extern guint    config_menu_hide_delay;
113 /*! User-specified menu files */
114 extern GSList *config_menu_files;
115
116 void config_startup(struct _ObParseInst *i);
117 void config_shutdown();
118
119 #endif