From 5b84371519103e85565bffcbec8ac2b51c34ed0b Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Mon, 9 Aug 2021 12:15:45 +0200 Subject: [PATCH] Reformat file --- config.h | 74 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/config.h b/config.h index abed328..ba1fc33 100644 --- a/config.h +++ b/config.h @@ -32,9 +32,9 @@ typedef struct { const char *spcmd1[] = {"alacritty", "-t", "spterm", NULL }; const char *spcmd2[] = {"rofi", "-show", "calc", NULL }; static Sp scratchpads[] = { - /* name cmd */ - {"spterm", spcmd1}, - {"spcalc", spcmd2}, + /* name, cmd */ + {"spterm", spcmd1}, + {"spcalc", spcmd2}, }; /* tagging */ @@ -50,7 +50,7 @@ static const Rule rules[] = { { "St", NULL, NULL, 0, 0, 1, 0, -1 }, { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, { NULL, NULL, "spterm", SPTAG(0), 1, 1, 0, -1 }, - { NULL, NULL, NULL, SPTAG(1), 1, 1, 0, -1 }, + { NULL, NULL, "spcalc", SPTAG(1), 1, 1, 0, -1 }, { "jetbrains-pycharm-ce", NULL, NULL, 0, 1, 0, 1, -1 }, { "mpv", NULL, NULL, 0, 1, 0, 1, -1 }, }; @@ -62,21 +62,21 @@ static const int resizehints = 1; /* 1 means respect size hints in tiled resi #define FORCE_VSPLIT 1 /* nrowgrid layout: force two clients to always split vertically */ #include "vanitygaps.c" static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* Default: Master on left, slaves on right */ - { "TTT", bstack }, /* Master on top, slaves on bottom */ + /* symbol, arrange, function */ + { "[]=", tile }, /* Default: Master on left; slaves on right */ + { "TTT", bstack }, /* Master on top; slaves on bottom */ - { "[@]", spiral }, /* Fibonacci spiral */ - { "[\\]", dwindle }, /* Decreasing in size right and leftward */ + { "[@]", spiral }, /* Fibonacci spiral */ + { "[\\]", dwindle }, /* Decreasing in size right and leftward */ - { "H[]", deck }, /* Master on left, slaves in monocle-like mode on right */ - { "[M]", monocle }, /* All windows on top of eachother */ + { "H[]", deck }, /* Master on left; slaves in monocle-like mode on right */ + { "[M]", monocle }, /* All windows on top of eachother */ - { "|M|", centeredmaster }, /* Master in middle, slaves on sides */ - { ">M>", centeredfloatingmaster }, /* Same but master floats */ + { "|M|", centeredmaster }, /* Master in middle; slaves on sides */ + { ">M>", centeredfloatingmaster }, /* Same but master floats */ - { "><>", NULL }, /* no layout function means floating behavior */ - { NULL, NULL }, + { "><>", NULL }, /* no layout function means floating behavior */ + { NULL, NULL }, }; /* key definitions */ @@ -106,12 +106,12 @@ static const char *termcmd[] = { "alacritty", NULL }; #include #include "shiftview.c" static Key keys[] = { - /* modifier key function argument */ - STACKKEYS(MODKEY, focus) - STACKKEYS(MODKEY|ShiftMask, push) - /* { MODKEY|ShiftMask, XK_Escape, spawn, SHCMD("") }, */ - { MODKEY, XK_u, spawn, SHCMD("dmenuunicode") }, - /* { MODKEY|ShiftMask, XK_grave, togglescratch, SHCMD("") }, */ + STACKKEYS(MODKEY, focus) + STACKKEYS(MODKEY|ShiftMask, push) + /* modifier, key, function, argument */ + /* { MODKEY|ShiftMask, XK_Escape, spawn, SHCMD("") }, */ + { MODKEY, XK_u, spawn, SHCMD("dmenuunicode") }, + /* { MODKEY|ShiftMask, XK_grave, togglescratch, SHCMD("") }, */ TAGKEYS(XK_1, 0) TAGKEYS(XK_2, 1) TAGKEYS(XK_3, 2) @@ -174,25 +174,25 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_semicolon, shifttag, { .i = 1 } }, { MODKEY, XK_apostrophe, togglescratch, {.ui = 1} }, /* { MODKEY|ShiftMask, XK_apostrophe, spawn, SHCMD("") }, */ - { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_Return, spawn, {.v = termcmd} }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0} }, - { MODKEY, XK_z, incrgaps, {.i = +3 } }, - /* { MODKEY|ShiftMask, XK_z, spawn, SHCMD("") }, */ - { MODKEY, XK_x, incrgaps, {.i = -3 } }, - { MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt 'Do you want to shutdown?' 'shutdown -h now'") }, - /* { MODKEY, XK_c, spawn, SHCMD("") }, */ - /* { MODKEY|ShiftMask, XK_c, spawn, SHCMD("") }, */ + { MODKEY, XK_z, incrgaps, {.i = +3 } }, + /* { MODKEY|ShiftMask, XK_z, spawn, SHCMD("") }, */ + { MODKEY, XK_x, incrgaps, {.i = -3 } }, + { MODKEY|ShiftMask, XK_x, spawn, SHCMD("prompt 'Do you want to shutdown?' 'shutdown -h now'") }, + /* { MODKEY, XK_c, spawn, SHCMD("") }, */ + { MODKEY|ShiftMask, XK_c, spawn, {.v = spcmd2} }, { MODKEY, XK_b, togglebar, {0} }, - /* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */ - { MODKEY, XK_n, spawn, SHCMD("alacritty -e nvim -c VimwikiIndex") }, - { MODKEY|ShiftMask, XK_n, spawn, SHCMD("alacritty -e newsboat; pkill -RTMIN+6 dwmblocks") }, - { MODKEY, XK_m, spawn, SHCMD("alacritty -e ncmpcpp") }, - { MODKEY|ShiftMask, XK_m, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") }, - { MODKEY, XK_comma, spawn, SHCMD("mpc prev") }, - { MODKEY|ShiftMask, XK_comma, spawn, SHCMD("mpc seek 0%") }, - { MODKEY, XK_period, spawn, SHCMD("mpc next") }, - { MODKEY|ShiftMask, XK_period, spawn, SHCMD("mpc repeat") }, + /* { MODKEY|ShiftMask, XK_b, spawn, SHCMD("") }, */ + { MODKEY, XK_n, spawn, SHCMD("alacritty -e nvim -c VimwikiIndex") }, + { MODKEY|ShiftMask, XK_n, spawn, SHCMD("alacritty -e newsboat; pkill -RTMIN+6 dwmblocks") }, + { MODKEY, XK_m, spawn, SHCMD("alacritty -e ncmpcpp") }, + { MODKEY|ShiftMask, XK_m, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") }, + { MODKEY, XK_comma, spawn, SHCMD("mpc prev") }, + { MODKEY|ShiftMask, XK_comma, spawn, SHCMD("mpc seek 0%") }, + { MODKEY, XK_period, spawn, SHCMD("mpc next") }, + { MODKEY|ShiftMask, XK_period, spawn, SHCMD("mpc repeat") }, { MODKEY, XK_Left, focusmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_Left, tagmon, {.i = -1 } },