aboutsummaryrefslogtreecommitdiff
path: root/src/dwm
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
committeriamcheeseman <[email protected]>2026-05-22 12:35:36 -0400
commitf31a0a48a2408d38faaaae2d0fb91528e3c2c20e (patch)
treef4e38fe03f86ff9c50d9778be3fd8302ff06090b /src/dwm
parent32256bdd1abde72427ccd1dac185eee48f803ef1 (diff)
Update config
Diffstat (limited to 'src/dwm')
-rw-r--r--src/dwm/config.h11
-rw-r--r--src/dwm/config.mk2
-rw-r--r--src/dwm/dwm.c4
3 files changed, 5 insertions, 12 deletions
diff --git a/src/dwm/config.h b/src/dwm/config.h
index 05c4971..1e6b3e8 100644
--- a/src/dwm/config.h
+++ b/src/dwm/config.h
@@ -35,12 +35,10 @@ static const int refreshrate = 120; /* refresh rate (per second) for client mov
static const Layout lmonocle = { "[M]", monocle };
static const Layout ltile = { "[]=", tile };
-static const Layout lfloat = { "><>", NULL };
static const Layout layouts[] = {
lmonocle,
ltile,
- lfloat,
};
/* key definitions */
@@ -86,7 +84,6 @@ static const Key keys[] = {
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY, XK_w, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &ltile} },
- { MODKEY, XK_f, setlayout, {.v = &lfloat} },
{ MODKEY, XK_m, setlayout, {.v = &lmonocle} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
@@ -107,16 +104,8 @@ static const Key keys[] = {
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static const Button buttons[] = {
/* click event mask button function argument */
- { ClkLtSymbol, 0, Button1, setlayout, {0} },
- { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
- { ClkWinTitle, 0, Button2, zoom, {0} },
- { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
- { ClkTagBar, 0, Button1, view, {0} },
- { ClkTagBar, 0, Button3, toggleview, {0} },
- { ClkTagBar, MODKEY, Button1, tag, {0} },
- { ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
diff --git a/src/dwm/config.mk b/src/dwm/config.mk
index 982dc21..0327c0b 100644
--- a/src/dwm/config.mk
+++ b/src/dwm/config.mk
@@ -4,7 +4,7 @@ VERSION = 6.8
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = $(HOME)/.local
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
diff --git a/src/dwm/dwm.c b/src/dwm/dwm.c
index fc3365c..1017cb6 100644
--- a/src/dwm/dwm.c
+++ b/src/dwm/dwm.c
@@ -1088,6 +1088,10 @@ manage(Window w, XWindowAttributes *wa)
c->bw = borderpx;
wc.border_width = c->bw;
+
+ if (c->x == selmon->wx) c->x += (c->mon->ww - WIDTH(c)) / 2 - c->bw;
+ if (c->y == selmon->wy) c->y += (c->mon->wh - HEIGHT(c)) / 2 - c->bw;
+
XConfigureWindow(dpy, w, CWBorderWidth, &wc);
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel);
configure(c); /* propagates border_width, if size doesn't change */