commit 62ba94fabe2a86506d420f38115a097e7da8a4ee
parent ccb07fd6221e6b1bc7274cfcbb62392e4bc86b6c
Author: Michael Neuper <73108749+michaelneuper@users.noreply.github.com>
Date: Sat, 26 Nov 2022 16:30:50 +0200
Add blur to picom
Diffstat:
1 file changed, 89 insertions(+), 26 deletions(-)
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
@@ -3,7 +3,7 @@
# Fork: Arian8j2 #
#################################
-transition = false;
+transition = true;
transition-rule = [
"none: window_type = 'dropdown_menu'",
@@ -22,15 +22,15 @@ transition-rule = [
corner-radius = 7;
rounded-corners-exclude = [
# "window_type = 'normal'",
- "window_type = 'dropdown_menu'",
- "window_type = 'popup_menu'",
- "window_type = 'popup'",
+ # "window_type = 'dropdown_menu'",
+ # "window_type = 'popup_menu'",
+ # "window_type = 'popup'",
# "class_g = 'awesome'",
# "class_g = 'Polybar'",
# "class_g = 'TelegramDesktop'",
# "class_g = 'firefox'",
"class_g = 'Viewnior'",
- "class_g = 'Rofi'",
+ # "class_g = 'Rofi'",
"class_g = 'mpv'",
"class_g = 'Retroarch'",
"class_g = 'retroarch'"
@@ -45,11 +45,11 @@ round-borders = 1;
# Shadows #
#################################
-shadow = false;
-shadow-radius = 18;
-#shadow-opacity = .75
-shadow-offset-x = -25;
-shadow-offset-y = -22;
+shadow = true;
+shadow-radius = 8;
+shadow-opacity = .6;
+shadow-offset-x = -3;
+shadow-offset-y = -3;
shadow-exclude = [
"name = 'Notification'",
@@ -67,22 +67,22 @@ shadow-exclude = [
# Fading #
#################################
-fading = false;
+fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
-fade-in-step = 0.4;
+fade-in-step = 0.5;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
-fade-out-step = 0.4;
-no-fading-openclose = false
-no-fading-destroyed-argb = false
+fade-out-step = 0.5;
+# no-fading-openclose = false
+# no-fading-destroyed-argb = false
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
# fade-delta = 10
fade-exclude = [
- "class_g = 'slop'",
+ "class_g = 'slop'",
"name = 'bar'",
"class_g = 'maim'",
"class_g = 'mpv'",
- "class_g = 'bspwm'"
+ # "class_g = 'bspwm'"
]
#################################
@@ -99,19 +99,82 @@ inactive-dim = 1.0
focus-exclude = [
"class_g = 'Cairo-clock'",
"class_g = 'Polybar'",
- "class_g = 'slop'", # maim
+ "class_g = 'slop'",
"class_g = 'ranger'"
];
opacity-rule = [
- "98:class_g = 'Emacs'",
- "98:class_g = 'Alacritty'",
+ "95:class_g = 'Emacs'",
+ "90:class_g = 'Alacritty'",
"95:class_g = 'Polybar'",
"95:class_g = 'Rofi'",
- "98:class_g = 'obsidian'",
+ "95:class_g = 'obsidian'",
"100:class_g = 'firefox'",
- "98:class_g = 'Code'",
- "98:class_g = 'NetBeans IDE 8.2'"
+ "90:class_g = 'Code'",
+ "95:class_g = 'NetBeans IDE 8.2'"
+];
+
+#################################
+# Background-Blurring #
+#################################
+
+
+# Parameters for background blurring, see the *BLUR* section for more information.
+# blur-method =
+# blur-size = 12
+#
+# blur-deviation = false
+
+# Blur background of semi-transparent / ARGB windows.
+# Bad in performance, with driver-dependent behavior.
+# The name of the switch may change without prior notifications.
+#
+# blur-background = true;
+
+# Blur background of windows when the window frame is not opaque.
+# Implies:
+# blur-background
+# Bad in performance, with driver-dependent behavior. The name may change.
+#
+# blur-background-frame = false;
+
+
+# Use fixed blur strength rather than adjusting according to window opacity.
+# blur-background-fixed = false;
+
+
+# Specify the blur convolution kernel, with the following format:
+# example:
+# 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-kern = ''
+# blur-kern = "3x3box";
+
+blur: {
+ # requires: https://github.com/ibhagwan/picom
+ method = "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'",
+ #
+ # 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",
+ "class_g ?= 'zoom'"
];
#################################
@@ -137,10 +200,10 @@ log-level = "warn";
wintypes:
{
- normal = { fade = true; shadow = true; }
- tooltip = { fade = false; shadow = false; focus = true; full-shadow = false; }
+ normal = { fade = false; shadow = true; }
+ tooltip = { fade = true; shadow = true; focus = true; full-shadow = false; }
dock = { shadow = false; }
- dnd = { shadow = false; }
+ dnd = { shadow = true; }
popup_menu = { opacity = 0.97; fade = false; shadow = false; }
dropdown_menu = { opacity = 0.97; }
menu = { fade = false; }