]> git.lizzy.rs Git - bspwm.git/blob - settings.h
Remove settings: auto_cancel and auto_alternate
[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 IGNORE_EWMH_FOCUS           false
64 #define CENTER_PSEUDO_TILED         true
65 #define REMOVE_DISABLED_MONITORS    false
66 #define REMOVE_UNPLUGGED_MONITORS   false
67 #define MERGE_OVERLAPPING_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 int window_gap;
89 unsigned int border_width;
90 child_polarity_t initial_polarity;
91
92 bool borderless_monocle;
93 bool gapless_monocle;
94 bool leaf_monocle;
95 bool focus_follows_pointer;
96 bool pointer_follows_focus;
97 bool pointer_follows_monitor;
98 bool history_aware_focus;
99 bool focus_by_distance;
100 bool ignore_ewmh_focus;
101 bool center_pseudo_tiled;
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