1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 config.h for the Openbox window manager
4 Copyright (c) 2003 Ben Jansens
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.
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.
16 See the COPYING file for a copy of the GNU General Public License.
29 /*! Should new windows be focused */
30 extern gboolean config_focus_new
;
31 /*! Focus windows when the mouse enters them */
32 extern gboolean config_focus_follow
;
33 /*! Timeout for focusing windows on focus follows mouse, in microseconds */
34 extern guint config_focus_delay
;
35 /*! If windows should automatically be raised when they are focused in
36 focus follows mouse */
37 extern guint config_focus_raise
;
39 /*! When true windows' contents are refreshed while they are resized; otherwise
40 they are not updated until the resize is complete */
41 extern gboolean config_redraw_resize
;
43 /*! The stacking layer the dock will reside in */
44 extern ObStackingLayer config_dock_layer
;
45 /*! Is the dock floating */
46 extern gboolean config_dock_floating
;
47 /*! Where to place the dock if not floating */
48 extern ObDirection config_dock_pos
;
49 /*! If config_dock_floating, this is the top-left corner's
51 extern gint config_dock_x
;
52 /*! If config_dock_floating, this is the top-left corner's
54 extern gint config_dock_y
;
55 /*! Whether the dock places the dockapps in it horizontally or vertically */
56 extern ObOrientation config_dock_orient
;
57 /*! Whether to auto-hide the dock when the pointer is not over it */
58 extern gboolean config_dock_hide
;
59 /*! The number of microseconds to wait before hiding the dock */
60 extern guint config_dock_hide_delay
;
61 /*! The mouse button to be used to move dock apps */
62 extern guint config_dock_app_move_button
;
63 /*! The modifiers to be used with the button to move dock apps */
64 extern guint config_dock_app_move_modifiers
;
66 /* The name of the theme */
67 extern char *config_theme
;
69 /* Titlebar button layout */
70 extern gchar
*config_title_layout
;
72 /*! The number of desktops */
73 extern int config_desktops_num
;
74 /*! Names for the desktops */
75 extern GSList
*config_desktops_names
;
77 /*! The keycode of the key combo which resets the keybaord chains */
78 extern guint config_keyboard_reset_keycode
;
79 /*! The modifiers of the key combo which resets the keybaord chains */
80 extern guint config_keyboard_reset_state
;
82 /*! Number of pixels a drag must go before being considered a drag */
83 extern gint config_mouse_threshold
;
84 /*! Number of milliseconds within which 2 clicks must occur to be a
86 extern gint config_mouse_dclicktime
;
88 /*! Number of pixels to resist while crossing another window's edge */
89 extern gint config_resist_win
;
90 /*! Number of pixels to resist while crossing a screen's edge */
91 extern gint config_resist_edge
;
93 /*! User-specified menu files */
94 extern GSList
*config_menu_files
;
96 void config_startup(struct _ObParseInst
*i
);
97 void config_shutdown();