aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dmenu/config.mk2
-rw-r--r--src/dwm/config.h11
-rw-r--r--src/dwm/config.mk2
-rw-r--r--src/dwm/dwm.c4
-rw-r--r--src/st/config.h2
-rw-r--r--src/st/config.mk4
-rw-r--r--src/st/st.c2
7 files changed, 10 insertions, 17 deletions
diff --git a/src/dmenu/config.mk b/src/dmenu/config.mk
index dcc5bb3..0d84528 100644
--- a/src/dmenu/config.mk
+++ b/src/dmenu/config.mk
@@ -2,7 +2,7 @@
VERSION = 5.4
# paths
-PREFIX = /usr/local
+PREFIX = $(HOME)/.local
MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include
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 */
diff --git a/src/st/config.h b/src/st/config.h
index 58e5e06..86cc542 100644
--- a/src/st/config.h
+++ b/src/st/config.h
@@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "CommitMono:pixelsize=16:antialias=true:autohint=true";
+static char *font = "Commit Mono:pixelsize=15";
static int borderpx = 2;
/*
diff --git a/src/st/config.mk b/src/st/config.mk
index 2fc854e..2ac1814 100644
--- a/src/st/config.mk
+++ b/src/st/config.mk
@@ -4,7 +4,7 @@ VERSION = 0.9.3
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = $(HOME)/.local
MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include
@@ -22,7 +22,7 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \
# flags
STCPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600
-STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS)
+STCFLAGS = $(INCS) $(STCPPFLAGS) $(CPPFLAGS) $(CFLAGS) -g -ggdb
STLDFLAGS = $(LIBS) $(LDFLAGS)
# OpenBSD:
diff --git a/src/st/st.c b/src/st/st.c
index 3286a8f..9819cf7 100644
--- a/src/st/st.c
+++ b/src/st/st.c
@@ -3209,7 +3209,7 @@ draw(void)
LIMIT(term.ocy, 0, term.row-1);
if (term.line[term.ocy][term.ocx].mode & ATTR_WDUMMY)
term.ocx--;
- if (term.line[term.c.y][cx].mode & ATTR_WDUMMY)
+ if (term.line[term.c.y][cx].mode & ATTR_WDUMMY)
cx--;
drawregion(0, 0, term.col, term.row);