# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
glx-no-rebind-pixmap = true;
vsync = true;
refresh-rate = 0;
dbe = false;

# Round corners
detect-rounded-corners = true;
round-borders = 1;
corner-radius = 10;
rounded-corners-exclude = [
	"class_g = 'Dunst'",
  "class_g = 'spectrwm'",
  "class_g = 'Polybar'",
  "window_type = 'desktop'",
  "window_type = 'toolip'"
];

# Shadow
shadow = true;
shadow-radius = 10;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.75;
shadow-exclude = [ ];

# Fading
fading = true;
# fade-delta = 0.25;
fade-in-step = 0.07;
fade-out-step = 0.07;
fade-exclude = [
	"class_g = 'Dunst'",
	"class_g = 'Polybar'",
	"window_type = 'menu'",
	"window_type = 'dropdown_menu'",
	"window_type = 'popup_menu'",
  "window_type = 'dock'",
	"window_type = 'tooltip'"
];

# Opacity
active-opacity = 0.95;
inactive-opacity = 0.95;
frame-opacity = 0.95;
inactive-opacity-override = false;
opacity-rule = [
  "100:window_type = 'popup_menu'",
  "100:window_type = 'dropdown_menu'",
  "100:window_type = 'desktop'",
  "100:class_g = 'st-256color'",
  "100:class_g = 'kitty'",
  "95:class_g = 'Alacritty'",
  "100:class_g = 'Termite'",
  "100:class_g = 'Dunst'",
  "95:class_g = 'Polybar'",
  "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
detect-client-opacity = true;
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
use-damage = true;
mark-wmwin-focused = false;
mark-ovredir-focused = false;

# Blur background. Prefered GLX-backend
blur: {
	method = "dual_kawase";
	strength = 5;
	background = false;
	background_frame = false;
	background_fixed = false;
};
