new dwm build stuff

This commit is contained in:
coast 2025-06-15 12:34:32 +03:30
parent 47552f881d
commit f7805e66a6
4 changed files with 36 additions and 24 deletions

View file

@ -7,7 +7,7 @@ static const unsigned int gappx = 14; /* gaps between windows */
static const unsigned int snap = 3; /* snap pixel */
static const int user_bh = 12; /* 2 is the default spacing around the bar's font */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const int topbar = 0; /* 0 means bottom bar */
static const int vertpad = 10; /* vertical padding of bar */
static const int sidepad = 400; /* horizontal padding of bar */
static const char *fonts[] = {"CaskaydiaMonoNerdFont-Bold:size=9.2"};
@ -15,9 +15,9 @@ static const char dmenufont[] = "CaskaydiaMonoNerdFont-Bold:size=10.6";
static char normbgcolor[] = "#222222";
static char normbordercolor[] = "#444444";
static char normfgcolor[] = "#bbbbbb";
static char selfgcolor[] = "#eeeeee";
static char selbordercolor[] = "#005577";
static char selbgcolor[] = "#005577";
static char selfgcolor[] = "#222222";
static char selbordercolor[] = "#555555";
static char selbgcolor[] = "#DB940A";
static char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
@ -90,19 +90,21 @@ static const char *firemenu[] = { "firemenu", NULL };
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL };
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", "#222222", "-nf", "#bbbbbb", "-sb", "#DB940A", "-sf", "#222222", NULL };
static const char *termcmd[] = {"zsh", "-c", "st -e zsh & walrs -R -q ",NULL};
#include "movestack.c"
static Key keys[] = {
/*modifierkey function argument */
{ Mod4Mask|ShiftMask, XK_r, spawn, {.v = firemenu } },
{ Mod4Mask|ShiftMask, XK_r, spawn, {.v = firemenu } },
{ MODKEY, XK_f, spawn, {.v = ranger } },
{ MODKEY, XK_r, spawn, {.v = dmenucmd } },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY|ControlMask, XK_n, focusstack, {.i = +1 } },
{ MODKEY|ControlMask, XK_p, focusstack, {.i = -1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_space, setlayout, {0} },
@ -118,15 +120,19 @@ static Key keys[] = {
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY|ShiftMask, XK_q,quit, {0} },
{ MODKEY, XK_b, spawn, SHCMD("mullvad-browser") },
{ MODKEY, XK_m, togglebar, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY, XK_b, spawn, SHCMD("mullvad-browser") },
{ MODKEY, XK_m, togglebar, {0} },
{ MODKEY, XK_o, incnmaster, {.i = +1 } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = -1 } },
{ MODKEY, XK_KP_Enter, spawn, {.v = termcmd } },
{ MODKEY, XK_grave, spawn, {.v = termcmd } },
// { MODKEY|ShiftMask, XK_o, incnmaster {.i = -1 } },
{ MODKEY, XK_s, killclient, {0} },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY|ControlMask|ShiftMask, XK_n, movestack, {.i = +1 } },
{ MODKEY|ControlMask|ShiftMask, XK_p, movestack, {.i = -1 } },
//volume control
{ Mod1Mask, XK_equal, spawn, SHCMD(VOL_UP) },

View file

@ -15,9 +15,9 @@ static const char dmenufont[] = "CaskaydiaMonoNerdFont-Bold:size=10.6";
static char normbgcolor[] = "#222222";
static char normbordercolor[] = "#444444";
static char normfgcolor[] = "#bbbbbb";
static char selfgcolor[] = "#eeeeee";
static char selbordercolor[] = "#722F37";
static char selbgcolor[] = "#722F37";
static char selfgcolor[] = "#222222";
static char selbordercolor[] = "#555555";
static char selbgcolor[] = "#DB940A";
static char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
@ -96,13 +96,15 @@ static const char *termcmd[] = {"zsh", "-c", "st -e zsh & walrs -R -q ",NULL};
#include "movestack.c"
static Key keys[] = {
/*modifierkey function argument */
{ Mod4Mask|ShiftMask, XK_r, spawn, {.v = firemenu } },
{ Mod4Mask|ShiftMask, XK_r, spawn, {.v = firemenu } },
{ MODKEY, XK_f, spawn, {.v = ranger } },
{ MODKEY, XK_r, spawn, {.v = dmenucmd } },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY|ControlMask, XK_n, focusstack, {.i = +1 } },
{ MODKEY|ControlMask, XK_p, focusstack, {.i = -1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_space, setlayout, {0} },
@ -118,15 +120,19 @@ static Key keys[] = {
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY|ShiftMask, XK_q,quit, {0} },
{ MODKEY, XK_b, spawn, SHCMD("mullvad-browser") },
{ MODKEY, XK_m, togglebar, {0} },
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY, XK_b, spawn, SHCMD("mullvad-browser") },
{ MODKEY, XK_m, togglebar, {0} },
{ MODKEY, XK_o, incnmaster, {.i = +1 } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_o, incnmaster, {.i = -1 } },
{ MODKEY, XK_KP_Enter, spawn, {.v = termcmd } },
{ MODKEY, XK_grave, spawn, {.v = termcmd } },
// { MODKEY|ShiftMask, XK_o, incnmaster {.i = -1 } },
{ MODKEY, XK_s, killclient, {0} },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } },
{ MODKEY|ControlMask|ShiftMask, XK_n, movestack, {.i = +1 } },
{ MODKEY|ControlMask|ShiftMask, XK_p, movestack, {.i = -1 } },
//volume control
{ Mod1Mask, XK_equal, spawn, SHCMD(VOL_UP) },

Binary file not shown.

Binary file not shown.