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-12-03 19:30:48 +01:00
|
|
|
#define NUMLOCK_MODIFIER XCB_MOD_MASK_2
|
|
|
|
#define CAPSLOCK_MODIFIER XCB_MOD_MASK_LOCK
|
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-08-20 22:38:29 +02:00
|
|
|
|
2012-09-22 12:16:46 +02:00
|
|
|
#define WINDOW_GAP 6
|
2012-12-09 12:01:45 +01:00
|
|
|
#define SPLIT_RATIO 0.5
|
2012-09-04 21:01:50 +02:00
|
|
|
|
2012-10-22 12:25:58 +02:00
|
|
|
#define BORDERLESS_MONOCLE false
|
2012-11-04 14:10:08 +01:00
|
|
|
#define GAPLESS_MONOCLE false
|
2012-10-22 12:25:58 +02:00
|
|
|
#define FOCUS_FOLLOWS_MOUSE false
|
2012-12-13 14:00:45 +01:00
|
|
|
#define ADAPTATIVE_RAISE false
|
2012-12-17 20:12:23 +01:00
|
|
|
#define STATUS_STDOUT 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-29 10:10:58 +02:00
|
|
|
bool borderless_monocle;
|
2012-11-04 14:10:08 +01:00
|
|
|
bool gapless_monocle;
|
2012-10-22 12:25:58 +02:00
|
|
|
bool focus_follows_mouse;
|
2012-12-13 14:00:45 +01:00
|
|
|
bool adaptative_raise;
|
2012-12-17 20:12:23 +01:00
|
|
|
bool status_stdout;
|
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-12-03 19:30:48 +01:00
|
|
|
unsigned int numlock_modifier;
|
|
|
|
unsigned int capslock_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
|