commit 784ff9a710309b990c770398d04804cca3488986 from: Benjamin Stürz date: Sun Dec 17 16:42:24 2023 UTC Add master.h commit - 5837c60eb76c2fd96fb52380e86457962e83277f commit + 784ff9a710309b990c770398d04804cca3488986 blob - e1e46fdf73d23a97b2de3b81bc9669d6237e27fb blob + 4540054d402832361cb710685d24d3b1d4e63b1e --- Makefile +++ Makefile @@ -1,16 +1,16 @@ include config.mk SRC_DWM = dwm/dwm.c dwm/drw.c dwm/util.c -HDR_DWM = dwm/drw.h dwm/util.h dwm/config.h +HDR_DWM = dwm/drw.h dwm/util.h dwm/config.h master.h SRC_ST = st/st.c st/x.c HDR_ST = st/arg.h st/st.h st/win.h st/config.h SRC_DMENU = dmenu/dmenu.c dmenu/drw.c dmenu/util.c -HDR_DMENU = dmenu/arg.h dmenu/config.h dmenu/drw.h dmenu/util.h +HDR_DMENU = dmenu/arg.h dmenu/config.h dmenu/drw.h dmenu/util.h master.h SRC_STEST = dmenu/stest.c -HDR_STEST = ${HDR_DMENU} +HDR_STEST = dmenu/arg.h SRC_SLOCK = slock/slock.c HDR_SLOCK = slock/arg.h slock/config.h slock/util.h blob - e1df503be625068797cbeff00f1cb5b5ff777508 blob + 037c667f2c65babef293b5cd3a5c119b21dd555e --- dmenu/config.h +++ dmenu/config.h @@ -1,23 +1,24 @@ /* See LICENSE file for copyright and license details. */ /* Default settings; can be overriden by command line. */ +#include "../master.h" static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=6" + TOPBAR_FONT, }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#2255ff" }, - [SchemeSelHighlight] = { "#ffc978", "#2255ff" }, - [SchemeNormHighlight] = { "#ffc978", "#222222" }, - [SchemeOut] = { "#000000", "#00ffff" }, + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#2255ff" }, + [SchemeSelHighlight] = { "#ffc978", "#2255ff" }, + [SchemeNormHighlight] = { "#ffc978", "#222222" }, + [SchemeOut] = { "#000000", "#00ffff" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ -static unsigned int lines = 0; +static unsigned int lines = 0; /* * Characters not considered part of a word while deleting words blob - fbfd3f55f0b8eac6058e116decaa1a78721e9e29 blob + 29d733874d858708bbeabb8bb9e02d92193b69f2 --- dwm/config.h +++ dwm/config.h @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include "../master.h" /* appearance */ static const unsigned int borderpx = 3; /* border pixel of windows */ @@ -7,8 +8,8 @@ static const unsigned int snap = 32; /* snap pi static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const int focusonwheel = 0; -static const char *fonts[] = { "monospace:size=6" }; -static const char dmenufont[] = "monospace:size=6"; +static const char *fonts[] = { TOPBAR_FONT }; +static const char dmenufont[] = TOPBAR_FONT; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; static const char col_gray3[] = "#bbbbbb"; blob - /dev/null blob + 53dd47cbc0ceeb7f85926a0bfbb5a58bf94452de (mode 644) --- /dev/null +++ master.h @@ -0,0 +1 @@ +#define TOPBAR_FONT "monospace:size=6"