chjj / compton

A compositor for X11.
Other
2.24k stars 501 forks source link

How a get a very blurred background ? #537

Open Spheerys opened 5 years ago

Spheerys commented 5 years ago

Platform: Archlinux 64bits

GPU, drivers, and screen setup:

Compton version: 4.0-1 from the official repository

Compton configuration: https://pb.spheerys.fr/?9ce52a7f07b208d9#+3xgaQACCK2XbXj/xkK+lbFO8jGwHiUDZzOlQgac5V4=

Steps of reproduction

I'm setting the blur parameters like this :

blur-background = true;
blur-background-frame = true;
blur-background-fixed = true;

blur-kern = "3x3box";
blur-method = "kawase";
blur-strength = 12;

Expected behavior

I want to have a very blurred background behing the transparent terminal windows, like in this picture : https://www.reddit.com/r/unixporn/comments/ac6qj3/ubuntu_openbox_tint2_compton_urxvt_first_rice/

Current Behavior & Other details

I only have a "very light" blurred background as you can see : https://i.imgur.com/IYavGiE.jpg I tried several blur parametesr but it's look like the blur function is not working

What's going wrong ?

yshui commented 5 years ago

@Spheerys The compton in official repo doesn't have kawase blur. You either want this one, or wait for me to implement it.

BTW, this repo is not longer active, the compton in the official repo is built from here

emme1444 commented 5 years ago

Could anyone give a more detailed guide on how to build this on Ubuntu 18.04.2?

That would be greatly appreciated!

kbknapp commented 5 years ago

@emme1444 try this:

note: You may not need all these deps, but I don't have a machine to test which ones aren't required at the moment.

$ sudo apt install pkg-config make gcc libev-libevent-dev libdbus-1-dev libgl1-mesa-dev \
  libgl2-mesa-dev libxcb-present-dev libxcb-sync-dev libxcb-damage0-dev \
  xcb-damage0-dev libx11-xcb-dev libev libev-dev uthash-dev libxdg-basedir-dev \
  libconfig-dev meson  libx11-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev \
  libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-shape0-dev \
  libxcb-xkb-dev pkg-config xcb-proto libxcb-xrm-dev libxcb-composite0-dev xcb \
  libxcb-ewmh2 libxcb1-dev libxcb-keysyms1-dev libxcb-util0-devlibxcb-randr0-dev \
  libev-dev libxcb-cursor-dev libxcb-xinerama0-dev

$ git clone https://github.com/yshui/compton
$ cd compton
$ meson --buildtype=release . build
$ ninja -C build
$ sudo ninja -C build install

Edit: I just noticed you meant the tyrone144 fork. Sorry.

michaeltarab commented 5 years ago

@emme1444 try this:

note: You may not need all these deps, but I don't have a machine to test which ones aren't required at the moment.

$ sudo apt install pkg-config make gcc libev-libevent-dev libdbus-1-dev libgl1-mesa-dev \
  libgl2-mesa-dev libxcb-present-dev libxcb-sync-dev libxcb-damage0-dev \
  xcb-damage0-dev libx11-xcb-dev libev libev-dev uthash-dev libxdg-basedir-dev \
  libconfig-dev meson  libx11-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev \
  libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-shape0-dev \
  libxcb-xkb-dev pkg-config xcb-proto libxcb-xrm-dev libxcb-composite0-dev xcb \
  libxcb-ewmh2 libxcb1-dev libxcb-keysyms1-dev libxcb-util0-devlibxcb-randr0-dev \
  libev-dev libxcb-cursor-dev libxcb-xinerama0-dev

$ git clone https://github.com/yshui/compton
$ cd compton
$ meson --buildtype=release . build
$ ninja -C build
$ sudo ninja -C build install

Edit: I just noticed you meant the tyrone144 fork. Sorry.

Do you know if the yshui is the most up-to-date and if it is will this installation guide still work? thank you.

kbknapp commented 5 years ago

@michaeltarab The yshui fork has been working well for me, and seems to get updated every few days so it's definitely active. However, it does not include the kawase blur that the tryone144 fork does. There is an open issue on the yshui fork to implement the kawase blur, they just said they haven't had time to implement it yet.

Conversely the tryone144 fork isn't active, it's just this repo with the kawase blur added as a feature. The last commit was in Feb 2018 or something.

As for the build instructions still being relevant they are, as I just re-built off the latest yshui commit a day or so ago using those instructions.

michaeltarab commented 5 years ago

Ok thank you for the help!

schijtreiger commented 5 years ago

Could anyone give a more detailed guide on how to build this on Ubuntu 18.04.2?

That would be greatly appreciated!

git clone https://github.com/tryone144/compton.git cd compton mv _CMakeLists.txt CMakeLists.txt mkdir build cd build cmake .. make (test it maybe... ./compton & assuming your have a ~/.config/compton.conf) sudo make install

& Bob's your uncle. This works perfectly on FreeBSD-11.n / 12.n / -CURRENT, with proprietary nvidia-driver or drm-kmod (Intel Graphics, haven't test it with a Radeon card...yet)

GijsVermarien commented 5 years ago

Small update in order to get it to work on Ubuntu 19.04: sudo apt install pkg-config make gcc libev-libevent-dev libdbus-1-dev libgl1-mesa-dev libgles2-mesa-dev libxcb-present-dev libxcb-sync-dev libxcb-damage0-dev libx11-xcb-dev libev4 libev-dev uthash-dev libxdg-basedir-dev libconfig-dev meson libx11-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-shape0-dev libxcb-xkb-dev pkg-config xcb-proto libxcb-xrm-dev libxcb-composite0-dev xcb libxcb-ewmh2 libxcb1-dev libxcb-keysyms1-dev libxcb-util0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev

bugarela commented 4 years ago

Small update in order to get it to work on Ubuntu 19.04: sudo apt install pkg-config make gcc libev-libevent-dev libdbus-1-dev libgl1-mesa-dev libgles2-mesa-dev libxcb-present-dev libxcb-sync-dev libxcb-damage0-dev libx11-xcb-dev libev4 libev-dev uthash-dev libxdg-basedir-dev libconfig-dev meson libx11-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-shape0-dev libxcb-xkb-dev pkg-config xcb-proto libxcb-xrm-dev libxcb-composite0-dev xcb libxcb-ewmh2 libxcb1-dev libxcb-keysyms1-dev libxcb-util0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev

On top of that, I've also needed

sudo apt install libxcomposite-dev libxrandr-dev libxinerama-dev

On both Ubuntu and Mint 19