From 9064a389e912f3bb2a277848b437110e39b95ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 1 Aug 2025 00:00:09 +0200 Subject: [PATCH] dwm: reformat config.h --- patches/dwm/config.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/patches/dwm/config.h b/patches/dwm/config.h index 53eff2b..ebcf5f1 100644 --- a/patches/dwm/config.h +++ b/patches/dwm/config.h @@ -6,7 +6,7 @@ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "FiraCode Nerd Font Ret:size=10" }; -static const char dmenufont[] = "FiraCode Nerd Font Ret:size=10"; +static const char dmenufont[] = "FiraCode Nerd Font Ret:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; @@ -16,7 +16,7 @@ static const char col_cyan[] = "#7dcfff"; static const char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_blue, col_cyan }, + [SchemeSel] = { col_gray4, col_blue, col_cyan }, }; /* tagging */ @@ -46,7 +46,7 @@ static const Layout layouts[] = { }; /* key definitions */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -58,32 +58,32 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_blue, "-sf", col_gray4, NULL }; -static const char *termcmd[] = { "st", NULL }; -static const char *lockcmd[] = { "slock", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_blue, "-sf", col_gray4, NULL }; +static const char *termcmd[] = { "st", NULL }; +static const char *lockcmd[] = { "slock", NULL }; static const char *suspendcmd[] = { "systemctl", "suspend", NULL }; static const char *toggletheme[] = { "lupan-set-theme", "toggle", NULL }; static const Key keys[] = { /* modifier key function argument */ - { MODKEY|ControlMask, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ControlMask|ShiftMask, XK_l, spawn, {.v = lockcmd } }, { MODKEY|ControlMask|ShiftMask, XK_s, spawn, {.v = suspendcmd } }, { MODKEY|ShiftMask, XK_F6, spawn, {.v = toggletheme } }, - { MODKEY|ControlMask, XK_b, togglebar, {0} }, - { MODKEY|ControlMask, XK_j, focusstack, {.i = +1 } }, - { MODKEY|ControlMask, XK_k, focusstack, {.i = -1 } }, - { MODKEY|ControlMask, XK_i, incnmaster, {.i = +1 } }, - { MODKEY|ControlMask, XK_d, incnmaster, {.i = -1 } }, - { MODKEY|ControlMask, XK_h, setmfact, {.f = -0.05} }, - { MODKEY|ControlMask, XK_l, setmfact, {.f = +0.05} }, + { 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_d, incnmaster, {.i = -1 } }, + { MODKEY, XK_h, setmfact, {.f = -0.05} }, + { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ControlMask|ShiftMask, XK_c, killclient, {0} }, - { MODKEY|ControlMask, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY|ControlMask, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY|ControlMask, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, @@ -101,7 +101,7 @@ static const Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ControlMask|ShiftMask, XK_q, quit, {0} }, + { MODKEY|ShiftMask, XK_q, quit, {0} }, }; /* button definitions */