From edbe1a5660840f08800f6fd61bfae9aebef56f75 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 20 Oct 2023 19:01:53 +0100 Subject: Added fibonacci layout to DWM --- config.h | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index f83cdde..c668b2d 100644 --- a/config.h +++ b/config.h @@ -37,7 +37,7 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = { "", "", "", "", "", "𝅘𝅥𝅮", "7", "8", "9" }; +static const char *tags[] = { "", "", "", "", "✏", "6", "7", "8", "9" }; /* Custom functions */ static void togglegaps(const Arg *arg); @@ -49,16 +49,16 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Onboard", NULL, NULL, 0, 1, -1 }, - { "qutebrowser", NULL, NULL, GTMask(2), 0, -1 }, - { "firefox", NULL, NULL, GTMask(2), 0, -1 }, - { "Chromium", NULL, NULL, GTMask(2), 0, -1 }, - { "mpv", NULL, NULL, GTMask(3), 0, -1 }, - { "media-term", NULL, NULL, GTMask(3), 0, -1 }, - { "Spotify", NULL, NULL, GTMask(3), 0, -1 }, - { "Zathura", NULL, NULL, GTMask(4), 0, -1 }, - { "Xournalpp", NULL, NULL, GTMask(5), 0, -1 }, + { "Gimp", NULL, NULL, 0, 1, -1 }, + { "Onboard", NULL, NULL, 0, 1, -1 }, + { "qutebrowser", NULL, NULL, GTMask(2), 0, -1 }, + { "firefox", NULL, NULL, GTMask(2), 0, -1 }, + { "Chromium", NULL, NULL, GTMask(2), 0, -1 }, + { "mpv", NULL, NULL, GTMask(3), 0, -1 }, + { "media-term", NULL, NULL, GTMask(3), 0, -1 }, + { "Spotify", NULL, NULL, GTMask(3), 0, -1 }, + { "Zathura", NULL, NULL, GTMask(4), 0, -1 }, + { "Xournalpp", NULL, NULL, GTMask(5), 0, -1 }, }; /* layout(s) */ @@ -66,6 +66,8 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.9 static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +#include "./fibonacci.c" + static const Layout layouts[] = { /* symbol arrange function */ { "[T]=", tile }, /* first entry is default */ @@ -73,6 +75,8 @@ static const Layout layouts[] = { { "{M}", monocle }, { "|M|", centeredmaster }, { ">M>", centeredfloatingmaster }, + { "[@]", spiral }, + { "[\\]", dwindle }, }; /* key definitions */ @@ -116,6 +120,8 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[2]} }, //monocle { MODKEY|ShiftMask, XK_u, setlayout, {.v = &layouts[3]} }, //cmonocle { MODKEY|ShiftMask, XK_o, setlayout, {.v = &layouts[4]} }, //cfmonocle + { MODKEY|ShiftMask, XK_s, setlayout, {.v = &layouts[5]} }, //fib-spiral + { MODKEY|ShiftMask, XK_d, setlayout, {.v = &layouts[6]} }, //fib-spiral { MODKEY|ShiftMask, XK_space, setlayout, {0} }, { MODKEY, XK_space, togglefloating, {0} }, { MODKEY, XK_m, focusmon, {.i = -1 } }, -- cgit v1.2.3-13-gbd6f