From 1d66e1bfb53cad050a7865cc865936da5a5201d2 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Mon, 4 Feb 2019 16:58:11 +0100 Subject: [PATCH] added alpha patch --- PKGBUILD | 18 +++++++++++++++--- config.h | 5 ++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index bb62ff3..356ce2d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,15 +13,27 @@ license=('MIT') options=(zipman) depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'st' 'dmenu') install=dwm.install + +_patches=("https://dwm.suckless.org/patches/alpha/dwm-alpha-6.1.diff") + source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz config.h - dwm.desktop) + dwm.desktop + "${_patches[@]}") + md5sums=('f0b6b1093b7207f89c2a90b848c008ec' - '80c4ef2a3eca0fe2d14e2203e3833200' - '939f403a71b6e85261d09fc3412269ee') + 'fcc09a7d94b4b3be21444ca54f9d2bdc' + '939f403a71b6e85261d09fc3412269ee' + 'e6858ff16b9eb1d7fa42a96b59847395') prepare() { cd $srcdir/$pkgname-$pkgver + + for patch in "${_patches[@]}"; do + echo "Applying patch $(basename $patch)..." + patch -Np1 -i "$srcdir/$(basename $patch)" + done + cp $srcdir/config.h config.h } diff --git a/config.h b/config.h index 7054c06..1da7a4b 100644 --- a/config.h +++ b/config.h @@ -16,6 +16,10 @@ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ +/* alpha patch */ +static unsigned int baralpha = 0xd0; +static unsigned int borderalpha = OPAQUE; + /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -110,4 +114,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; -