#                                        ██
#  █████   ██████  ██████████  ██████  ██████  ██████  ███████
# ██░░░██ ██░░░░██░░██░░██░░██░██░░░██░░░██░  ██░░░░██░░██░░░██
#░██  ░░ ░██   ░██ ░██ ░██ ░██░██  ░██  ░██  ░██   ░██ ░██  ░██
#░██   ██░██   ░██ ░██ ░██ ░██░██████   ░██  ░██   ░██ ░██  ░██
#░░█████ ░░██████  ███ ░██ ░██░██░░░    ░░██ ░░██████  ███  ░██
# ░░░░░   ░░░░░░  ░░░  ░░  ░░ ░██        ░░   ░░░░░░  ░░░   ░░
#                             ░░
#  ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ xero <x@xero.nu>
# ░▓ code   ▓ http://code.xero.nu/dotfiles
# ░▓ mirror ▓ http://git.io/.files
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░

#█▓▒░ animations
# requires https://github.com/jonaburg/picom
# (These are also the default values)
# transition-length = 150
# transition-pow-x = 0.2
# transition-pow-y = 0.2
# transition-pow-w = 0.2
# transition-pow-h = 0.2
# size-transition = false

#█▓▒░ shadows
wintypes: {
	shadow = true;
	dnd = { shadow = false; }
	dock = { shadow = false; }
	popup-menu = { opacity = 1; }
	dropdown_menu = { opacity = 1; }
}
shadow = true;
shadow-radius = 20;
shadow-offset-x = -15;
shadow-offset-y = -15;
shadow-opacity = 0.60;
shadow-red = 0.0;
shadow-green = 0.0;
shadow-blue = 0.0;
shadow-exclude = [ "n:e:xfce4-notifyd" ];
shadow-ignore-shaped = true;

#█▓▒░ opacity
opacity-rule = [
 "50:class_g = 'PabloDraw'",
 "99:class_g = 'viewnoir'"
];
#inactive-opacity = 0.95;
active-opacity = 1;
frame-opacity = 0.95;
inactive-opacity-override = false;
#alpha-step = 0.06;

#█▓▒░ fading
fading = true;
fade-delta = 3;
fade-in-step = 0.03;
fade-out-step = 0.03;
no-fading-openclose = false;

#█▓▒░ blur
blur-background = false;
blur: {
  method = "dual_kawase";
  #method = "kernel";
  strength = 7;
  # deviation = 1.0;
  # kernel = "11x11gaussian";
  background = false;
  background-frame = false;
  background-fixed = false;
  kern = "3x3box";
}

# Exclude conditions for background blur.
blur-background-exclude = [
  "window_type = 'dock'",
  "window_type = 'desktop'",
  "class_g = 'URxvt'",
  "class_g = 'brave' && argb",
  #
  # prevents picom from blurring the background
  # when taking selection screenshot with `main`
  # https://github.com/naelstrof/maim/issues/130
  "class_g = 'slop'",
  "_GTK_FRAME_EXTENTS@:c"
];

#█▓▒░ other
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
backend = "glx";
# experimental-backends = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = true;
xrender-sync-fence = true;
unredir-if-possible = true;
dbe = false;
#paint-on-overlay = true;
sw-opti = false;
