]> Dogcows Code - chaz/openbox/blob - openbox/config.h
better string matching for duplicate title numbering. this will check against the...
[chaz/openbox] / 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) 2006 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 #include "render/render.h"
27
28 #include <glib.h>
29
30 struct _ObParseInst;
31
32 /*! Should new windows be focused */
33 extern gboolean config_focus_new;
34 /*! Focus windows when the mouse enters them */
35 extern gboolean config_focus_follow;
36 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
37 extern guint config_focus_delay;
38 /*! If windows should automatically be raised when they are focused in
39 focus follows mouse */
40 extern gboolean config_focus_raise;
41 /*! Focus the last focused window, not under the mouse, in follow mouse mode */
42 extern gboolean config_focus_last;
43
44 extern ObPlacePolicy config_place_policy;
45
46 /*! When true windows' contents are refreshed while they are resized; otherwise
47 they are not updated until the resize is complete */
48 extern gboolean config_resize_redraw;
49 /*! Divide windows in 4 or 9 areas when doing a resize. The middle will be move
50 when selecting 9 corners */
51 extern gboolean config_resize_four_corners;
52 /*! show move/resize popups? 0 = no, 1 = always, 2 = only
53 resizing !1 increments */
54 extern gint config_resize_popup_show;
55 /*! where to show the popup, currently above the window or centered */
56 extern gint config_resize_popup_pos;
57
58 /*! The stacking layer the dock will reside in */
59 extern ObStackingLayer config_dock_layer;
60 /*! Is the dock floating */
61 extern gboolean config_dock_floating;
62 /*! Don't use a strut for the dock */
63 extern gboolean config_dock_nostrut;
64 /*! Where to place the dock if not floating */
65 extern ObDirection config_dock_pos;
66 /*! If config_dock_floating, this is the top-left corner's
67 position */
68 extern gint config_dock_x;
69 /*! If config_dock_floating, this is the top-left corner's
70 position */
71 extern gint config_dock_y;
72 /*! Whether the dock places the dockapps in it horizontally or vertically */
73 extern ObOrientation config_dock_orient;
74 /*! Whether to auto-hide the dock when the pointer is not over it */
75 extern gboolean config_dock_hide;
76 /*! The number of microseconds to wait before hiding the dock */
77 extern guint config_dock_hide_delay;
78 /*! The number of microseconds to wait before showing the dock */
79 extern guint config_dock_show_delay;
80 /*! The mouse button to be used to move dock apps */
81 extern guint config_dock_app_move_button;
82 /*! The modifiers to be used with the button to move dock apps */
83 extern guint config_dock_app_move_modifiers;
84
85 /*! The name of the theme */
86 extern gchar *config_theme;
87
88 /*! Show the one-pixel border after toggleDecor */
89 extern gboolean config_theme_keepborder;
90 /*! Hide window frame buttons that the window doesn't allow */
91 extern gboolean config_theme_hidedisabled;
92 /*! Titlebar button layout */
93 extern gchar *config_title_layout;
94 /*! Append a unique number to windows with same titles */
95 extern gboolean config_title_number;
96
97 /*! The font for the active window's title */
98 extern RrFont *config_font_activewindow;
99 /*! The font for inactive windows' titles */
100 extern RrFont *config_font_inactivewindow;
101 /*! The font for menu titles */
102 extern RrFont *config_font_menutitle;
103 /*! The font for menu items */
104 extern RrFont *config_font_menuitem;
105
106 /*! The number of desktops */
107 extern gint config_desktops_num;
108 /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */
109 extern guint config_screen_firstdesk;
110 /*! Names for the desktops */
111 extern GSList *config_desktops_names;
112
113 /*! The keycode of the key combo which resets the keybaord chains */
114 extern guint config_keyboard_reset_keycode;
115 /*! The modifiers of the key combo which resets the keybaord chains */
116 extern guint config_keyboard_reset_state;
117
118 /*! Number of pixels a drag must go before being considered a drag */
119 extern gint config_mouse_threshold;
120 /*! Number of milliseconds within which 2 clicks must occur to be a
121 double-click */
122 extern gint config_mouse_dclicktime;
123
124 /*! Number of pixels to resist while crossing another window's edge */
125 extern gint config_resist_win;
126 /*! Number of pixels to resist while crossing a screen's edge */
127 extern gint config_resist_edge;
128 /*! Should windows resist edges at layers below */
129 extern gboolean config_resist_layers_below;
130
131 /*! Warp near edge on menu? */
132 extern gboolean config_menu_warppointer;
133 /*! make menus jump around a lot */
134 extern gboolean config_menu_xorstyle;
135 /*! delay for hiding menu when opening */
136 extern guint config_menu_hide_delay;
137 /*! Center menus vertically about the parent entry */
138 extern gboolean config_menu_middle;
139 /*! delay before opening a submenu */
140 extern guint config_submenu_show_delay;
141 /*! show icons in client_list_menu */
142 extern gboolean config_menu_client_list_icons;
143 /*! User-specified menu files */
144 extern GSList *config_menu_files;
145 /*! Per app settings */
146 extern GSList *config_per_app_settings;
147
148 void config_startup(struct _ObParseInst *i);
149 void config_shutdown();
150
151 #endif
This page took 0.043831 seconds and 4 git commands to generate.