2012-07-31 14:32:13 +02:00
|
|
|
#ifndef _SETTINGS_H
|
|
|
|
#define _SETTINGS_H
|
|
|
|
|
2012-07-30 19:43:54 +02:00
|
|
|
#include <lua.h>
|
|
|
|
#include <lualib.h>
|
|
|
|
#include <lauxlib.h>
|
2012-08-20 22:38:29 +02:00
|
|
|
#include <xcb/xcb.h>
|
|
|
|
#include <xcb/xcb_event.h>
|
2012-09-04 21:01:50 +02:00
|
|
|
#include "helpers.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 CONFIG_FILE "bspwmrc"
|
|
|
|
#define AUTOSTART_FILE "autostart"
|
2012-08-02 22:37:20 +02:00
|
|
|
|
2012-08-20 22:38:29 +02:00
|
|
|
#define OUTER_BORDER_WIDTH 2
|
|
|
|
#define MAIN_BORDER_WIDTH 1
|
2012-07-30 10:29:21 +02:00
|
|
|
#define INNER_BORDER_WIDTH 2
|
2012-07-30 17:23:25 +02:00
|
|
|
#define SPLIT_RATIO 0.5
|
2012-08-20 22:38:29 +02:00
|
|
|
|
2012-09-04 21:01:50 +02:00
|
|
|
#define WINDOW_GAP 6
|
|
|
|
#define TOP_PADDING 0
|
|
|
|
#define BOTTOM_PADDING 0
|
|
|
|
#define LEFT_PADDING 0
|
|
|
|
#define RIGHT_PADDING 0
|
|
|
|
|
|
|
|
#define ADAPTIVE_WINDOW_GAP true
|
|
|
|
#define ADAPTIVE_WINDOW_BORDER true
|
2012-07-30 17:23:25 +02:00
|
|
|
|
2012-07-30 10:29:21 +02:00
|
|
|
#define NORMAL_BORDER_COLOR "#333333"
|
|
|
|
#define ACTIVE_BORDER_COLOR "#DDDDDD"
|
|
|
|
#define INNER_BORDER_COLOR "#111111"
|
2012-08-20 22:38:29 +02:00
|
|
|
#define OUTER_BORDER_COLOR "#222222"
|
2012-09-04 21:01:50 +02:00
|
|
|
#define PRESEL_BORDER_COLOR "#331122"
|
2012-08-20 22:38:29 +02:00
|
|
|
#define LOCKED_BORDER_COLOR "#331122"
|
2012-07-30 14:54:20 +02:00
|
|
|
|
2012-09-10 13:47:51 +02:00
|
|
|
char normal_border_color[MAXLEN];
|
|
|
|
char active_border_color[MAXLEN];
|
|
|
|
char inner_border_color[MAXLEN];
|
|
|
|
char outer_border_color[MAXLEN];
|
|
|
|
char presel_border_color[MAXLEN];
|
|
|
|
char locked_border_color[MAXLEN];
|
2012-08-20 22:38:29 +02:00
|
|
|
|
2012-09-10 13:47:51 +02:00
|
|
|
char wm_name[MAXLEN];
|
2012-08-30 21:35:39 +02:00
|
|
|
|
2012-08-20 22:38:29 +02:00
|
|
|
uint32_t normal_border_color_pxl;
|
|
|
|
uint32_t active_border_color_pxl;
|
|
|
|
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-08-20 22:38:29 +02:00
|
|
|
uint32_t locked_border_color_pxl;
|
2012-07-30 17:23:25 +02:00
|
|
|
|
|
|
|
int inner_border_width;
|
2012-08-20 22:38:29 +02:00
|
|
|
int main_border_width;
|
|
|
|
int outer_border_width;
|
|
|
|
|
2012-07-30 19:43:54 +02:00
|
|
|
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-08-26 11:01:53 +02:00
|
|
|
bool adaptive_window_border;
|
|
|
|
bool adaptive_window_gap;
|
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-08-02 22:37:20 +02:00
|
|
|
void apply_settings(lua_State *);
|
2012-07-31 14:32:13 +02:00
|
|
|
|
|
|
|
#endif
|