2019-10-25 06:06:15 -04:00
picom
2022-04-12 08:48:21 -04:00
=====
2011-11-04 14:52:05 -04:00
2023-06-12 06:49:06 -04:00
[![circleci ](https://circleci.com/gh/yshui/picom.svg?style=shield )](https://circleci.com/gh/yshui/picom)
[![codecov ](https://codecov.io/gh/yshui/picom/branch/next/graph/badge.svg?token=NRSegi0Gze )](https://codecov.io/gh/yshui/picom)
2023-09-22 17:36:19 -04:00
[![chat on discord ](https://img.shields.io/discord/1106224720833159198?logo=discord )](https://discord.gg/SY5JJzPgME)
2023-06-12 06:49:06 -04:00
2022-04-12 08:48:21 -04:00
__picom__ is a compositor for X, and a [fork of Compton ](History.md ).
2018-12-21 16:23:45 -05:00
2022-04-12 08:48:21 -04:00
**This is a development branch, bugs to be expected**
2020-12-16 19:25:57 -05:00
2023-06-15 03:23:49 -04:00
You can leave your feedback or thoughts in the [discussion tab ](https://github.com/yshui/picom/discussions ), or chat with other users on [discord ](https://discord.gg/SY5JJzPgME )!
2011-11-04 14:52:05 -04:00
2019-05-21 17:16:09 -04:00
## Change Log
2018-12-15 14:57:57 -05:00
2019-10-24 14:24:38 -04:00
See [Releases ](https://github.com/yshui/picom/releases )
2018-12-15 14:57:57 -05:00
2018-10-01 09:26:57 -04:00
## Build
### Dependencies
2019-08-18 17:39:18 -04:00
Assuming you already have all the usual building tools installed (e.g. gcc, python, meson, ninja, etc.), you still need:
2018-10-01 09:26:57 -04:00
* libx11
2018-12-16 11:36:15 -05:00
* libx11-xcb
2018-10-01 09:26:57 -04:00
* libXext
* xproto
* xcb
2023-06-16 19:27:20 -04:00
* xcb-util
2018-10-01 09:26:57 -04:00
* xcb-damage
2022-12-15 05:53:31 -05:00
* xcb-dpms
2018-10-01 09:26:57 -04:00
* xcb-xfixes
* xcb-shape
* xcb-renderutil
* xcb-render
* xcb-randr
* xcb-composite
* xcb-image
2018-11-03 18:15:38 -04:00
* xcb-present
2020-03-31 00:59:44 -04:00
* xcb-glx
2018-10-01 09:26:57 -04:00
* pixman
2018-10-14 19:47:24 -04:00
* libdbus (optional, disable with the `-Ddbus=false` meson configure flag)
* libconfig (optional, disable with the `-Dconfig_file=false` meson configure flag)
2024-02-10 08:31:52 -05:00
* libGL, libEGL, libepoxy (optional, disable with the `-Dopengl=false` meson configure flag)
2022-11-30 14:23:47 -05:00
* libpcre2 (optional, disable with the `-Dregex=false` meson configure flag)
2018-10-02 20:09:37 -04:00
* libev
2019-04-03 03:36:02 -04:00
* uthash
2018-10-01 09:26:57 -04:00
2021-01-04 16:52:43 -05:00
On Debian based distributions (e.g. Ubuntu), the needed packages are
2019-08-18 17:39:18 -04:00
```
2024-02-10 08:31:52 -05:00
libconfig-dev libdbus-1-dev libegl-dev libev-dev libgl-dev libepoxy-dev libpcre2-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-dpms0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev libxext-dev meson ninja-build uthash-dev
2019-08-18 17:39:18 -04:00
```
2021-01-04 16:52:43 -05:00
On Fedora, the needed packages are
```
2024-02-10 08:31:52 -05:00
dbus-devel gcc git libconfig-devel libdrm-devel libev-devel libX11-devel libX11-xcb libXext-devel libxcb-devel libGL-devel libEGL-devel libepoxy-devel meson pcre2-devel pixman-devel uthash-devel xcb-util-image-devel xcb-util-renderutil-devel xorg-x11-proto-devel xcb-util-devel
2021-01-04 16:52:43 -05:00
```
2018-10-01 09:26:57 -04:00
To build the documents, you need `asciidoc`
2019-02-21 13:24:46 -05:00
### To build
2018-10-01 09:26:57 -04:00
```bash
2023-06-28 14:21:45 -04:00
$ meson setup --buildtype=release build
2018-10-14 19:47:24 -04:00
$ ninja -C build
2018-10-01 09:26:57 -04:00
```
2019-04-14 08:32:33 -04:00
Built binary can be found in `build/src`
If you have libraries and/or headers installed at non-default location (e.g. under `/usr/local/` ), you might need to tell meson about them, since meson doesn't look for dependencies there by default.
You can do that by setting the `CPPFLAGS` and `LDFLAGS` environment variables when running `meson` . Like this:
2019-03-27 15:31:50 -04:00
```bash
2023-06-28 14:21:45 -04:00
$ LDFLAGS="-L/path/to/libraries" CPPFLAGS="-I/path/to/headers" meson setup --buildtype=release build
2019-03-27 15:31:50 -04:00
```
2019-04-14 08:32:33 -04:00
As an example, on FreeBSD, you might have to run meson with:
```bash
2023-06-28 14:21:45 -04:00
$ LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" meson setup --buildtype=release build
2019-04-14 08:32:33 -04:00
$ ninja -C build
```
2018-10-14 19:47:24 -04:00
2019-02-21 13:24:46 -05:00
### To install
``` bash
$ ninja -C build install
```
Default install prefix is `/usr/local` , you can change it with `meson configure -Dprefix=<path> build`
2018-10-01 09:26:57 -04:00
## How to Contribute
2022-12-01 16:21:19 -05:00
All contributions are welcome!
2018-10-01 09:26:57 -04:00
2022-12-01 16:21:19 -05:00
New features you think should be included in picom, a fix for a bug you found - please open a PR!
2018-10-01 09:26:57 -04:00
2022-12-01 16:21:19 -05:00
You can take a look at the [Issues ](https://github.com/yshui/picom/issues ).
2018-10-01 09:26:57 -04:00
2022-12-01 16:21:19 -05:00
Contributions to the documents and wiki are also appreciated.
2018-10-03 17:14:51 -04:00
2022-12-01 16:21:19 -05:00
Even if you don't want to add anything to picom, you are still helping by compiling and running this branch, and report any issue you can find.
### Become a Collaborator
Becoming a collaborator of picom requires significant time commitment. You are expected to reply to issue reports, reviewing PRs, and sometimes fix bugs or implement new feature. You won't be able to push to the main branch directly, and all you code still has to go through code review.
If this sounds good to you, feel free to contact me.
2019-05-21 17:16:40 -04:00
2018-10-03 17:14:51 -04:00
## Contributors
See [CONTRIBUTORS ](CONTRIBUTORS )
2022-04-12 08:48:21 -04:00
The README for the [original Compton project ](https://github.com/chjj/compton/ ) can be found [here ](History.md#Compton ).
## Licensing
picom is free software, made available under the [MIT ](LICENSES/MIT ) and [MPL-2.0 ](LICENSES/MPL-2.0 ) software
licenses. See the individual source files for details.