bspwm/settings.h

100 lines
3.4 KiB
C
Raw Normal View History

/* Copyright (c) 2012, Bastien Dejean
2013-10-08 21:05:56 +02:00
* All rights reserved.
2014-01-19 14:41:37 +01:00
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
2014-01-19 14:41:37 +01:00
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. 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.
2014-01-19 14:41:37 +01:00
*
* 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 OWNER OR CONTRIBUTORS BE LIABLE FOR
2013-10-08 21:05:56 +02:00
* 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
2013-10-08 21:05:56 +02:00
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#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
#define WM_NAME "bspwm"
#define CONFIG_NAME WM_NAME "rc"
#define CONFIG_HOME_ENV "XDG_CONFIG_HOME"
2016-04-07 18:08:32 +02:00
#define POINTER_MODIFIER XCB_MOD_MASK_4
#define EXTERNAL_RULES_COMMAND ""
#define STATUS_PREFIX "W"
2012-08-02 22:37:20 +02:00
2015-12-22 19:25:45 +01:00
#define NORMAL_BORDER_COLOR "#30302f"
#define ACTIVE_BORDER_COLOR "#474645"
#define FOCUSED_BORDER_COLOR "#817f7f"
#define PRESEL_FEEDBACK_COLOR "#f4d775"
2012-09-29 10:10:58 +02:00
#define PADDING {0, 0, 0, 0}
2015-12-22 19:25:45 +01:00
#define WINDOW_GAP 6
#define BORDER_WIDTH 1
#define SPLIT_RATIO 0.5
2012-09-04 21:01:50 +02:00
2015-01-06 19:35:05 +01:00
#define HISTORY_AWARE_FOCUS false
#define BORDERLESS_MONOCLE false
#define GAPLESS_MONOCLE false
#define PADDINGLESS_MONOCLE false
2015-12-22 19:25:45 +01:00
#define SINGLE_MONOCLE false
2015-01-06 19:35:05 +01:00
#define FOCUS_FOLLOWS_POINTER false
#define POINTER_FOLLOWS_FOCUS false
#define POINTER_FOLLOWS_MONITOR false
#define IGNORE_EWMH_FOCUS false
2015-01-15 14:18:25 +01:00
#define CENTER_PSEUDO_TILED true
2016-04-07 18:08:32 +02:00
#define CLICK_TO_FOCUS false
#define HONOR_SIZE_HINTS false
2014-05-05 11:58:12 +02:00
#define REMOVE_DISABLED_MONITORS false
2015-01-06 19:35:05 +01:00
#define REMOVE_UNPLUGGED_MONITORS false
#define MERGE_OVERLAPPING_MONITORS false
2012-07-30 14:54:20 +02:00
char external_rules_command[MAXLEN];
char status_prefix[MAXLEN];
2013-11-05 20:09:24 +01:00
char normal_border_color[MAXLEN];
2015-12-22 19:25:45 +01:00
char active_border_color[MAXLEN];
char focused_border_color[MAXLEN];
char presel_feedback_color[MAXLEN];
2012-08-30 21:35:39 +02:00
padding_t padding;
int window_gap;
unsigned int border_width;
2015-12-22 19:25:45 +01:00
double split_ratio;
child_polarity_t initial_polarity;
2016-04-07 18:08:32 +02:00
uint16_t pointer_modifier;
pointer_action_t pointer_actions[3];
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;
bool paddingless_monocle;
2015-12-22 19:25:45 +01:00
bool single_monocle;
2013-03-04 11:25:12 +01:00
bool focus_follows_pointer;
2014-10-22 11:24:51 +02:00
bool pointer_follows_focus;
2013-06-05 21:21:12 +02:00
bool pointer_follows_monitor;
2013-06-24 16:25:50 +02:00
bool history_aware_focus;
2013-10-26 17:54:44 +02:00
bool ignore_ewmh_focus;
2015-01-15 14:18:25 +01:00
bool center_pseudo_tiled;
2016-04-07 18:08:32 +02:00
bool click_to_focus;
bool honor_size_hints;
2014-05-05 11:58:12 +02:00
bool remove_disabled_monitors;
bool remove_unplugged_monitors;
bool merge_overlapping_monitors;
2012-09-29 10:10:58 +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