2013-10-08 21:05:56 +02:00
|
|
|
/* * Copyright (c) 2012-2013 Bastien Dejean
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without modification,
|
|
|
|
* are permitted provided that the following conditions are met:
|
|
|
|
*
|
|
|
|
* * Redistributions of source code must retain the above copyright notice, this
|
|
|
|
* list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer in the documentation and/or
|
|
|
|
* other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
|
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2013-10-08 21:02:33 +02:00
|
|
|
#ifndef BSPWM_SETTINGS_H
|
|
|
|
#define BSPWM_SETTINGS_H
|
2012-07-31 14:32:13 +02:00
|
|
|
|
2012-09-30 18:41:28 +03:00
|
|
|
#include "types.h"
|
2012-07-30 19:43:54 +02:00
|
|
|
|
2013-12-12 14:38:48 +01:00
|
|
|
#define WM_NAME "bspwm"
|
|
|
|
#define CONFIG_NAME WM_NAME "rc"
|
|
|
|
#define CONFIG_HOME_ENV "XDG_CONFIG_HOME"
|
|
|
|
#define EXTERNAL_RULES_COMMAND ""
|
|
|
|
#define STATUS_PREFIX "W"
|
2012-08-02 22:37:20 +02:00
|
|
|
|
2013-10-12 21:16:51 +02:00
|
|
|
#define FOCUSED_BORDER_COLOR "#7E7F89"
|
|
|
|
#define ACTIVE_BORDER_COLOR "#545350"
|
|
|
|
#define NORMAL_BORDER_COLOR "#3F3E3B"
|
|
|
|
#define PRESEL_BORDER_COLOR "#E8E8F4"
|
|
|
|
#define FOCUSED_LOCKED_BORDER_COLOR "#C7B579"
|
|
|
|
#define ACTIVE_LOCKED_BORDER_COLOR "#545350"
|
|
|
|
#define NORMAL_LOCKED_BORDER_COLOR "#3F3E3B"
|
|
|
|
#define FOCUSED_STICKY_BORDER_COLOR "#E3A5DA"
|
|
|
|
#define ACTIVE_STICKY_BORDER_COLOR "#545350"
|
|
|
|
#define NORMAL_STICKY_BORDER_COLOR "#3F3E3B"
|
|
|
|
#define FOCUSED_PRIVATE_BORDER_COLOR "#42CAD9"
|
|
|
|
#define ACTIVE_PRIVATE_BORDER_COLOR "#5C5955"
|
|
|
|
#define NORMAL_PRIVATE_BORDER_COLOR "#34322E"
|
|
|
|
#define URGENT_BORDER_COLOR "#EFA29A"
|
2012-09-29 10:10:58 +02:00
|
|
|
|
2013-10-10 18:24:21 +02:00
|
|
|
#define FOCUSED_FRAME_OPACITY 0.5
|
|
|
|
#define ACTIVE_FRAME_OPACITY 0.25
|
|
|
|
#define NORMAL_FRAME_OPACITY 0.125
|
|
|
|
|
2013-02-06 22:23:49 +01:00
|
|
|
#define SPLIT_RATIO 0.5
|
2013-09-23 10:53:21 +02:00
|
|
|
#define GROWTH_FACTOR 1.1
|
2012-09-04 21:01:50 +02:00
|
|
|
|
2013-09-05 15:37:54 +02:00
|
|
|
#define HISTORY_AWARE_FOCUS false
|
2013-06-05 21:21:12 +02:00
|
|
|
#define BORDERLESS_MONOCLE false
|
|
|
|
#define GAPLESS_MONOCLE false
|
|
|
|
#define FOCUS_FOLLOWS_POINTER false
|
|
|
|
#define POINTER_FOLLOWS_MONITOR false
|
|
|
|
#define AUTO_ALTERNATE false
|
2013-07-04 12:14:47 +02:00
|
|
|
#define AUTO_CANCEL false
|
2013-09-05 15:37:54 +02:00
|
|
|
#define APPLY_FLOATING_ATOM false
|
2013-10-26 17:54:44 +02:00
|
|
|
#define IGNORE_EWMH_FOCUS false
|
2013-11-10 12:07:14 +01:00
|
|
|
#define REMOVE_DISABLED_MONITOR false
|
2012-07-30 14:54:20 +02:00
|
|
|
|
2013-12-12 14:38:48 +01:00
|
|
|
char external_rules_command[MAXLEN];
|
2013-11-07 14:28:39 +01:00
|
|
|
char status_prefix[MAXLEN];
|
2013-11-05 20:09:24 +01: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 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];
|
2013-10-01 18:04:18 +02:00
|
|
|
char focused_sticky_border_color[MAXLEN];
|
2013-10-06 16:58:02 +02:00
|
|
|
char active_sticky_border_color[MAXLEN];
|
2013-10-01 18:04:18 +02:00
|
|
|
char normal_sticky_border_color[MAXLEN];
|
2013-10-12 21:16:51 +02:00
|
|
|
char focused_private_border_color[MAXLEN];
|
|
|
|
char active_private_border_color[MAXLEN];
|
|
|
|
char normal_private_border_color[MAXLEN];
|
2012-10-04 14:46:41 +02:00
|
|
|
char urgent_border_color[MAXLEN];
|
2012-08-30 21:35:39 +02:00
|
|
|
|
2013-10-10 18:24:21 +02:00
|
|
|
double focused_frame_opacity;
|
|
|
|
double active_frame_opacity;
|
|
|
|
double normal_frame_opacity;
|
|
|
|
|
2013-04-03 12:19:01 +02:00
|
|
|
double split_ratio;
|
2013-09-23 10:53:21 +02:00
|
|
|
double growth_factor;
|
2012-08-04 21:24:47 +02:00
|
|
|
|
2012-09-29 10:10:58 +02:00
|
|
|
bool borderless_monocle;
|
2012-11-04 14:10:08 +01:00
|
|
|
bool gapless_monocle;
|
2013-03-04 11:25:12 +01:00
|
|
|
bool focus_follows_pointer;
|
2013-06-05 21:21:12 +02:00
|
|
|
bool pointer_follows_monitor;
|
2013-09-05 15:37:54 +02:00
|
|
|
bool apply_floating_atom;
|
2013-03-22 19:17:03 +01:00
|
|
|
bool auto_alternate;
|
2013-07-04 12:14:47 +02:00
|
|
|
bool auto_cancel;
|
2013-06-24 16:25:50 +02:00
|
|
|
bool history_aware_focus;
|
2013-10-26 17:54:44 +02:00
|
|
|
bool ignore_ewmh_focus;
|
2013-11-10 12:07:14 +01:00
|
|
|
bool remove_disabled_monitor;
|
2012-09-29 10:10:58 +02:00
|
|
|
|
2013-07-29 10:27:04 +02:00
|
|
|
void run_config(void);
|
2013-10-05 22:32:40 +02:00
|
|
|
void load_settings(void);
|
2012-07-31 14:32:13 +02:00
|
|
|
|
|
|
|
#endif
|