1 /* Copyright (c) 2012-2014, 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.
24 * The views and conclusions contained in the software and documentation are those
25 * of the authors and should not be interpreted as representing official policies,
26 * either expressed or implied, of the FreeBSD Project.
29 #ifndef BSPWM_SETTINGS_H
30 #define BSPWM_SETTINGS_H
34 #define WM_NAME "bspwm"
35 #define CONFIG_NAME WM_NAME "rc"
36 #define CONFIG_HOME_ENV "XDG_CONFIG_HOME"
37 #define EXTERNAL_RULES_COMMAND ""
38 #define STATUS_PREFIX "W"
40 #define FOCUSED_BORDER_COLOR "#7E7F89"
41 #define ACTIVE_BORDER_COLOR "#545350"
42 #define NORMAL_BORDER_COLOR "#3F3E3B"
43 #define PRESEL_BORDER_COLOR "#E8E8F4"
44 #define FOCUSED_LOCKED_BORDER_COLOR "#C7B579"
45 #define ACTIVE_LOCKED_BORDER_COLOR "#545350"
46 #define NORMAL_LOCKED_BORDER_COLOR "#3F3E3B"
47 #define FOCUSED_STICKY_BORDER_COLOR "#E3A5DA"
48 #define ACTIVE_STICKY_BORDER_COLOR "#545350"
49 #define NORMAL_STICKY_BORDER_COLOR "#3F3E3B"
50 #define FOCUSED_PRIVATE_BORDER_COLOR "#42CAD9"
51 #define ACTIVE_PRIVATE_BORDER_COLOR "#5C5955"
52 #define NORMAL_PRIVATE_BORDER_COLOR "#34322E"
53 #define URGENT_BORDER_COLOR "#EFA29A"
55 #define SPLIT_RATIO 0.5
57 #define BORDER_WIDTH 1
59 #define HISTORY_AWARE_FOCUS false
60 #define FOCUS_BY_DISTANCE false
61 #define BORDERLESS_MONOCLE false
62 #define GAPLESS_MONOCLE false
63 #define FOCUS_FOLLOWS_POINTER false
64 #define POINTER_FOLLOWS_MONITOR false
65 #define AUTO_ALTERNATE false
66 #define AUTO_CANCEL false
67 #define APPLY_FLOATING_ATOM false
68 #define IGNORE_EWMH_FOCUS false
69 #define REMOVE_DISABLED_MONITORS false
70 #define REMOVE_UNPLUGGED_MONITORS false
71 #define MERGE_OVERLAPPING_MONITORS false
73 char external_rules_command[MAXLEN];
74 char status_prefix[MAXLEN];
76 char focused_border_color[MAXLEN];
77 char active_border_color[MAXLEN];
78 char normal_border_color[MAXLEN];
79 char presel_border_color[MAXLEN];
80 char focused_locked_border_color[MAXLEN];
81 char active_locked_border_color[MAXLEN];
82 char normal_locked_border_color[MAXLEN];
83 char focused_sticky_border_color[MAXLEN];
84 char active_sticky_border_color[MAXLEN];
85 char normal_sticky_border_color[MAXLEN];
86 char focused_private_border_color[MAXLEN];
87 char active_private_border_color[MAXLEN];
88 char normal_private_border_color[MAXLEN];
89 char urgent_border_color[MAXLEN];
93 unsigned int border_width;
95 bool borderless_monocle;
97 bool focus_follows_pointer;
98 bool pointer_follows_monitor;
99 bool apply_floating_atom;
102 bool history_aware_focus;
103 bool focus_by_distance;
104 bool ignore_ewmh_focus;
105 bool remove_disabled_monitors;
106 bool remove_unplugged_monitors;
107 bool merge_overlapping_monitors;
109 void run_config(void);
110 void load_settings(void);