1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 config.h for the Openbox window manager
4 Copyright (c) 2006 Mikael Magnusson
5 Copyright (c) 2003-2007 Dana Jansens
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.
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.
17 See the COPYING file for a copy of the GNU General Public License.
27 #include "render/render.h"
59 /*! Should new windows be focused */
60 extern gboolean config_focus_new
;
61 /*! Focus windows when the mouse enters them */
62 extern gboolean config_focus_follow
;
63 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
64 extern guint config_focus_delay
;
65 /*! If windows should automatically be raised when they are focused in
66 focus follows mouse */
67 extern gboolean config_focus_raise
;
68 /*! Focus the last focused window, not under the mouse, in follow mouse mode */
69 extern gboolean config_focus_last
;
71 extern ObPlacePolicy config_place_policy
;
73 /*! When true windows' contents are refreshed while they are resized; otherwise
74 they are not updated until the resize is complete */
75 extern gboolean config_resize_redraw
;
76 /*! show move/resize popups? 0 = no, 1 = always, 2 = only
77 resizing !1 increments */
78 extern gint config_resize_popup_show
;
79 /*! where to show the popup, currently above the window or centered */
80 extern gint config_resize_popup_pos
;
82 /*! The stacking layer the dock will reside in */
83 extern ObStackingLayer config_dock_layer
;
84 /*! Is the dock floating */
85 extern gboolean config_dock_floating
;
86 /*! Don't use a strut for the dock */
87 extern gboolean config_dock_nostrut
;
88 /*! Where to place the dock if not floating */
89 extern ObDirection config_dock_pos
;
90 /*! If config_dock_floating, this is the top-left corner's
92 extern gint config_dock_x
;
93 /*! If config_dock_floating, this is the top-left corner's
95 extern gint config_dock_y
;
96 /*! Whether the dock places the dockapps in it horizontally or vertically */
97 extern ObOrientation config_dock_orient
;
98 /*! Whether to auto-hide the dock when the pointer is not over it */
99 extern gboolean config_dock_hide
;
100 /*! The number of microseconds to wait before hiding the dock */
101 extern guint config_dock_hide_delay
;
102 /*! The number of microseconds to wait before showing the dock */
103 extern guint config_dock_show_delay
;
104 /*! The mouse button to be used to move dock apps */
105 extern guint config_dock_app_move_button
;
106 /*! The modifiers to be used with the button to move dock apps */
107 extern guint config_dock_app_move_modifiers
;
109 /*! The name of the theme */
110 extern gchar
*config_theme
;
112 /*! Show the one-pixel border after toggleDecor */
113 extern gboolean config_theme_keepborder
;
114 /*! Titlebar button layout */
115 extern gchar
*config_title_layout
;
116 /*! Animate windows iconifying and restoring */
117 extern gboolean config_animate_iconify
;
119 /*! The font for the active window's title */
120 extern RrFont
*config_font_activewindow
;
121 /*! The font for inactive windows' titles */
122 extern RrFont
*config_font_inactivewindow
;
123 /*! The font for menu titles */
124 extern RrFont
*config_font_menutitle
;
125 /*! The font for menu items */
126 extern RrFont
*config_font_menuitem
;
127 /*! The font for on-screen-displays/popups */
128 extern RrFont
*config_font_osd
;
130 /*! The number of desktops */
131 extern gint config_desktops_num
;
132 /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */
133 extern guint config_screen_firstdesk
;
134 /*! Names for the desktops */
135 extern GSList
*config_desktops_names
;
137 /*! The keycode of the key combo which resets the keybaord chains */
138 extern guint config_keyboard_reset_keycode
;
139 /*! The modifiers of the key combo which resets the keybaord chains */
140 extern guint config_keyboard_reset_state
;
142 /*! Number of pixels a drag must go before being considered a drag */
143 extern gint config_mouse_threshold
;
144 /*! Number of milliseconds within which 2 clicks must occur to be a
146 extern gint config_mouse_dclicktime
;
148 /*! Number of pixels to resist while crossing another window's edge */
149 extern gint config_resist_win
;
150 /*! Number of pixels to resist while crossing a screen's edge */
151 extern gint config_resist_edge
;
152 /*! Should windows resist edges at layers below */
153 extern gboolean config_resist_layers_below
;
155 /*! Warp near edge on menu? */
156 extern gboolean config_menu_warppointer
;
157 /*! delay for hiding menu when opening */
158 extern guint config_menu_hide_delay
;
159 /*! Center menus vertically about the parent entry */
160 extern gboolean config_menu_middle
;
161 /*! delay before opening a submenu */
162 extern guint config_submenu_show_delay
;
163 /*! show icons in client_list_menu */
164 extern gboolean config_menu_client_list_icons
;
165 /*! User-specified menu files */
166 extern GSList
*config_menu_files
;
167 /*! Per app settings */
168 extern GSList
*config_per_app_settings
;
170 void config_startup(struct _ObParseInst
*i
);
171 void config_shutdown();