dwm

My patch set and modifications to dwm
git clone git://git.ethandl.dev/dwm
Log | Files | Refs | README | LICENSE

commit 2ae48b805b2b6ac60874373205b761bb2e55402b
parent e2c38d7dee1eab7e98338e9d80f09053845047e2
Author: Ethan Long <ethan@OpenBSD-X220.lan>
Date:   Mon,  6 Jan 2025 09:18:42 +1100

Fixed some issues and changed to ST on slower systems

OpenBSD has a high cost for opening files, especially on older
hardware, st has very minimal startup cost and so feels much more
responsive to open in dwm on OpenBSD.

The changes to dwm.c just fix an annoying compiler warnings
generated by clang.

Diffstat:
Mconfig.h.OBSD | 2+-
Mdwm.c | 2+-
Mvanitygaps.c | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.h.OBSD b/config.h.OBSD @@ -83,7 +83,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_base, "-nf", col_lavender, "-sb", col_lavender, "-sf", col_base, NULL }; -static const char *termcmd[] = { "alacritty", NULL }; +static const char *termcmd[] = { "st", NULL }; static const char *volumedowncmd[] = { "sndioctl", "output.level=-0.05", NULL}; static const char *volumeupcmd[] = { "sndioctl", "output.level=+0.05", NULL}; static const char *volumemutecmd[] = { "sndioctl", "output.mute=!", NULL}; diff --git a/dwm.c b/dwm.c @@ -1830,7 +1830,7 @@ updatebarpos(Monitor *m) } void -updateclientlist() +updateclientlist(void) { Client *c; Monitor *m; diff --git a/vanitygaps.c b/vanitygaps.c @@ -806,4 +806,5 @@ tile(Monitor *m) resize(c, sx, sy, sw - (2*c->bw), (sh / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), 0); sy += HEIGHT(c) + ih; } -} -\ No newline at end of file +} +