parent
5afee4099e
commit
7c277d1ae5
52
config.def.h
52
config.def.h
|
|
@ -1,26 +1,39 @@
|
|||
/* appearance */
|
||||
static const int sloppyfocus = 1; /* focus follows mouse */
|
||||
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
|
||||
/*
|
||||
* Appearance
|
||||
*
|
||||
* Configurable by environment variables.
|
||||
*/
|
||||
static unsigned int borderpx = 1; // DWL_BORDER
|
||||
static float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; // DWL_ROOT_COLOR
|
||||
static float bordercolor[] = {0.5, 0.5, 0.5, 1.0}; // DWL_BORDER_COLOR
|
||||
static float focuscolor[] = {1.0, 0.0, 0.0, 1.0}; // DWL_FOCUS_COLOR
|
||||
|
||||
/*
|
||||
* Behaviour
|
||||
*/
|
||||
static const int smartborders = 1;
|
||||
static unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
|
||||
static float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
|
||||
static float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
|
||||
static const int sloppyfocus = 1; // focus follows mouse
|
||||
static const int bypass_surface_visibility = 0; // 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible
|
||||
static const int hide_type = 1; // 1 means hide the cursor when typing
|
||||
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
|
||||
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
|
||||
|
||||
/* Autostart */
|
||||
/*
|
||||
* Autostart
|
||||
*/
|
||||
static const char *const autostart[] = {
|
||||
"wbg", "/path/to/your/image", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
|
||||
/* tagging - tagcount must be no greater than 31 */
|
||||
/*
|
||||
* Tagging
|
||||
*
|
||||
* tagcount must be no greater than 31
|
||||
*/
|
||||
#define TAGCOUNT (9)
|
||||
static const int tagcount = TAGCOUNT;
|
||||
|
||||
static const int hide_type = 1;
|
||||
|
||||
static const Rule rules[] = {
|
||||
/* app_id title tags mask isfloating monitor */
|
||||
/* examples:
|
||||
|
|
@ -29,7 +42,9 @@ static const Rule rules[] = {
|
|||
{ "firefox", NULL, 1 << 8, 0, -1 },
|
||||
};
|
||||
|
||||
/* layout(s) */
|
||||
/*
|
||||
* Layout(s)
|
||||
*/
|
||||
static const Layout layouts[] = {
|
||||
/* symbol arrange function */
|
||||
{ "[]=", tile },
|
||||
|
|
@ -37,7 +52,9 @@ static const Layout layouts[] = {
|
|||
{ "[M]", monocle },
|
||||
};
|
||||
|
||||
/* monitors */
|
||||
/*
|
||||
* Monitors
|
||||
*/
|
||||
static const MonitorRule monrules[] = {
|
||||
/* name mfact nmaster scale layout rotate/reflect x y */
|
||||
/* example of a HiDPI laptop monitor:
|
||||
|
|
@ -47,7 +64,9 @@ static const MonitorRule monrules[] = {
|
|||
{ NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||
};
|
||||
|
||||
/* keyboard */
|
||||
/*
|
||||
* Keyboard
|
||||
*/
|
||||
static const struct xkb_rule_names xkb_rules = {
|
||||
/* can specify fields: rules, model, layout, variant, options */
|
||||
/* example:
|
||||
|
|
@ -59,7 +78,9 @@ static const struct xkb_rule_names xkb_rules = {
|
|||
static const int repeat_rate = 25;
|
||||
static const int repeat_delay = 600;
|
||||
|
||||
/* Trackpad */
|
||||
/*
|
||||
* Trackpad
|
||||
*/
|
||||
static const int tap_to_click = 1;
|
||||
static const int tap_and_drag = 1;
|
||||
static const int drag_lock = 1;
|
||||
|
|
@ -67,6 +88,7 @@ static const int natural_scrolling = 0;
|
|||
static const int disable_while_typing = 1;
|
||||
static const int left_handed = 0;
|
||||
static const int middle_button_emulation = 0;
|
||||
|
||||
/* You can choose between:
|
||||
LIBINPUT_CONFIG_SCROLL_NO_SCROLL
|
||||
LIBINPUT_CONFIG_SCROLL_2FG
|
||||
|
|
|
|||
Loading…
Reference in New Issue