2012-07-31 14:32:13 +02:00
|
|
|
#ifndef _SETTINGS_H
|
|
|
|
#define _SETTINGS_H
|
|
|
|
|
2012-09-30 18:41:28 +03:00
|
|
|
#include "types.h"
|
2012-07-30 19:43:54 +02:00
|
|
|
|
2012-08-30 21:35:39 +02:00
|
|
|
#define WM_NAME "bspwm"
|
2012-09-11 13:12:53 +02:00
|
|
|
#define AUTOSTART_FILE "autostart"
|
2012-10-23 12:42:40 +02:00
|
|
|
#define BUTTON_MODIFIER XCB_MOD_MASK_4
|
2012-08-02 22:37:20 +02:00
|
|
|
|
2012-10-17 16:18:40 +02:00
|
|
|
#define FOCUSED_BORDER_COLOR "#7D7F8A"
|
2012-09-29 10:10:58 +02:00
|
|
|
#define ACTIVE_BORDER_COLOR "#7D7F8A"
|
|
|
|
#define NORMAL_BORDER_COLOR "#3F3E3B"
|
|
|
|
#define INNER_BORDER_COLOR "#32312E"
|
|
|
|
#define OUTER_BORDER_COLOR "#32312E"
|
|
|
|
#define PRESEL_BORDER_COLOR "#97AE71"
|
2012-10-17 16:18:40 +02:00
|
|
|
#define FOCUSED_LOCKED_BORDER_COLOR "#B6A56A"
|
2012-09-29 10:10:58 +02:00
|
|
|
#define ACTIVE_LOCKED_BORDER_COLOR "#B6A56A"
|
|
|
|
#define NORMAL_LOCKED_BORDER_COLOR "#8D7E45"
|
|
|
|
#define URGENT_BORDER_COLOR "#DE928B"
|
|
|
|
|
2012-09-21 19:05:42 +02:00
|
|
|
#define INNER_BORDER_WIDTH 3
|
2012-09-29 10:10:58 +02:00
|
|
|
#define MAIN_BORDER_WIDTH 1
|
|
|
|
#define OUTER_BORDER_WIDTH 3
|
2012-07-30 17:23:25 +02:00
|
|
|
#define SPLIT_RATIO 0.5
|
2012-08-20 22:38:29 +02:00
|
|
|
|
2012-09-22 12:16:46 +02:00
|
|
|
#define WINDOW_GAP 6
|
2012-09-04 21:01:50 +02:00
|
|
|
#define TOP_PADDING 0
|
|
|
|
#define BOTTOM_PADDING 0
|
|
|
|
#define LEFT_PADDING 0
|
|
|
|
#define RIGHT_PADDING 0
|
|
|
|
|
2012-10-22 12:25:58 +02:00
|
|
|
#define BORDERLESS_MONOCLE false
|
|
|
|
#define FOCUS_FOLLOWS_MOUSE false
|
2012-07-30 14:54:20 +02:00
|
|
|
|
2012-10-17 16:18:40 +02:00
|
|
|
char focused_border_color[MAXLEN];
|
2012-10-04 14:46:41 +02:00
|
|
|
char active_border_color[MAXLEN];
|
|
|
|
char normal_border_color[MAXLEN];
|
|
|
|
char inner_border_color[MAXLEN];
|
|
|
|
char outer_border_color[MAXLEN];
|
|
|
|
char presel_border_color[MAXLEN];
|
2012-10-17 16:18:40 +02:00
|
|
|
char focused_locked_border_color[MAXLEN];
|
2012-10-04 14:46:41 +02:00
|
|
|
char active_locked_border_color[MAXLEN];
|
|
|
|
char normal_locked_border_color[MAXLEN];
|
|
|
|
char urgent_border_color[MAXLEN];
|
2012-08-30 21:35:39 +02:00
|
|
|
|
2012-10-17 16:18:40 +02:00
|
|
|
uint32_t focused_border_color_pxl;
|
2012-08-20 22:38:29 +02:00
|
|
|
uint32_t active_border_color_pxl;
|
2012-09-20 23:32:32 +02:00
|
|
|
uint32_t normal_border_color_pxl;
|
2012-08-20 22:38:29 +02:00
|
|
|
uint32_t inner_border_color_pxl;
|
|
|
|
uint32_t outer_border_color_pxl;
|
2012-08-21 13:27:14 +02:00
|
|
|
uint32_t presel_border_color_pxl;
|
2012-10-17 16:18:40 +02:00
|
|
|
uint32_t focused_locked_border_color_pxl;
|
2012-09-20 23:32:32 +02:00
|
|
|
uint32_t active_locked_border_color_pxl;
|
|
|
|
uint32_t normal_locked_border_color_pxl;
|
|
|
|
uint32_t urgent_border_color_pxl;
|
2012-07-30 17:23:25 +02:00
|
|
|
|
2012-09-12 14:56:51 +02:00
|
|
|
unsigned int inner_border_width;
|
|
|
|
unsigned int main_border_width;
|
|
|
|
unsigned int outer_border_width;
|
|
|
|
unsigned int border_width;
|
2012-09-04 21:01:50 +02:00
|
|
|
|
2012-08-04 21:24:47 +02:00
|
|
|
int window_gap;
|
2012-09-04 21:01:50 +02:00
|
|
|
int top_padding;
|
|
|
|
int bottom_padding;
|
|
|
|
int left_padding;
|
|
|
|
int right_padding;
|
2012-08-04 21:24:47 +02:00
|
|
|
|
2012-09-29 10:10:58 +02:00
|
|
|
bool borderless_monocle;
|
2012-10-22 12:25:58 +02:00
|
|
|
bool focus_follows_mouse;
|
2012-09-29 10:10:58 +02:00
|
|
|
|
2012-10-04 14:46:41 +02:00
|
|
|
char wm_name[MAXLEN];
|
2012-10-23 12:42:40 +02:00
|
|
|
unsigned int button_modifier;
|
2012-09-20 23:32:32 +02:00
|
|
|
|
2012-07-30 14:54:20 +02:00
|
|
|
void load_settings(void);
|
2012-09-11 13:23:53 +02:00
|
|
|
void run_autostart(void);
|
2012-07-31 14:32:13 +02:00
|
|
|
|
|
|
|
#endif
|