From 5a2d87fa6cd33bd170b6e98534fe966ffa17576b Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Mon, 3 Aug 2020 12:44:47 -0500 Subject: add monocle layout --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 681cfba..8c10165 100644 --- a/config.def.h +++ b/config.def.h @@ -19,6 +19,7 @@ static const Layout layouts[] = { /* symbol arrange function */ { "[]=", tile }, { "><>", NULL }, /* no layout function means floating behavior */ + { "[M]", monocle }, }; /* monitors */ @@ -65,6 +66,7 @@ static const Key keys[] = { { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, killclient, {0} }, { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XKB_KEY_space, setlayout, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, { MODKEY, XKB_KEY_0, view, {.ui = ~0} }, -- cgit v1.2.3 From 541ecea796d2ac99e08a7e1185585cf0d1531799 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Mon, 3 Aug 2020 12:54:20 -0500 Subject: fix killclient binding, add helpful comment --- 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 8c10165..309c2fa 100644 --- a/config.def.h +++ b/config.def.h @@ -53,6 +53,7 @@ static const int repeat_delay = 600; static const char *termcmd[] = { "alacritty", NULL }; static const Key keys[] = { + /* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */ /* modifier key function argument */ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, @@ -63,7 +64,7 @@ static const Key keys[] = { { MODKEY, XKB_KEY_l, setmfact, {.f = +0.05} }, { MODKEY, XKB_KEY_Return, zoom, {0} }, { MODKEY, XKB_KEY_Tab, view, {0} }, - { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_c, killclient, {0} }, + { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_C, killclient, {0} }, { MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, -- cgit v1.2.3 From 82b2a948b69691bde5f2d08b132d26c128d5537c Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Fri, 14 Aug 2020 10:06:04 +0200 Subject: Fix Firefox class --- 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 309c2fa..f605d7b 100644 --- a/config.def.h +++ b/config.def.h @@ -11,7 +11,7 @@ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static const Rule rules[] = { /* app_id title tags mask isfloating monitor */ { "Gimp", NULL, 0, 1, -1 }, - { "Firefox", NULL, 1 << 8, 0, -1 }, + { "firefox", NULL, 1 << 8, 0, -1 }, }; /* layout(s) */ -- cgit v1.2.3 From f7fae6447b9f92a960cffa36e35e39b00a716cb7 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Fri, 14 Aug 2020 10:20:18 -0500 Subject: make rule examples a comment --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index f605d7b..5f26c3e 100644 --- a/config.def.h +++ b/config.def.h @@ -10,8 +10,10 @@ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; static const Rule rules[] = { /* app_id title tags mask isfloating monitor */ + /* examples: { "Gimp", NULL, 0, 1, -1 }, { "firefox", NULL, 1 << 8, 0, -1 }, + */ }; /* layout(s) */ -- cgit v1.2.3