From 326eee14445f8a2c08e80c30778445630c75d3bb Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Mon, 12 Jul 2021 23:44:16 +0200 Subject: Add a configuration option for fullscreen locking Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen. --- config.def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 8408659..539dba6 100644 --- a/config.def.h +++ b/config.def.h @@ -1,6 +1,7 @@ /* appearance */ static const int sloppyfocus = 1; /* focus follows mouse */ static const unsigned int borderpx = 1; /* border pixel of windows */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0}; static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0}; static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0}; -- cgit v1.2.3 From 4ef89996242c3b31a9957666f9f5b8cf7ef5cce8 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Wed, 23 Mar 2022 14:03:07 -0600 Subject: add note about how to change MODKEY for windows key --- config.def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 539dba6..9bdf8b5 100644 --- a/config.def.h +++ b/config.def.h @@ -52,6 +52,7 @@ static const int repeat_delay = 600; static const int tap_to_click = 1; static const int natural_scrolling = 0; +/* If you want to use the windows key change this to WLR_MODIFIER_LOGO */ #define MODKEY WLR_MODIFIER_ALT #define TAGKEYS(KEY,SKEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ -- cgit v1.2.3 From ae313911153b9c9ca8bef8ded97b95c0c2f49624 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Thu, 31 Mar 2022 09:31:01 -0600 Subject: initialize rules and xkb_rules to fix compile errors with `-pedantic` --- config.def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 9bdf8b5..00f6a85 100644 --- a/config.def.h +++ b/config.def.h @@ -13,8 +13,8 @@ static const Rule rules[] = { /* app_id title tags mask isfloating monitor */ /* examples: { "Gimp", NULL, 0, 1, -1 }, - { "firefox", NULL, 1 << 8, 0, -1 }, */ + { "firefox", NULL, 1 << 8, 0, -1 }, }; /* layout(s) */ @@ -43,6 +43,7 @@ static const struct xkb_rule_names xkb_rules = { /* example: .options = "ctrl:nocaps", */ + .options = "", }; static const int repeat_rate = 25; -- cgit v1.2.3 From 720f56161e5401afc1526d1ebfb977b191ca10f5 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 3 Apr 2022 00:01:52 -0500 Subject: Remove vestigial monitor configuration info The x/y fields in monitor rules are unused and were meant to be deleted. Also removes the outdated comment in config.h. --- config.def.h | 4 +--- dwl.c | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 00f6a85..7e61695 100644 --- a/config.def.h +++ b/config.def.h @@ -25,9 +25,7 @@ static const Layout layouts[] = { { "[M]", monocle }, }; -/* monitors - * The order in which monitors are defined determines their position. - * Non-configured monitors are always added to the left. */ +/* monitors */ static const MonitorRule monrules[] = { /* name mfact nmaster scale layout rotate/reflect x y */ /* example of a HiDPI laptop monitor: diff --git a/dwl.c b/dwl.c index ac62120..24d015f 100644 --- a/dwl.c +++ b/dwl.c @@ -191,8 +191,6 @@ typedef struct { float scale; const Layout *lt; enum wl_output_transform rr; - int x; - int y; } MonitorRule; typedef struct { -- cgit v1.2.3 From 6901743b0c334079ddc185af4f6844c336631d84 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 3 Apr 2022 00:13:11 -0500 Subject: Remove removed fields from struct instances --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 7e61695..7eb80b5 100644 --- a/config.def.h +++ b/config.def.h @@ -29,10 +29,10 @@ static const Layout layouts[] = { static const MonitorRule monrules[] = { /* name mfact nmaster scale layout rotate/reflect x y */ /* example of a HiDPI laptop monitor: - { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, + { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, */ /* defaults */ - { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 }, + { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, }; /* keyboard */ -- cgit v1.2.3 From 437aea866268779e9599c584d5c5ab25ae682840 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 3 Apr 2022 00:14:08 -0500 Subject: It's past my bedtime. --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 7eb80b5..190b0da 100644 --- a/config.def.h +++ b/config.def.h @@ -27,7 +27,7 @@ static const Layout layouts[] = { /* monitors */ static const MonitorRule monrules[] = { - /* name mfact nmaster scale layout rotate/reflect x y */ + /* name mfact nmaster scale layout rotate/reflect */ /* example of a HiDPI laptop monitor: { "eDP-1", 0.5, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL }, */ -- cgit v1.2.3