From 016cdc27e776a8b95e8d0e354b10bef3d886f704 Mon Sep 17 00:00:00 2001
From: Luca Bilke <luca@bil.ke>
Date: Wed, 17 Apr 2024 22:06:58 +0200
Subject: [PATCH] bugfix, improve build script

---
 build.sh | 4 ++--
 config.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh
index ad2fa89..83ccec6 100755
--- a/build.sh
+++ b/build.sh
@@ -4,8 +4,8 @@ cp config.mk patches.h dwm-flexipatch/
 flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o dwm-final
 git -C dwm-flexipatch reset --hard HEAD && git -C dwm-flexipatch clean -fd
 for patch in patches/*.diff; do
-	patch -d dwm-final <"$patch"
+    patch -d dwm-final <"$patch"
 done
 cp config.h dwm-final/
 cd dwm-final || exit 1
-make
+make "$@"
diff --git a/config.h b/config.h
index 943ddf3..a1d1afb 100644
--- a/config.h
+++ b/config.h
@@ -309,7 +309,7 @@ static const Key keys[] = {
     // { MODKEY | ShiftMask,  XK_q,               spawn,              {.v = (const char *[]){NULL}} },
     { MODKEY,              XK_j,               focusdir,           {.i = 3} },
     // { MODKEY | ShiftMask,  XK_j,               spawn,              {.v = (const char *[]){NULL}} },
-    { MODKEY,              XK_k,               focusstack,         {.i = 2} },
+    { MODKEY,              XK_k,               focusdir,           {.i = 2} },
     // { MODKEY | ShiftMask,  XK_k,               spawn,              {.v = (const char *[]){NULL}} },
     { MODKEY,              XK_x,               togglefloating,     {0} },
     { MODKEY | ShiftMask,  XK_x,               unfloatvisible,      {0} },