1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00

added alpha patch

This commit is contained in:
Ryan Kes 2019-02-04 16:58:11 +01:00
parent f091f4ae35
commit 1d66e1bfb5
2 changed files with 19 additions and 4 deletions

View File

@ -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
}

View File

@ -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} },
};