aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-20 19:01:53 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-20 19:01:53 +0100
commitedbe1a5660840f08800f6fd61bfae9aebef56f75 (patch)
tree9756e1a39ddfa122c002fa3233c07a2bbfc6e1de /config.h
parentf815fe0a365ace011c56abc2fbabf7f8a603e594 (diff)
downloaddwm-edbe1a5660840f08800f6fd61bfae9aebef56f75.tar.gz
dwm-edbe1a5660840f08800f6fd61bfae9aebef56f75.tar.bz2
dwm-edbe1a5660840f08800f6fd61bfae9aebef56f75.zip
Added fibonacci layout to DWM
Diffstat (limited to 'config.h')
-rw-r--r--config.h28
1 files changed, 17 insertions, 11 deletions
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 } },