commit b89232da95775ba613d0463ca2ba1a181f066fc6
parent d84658014a0ab78e8daffc4569d1b9a47970cfa7
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 15 Dec 2018 16:11:59 +0100
Apply changes and transparency through diff patches
Diffstat:
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,13 +1,17 @@
default: st/st
-st/st: st/config.h
+st/st: st/config.h general.diff st-alpha-0.8.1.diff
+ @echo "Apply patches"
+ -for f in *.diff; do cp $$f st/ && (cd st && patch -p1 -N < $$f); done
@echo "Building st"
make -C st/
-st/config.h: config.h st/
- @echo "Copying custom configuration to source directory"
+st/config.h: st/config.def.h
+ @echo "Copying default configuration to source directory"
cp $< $@
+st/config.def.h: st/
+
st/:
@echo "Fetching st source"
git clone git://git.suckless.org/st
@@ -16,6 +20,9 @@ st/:
install: st/st
sudo make -C st/ install
+general.diff: st/config.h
+ diff -u st/config.h config.h > $@
+
.PHONY: clean
clean:
$(RM) -r st/
diff --git a/config.h b/config.h
@@ -84,7 +84,7 @@ unsigned int tabspaces = 8;
/* bg opacity */
//unsigned int alpha = 0xed;
-//unsigned int alpha = 220;
+unsigned int alpha = 220;
static const char *colorname[] = {
"#434944",