]> git.lizzy.rs Git - bspwm.git/blob - src/settings.h
4c1564405c3156d02ab39d62e0ed99282a8bc30b
[bspwm.git] / src / settings.h
1 /* Copyright (c) 2012, Bastien Dejean
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * 1. Redistributions of source code must retain the above copyright notice, this
8  *    list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright notice,
10  *    this list of conditions and the following disclaimer in the documentation
11  *    and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
17  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23  */
24
25 #ifndef BSPWM_SETTINGS_H
26 #define BSPWM_SETTINGS_H
27
28 #include "types.h"
29
30 #define POINTER_MODIFIER         XCB_MOD_MASK_4
31 #define POINTER_MOTION_INTERVAL  17
32 #define EXTERNAL_RULES_COMMAND   ""
33 #define STATUS_PREFIX            "W"
34
35 #define NORMAL_BORDER_COLOR           "#30302f"
36 #define ACTIVE_BORDER_COLOR           "#474645"
37 #define FOCUSED_BORDER_COLOR          "#817f7f"
38 #define PRESEL_FEEDBACK_COLOR         "#f4d775"
39
40 #define PADDING              {0, 0, 0, 0}
41 #define WINDOW_GAP           6
42 #define BORDER_WIDTH         1
43 #define SPLIT_RATIO          0.5
44
45 #define BORDERLESS_MONOCLE          false
46 #define GAPLESS_MONOCLE             false
47 #define PADDINGLESS_MONOCLE         false
48 #define SINGLE_MONOCLE              false
49
50 #define FOCUS_FOLLOWS_POINTER       false
51 #define POINTER_FOLLOWS_FOCUS       false
52 #define POINTER_FOLLOWS_MONITOR     false
53 #define CLICK_TO_FOCUS              XCB_BUTTON_INDEX_1
54 #define SWALLOW_FIRST_CLICK         false
55 #define IGNORE_EWMH_FOCUS           false
56 #define IGNORE_EWMH_FULLSCREEN      0
57
58 #define CENTER_PSEUDO_TILED         true
59 #define HONOR_SIZE_HINTS            false
60 #define MAPPING_EVENTS_COUNT        1
61
62 #define REMOVE_DISABLED_MONITORS    false
63 #define REMOVE_UNPLUGGED_MONITORS   false
64 #define MERGE_OVERLAPPING_MONITORS  false
65
66 char external_rules_command[MAXLEN];
67 char status_prefix[MAXLEN];
68
69 char normal_border_color[MAXLEN];
70 char active_border_color[MAXLEN];
71 char focused_border_color[MAXLEN];
72 char presel_feedback_color[MAXLEN];
73
74 padding_t padding;
75 int window_gap;
76 unsigned int border_width;
77 double split_ratio;
78
79 child_polarity_t initial_polarity;
80 tightness_t directional_focus_tightness;
81 uint16_t pointer_modifier;
82 uint32_t pointer_motion_interval;
83 pointer_action_t pointer_actions[3];
84 int8_t mapping_events_count;
85
86 bool borderless_monocle;
87 bool gapless_monocle;
88 bool paddingless_monocle;
89 bool single_monocle;
90
91 bool focus_follows_pointer;
92 bool pointer_follows_focus;
93 bool pointer_follows_monitor;
94 int8_t click_to_focus;
95 bool swallow_first_click;
96 bool ignore_ewmh_focus;
97 state_transition_t ignore_ewmh_fullscreen;
98
99 bool center_pseudo_tiled;
100 bool honor_size_hints;
101
102 bool remove_disabled_monitors;
103 bool remove_unplugged_monitors;
104 bool merge_overlapping_monitors;
105
106 void run_config(void);
107 void load_settings(void);
108
109 #endif