]> git.lizzy.rs Git - bspwm.git/blob - settings.h
b58dac8ef0971484bcff9bfc2e0a1398210e76ca
[bspwm.git] / 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 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"
35
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"
50
51 #define SPLIT_RATIO    0.5
52 #define WINDOW_GAP     6
53 #define BORDER_WIDTH   1
54
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 IGNORE_EWMH_FOCUS           false
66 #define CENTER_PSEUDO_TILED         true
67 #define REMOVE_DISABLED_MONITORS    false
68 #define REMOVE_UNPLUGGED_MONITORS   false
69 #define MERGE_OVERLAPPING_MONITORS  false
70
71 char external_rules_command[MAXLEN];
72 char status_prefix[MAXLEN];
73
74 char focused_border_color[MAXLEN];
75 char active_border_color[MAXLEN];
76 char normal_border_color[MAXLEN];
77 char presel_border_color[MAXLEN];
78 char focused_locked_border_color[MAXLEN];
79 char active_locked_border_color[MAXLEN];
80 char normal_locked_border_color[MAXLEN];
81 char focused_sticky_border_color[MAXLEN];
82 char active_sticky_border_color[MAXLEN];
83 char normal_sticky_border_color[MAXLEN];
84 char focused_private_border_color[MAXLEN];
85 char active_private_border_color[MAXLEN];
86 char normal_private_border_color[MAXLEN];
87 char urgent_border_color[MAXLEN];
88
89 double split_ratio;
90 int window_gap;
91 unsigned int border_width;
92 child_polarity_t initial_polarity;
93
94 bool borderless_monocle;
95 bool gapless_monocle;
96 bool leaf_monocle;
97 bool focus_follows_pointer;
98 bool pointer_follows_focus;
99 bool pointer_follows_monitor;
100 bool auto_alternate;
101 bool auto_cancel;
102 bool history_aware_focus;
103 bool focus_by_distance;
104 bool ignore_ewmh_focus;
105 bool center_pseudo_tiled;
106 bool remove_disabled_monitors;
107 bool remove_unplugged_monitors;
108 bool merge_overlapping_monitors;
109
110 void run_config(void);
111 void load_settings(void);
112
113 #endif