From e86ae2d98be5c91aa31905fdbbd3de1472c3cbc5 Mon Sep 17 00:00:00 2001 From: julian T Date: Mon, 28 Jan 2019 12:43:58 +0100 Subject: Removed bstack and changes gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 72c4cc2..c7f30ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dwm *.o +tags -- cgit v1.2.3 From af0b57624e38f062c2ad3df4d7dfae37c166c5f1 Mon Sep 17 00:00:00 2001 From: julian T Date: Mon, 28 Jan 2019 12:44:23 +0100 Subject: Removed bstack --- bstack.c | 29 ----------------------------- config.h | 2 -- 2 files changed, 31 deletions(-) delete mode 100644 bstack.c diff --git a/bstack.c b/bstack.c deleted file mode 100644 index ebae6fd..0000000 --- a/bstack.c +++ /dev/null @@ -1,29 +0,0 @@ -static void -bstack(Monitor *m) { - int x, y, h, w, mh; - unsigned int i, n; - Client *c; - - for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - if(n == 0) - return; - /* master */ - c = nexttiled(m->clients); - mh = m->mfact * m->wh; - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False); - if(--n == 0) - return; - /* tile stack */ - x = m->wx; - y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh; - w = m->ww / n; - h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh; - if(w < bh) - w = m->ww; - for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) { - resize(c, x, y, /* remainder */ ((i + 1 == n) - ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False); - if(w != m->ww) - x = c->x + WIDTH(c); - } -} diff --git a/config.h b/config.h index 07c5ea3..732396d 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,5 @@ /* See LICENSE file for copyright and license details. */ #include -#include "bstack.c" /* appearance */ static const char *fonts[] = { @@ -74,7 +73,6 @@ static const Layout layouts[] = { { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "]Z[", zen }, - { "TTT", bstack }, }; /* key definitions */ -- cgit v1.2.3 From cc65944ef831bb3e5a64f75b4547d3517f3429c7 Mon Sep 17 00:00:00 2001 From: julian T Date: Mon, 11 Feb 2019 17:04:56 +0100 Subject: Changed keybindings --- config.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 732396d..4abd068 100644 --- a/config.h +++ b/config.h @@ -31,6 +31,7 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "Thunderbird", NULL, NULL, 1 << 7, 0, -1 }, + { "Evolution", NULL, NULL, 1 << 7, 0, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, { "qutebrowser", NULL, NULL, 1 << 6, 0 , -1 }, }; @@ -106,16 +107,16 @@ static const char *termcmd[] = { "st", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY|ShiftMask, XK_i, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_p, incnmaster, {.i = -1 } }, + { MODKEY, XK_p, incnmaster, {.i = +1 } }, + { MODKEY|ShiftMask, XK_p, incnmaster, {.i = -1 } }, { MODKEY, XK_o, setnmaster, {.i = 1} }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, + { MODKEY, XK_i, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_q, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, -- cgit v1.2.3