refactor default configuration

Makin it a little nicer.
master
Ryan 2023-09-26 22:46:18 -04:00
parent 5afee4099e
commit 7c277d1ae5
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
1 changed files with 38 additions and 16 deletions

View File

@ -1,26 +1,39 @@
/* appearance */ /*
static const int sloppyfocus = 1; /* focus follows mouse */ * Appearance
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 smartborders = 1; * Configurable by environment variables.
static unsigned int borderpx = 1; /* border pixel of windows */ */
static float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; static unsigned int borderpx = 1; // DWL_BORDER
static float bordercolor[] = {0.5, 0.5, 0.5, 1.0}; static float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; // DWL_ROOT_COLOR
static float focuscolor[] = {1.0, 0.0, 0.0, 1.0}; 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 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 */ /* 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}; static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
/* Autostart */ /*
* Autostart
*/
static const char *const autostart[] = { static const char *const autostart[] = {
"wbg", "/path/to/your/image", NULL, "wbg", "/path/to/your/image", NULL,
NULL /* terminate */ NULL /* terminate */
}; };
/* tagging - tagcount must be no greater than 31 */ /*
* Tagging
*
* tagcount must be no greater than 31
*/
#define TAGCOUNT (9) #define TAGCOUNT (9)
static const int tagcount = TAGCOUNT; static const int tagcount = TAGCOUNT;
static const int hide_type = 1;
static const Rule rules[] = { static const Rule rules[] = {
/* app_id title tags mask isfloating monitor */ /* app_id title tags mask isfloating monitor */
/* examples: /* examples:
@ -29,7 +42,9 @@ static const Rule rules[] = {
{ "firefox", NULL, 1 << 8, 0, -1 }, { "firefox", NULL, 1 << 8, 0, -1 },
}; };
/* layout(s) */ /*
* Layout(s)
*/
static const Layout layouts[] = { static const Layout layouts[] = {
/* symbol arrange function */ /* symbol arrange function */
{ "[]=", tile }, { "[]=", tile },
@ -37,7 +52,9 @@ static const Layout layouts[] = {
{ "[M]", monocle }, { "[M]", monocle },
}; };
/* monitors */ /*
* Monitors
*/
static const MonitorRule monrules[] = { static const MonitorRule monrules[] = {
/* name mfact nmaster scale layout rotate/reflect x y */ /* name mfact nmaster scale layout rotate/reflect x y */
/* example of a HiDPI laptop monitor: /* 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 }, { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
}; };
/* keyboard */ /*
* Keyboard
*/
static const struct xkb_rule_names xkb_rules = { static const struct xkb_rule_names xkb_rules = {
/* can specify fields: rules, model, layout, variant, options */ /* can specify fields: rules, model, layout, variant, options */
/* example: /* example:
@ -59,7 +78,9 @@ static const struct xkb_rule_names xkb_rules = {
static const int repeat_rate = 25; static const int repeat_rate = 25;
static const int repeat_delay = 600; static const int repeat_delay = 600;
/* Trackpad */ /*
* Trackpad
*/
static const int tap_to_click = 1; static const int tap_to_click = 1;
static const int tap_and_drag = 1; static const int tap_and_drag = 1;
static const int drag_lock = 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 disable_while_typing = 1;
static const int left_handed = 0; static const int left_handed = 0;
static const int middle_button_emulation = 0; static const int middle_button_emulation = 0;
/* You can choose between: /* You can choose between:
LIBINPUT_CONFIG_SCROLL_NO_SCROLL LIBINPUT_CONFIG_SCROLL_NO_SCROLL
LIBINPUT_CONFIG_SCROLL_2FG LIBINPUT_CONFIG_SCROLL_2FG