commit 1324cc5fe493a88e8a12f802465e618b1005899a
Author: mrfox <jens.se@icloud.com>
AuthorDate: Sun Dec 6 10:17:34 2026 +0100
Commit: mrfox <jens.se@icloud.com>
CommitDate: Sun Dec 6 10:17:34 2026 +0100
sxwm: pin upstream to ba5801f so the local patches apply again
Upstream sxwm was rewritten in October 2026 (sources moved out of src/,
defs.h renamed, scratchpads removed), so none of the patches applied to
main anymore and config/sxwmrc relies on removed features. Pin both
install.sh and rebuild-sxwm.sh to the commit the patches were made
against.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---
README.md | 7 +++++--
install.sh | 7 ++++++-
rebuild-sxwm.sh | 5 ++++-
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 2c11bbf..5f4b584 100644
--- a/README.md
+++ b/README.md
@@ -188,8 +188,11 @@ dotfiles/
## sxwm patches
-`install.sh` clones upstream `sxwm` and applies these on top before building, in
-order. To rebuild and reinstall just sxwm (e.g. after editing a patch) without
+`install.sh` clones upstream `sxwm`, checks out the pinned commit `SXWM_COMMIT`
+(`ba5801f`, 2026-07-11) and applies these on top before building, in order. The
+pin is needed because upstream was rewritten in October 2026 (sources moved out
+of `src/`, scratchpads and monocle removed), so the patches and `config/sxwmrc`
+no longer fit its `main`. To rebuild and reinstall just sxwm (e.g. after editing a patch) without
running the rest of `install.sh`, use `./rebuild-sxwm.sh`.
| Patch | Fixes |
diff --git a/install.sh b/install.sh
index 99c72eb..55e5d9c 100755
--- a/install.sh
+++ b/install.sh
@@ -10,6 +10,10 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SXWM_REPO="https://github.com/uint23/sxwm.git"
+# Låst version: upstream skrev om sxwm i okt 2026 (src/ borttagen, scratchpads
+# och monocle borttagna) -- patcharna här och config/sxwmrc bygger på koden före
+# det. Byt bara commit efter att ha porterat patcharna och konfigen.
+SXWM_COMMIT="ba5801fd8cb204aee48ab4a94b835e843e673b1f"
SXBAR_REPO="https://git.kristoffersson.info/repos/sxbar.git"
DMENU_REPO="https://git.suckless.org/dmenu"
ST_REPO="https://git.suckless.org/st"
@@ -435,9 +439,10 @@ step_sxwm() {
mkdir -p "$BUILD_DIR"
cd "$BUILD_DIR"
rm -rf sxwm
- git clone --depth=1 "$SXWM_REPO" sxwm
+ git clone "$SXWM_REPO" sxwm
cd sxwm
+ git checkout -q "$SXWM_COMMIT"
patch -p1 < "$SCRIPT_DIR/cursor-dpi-fix.patch"
# Lägger till stöd för _NET_ACTIVE_WINDOW (behövs för sxbars taskbar-modul
# -- utan denna gör klick i taskbaren ingenting, sxwm har ingen annan
diff --git a/rebuild-sxwm.sh b/rebuild-sxwm.sh
index 46e8051..6f21f53 100755
--- a/rebuild-sxwm.sh
+++ b/rebuild-sxwm.sh
@@ -12,6 +12,8 @@ set -eu
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SXWM_REPO="https://github.com/uint23/sxwm.git"
+# Låst version, se SXWM_COMMIT i install.sh (måste vara samma).
+SXWM_COMMIT="ba5801fd8cb204aee48ab4a94b835e843e673b1f"
BUILD_DIR="$(mktemp -d /tmp/sxwm-rebuild.XXXXXX)"
PATCHES=(
@@ -25,8 +27,9 @@ PATCHES=(
)
echo "==> Klonar sxwm i $BUILD_DIR..."
-git clone --depth=1 "$SXWM_REPO" "$BUILD_DIR"
+git clone "$SXWM_REPO" "$BUILD_DIR"
cd "$BUILD_DIR"
+git checkout -q "$SXWM_COMMIT"
echo "==> Applicerar patchar..."
for p in "${PATCHES[@]}"; do