]> Dogcows Code - chaz/openbox/blob - openbox/config.h
check if they have a group
[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-2007 Dana 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 "geom.h"
27 #include "render/render.h"
28
29 #include <glib.h>
30
31 struct _ObParseInst;
32
33 typedef struct _ObAppSettings ObAppSettings;
34
35 struct _ObAppSettings
36 {
37 GPatternSpec *class;
38 GPatternSpec *name;
39 GPatternSpec *role;
40
41 Point position;
42 gboolean center_x;
43 gboolean center_y;
44 gboolean pos_given;
45
46 guint desktop;
47 gint shade;
48 gint decor;
49 gint focus;
50 gint monitor;
51 gint iconic;
52 gint skip_pager;
53 gint skip_taskbar;
54 gint max_horz;
55 gint max_vert;
56 gint fullscreen;
57
58 gint layer;
59 };
60
61 /*! Should new windows be focused */
62 extern gboolean config_focus_new;
63 /*! Focus windows when the mouse enters them */
64 extern gboolean config_focus_follow;
65 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
66 extern guint config_focus_delay;
67 /*! If windows should automatically be raised when they are focused in
68 focus follows mouse */
69 extern gboolean config_focus_raise;
70 /*! Focus the last focused window, not under the mouse, in follow mouse mode */
71 extern gboolean config_focus_last;
72 /*! Try keep focus on the window under the mouse when the mouse is not moving
73 */
74 extern gboolean config_focus_under_mouse;
75
76 extern ObPlacePolicy config_place_policy;
77
78 /*! When true windows' contents are refreshed while they are resized; otherwise
79 they are not updated until the resize is complete */
80 extern gboolean config_resize_redraw;
81 /*! show move/resize popups? 0 = no, 1 = always, 2 = only
82 resizing !1 increments */
83 extern gint config_resize_popup_show;
84 /*! where to show the popup, currently above the window or centered */
85 extern gint config_resize_popup_pos;
86
87 /*! The stacking layer the dock will reside in */
88 extern ObStackingLayer config_dock_layer;
89 /*! Is the dock floating */
90 extern gboolean config_dock_floating;
91 /*! Don't use a strut for the dock */
92 extern gboolean config_dock_nostrut;
93 /*! Where to place the dock if not floating */
94 extern ObDirection config_dock_pos;
95 /*! If config_dock_floating, this is the top-left corner's
96 position */
97 extern gint config_dock_x;
98 /*! If config_dock_floating, this is the top-left corner's
99 position */
100 extern gint config_dock_y;
101 /*! Whether the dock places the dockapps in it horizontally or vertically */
102 extern ObOrientation config_dock_orient;
103 /*! Whether to auto-hide the dock when the pointer is not over it */
104 extern gboolean config_dock_hide;
105 /*! The number of microseconds to wait before hiding the dock */
106 extern guint config_dock_hide_delay;
107 /*! The number of microseconds to wait before showing the dock */
108 extern guint config_dock_show_delay;
109 /*! The mouse button to be used to move dock apps */
110 extern guint config_dock_app_move_button;
111 /*! The modifiers to be used with the button to move dock apps */
112 extern guint config_dock_app_move_modifiers;
113
114 /*! The name of the theme */
115 extern gchar *config_theme;
116
117 /*! Show the one-pixel border after toggleDecor */
118 extern gboolean config_theme_keepborder;
119 /*! Titlebar button layout */
120 extern gchar *config_title_layout;
121 /*! Animate windows iconifying and restoring */
122 extern gboolean config_animate_iconify;
123
124 /*! The font for the active window's title */
125 extern RrFont *config_font_activewindow;
126 /*! The font for inactive windows' titles */
127 extern RrFont *config_font_inactivewindow;
128 /*! The font for menu titles */
129 extern RrFont *config_font_menutitle;
130 /*! The font for menu items */
131 extern RrFont *config_font_menuitem;
132 /*! The font for on-screen-displays/popups */
133 extern RrFont *config_font_osd;
134
135 /*! The number of desktops */
136 extern gint config_desktops_num;
137 /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */
138 extern guint config_screen_firstdesk;
139 /*! Names for the desktops */
140 extern GSList *config_desktops_names;
141
142 /*! The keycode of the key combo which resets the keybaord chains */
143 extern guint config_keyboard_reset_keycode;
144 /*! The modifiers of the key combo which resets the keybaord chains */
145 extern guint config_keyboard_reset_state;
146
147 /*! Number of pixels a drag must go before being considered a drag */
148 extern gint config_mouse_threshold;
149 /*! Number of milliseconds within which 2 clicks must occur to be a
150 double-click */
151 extern gint config_mouse_dclicktime;
152
153 /*! Number of pixels to resist while crossing another window's edge */
154 extern gint config_resist_win;
155 /*! Number of pixels to resist while crossing a screen's edge */
156 extern gint config_resist_edge;
157
158 /*! delay for hiding menu when opening */
159 extern guint config_menu_hide_delay;
160 /*! Center menus vertically about the parent entry */
161 extern gboolean config_menu_middle;
162 /*! delay before opening a submenu */
163 extern guint config_submenu_show_delay;
164 /*! show icons in client_list_menu */
165 extern gboolean config_menu_client_list_icons;
166 /*! User-specified menu files */
167 extern GSList *config_menu_files;
168 /*! Per app settings */
169 extern GSList *config_per_app_settings;
170
171 void config_startup(struct _ObParseInst *i);
172 void config_shutdown();
173
174 /*! Create an ObAppSettings structure with the default values */
175 ObAppSettings* config_create_app_settings();
176 /*! Copies any settings in src to dest, if they are their default value in
177 src. */
178 void config_app_settings_copy_non_defaults(const ObAppSettings *src,
179 ObAppSettings *dest);
180
181
182 #endif
This page took 0.04175 seconds and 4 git commands to generate.