]> git.lizzy.rs Git - bspwm.git/blob - settings.h
Implement ICCCM's WM_TAKE_FOCUS behavior
[bspwm.git] / settings.h
1 #ifndef _SETTINGS_H
2 #define _SETTINGS_H
3
4 #include "types.h"
5
6 #define WM_NAME             "bspwm"
7 #define CONFIG_NAME         WM_NAME "rc"
8 #define CONFIG_HOME_ENV     "XDG_CONFIG_HOME"
9
10 #define FOCUSED_BORDER_COLOR        "#7E7F89"
11 #define ACTIVE_BORDER_COLOR         "#545350"
12 #define NORMAL_BORDER_COLOR         "#3F3E3B"
13 #define PRESEL_BORDER_COLOR         "#E8E8F4"
14 #define FOCUSED_LOCKED_BORDER_COLOR "#C7B579"
15 #define ACTIVE_LOCKED_BORDER_COLOR  "#545350"
16 #define NORMAL_LOCKED_BORDER_COLOR  "#3F3E3B"
17 #define URGENT_BORDER_COLOR         "#EFA29A"
18
19 #define BORDER_WIDTH   1
20 #define WINDOW_GAP     6
21 #define SPLIT_RATIO    0.5
22
23 #define HISTORY_AWARE_FOCUS      false
24 #define BORDERLESS_MONOCLE       false
25 #define GAPLESS_MONOCLE          false
26 #define FOCUS_FOLLOWS_POINTER    false
27 #define POINTER_FOLLOWS_MONITOR  false
28 #define AUTO_ALTERNATE           false
29 #define AUTO_CANCEL              false
30 #define ADAPTATIVE_RAISE         false
31 #define APPLY_FLOATING_ATOM      false
32
33 char focused_border_color[MAXLEN];
34 char active_border_color[MAXLEN];
35 char normal_border_color[MAXLEN];
36 char presel_border_color[MAXLEN];
37 char focused_locked_border_color[MAXLEN];
38 char active_locked_border_color[MAXLEN];
39 char normal_locked_border_color[MAXLEN];
40 char urgent_border_color[MAXLEN];
41
42 unsigned int border_width;
43 int window_gap;
44 double split_ratio;
45
46 bool borderless_monocle;
47 bool gapless_monocle;
48 bool focus_follows_pointer;
49 bool pointer_follows_monitor;
50 bool adaptative_raise;
51 bool apply_floating_atom;
52 bool auto_alternate;
53 bool auto_cancel;
54 bool history_aware_focus;
55
56 void load_settings(void);
57 void run_config(void);
58
59 #endif