diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..edb6a4e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: koraynilay +# This PKGBUILD is adapted from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=picom-tryone-git +_gitfolder="picom" +pkgname=picom-jonaburg-git +pkgver=0.1 +pkgrel=1 +pkgdesc="jonaburg's picom fork with tryone144's dual_kawase blur and ibhagwan's rounded corners, an X compositor (compton's fork)" +arch=(i686 x86_64) +url="https://github.com/jonaburg/picom" +license=('MIT' 'MPL2') +depends=('libconfig' 'libev' 'libxdg-basedir' 'pcre' 'pixman' 'xcb-util-image' 'xcb-util-renderutil' 'hicolor-icon-theme' 'libglvnd' 'libx11' 'libxcb' 'libxext' 'libdbus') +makedepends=('git' 'meson' 'ninja' 'gcc' 'asciidoc' 'uthash') +optdepends=('dbus: To control picom via D-Bus' + 'xorg-xwininfo: For picom-trans' + 'xorg-xprop: For picom-trans' + 'python: For picom-convgen.py') +provides=('compton' 'compton-git' 'picom' 'picom-git') +conflicts=('compton' 'compton-git' 'picom' 'picom-git') +source=("${_gitfolder}::git+https://github.com/jonaburg/picom.git") +md5sums=("SKIP") +build() { + cd "${srcdir}/${_gitfolder}" + meson --buildtype=release . build --prefix=/usr -Dwith_docs=true + ninja -C build +} + +package() { + cd "${srcdir}/${_gitfolder}" + DESTDIR="$pkgdir/" ninja -C build install + + # install license + install -D -m644 "LICENSES/MIT" "${pkgdir}/usr/share/licenses/${pkgname/-git$/}/LICENSE-MIT" + + # example conf + install -D -m644 "picom.sample.conf" "${pkgdir}/etc/xdg/picom.conf.example" +} diff --git a/README.md b/README.md index 914feea..48b1191 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,6 @@ picom ======= *new!* : You'll now also find tryone's dual_kawase blur for the new backend, as well as rounded corners from sdhand if they are so desired, merged from ibhagwan. -If you're pulling my new updates, remember to build the binary again with ninja! - -``` -cd /path/to/this/picom -git pull -ninja -C build -``` ![](demo.gif) @@ -28,6 +21,21 @@ Your picom config can also now take advantage of some of the options that were p - [ ] * `spawn-center` whether to animate new windows from their own center (default: true) - [ ] * `no-scale-down` Whether to animate down scaling (some programs handle this poorly) (default: false) +---- +### Installation of this fork +[AUR](https://aur.archlinux.org/packages/picom-jonaburg-git) package + +OR + +```bash +git clone https://github.com/jonaburg/picom +cd picom +meson --buildtype=release . build +ninja -C build +# To install the binaries in /usr/local/bin (optional) +sudo ninja -C build install +``` + ---- **This is a development branch, bugs to be expected** diff --git a/picom.sample.conf b/picom.sample.conf index 754e62e..89f8d69 100644 --- a/picom.sample.conf +++ b/picom.sample.conf @@ -1,7 +1,20 @@ +################################# +# Animations # +################################# +# requires https://github.com/jonaburg/picom +# (These are also the default values) +transition-length = 300 +transition-pow-x = 0.1 +transition-pow-y = 0.1 +transition-pow-w = 0.1 +transition-pow-h = 0.1 +size-transition = true + + ################################# # Corners # ################################# -# requires: https://github.com/sdhand/compton +# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom corner-radius = 25.0; rounded-corners-exclude = [ #"window_type = 'normal'",