Skip to content

Instantly share code, notes, and snippets.

@rbreaves
Last active May 10, 2020 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbreaves/ed0c216c4acb72580cd12b830e718ed2 to your computer and use it in GitHub Desktop.
Save rbreaves/ed0c216c4acb72580cd12b830e718ed2 to your computer and use it in GitHub Desktop.
Install compton with blur on galliumOS
git clone https://github.com/tryone144/compton
# Install all dependencies
sudo apt install libx11-dev libxcomposite-dev libxdamage-dev libxfixes-dev libxrender-dev libxrandr-dev libxinerama-dev pkg-config libconfig-dev libpcre3-dev libdbus-1-dev libdrm-dev mesa-common-dev libgl1-mesa-dev xsltproc
# Do this separate to install 1mb instead of 500mb+
sudo apt-get --no-install-recommends install asciidoc
# Make the main program
make
# Make the man pages
make docs
# Install
make install
# Test
pkill compton
compton --blur-background --blur-kern '5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,'
sudo vim /etc/xdg/compton.conf
```
opacity-rule = [
"95:class_g *?= 'wrapper-1.0' && name != 'Whisker Menu'",
"75:class_g *?= 'wrapper-1.0' && name = 'Whisker Menu'",
"95:class_g *?= 'wrapper-2.0' && name != 'Whisker Menu'",
"75:class_g *?= 'wrapper-2.0' && name = 'Whisker Menu'",
"78:class_g *?= 'Gnome-terminal'",
"92:class_g *?= 'albert'" ];
blur-background-exclude = [
"window_type = 'dock' && class_g *?= 'plank'",
"window_type = 'desktop'",
"class_g *?= 'wrapper-1.0' && name != 'Whisker Menu'",
"class_g *?= 'wrapper-2.0' && name != 'Whisker Menu'",
"_GTK_FRAME_EXTENTS@:c" # Fixes bug where glass like borders could appear
];
blur-background = true;
blur-background-frame = false;
blur-background-fixed = false;
blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,";
blur-method = "kawase";
# blur-strength = 12;
```
References
make whisker menu blur
https://forum.xfce.org/viewtopic.php?id=12907
https://unix.stackexchange.com/questions/361864/linux-compton-have-only-one-specific-window-transparent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment