1 /* Copyright (c) 2012, Bastien Dejean
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
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.
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.
25 #ifndef BSPWM_SETTINGS_H
26 #define BSPWM_SETTINGS_H
30 #define WM_NAME "bspwm"
31 #define CONFIG_NAME WM_NAME "rc"
32 #define CONFIG_HOME_ENV "XDG_CONFIG_HOME"
33 #define EXTERNAL_RULES_COMMAND ""
34 #define STATUS_PREFIX "W"
36 #define FOCUSED_BORDER_COLOR "#7E7F89"
37 #define ACTIVE_BORDER_COLOR "#545350"
38 #define NORMAL_BORDER_COLOR "#3F3E3B"
39 #define PRESEL_BORDER_COLOR "#E8E8F4"
40 #define FOCUSED_LOCKED_BORDER_COLOR "#C7B579"
41 #define ACTIVE_LOCKED_BORDER_COLOR "#545350"
42 #define NORMAL_LOCKED_BORDER_COLOR "#3F3E3B"
43 #define FOCUSED_STICKY_BORDER_COLOR "#E3A5DA"
44 #define ACTIVE_STICKY_BORDER_COLOR "#545350"
45 #define NORMAL_STICKY_BORDER_COLOR "#3F3E3B"
46 #define FOCUSED_PRIVATE_BORDER_COLOR "#42CAD9"
47 #define ACTIVE_PRIVATE_BORDER_COLOR "#5C5955"
48 #define NORMAL_PRIVATE_BORDER_COLOR "#34322E"
49 #define URGENT_BORDER_COLOR "#EFA29A"
51 #define SPLIT_RATIO 0.5
53 #define BORDER_WIDTH 1
55 #define HISTORY_AWARE_FOCUS false
56 #define FOCUS_BY_DISTANCE false
57 #define BORDERLESS_MONOCLE false
58 #define GAPLESS_MONOCLE false
59 #define LEAF_MONOCLE false
60 #define FOCUS_FOLLOWS_POINTER false
61 #define POINTER_FOLLOWS_FOCUS false
62 #define POINTER_FOLLOWS_MONITOR false
63 #define AUTO_ALTERNATE false
64 #define AUTO_CANCEL false
65 #define APPLY_FLOATING_ATOM false
66 #define IGNORE_EWMH_FOCUS false
67 #define CENTER_PSEUDO_TILED true
68 #define REMOVE_DISABLED_MONITORS false
69 #define REMOVE_UNPLUGGED_MONITORS false
70 #define MERGE_OVERLAPPING_MONITORS false
72 char external_rules_command[MAXLEN];
73 char status_prefix[MAXLEN];
75 char focused_border_color[MAXLEN];
76 char active_border_color[MAXLEN];
77 char normal_border_color[MAXLEN];
78 char presel_border_color[MAXLEN];
79 char focused_locked_border_color[MAXLEN];
80 char active_locked_border_color[MAXLEN];
81 char normal_locked_border_color[MAXLEN];
82 char focused_sticky_border_color[MAXLEN];
83 char active_sticky_border_color[MAXLEN];
84 char normal_sticky_border_color[MAXLEN];
85 char focused_private_border_color[MAXLEN];
86 char active_private_border_color[MAXLEN];
87 char normal_private_border_color[MAXLEN];
88 char urgent_border_color[MAXLEN];
92 unsigned int border_width;
93 child_polarity_t initial_polarity;
95 bool borderless_monocle;
98 bool focus_follows_pointer;
99 bool pointer_follows_focus;
100 bool pointer_follows_monitor;
101 bool apply_floating_atom;
104 bool history_aware_focus;
105 bool focus_by_distance;
106 bool ignore_ewmh_focus;
107 bool center_pseudo_tiled;
108 bool remove_disabled_monitors;
109 bool remove_unplugged_monitors;
110 bool merge_overlapping_monitors;
112 void run_config(void);
113 void load_settings(void);