]> git.lizzy.rs Git - bspwm.git/blob - settings.h
Don't remove unplugged monitors by default
[bspwm.git] / settings.h
1 /* Copyright (c) 2012-2014, 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  * 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.
27  */
28
29 #ifndef BSPWM_SETTINGS_H
30 #define BSPWM_SETTINGS_H
31
32 #include "types.h"
33
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"
39
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"
54
55 #define SPLIT_RATIO    0.5
56
57 #define HISTORY_AWARE_FOCUS        false
58 #define BORDERLESS_MONOCLE         false
59 #define GAPLESS_MONOCLE            false
60 #define FOCUS_FOLLOWS_POINTER      false
61 #define POINTER_FOLLOWS_MONITOR    false
62 #define AUTO_ALTERNATE             false
63 #define AUTO_CANCEL                false
64 #define APPLY_FLOATING_ATOM        false
65 #define IGNORE_EWMH_FOCUS          false
66 #define REMOVE_DISABLED_MONITOR    false
67 #define REMOVE_UNPLUGGED_MONITORS  false
68
69 char external_rules_command[MAXLEN];
70 char status_prefix[MAXLEN];
71
72 char focused_border_color[MAXLEN];
73 char active_border_color[MAXLEN];
74 char normal_border_color[MAXLEN];
75 char presel_border_color[MAXLEN];
76 char focused_locked_border_color[MAXLEN];
77 char active_locked_border_color[MAXLEN];
78 char normal_locked_border_color[MAXLEN];
79 char focused_sticky_border_color[MAXLEN];
80 char active_sticky_border_color[MAXLEN];
81 char normal_sticky_border_color[MAXLEN];
82 char focused_private_border_color[MAXLEN];
83 char active_private_border_color[MAXLEN];
84 char normal_private_border_color[MAXLEN];
85 char urgent_border_color[MAXLEN];
86
87 double split_ratio;
88
89 bool borderless_monocle;
90 bool gapless_monocle;
91 bool focus_follows_pointer;
92 bool pointer_follows_monitor;
93 bool apply_floating_atom;
94 bool auto_alternate;
95 bool auto_cancel;
96 bool history_aware_focus;
97 bool ignore_ewmh_focus;
98 bool remove_disabled_monitor;
99 bool remove_unplugged_monitors;
100
101 void run_config(void);
102 void load_settings(void);
103
104 #endif