t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 551aac0983c15bc278a0653aa5a9769529ba4afe DIR parent 9003d478e36691fda28f8de161d9b4f35612c0cb URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Wed, 14 Nov 2018 10:16:29 +0100 Change termcmd, comile on OpenBSD Diffstat: M config.def.h | 2 ++ M config.h | 11 +++++++---- M config.mk | 6 +----- 3 files changed, 10 insertions(+), 9 deletions(-) --- DIR diff --git a/config.def.h b/config.def.h t@@ -47,6 +47,7 @@ static const Layout layouts[] = { { "[M]", monocle }, { "TTT", bstack }, { "===", bstackhoriz }, + { "H[]", deck }, }; /* key definitions */ t@@ -89,6 +90,7 @@ static Key keys[] = { { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, + { MODKEY, XK_c, setlayout, {.v = &layouts[5]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, DIR diff --git a/config.h b/config.h t@@ -52,13 +52,16 @@ static const Rule rules[] = { }; /* layout(s) */ -static const float mfact = 0.70; /* factor of master area size [0.05..0.95] */ +static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ +#include "layouts.c" static const Layout layouts[] = { /* symbol arrange function */ - { "🇸", bstack }, + //{ "🇸", bstack }, + //{ "H[]", deck }, + { "HHH", grid }, { "🇲", monocle }, }; t@@ -77,11 +80,11 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char scratchpadname[] = "scratchpad"; -static const char *termcmd[] = { "st", "-f", font_normal, NULL }; +static const char *termcmd[] = { "st", "-f", font_normal, "-e", "mksh", NULL }; static const char *mailcmd[] = { "st", "-f", font_normal, "-e", "mutt", NULL }; static const char *notescmd[] = { "st", "-f", font_normal, "-e", "vim", "Seafile/NotesSync/notes.otl", NULL }; -static const char *scratchpadcmd[] = { "st", "-f", font_normal, "-t", scratchpadname, "-g", "100x25", NULL }; +static const char *scratchpadcmd[] = { "st", "-f", font_normal, "-e", "mksh", "-t", scratchpadname, "-g", "100x25", NULL }; static const char *dmenucmd[] = { "dmenu_run", DMENUOPTS, NULL }; static const char *browsercmd[] = { ".dwm/browser", DMENUOPTS, NULL }; DIR diff --git a/config.mk b/config.mk t@@ -18,16 +18,12 @@ XINERAMAFLAGS = -DXINERAMA FREETYPELIBS = -lfontconfig -lXft FREETYPEINC = /usr/include/freetype2 # OpenBSD (uncomment) -FREETYPEINC = ${X11INC}/freetype2 +# FREETYPEINC = ${X11INC}/freetype2 # includes and libs INCS = -I${X11INC} -I${FREETYPEINC} LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -# FreeBSD (uncomment)¬ -#LIBS = -L/usr/local/lib -lc -lm -L${X11LIB} -lXft -lfontconfig -lX11 -lX11 ${XINERAMALIBS} -#INCS = -I. -I/usr/local/include -I/usr/local/include/freetype2 -I${X11INC} - # flags CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}